/* ============================================================================
   EXECUTIVE LAB · APP.CSS — sistema de diseño desde cero (tira de tokens.css)
   Clean / premium · nivel agencia · mobile-first · tono mixto por secciones.
   ============================================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }
::selection { background: var(--red); color: #fff; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--d-bg); color: var(--d-text); }

/* ---- Tipografía base ---- */
.display { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--text-strong); }
h1, .h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--text-strong); }
h2, .h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); color: var(--text-strong); }
h3, .h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: var(--lh-snug); color: var(--text-strong); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text); }
.em-red { color: var(--red); font-style: italic; }
.section--dark .display, .section--dark h1, .section--dark h2, .section--dark h3 { color: var(--d-text-strong); }

.eyebrow {
  display: inline-block; font-family: var(--font-sans); font-weight: 900;
  font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--red);
}
.eyebrow--dim { color: var(--text-dim); }
.section--dark .eyebrow--dim { color: var(--d-text-dim); }

.muted { color: var(--text-dim); }
.section--dark .muted { color: var(--d-text-dim); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 900; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 17px 30px; min-height: 52px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset; }
.btn--primary:hover { background: var(--red-press); transform: translateY(-2px); box-shadow: 0 16px 34px -14px var(--red-glow); }
.btn--primary:active { transform: translateY(0) scale(.985); }
.btn--ghost { background: transparent; color: var(--text-strong); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text-strong); transform: translateY(-2px); }
.section--dark .btn--ghost { color: #fff; border-color: var(--d-line); }
.section--dark .btn--ghost:hover { border-color: rgba(233,225,217,.5); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* En móvil el botón no debe engordar: más esbelto, ancho de contenido (no full-width por defecto) */
@media (max-width: 600px) {
  .btn { padding: 13px 24px; min-height: 48px; font-size: 13px; letter-spacing: 0.05em; }
  .btn svg { width: 15px; height: 15px; }
}

/* ---- Eyebrow + título: cabecera de sección reutilizable ---- */
.s-head { max-width: 720px; }
.s-head--center { margin-inline: auto; text-align: center; }
.s-head .eyebrow { margin-bottom: var(--s-4); }
.s-head h2 { margin-bottom: var(--s-4); }
.s-head .lead { color: var(--text-dim); }
.section--dark .s-head .lead { color: var(--d-text-dim); }

/* ---- Lista con check de marca ---- */
.checklist { display: grid; gap: var(--s-3); }
.checklist li { position: relative; padding-left: 32px; font-size: var(--fs-body); line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-tint); border: 1px solid var(--red-line); }
.checklist li::after { content: ""; position: absolute; left: 6.5px; top: 6px; width: 6px; height: 9px; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(43deg); }

/* ---- Motion: reveal sutil al entrar ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================================
   NAV
   ============================================================================ */
/* Nav casi sólido (sin backdrop-filter: evita el glitch gris de repintado al cargar) */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(11,11,11,.94); border-bottom: 1px solid var(--d-line); transform: translateZ(0); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 64px; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-links { display: none; gap: var(--s-6); }
.nav-links a { font-size: 14px; color: rgba(233,225,217,.7); transition: color var(--dur) var(--ease); }
.nav-links a:hover { color: #fff; }
.nav .btn { padding: 11px 20px; min-height: 44px; font-size: 12.5px; }
.nav-toggle { display: inline-flex; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-toggle { display: none; } }
/* Móvil: nav limpia (logo + hamburguesa). El CTA vive en el hero, no en la barra. */
@media (max-width: 899px) {
  .nav .btn { display: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--d-bg); border-bottom: 1px solid var(--d-line);
    padding: var(--s-2) var(--gutter) var(--s-4);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 15px 2px; font-size: 16px; color: rgba(233,225,217,.86); border-bottom: 1px solid var(--d-line); }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ============================================================================
   HERO (oscuro)
   ============================================================================ */
.hero { background: var(--d-bg); color: var(--d-text); position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 104px) clamp(64px, 10vw, 120px); text-align: center; max-width: 880px; margin-inline: auto; }
.hero h1 { font-size: var(--fs-display); margin-bottom: var(--s-5); text-wrap: balance; color: var(--d-text-strong); }
.hero .lead { color: var(--d-text); max-width: 600px; margin: 0 auto var(--s-7); }
.hero .lead strong { color: #fff; font-weight: 700; }
.hero-video { position: relative; margin-bottom: var(--s-7); border-radius: var(--r); overflow: hidden; background: #000; }
.hero-video video { width: 100%; height: auto; display: block; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); }
.hero-note { font-size: var(--fs-small); color: var(--d-text-dim); }

/* ============================================================================
   OFERTA (clara · ficha de programa + banda de inversión oscura)
   ============================================================================ */
.offer .s-head { margin-bottom: clamp(36px, 6vw, 64px); }
.offer-card { max-width: 980px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.offer-modules { display: grid; grid-template-columns: 1fr; }
.offer-mod { padding: clamp(28px, 6vw, 44px); }
.offer-mod + .offer-mod { border-top: 1px solid var(--line); }
.offer-mod-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.offer-phase { font-family: var(--font-sans); font-weight: 900; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); border: 1px solid var(--red-line); border-radius: var(--r-pill); padding: 4px 11px; }
.offer-dur { font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.offer-mod h3 { margin-bottom: var(--s-5); }
.offer-invest { background: var(--d-bg); color: var(--d-text); padding: clamp(28px, 6vw, 44px); display: grid; gap: var(--s-5); position: relative; }
.offer-invest::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .5; }
.offer-invest-label { font-weight: 900; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--d-text-dim); }
.offer-amount { font-family: var(--font-display); font-size: clamp(56px, 16vw, 76px); line-height: .95; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.offer-amount .cur { color: var(--red); font-size: .5em; vertical-align: top; margin-right: 3px; }
.offer-fin { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.offer-pill { font-weight: 700; font-size: 12.5px; color: var(--d-text); background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--r-pill); padding: 7px 13px; }
.offer-pill--lead { color: #fff; background: var(--red-tint); border-color: var(--red-line); }
.offer-cta { display: grid; gap: var(--s-3); }
.offer-cta .btn { width: 100%; }
.offer-note { font-size: 12px; color: var(--d-text-dim); }

@media (min-width: 768px) {
  .offer-modules { grid-template-columns: 1fr 1fr; }
  .offer-mod + .offer-mod { border-top: 0; border-left: 1px solid var(--line); }
  .offer-invest { grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--s-7); }
  .offer-cta .btn { width: auto; justify-self: start; }
}

/* ============================================================================
   BOTÓN FLOTANTE WHATSAPP (te sigue al hacer scroll) — verde de marca WhatsApp
   ============================================================================ */
.el-wa-floating {
  position: fixed; bottom: clamp(16px, 3vw, 24px); right: clamp(16px, 3vw, 24px); z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #25d366; color: #fff;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px; line-height: 1;
  border-radius: var(--r-pill); text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(37,211,102,.5), 0 2px 10px rgba(0,0,0,.18);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.el-wa-floating:hover { transform: translateY(-2px); background: #1ebe5d; box-shadow: 0 18px 42px -10px rgba(37,211,102,.6), 0 2px 10px rgba(0,0,0,.2); }
.el-wa-floating:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.el-wa-icon { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
@media (max-width: 600px) { .el-wa-floating { padding: 14px; gap: 0; } .el-wa-text { display: none; } }

/* ============================================================================
   FOOTER legal + skip-link (portados de la web real, restilizados)
   ============================================================================ */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--red); color: #fff; padding: 10px 18px; font-weight: 700; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }

.site-footer { background: var(--d-bg); color: var(--d-text-dim); padding: var(--s-7) 0; border-top: 1px solid var(--d-line); }
.site-footer .footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); font-size: 13px; }
.site-footer .footer-legal > span { color: var(--d-text-dim); }
.site-footer .legal-links { display: flex; gap: var(--s-5); }
.site-footer .legal-links a { color: var(--d-text-dim); transition: color var(--dur) var(--ease); }
.site-footer .legal-links a:hover { color: #fff; }
@media (max-width: 600px) { .site-footer .footer-legal { flex-direction: column; text-align: center; gap: var(--s-3); } }
