:root{
  --bg:#070b12;
  --bg-soft:#0b1220;
  --panel:rgba(15,23,42,.72);

  --gold-strong:#d97706;
  --gold-main:#d4a017;
  --gold-light:#f5d77a;
  --gold-soft:#fff6c2;

  --silver-strong:#94a3b8;
  --silver-main:#cbd5e1;
  --silver-light:#e5e7eb;
  --silver-soft:#f8fafc;

  --text:#e6edf7;
  --muted:#b6c2d1;

  --gold-border:rgba(212,160,23,.48);
  --gold-border-soft:rgba(245,215,122,.18);
  --silver-border:rgba(203,213,225,.22);

  --radius:18px;
  --pad:24px;
  --shadow:0 18px 40px rgba(0,0,0,.55);
  --max:1180px;
  --header-h:110px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  scroll-padding-top:var(--header-h);
}

body{
  margin:0;
  padding:0;
  background:
    radial-gradient(900px 280px at 15% 0%, rgba(245,180,40,.08), transparent 60%),
    radial-gradient(900px 280px at 85% 0%, rgba(229,231,235,.08), transparent 60%),
    linear-gradient(180deg, #070b12 0%, #0b1220 100%);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
  display:block;
}

.label-icon{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}

.label-icon svg{
  width:18px;
  height:18px;
  fill:#d4b16a;
  flex:0 0 auto;
  filter:drop-shadow(0 0 6px rgba(212,177,106,.25));
}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

main section[id]{
  scroll-margin-top:var(--header-h);
}

/* ANIMACIONES */
@keyframes fadeUpSoft{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes fadeLeftSoft{
  from{ opacity:0; transform:translateX(24px); }
  to{ opacity:1; transform:translateX(0); }
}

@keyframes heroGlowPulse{
  0%,100%{ opacity:.55; transform:scale(1); }
  50%{ opacity:.8; transform:scale(1.04); }
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(7,11,18,.90);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(212,160,23,.38);
  box-shadow:
    0 0 0 1px rgba(245,215,122,.08),
    0 10px 28px rgba(0,0,0,.30);
}

.site-header.scrolled{
  background:rgba(7,11,18,.96);
  box-shadow:
    0 12px 34px rgba(0,0,0,.45),
    0 0 0 1px rgba(245,215,122,.10);
}

.nav{
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* MARCA */
.brand{
  display:flex;
  align-items:center;
  gap:4px;
  flex-shrink:0;
  min-width:0;
}

.brand-icon{
  height:95px;
  max-height:none;
  width:auto;
  object-fit:contain;
  margin-right:-8px;
  filter:
    drop-shadow(0 0 8px rgba(255,200,80,.45))
    drop-shadow(0 0 16px rgba(255,215,120,.18));
}

.brand-text-wrap{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:.95;
}

.brand-main{
  font-weight:900;
  font-size:21px;
  letter-spacing:.08em;
  background:linear-gradient(180deg,#fff6c2,#ffd86b,#d4a017,#b8860b);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 10px rgba(255,215,0,.25);
}

.brand-sub{
  font-size:11px;
  letter-spacing:.18em;
  margin-top:4px;
  background:linear-gradient(180deg,#ffffff,#cbd5e1,#94a3b8);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  opacity:.88;
}

/* MENÚ */
.menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  color:var(--silver-main);
  font-size:14px;
  flex:1;
}

.menu a{
  position:relative;
  padding:8px 0;
  border-bottom:none;
  transition:.25s ease;
}

.menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:2px;
  width:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold-light),var(--gold-main));
  transition:width .25s ease;
}

.menu a:hover,
.menu a.active{
  color:var(--gold-light);
  text-shadow:0 0 12px rgba(245,215,122,.22);
}

.menu a:hover::after,
.menu a.active::after{
  width:100%;
}

.nav > .btn{
  flex-shrink:0;
  min-height:44px;
  padding:0 18px;
  white-space:nowrap;
}

/* TIPOGRAFÍA */
h1,h2,h3,p{
  margin-top:0;
}

h1{
  font-size:clamp(2.5rem,5.3vw,4.4rem);
  line-height:1.02;
  margin-bottom:18px;
  letter-spacing:-0.02em;
  color:var(--silver-soft);
  text-shadow:
    0 0 16px rgba(245,180,40,.10),
    0 0 24px rgba(229,231,235,.08);
}

h2{
  font-size:clamp(1.8rem,3vw,2.7rem);
  line-height:1.1;
  margin-bottom:16px;
  color:var(--silver-soft);
}

h3{
  margin-bottom:10px;
  color:var(--silver-light);
  letter-spacing:.02em;
}

.eyebrow{
  display:inline-block;
  margin:0 0 14px;
  color:var(--gold-light);
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-size:.75rem;
}

.gold-text{
  background:linear-gradient(180deg, var(--gold-soft), var(--gold-light), var(--gold-main));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 10px rgba(245,180,40,.16);
}

.hero-text,
.section-heading p,
.card p,
.mini-card p,
.form-note,
.footer-meta,
.footer-brand p{
  color:var(--silver-main);
  line-height:1.65;
}

.section-heading{
  position:relative;
  max-width:820px;
  margin-bottom:42px;
}

.section-heading::after{
  content:"";
  display:block;
  width:90px;
  height:2px;
  margin-top:16px;
  background:linear-gradient(90deg, var(--gold-light), var(--silver-light), transparent);
  border-radius:999px;
}

/* BOTONES */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 20px;
  border-radius:12px;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
  transition:.25s ease;
}

.btn-primary{
  background:linear-gradient(
    180deg,
    var(--gold-soft) 0%,
    var(--gold-light) 15%,
    var(--gold-main) 48%,
    #b8860b 68%,
    var(--gold-strong) 100%
  );
  color:#ffffff;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -2px 4px rgba(0,0,0,.35),
    0 8px 18px rgba(0,0,0,.55),
    0 0 16px rgba(245,180,40,.10);
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -3px 6px rgba(0,0,0,.4),
    0 10px 22px rgba(0,0,0,.6),
    0 0 20px rgba(245,180,40,.18);
}

.btn-outline,
.btn-secondary{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  color:var(--silver-light);
  border:1px solid var(--silver-border);
}

.btn-outline:hover,
.btn-secondary:hover{
  background:linear-gradient(180deg, rgba(245,180,40,.08), rgba(229,231,235,.05));
  border-color:var(--gold-border);
  color:var(--gold-light);
  transform:translateY(-1px);
}

.btn-glow{
  position:relative;
  overflow:hidden;
}

.btn-glow::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,215,120,.25), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.15), transparent 50%);
  opacity:.6;
  transition:.3s;
}

.btn-glow:hover::before{
  opacity:1;
}

/* HERO Y SECCIONES */
.hero,
.section{
  position:relative;
  padding-top:110px;
  padding-bottom:100px;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(500px 220px at 28% 20%, rgba(245,180,40,.08), transparent 60%),
    radial-gradient(500px 220px at 75% 30%, rgba(229,231,235,.07), transparent 60%);
  pointer-events:none;
  animation:heroGlowPulse 5.5s ease-in-out infinite;
}

#inicio{
  padding-top:96px;
}

#solucion,
#beneficios,
#contacto{
  border-top:1px solid rgba(245,215,122,.10);
}

.section.alt,
.cta-section{
  background:linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.01));
  border-top:1px solid rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.04);
}

.hero-grid,
.cta-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:40px;
  align-items:center;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:620px;
  animation:fadeUpSoft 1s ease-out both;
}

.hero-card{
  position:relative;
  z-index:2;
  animation:fadeLeftSoft 1.1s ease-out both;
}

.hero-text{
  font-size:1.08rem;
  max-width:58ch;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:28px 0 20px;
}

.hero-highlights{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}

.hero-highlights span{
  padding:10px 14px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border:1px solid rgba(245,215,122,.12);
  color:var(--silver-light);
  font-size:.92rem;
}

/* CARDS / PANELES */
.card,
.contact-form,
.mini-card,
.product-window{
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(245,180,40,.08), transparent 55%),
    radial-gradient(600px 200px at 100% 0%, rgba(229,231,235,.07), transparent 55%),
    linear-gradient(180deg, rgba(15,23,42,.82), rgba(11,18,32,.86));
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(212,160,23,.34);
  border-radius:var(--radius);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.02),
    0 0 18px rgba(245,180,40,.06),
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.card:hover,
.mini-card:hover,
.product-window:hover{
  border-color:rgba(245,215,122,.42);
}

.card,
.contact-form,
.mini-card{
  padding:var(--pad);
}

.product-window{
  position:relative;
  z-index:1;
  overflow:hidden;
}

.window-top{
  display:flex;
  gap:8px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.window-top span{
  width:12px;
  height:12px;
  border-radius:50%;
}

.window-top span:nth-child(1){
  background:rgba(245,180,40,.35);
}

.window-top span:nth-child(2){
  background:rgba(229,231,235,.28);
}

.window-top span:nth-child(3){
  background:rgba(148,163,184,.28);
}

.window-body{
  padding:24px;
}

.hero-badge{
  display:inline-block;
  margin-bottom:14px;
  padding:8px 14px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(245,180,40,.12), rgba(229,231,235,.10));
  border:1px solid rgba(245,215,122,.18);
  color:var(--gold-light);
  font-weight:800;
  font-size:.75rem;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.metric-box{
  background:linear-gradient(135deg, rgba(245,180,40,.12), rgba(229,231,235,.05));
  border:1px solid rgba(212,160,23,.22);
  border-radius:20px;
  padding:20px;
  margin-bottom:20px;
}

.metric-label{
  color:var(--silver-main);
  font-size:.92rem;
  margin-bottom:8px;
}

.metric-value{
  font-size:1.5rem;
  font-weight:800;
  background:linear-gradient(90deg, var(--gold-light), var(--gold-main), var(--silver-light));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  line-height:1.2;
  margin-bottom:0;
}

.mini-grid,
.cards{
  display:grid;
  gap:18px;
}

.mini-grid{
  grid-template-columns:repeat(2,1fr);
}

.mini-card.wide{
  grid-column:1 / -1;
}

.cards.three{
  grid-template-columns:repeat(3,1fr);
}

.cards.two{
  grid-template-columns:repeat(2,1fr);
}

.cards.one{
  grid-template-columns:1fr;
}

/* FORMULARIOS */
.contact-form{
  display:grid;
  gap:14px;
  align-content:start;
}

.contact-form label{
  display:grid;
  gap:8px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
input,
textarea,
select{
  width:100%;
  background:#070b12;
  color:var(--text);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:12px;
  font:inherit;
  outline:none;
  transition:border .25s ease, box-shadow .25s ease, background .25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:#94a3b8;
  opacity:.9;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus{
  border:1px solid rgba(212,160,23,.65);
  box-shadow:
    0 0 0 1px rgba(212,160,23,.25),
    0 0 12px rgba(245,180,40,.14);
  background:#05070b;
}

.form-note{
  margin-bottom:0;
}

/* CÓDIGO / ALERTAS */
code{
  display:block;
  margin:12px 0;
  padding:12px 14px;
  border-radius:12px;
  background:#020617;
  color:var(--gold-light);
  border:1px solid rgba(245,215,122,.18);
  overflow-x:auto;
}

.card ol,
.card ul{
  color:var(--silver-main);
  line-height:1.7;
  padding-left:22px;
}

.good{
  color:#4ade80 !important;
  font-weight:700;
}

.bad{
  color:#fb7185 !important;
  font-weight:700;
}

/* FOOTER */
.site-footer{
  padding:36px 0 50px;
  border-top:1px solid rgba(255,255,255,.08);
}

.footer-wrap{
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:center;
  flex-wrap:wrap;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.footer-logo{
  height:110px;
  max-height:none;
  width:auto;
  max-width:420px;
  object-fit:contain;
  display:block;
  filter:
    drop-shadow(0 0 8px rgba(255,200,80,.35))
    drop-shadow(0 0 18px rgba(255,215,120,.20));
}

.footer-brand strong{
  background:linear-gradient(90deg, var(--gold-light), var(--gold-main), var(--silver-light));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  letter-spacing:.04em;
}

.footer-brand p{
  margin-bottom:0;
  font-size:.9rem;
}

.footer-meta{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  font-size:.95rem;
  color:var(--silver-main);
}

.footer-meta span{
  color:var(--silver-strong);
}

.footer-meta a:hover{
  color:var(--gold-light);
}

/* BOTÓN VOLVER ARRIBA */
.scroll-top-btn{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:999;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  min-height:46px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  background:linear-gradient(180deg,var(--gold-soft),var(--gold-light),var(--gold-main),#b8860b,var(--gold-strong));
  color:#111;
  font-weight:900;
  font-size:1rem;
  box-shadow:0 10px 25px rgba(212,175,55,.25);
}

.scroll-top-btn:hover{
  transform:translateY(-2px);
}

/* RESPONSIVE TABLET */
@media(max-width:980px){
  :root{
    --header-h:92px;
  }

  .nav{
    min-height:92px;
    gap:14px;
  }

  .brand{
    gap:4px;
  }

  .brand-icon{
    height:78px;
    margin-right:-6px;
  }

  .brand-main{
    font-size:17px;
  }

  .brand-sub{
    font-size:9.5px;
  }

  .menu{
    gap:14px;
    font-size:12.5px;
  }

  .nav > .btn{
    padding:0 13px;
    font-size:12.5px;
  }

  .hero-grid,
  .cta-grid,
  .cards.three{
    grid-template-columns:1fr;
  }

  .hero-card{
    max-width:620px;
  }

  .footer-logo{
    height:90px;
    max-width:340px;
  }
}

/* RESPONSIVE MÓVIL */
@media(max-width:640px){
  :root{
    --header-h:82px;
  }

  .container{
    width:min(var(--max), calc(100% - 24px));
  }

  .nav{
    min-height:82px;
    gap:10px;
  }

  .brand{
    gap:2px;
  }

  .brand-icon{
    height:62px;
    margin-right:-5px;
  }

  .brand-main{
    font-size:14px;
  }

  .brand-sub{
    font-size:8px;
    letter-spacing:.14em;
  }

  .menu{
    display:none;
  }

  .nav > .btn{
    min-height:38px;
    padding:0 10px;
    font-size:11px;
  }

  .hero,
  .section{
    padding-top:64px;
    padding-bottom:56px;
  }

  h1{
    font-size:clamp(2.1rem,11vw,3rem);
  }

  h2{
    font-size:clamp(1.6rem,8vw,2.2rem);
  }

  .hero-text{
    font-size:1rem;
  }

  .window-body,
  .card,
  .contact-form,
  .mini-card{
    padding:18px;
  }

  .hero-actions{
    flex-direction:column;
  }

  .btn{
    width:100%;
    min-height:48px;
  }

  .mini-grid,
  .cards.two{
    grid-template-columns:1fr;
  }

  .footer-wrap{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:18px;
  }

  .footer-brand{
    flex-direction:column;
    align-items:center;
    gap:12px;
  }

  .footer-logo{
    height:82px;
    max-width:260px;
    margin:0 auto;
  }

  .footer-meta{
    justify-content:center;
    text-align:center;
  }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce){
  *{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}

/* =========================================================
   ESTADO DISABLED (CRÍTICO)
========================================================= */

.btn:disabled,
button:disabled{
  opacity: .45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;

  /* 🔥 mata el efecto dorado activo */
  background: linear-gradient(180deg, #1e293b, #0f172a) !important;
  color: #64748b !important;
  border: 1px solid rgba(148,163,184,.2) !important;
}

/* Quita glow y animaciones */
.btn:disabled::before,
.btn:disabled::after{
  display: none !important;
}

/* Evita hover en disabled */
.btn:disabled:hover{
  transform: none !important;
  box-shadow: none !important;
}

/* Inputs deshabilitados */
input:disabled,
select:disabled,
textarea:disabled{
  opacity: .5;
  cursor: not-allowed;
  background: #020617;
}

/* =========================================================
   STATUS BOX (MENSAJES VISUALES TIPO ALERTA)
========================================================= */

.status-box{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  margin-top:8px;
  animation:fadeUpSoft .4s ease;
}

/* ICONO */
.status-icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  flex-shrink:0;
}

.status-icon svg{
  width:18px;
  height:18px;
}

/* TEXTO */
.status-text strong{
  display:block;
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:4px;
}

.status-text p{
  margin:0;
  font-size:.9rem;
  color:var(--silver-main);
}

/* TIPOS DE MENSAJE */

/* WARNING (amarillo) */
.status-box.warning{
  border:1px solid rgba(245,180,40,.35);
  background:linear-gradient(135deg, rgba(245,180,40,.10), rgba(255,255,255,.03));
}

.status-box.warning .status-icon{
  background:rgba(245,180,40,.15);
  box-shadow:0 0 10px rgba(245,180,40,.25);
}

.status-box.warning svg{
  fill:#f5d77a;
}

/* SUCCESS (verde) */
.status-box.success{
  border:1px solid rgba(34,197,94,.35);
  background:linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.03));
}

.status-box.success .status-icon{
  background:rgba(34,197,94,.18);
  box-shadow:0 0 10px rgba(34,197,94,.25);
}

.status-box.success svg{
  fill:#4ade80;
}

/* ERROR (rojo) */
.status-box.error{
  border:1px solid rgba(248,113,113,.35);
  background:linear-gradient(135deg, rgba(248,113,113,.12), rgba(255,255,255,.03));
}

.status-box.error .status-icon{
  background:rgba(248,113,113,.18);
  box-shadow:0 0 10px rgba(248,113,113,.25);
}

.status-box.error svg{
  fill:#f87171;
}

/* INFO (azul/gris) */
.status-box.info{
  border:1px solid rgba(148,163,184,.35);
  background:linear-gradient(135deg, rgba(148,163,184,.12), rgba(255,255,255,.03));
}

.status-box.info .status-icon{
  background:rgba(148,163,184,.18);
}

.status-box.info svg{
  fill:#cbd5e1;
}

/* HIDDEN */
.hidden{
  display:none !important;
}

/* OTP COMPLETADO */
.otp-completed{
  opacity:.7;
  transform:scale(.98);
  pointer-events:none;
}

.otp-completed .status-box{
  border:1px solid rgba(34,197,94,.4);
  background:linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.02));
}

.otp-completed .status-icon{
  background:rgba(34,197,94,.18);
}

.otp-completed .status-text strong{
  color:#4ade80;
}