/*
Theme Name: Astra Child
Template: astra
Version: 1.0
Author: Apexweb
Author URI: https://apexweb.es/
*/
:root{
  --aw-bg:#f3f7f4;
  --aw-card:#ffffff;
  --aw-soft:#f5f7fb;
  --aw-text:#0f172a;
  --aw-muted:#64748b;
  --aw-border:#dde7e0;
  --aw-primary:#166534;
  --aw-primary-2:#22c55e;
  --aw-accent:#0f172a;
  --aw-danger:#b91c1c;
  --aw-success:#166534;
  --aw-shadow:0 18px 50px rgba(15, 23, 42, 0.10);
  --aw-radius:26px;
}

*{
  box-sizing:border-box;
}

body{
  background:linear-gradient(180deg,#f8fafc 0%,#eef7f0 100%);
}

.aw-shell{
  width:min(1180px, calc(100% - 24px));
  margin:24px auto 48px;
}

.aw-hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:28px;
  align-items:center;
  background:linear-gradient(135deg,#0f172a 0%, #14532d 100%);
  color:#fff;
  border-radius:34px;
  padding:clamp(24px,5vw,42px);
  box-shadow:var(--aw-shadow);
}

.aw-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.12);
  color:inherit;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:10px 14px;
  margin-bottom:14px;
  font-size:.78rem;
  line-height:1;
  font-weight:800;
}

.aw-badge--dark{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}

.aw-hero h1{
  font-size:clamp(2rem,5vw,3.6rem);
  line-height:1.02;
  margin:0 0 12px;
}

.aw-lead{
  margin:0;
  max-width:62ch;
  color:rgba(255,255,255,.84);
  font-size:1rem;
}

.aw-meta-grid,
.aw-hero-stats,
.aw-admin-grid{
  display:grid;
  gap:16px;
}

.aw-hero-stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:22px;
}

.aw-hero-stat{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  padding:16px;
}

.aw-hero-stat span{
  display:block;
  color:rgba(255,255,255,.72);
  font-size:.85rem;
  margin-bottom:6px;
}

.aw-hero-stat strong{
  font-size:1rem;
}

.aw-tank{
  display:flex;
  justify-content:center;
  align-items:flex-end;
  min-height:320px;
}

.aw-tank__top{
  width:180px;
  height:24px;
  background:#d1d5db;
  border-radius:999px;
  margin:0 auto -10px;
  position:relative;
  z-index:2;
}

.aw-tank__body{
  width:220px;
  height:300px;
  border:8px solid rgba(255,255,255,.68);
  border-radius:28px 28px 36px 36px;
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(4px);
}

.aw-tank__liquid{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(180deg,#22c55e,#166534);
  border-radius:18px 18px 28px 28px;
}

.aw-tank__label{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-size:2rem;
  font-weight:900;
  color:#fff;
  text-shadow:0 2px 20px rgba(0,0,0,.35);
}

.aw-admin-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:24px;
}

.aw-card{
  background:var(--aw-card);
  color:var(--aw-text);
  border:1px solid rgba(221,231,224,.95);
  border-radius:var(--aw-radius);
  padding:24px;
  box-shadow:var(--aw-shadow);
}

.aw-card--soft{
  background:var(--aw-soft);
}

.aw-card--metric{
  display:flex;
  gap:16px;
  align-items:flex-start;
}

.aw-metric-icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#14532d,#22c55e);
  color:#fff;
  font-size:1.35rem;
  flex:0 0 56px;
}

.aw-kicker{
  display:block;
  color:var(--aw-muted);
  font-weight:700;
  font-size:.88rem;
  margin-bottom:6px;
}

.aw-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.aw-card__header--stack{
  align-items:flex-start;
}

.aw-card h2,
.aw-card h3{
  margin:0 0 10px;
}

.aw-card p{
  color:var(--aw-muted);
}

.aw-copy-muted{
  margin:6px 0 0;
  color:var(--aw-muted);
}

.aw-grid{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(280px,.88fr);
  gap:24px;
  margin-top:24px;
}

.aw-progress-wrap{
  margin-top:18px;
}

.aw-progress-top,
.aw-progress-meta,
.aw-stat-list li{
  display:flex;
  justify-content:space-between;
  gap:16px;
}

.aw-progress-top{
  margin-bottom:10px;
  color:var(--aw-muted);
  font-weight:700;
}

.aw-progress-meta{
  margin-top:10px;
  align-items:center;
}

.aw-progress{
  width:100%;
  height:24px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  border:1px solid #d1d5db;
}

.aw-progress__bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#15803d,#22c55e);
}

.aw-litros-big{
  text-align:right;
}

.aw-litros-big strong{
  display:block;
  font-size:clamp(1.9rem,4vw,3rem);
  line-height:1;
}

.aw-litros-big span{
  display:block;
  margin-top:6px;
  color:var(--aw-muted);
  font-weight:700;
}

.aw-form{
  display:grid;
  gap:16px;
}

.aw-field{
  display:grid;
  gap:8px;
}

.aw-field span{
  font-weight:800;
  font-size:.95rem;
}

.aw-field input{
  width:100%;
  min-height:56px;
  border:1px solid var(--aw-border);
  border-radius:18px;
  padding:0 16px;
  font-size:1rem;
  background:#fff;
}

.aw-field input:focus{
  outline:none;
  border-color:#86efac;
  box-shadow:0 0 0 4px rgba(34,197,94,.14);
}

.aw-password-wrap{
  position:relative;
}

.aw-toggle-pass{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:none;
  background:#f1f5f9;
  color:#0f172a;
  border-radius:12px;
  font-weight:800;
  min-height:38px;
  padding:0 14px;
  cursor:pointer;
}

.aw-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:56px;
  padding:0 18px;
  border-radius:18px;
  font-weight:900;
  text-decoration:none;
  border:1px solid transparent;
  transition:.2s ease;
  cursor:pointer;
}

.aw-btn--full{
  width:100%;
}

.aw-btn--primary{
  background:linear-gradient(135deg,#15803d,#22c55e);
  color:#fff;
}

.aw-btn--ghost{
  background:#fff;
  color:var(--aw-text);
  border-color:var(--aw-border);
}

.aw-btn--primary:hover{
  transform:translateY(-1px);
}

.aw-stat-list{
  list-style:none;
  padding:0;
  margin:0;
}

.aw-stat-list li{
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--aw-border);
}

.aw-stat-list li:last-child{
  border-bottom:none;
}

.aw-stat-list span{
  color:var(--aw-muted);
  font-weight:700;
}

.aw-steps{
  margin:12px 0 0;
  padding-left:18px;
}

.aw-steps li + li{
  margin-top:10px;
}

/* QR */
.aw-card--qr-share{
  margin-top:24px;
}

.aw-qr-share{
  display:grid;
  grid-template-columns:1fr 300px;
  gap:30px;
  align-items:center;
}

.aw-qr-share__left h2{
  margin:0 0 10px;
  font-size:clamp(1.5rem,4vw,2rem);
  line-height:1.1;
}

.aw-qr-share__left p{
  margin:0;
  color:#64748b;
}

.aw-qr-actions{
  display:flex;
  gap:10px;
  margin-top:15px;
  flex-wrap:wrap;
}

.aw-qr-link{
  margin-top:10px;
  font-size:0.9rem;
  color:#64748b;
  word-break:break-all;
}

.aw-qr-feedback{
  margin-top:10px;
  font-weight:700;
  color:#16a34a;
  min-height:24px;
}

.aw-qr-box{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:24px;
  padding:18px;
  display:grid;
  place-items:center;
}

.aw-qr-box img{
  width:100%;
  max-width:260px;
  border-radius:16px;
  background:#fff;
  padding:10px;
  border:1px solid #e5e7eb;
}

@media (max-width: 980px){
  .aw-hero,
  .aw-grid,
  .aw-admin-grid{
    grid-template-columns:1fr;
  }

  .aw-hero-stats{
    grid-template-columns:1fr;
  }

  .aw-qr-share{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .aw-shell{
    width:min(100% - 16px, 100%);
    margin:16px auto 32px;
  }

  .aw-hero{
    border-radius:24px;
    padding:22px;
  }

  .aw-card{
    padding:18px;
    border-radius:22px;
  }

  .aw-card__header,
  .aw-progress-top,
  .aw-progress-meta{
    flex-direction:column;
  }

  .aw-litros-big{
    text-align:left;
  }

  .aw-btn{
    width:100%;
  }

  .aw-tank__body{
    width:180px;
    height:240px;
  }

  .aw-qr-share{
    text-align:center;
  }

  .aw-qr-actions{
    flex-direction:column;
  }
}