/* =========
   Variables
========= */
:root{
  --bg: #070b14;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);

  --brand1: #22d3ee; /* cyan */
  --brand2: #a855f7; /* violet */

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  /* ✅ CAMBIO SOLO DE ESPACIO: antes 1180px */
  --maxw: 1400px;
}

html[data-theme="light"]{
  --bg: #f6f7ff;
  --surface: rgba(17, 24, 39, .06);
  --surface-2: rgba(17, 24, 39, .08);
  --border: rgba(17, 24, 39, .14);
  --text: rgba(10, 15, 25, .92);
  --muted: rgba(10, 15, 25, .68);
  --shadow: 0 10px 30px rgba(10,15,25,.12);
}

*{ box-sizing: border-box; }
body{
  background: var(--bg) !important;
  color: var(--text);
}

/* Neutraliza backgrounds de base.html */
.page, main, .content, .container { background: transparent !important; }

/* ✅ CAMBIO SOLO DE ESPACIO:
   Si base.html envuelve el contenido en .container con max-width/padding,
   esto lo “libera” SOLO en el landing (body_class = landing-page). */
body.landing-page .container{
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* (Opcional seguro) si base.html tiene paddings laterales en wrappers comunes */
body.landing-page .main-content,
body.landing-page main,
body.landing-page .content{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========
   Layout
========= */
.section{ padding: 56px 0; }
.section__container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}
.section__title{
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: .2px;
}

/* =========
   Header
========= */
.header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .header{ background: rgba(255,255,255,.65); }

.header__container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header__logo{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header__logo-img{ width: 34px; height: 34px; }
.header__logo-text{
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--text);
}

.header__nav{ display: flex; gap: 18px; }
.header__link{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.header__link:hover{ color: var(--text); }

.header__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tema: solo ícono (no texto) */
.theme-toggle{
  width: 44px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
}
.theme-toggle__text{ display:none; }
.theme-toggle__icon{ font-size: 15px; line-height: 1; }
.theme-toggle:hover{ background: var(--surface-2); }

/* =========
   Buttons (texto negro SIEMPRE)
========= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  color: #0b0f19;
  -webkit-tap-highlight-color: transparent;
}
.btn:visited{ color:#0b0f19; }

.btn--primary{
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  box-shadow: var(--shadow);
}
.btn--soft{
  background: rgba(255,255,255,.75);
  border-color: rgba(0,0,0,.12);
  color: #0b0f19;
}
html[data-theme="light"] .btn--soft{
  background: rgba(10,15,25,.08);
  border-color: rgba(10,15,25,.14);
}
.btn--ghost{
  background: transparent;
  border-color: var(--border);
  color: #0b0f19;
}
html[data-theme="dark"] .btn--ghost{
  background: rgba(255,255,255,.75);
  border-color: rgba(0,0,0,.12);
}

.btn:hover{ filter: brightness(1.03); }

/* Saca outline azul y deja halo sutil */
.btn:focus,
.btn:focus-visible,
.theme-toggle:focus,
.theme-toggle:focus-visible{
  outline: none !important;
}
.btn:focus-visible,
.theme-toggle:focus-visible{
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .18);
}
.btn::-moz-focus-inner,
.theme-toggle::-moz-focus-inner{ border: 0; }

/* =========
   Hero
========= */
.hero{ padding: 60px 0 24px; }
.hero__container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: center;
}
.hero__title{
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 16px;
}
.hero__title-gradient{
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.hero__microcopy{
  margin: 0 0 18px;
  color: var(--muted);
  opacity: .95;
}
.hero__cta{ display: flex; gap: 12px; flex-wrap: wrap; }

.hero__mockup{ display: flex; justify-content: flex-end; }
.mockup{
  width: min(520px, 100%);
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mockup__top{
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}
.mockup__dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.mockup__body{ padding: 16px; }
.mockup__line{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  margin-bottom: 10px;
}
.mockup__kpis{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.mockup__kpi{
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.08);
}
.mockup__chart{
  height: 140px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}
.w60{ width: 60%; }
.w35{ width: 35%; }

/* =========
   Trust band
========= */
.trust-band{ padding: 14px 0 0; }
.trust-band__container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.trust-band__item{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-band__badge{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(34, 211, 238, .22);
  border: 1px solid rgba(34, 211, 238, .35);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0b0f19;
}
.trust-band__text{ color: var(--muted); font-weight: 700; }

/* =========
   Problem / Solution panels
========= */
.problem-solution__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}
.panel__title{ margin: 0 0 12px; font-size: 22px; }
.panel__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}
.panel__x{
  display: inline-block;
  width: 26px;
  text-align: center;
  margin-right: 8px;
  color: #ff5b5b;
  font-weight: 900;
}
.panel__text{ margin: 0; color: var(--muted); line-height: 1.7; }

/* =========
   Benefits
========= */
.benefits{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.benefit{
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.benefit__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}
.benefit__text{ font-weight: 800; color: var(--text); }

/* =========
   Steps
========= */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 22px;
}
.step__num{
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border: 0;
  font-weight: 900;
  color: #0b0f19;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.step__title{ margin: 14px 0 6px; font-size: 18px; }
.step__desc{ margin: 0; color: var(--muted); line-height: 1.6; }

/* =========
   Modules
========= */
.modules{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.module-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 22px;
  text-align: center;
}
.module-card h3{ margin: 0; font-size: 18px; }

/* =========
   Pricing (compacto + alineado)
========= */
.pricing{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;

  /* clave: al abrir una, las otras NO se estiran */
  align-items: start;

  padding-top: 14px;
  overflow: visible;
}

.price-card{
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;

  position: relative;
  display: flex;
  flex-direction: column;

  /* 👇 en vez de gap grande, controlamos espacios por márgenes */
  gap: 0;

  overflow: visible;

  /* 👇 más bajo para que no quede tanto vacío */
  min-height: 470px;
}

/* ===============================
   ✅ BADGE "POPULAR" (NUEVO)
   - Centrado arriba del plan Pro
   - Degradado igual a botones
   - Usar en HTML: class="price-card price-card--popular"
   - Badge: <div class="price-card__badge">Popular</div>
================================ */
.price-card--popular{
  border-color: rgba(34,211,238,.28);
  box-shadow:
    0 0 0 1px rgba(168,85,247,.10),
    0 18px 45px rgba(0,0,0,.35);
  padding-top: 30px; /* deja lugar al badge sin chocar con el título */
}

.price-card__badge{
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;

  padding: 6px 12px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 12px;
  letter-spacing: .02em;

  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  color: #0b0f19;

  box-shadow:
    0 10px 22px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.10);
}
/* =============================== */

.price-card__name{ margin: 2px 0 10px; font-size: 22px; }

.price-card__desc{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;

  /* 👇 menos alto */
  min-height: 44px;
}

.price-card__list{
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
  display: grid;
  gap: 8px;

  /* 👇 menos alto para acercar botones */
  min-height: 120px;
}

/* el extra lo maneja el JS con hidden */
.price-card__extra{
  margin: 0 0 14px;
}
.price-card__extra[hidden]{ display:none !important; }

/* Botones abajo, juntos */
.price-card__toggle{
  margin-top: auto;
  width: 100%;
}
.price-card__cta{
  margin-top: 10px;
  width: 100%;
}

/* =========
   FAQ
========= */
.faq{ display: grid; gap: 14px; }
.faq__item{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 20px;
}
.faq__q{ margin: 0 0 8px; font-size: 18px; }
.faq__a{ margin: 0; color: var(--muted); }

/* =========
   CTA Final (recuadro con degradado como botones)
========= */
.cta-final{ padding: 70px 0; }
.cta-final__container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  box-shadow: var(--shadow);
  padding: 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* glass encima */
.cta-final__container::before{
  content:"";
  position:absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  pointer-events:none;
}
.cta-final__container > *{
  position: relative;
  z-index: 1;
}

.cta-final__title{ margin: 0 0 10px; font-size: 34px; }
.cta-final__text{ margin: 0 0 18px; color: rgba(255,255,255,.80); }

.cta-final__actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-final__actions .btn{ min-width: 160px; }

@media (max-width: 520px){
  .cta-final__actions .btn{ width: 100%; }
}

/* =========
   Footer
========= */
.footer{
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: rgba(0,0,0,.18);
}
html[data-theme="light"] .footer{ background: rgba(255,255,255,.6); }

.footer__container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__logo{ font-weight: 900; }
.footer__tagline{ margin: 6px 0 0; color: var(--muted); }
.footer__nav{ display: flex; gap: 14px; }
.footer__link{ color: var(--muted); text-decoration: none; font-weight: 700; }
.footer__link:hover{ color: var(--text); }
.footer__copy{ color: var(--muted); }

/* =========
   Responsive
========= */
@media (max-width: 980px){
  .hero__container{ grid-template-columns: 1fr; }
  .hero__mockup{ justify-content: flex-start; }
  .trust-band__container{ grid-template-columns: 1fr; }
  .problem-solution__grid{ grid-template-columns: 1fr; }
  .benefits{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .modules{ grid-template-columns: 1fr; }
  .pricing{ grid-template-columns: 1fr; }
  .header__nav{ display:none; }

  /* en mobile no fuerces altura fija */
  .price-card{ min-height: auto; }
  .price-card__list{ min-height: auto; }
  .price-card__desc{ min-height: auto; }

  /* badge no necesita padding extra gigante en mobile */
  .price-card--popular{ padding-top: 28px; }
}