/* ============================================================
   FUNNEL EMS — Sistema de diseño
   Paleta corporativa: azul teal profundo + blanco hueso
   ============================================================ */

:root {
  /* Color */
  --navy: #142631;        /* fondo del logo original, secciones oscuras */
  --ink: #0c3038;         /* teal muy profundo, texto sobre claro */
  --teal-800: #0e4c55;
  --teal: #0f7180;        /* primario */
  --teal-bright: #19a7b8; /* acento / hovers */
  --teal-soft: #d8ecee;   /* fondos suaves */
  --bone: #f7f3eb;        /* blanco hueso, fondo base */
  --bone-card: #fffdf8;   /* tarjetas */
  --gold: #e2b25a;        /* acento cálido puntual */
  --danger: #c0392b;

  /* Tipografía */
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(12, 48, 56, .12);
  --shadow-lg: 0 24px 60px rgba(12, 48, 56, .22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
.site-header .container { display: flex; justify-content: center; align-items: center; }

/* Wordmark en texto (sustituye a la imagen del logo, que traía el fondo
   incrustado y no casaba con el header) */
.wordmark {
  font-family: var(--font-head);
  color: #fff;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
  user-select: none;
}
.wordmark strong { font-weight: 800; letter-spacing: .1em; }
.wordmark span {
  display: block;
  font-weight: 300;
  font-size: .78em;
  letter-spacing: .55em;
  margin-right: -.55em; /* compensa el tracking del último carácter */
  color: rgba(247, 243, 235, .85);
}
.site-footer .wordmark { margin-bottom: 16px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(25, 167, 184, .28), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(226, 178, 90, .14), transparent 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--teal-800) 78%, var(--teal) 115%);
  color: var(--bone-card);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero::after {
  /* onda inferior hacia el blanco hueso */
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 42px;
  background: var(--bone);
  clip-path: ellipse(62% 100% at 50% 100%);
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(25, 167, 184, .18);
  border: 1px solid rgba(25, 167, 184, .55);
  color: #bfeef4;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--teal-bright); }
.hero .sub {
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  color: rgba(247, 243, 235, .85);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-center { text-align: center; }

/* ---------- Formulario de captura ---------- */
.optin-card {
  background: var(--bone-card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 28px;
  border-top: 5px solid var(--teal-bright);
}
.optin-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.optin-card p.small { font-size: .9rem; color: #5b6f74; margin-bottom: 18px; }
.optin-card input {
  width: 100%;
  padding: 15px 17px;
  margin-bottom: 13px;
  border: 1.6px solid #d5dcd9;
  border-radius: 12px;
  font: inherit;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.optin-card input:focus {
  outline: none;
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(25, 167, 184, .16);
}
.form-error {
  display: none;
  color: var(--danger);
  font-size: .88rem;
  margin: -4px 0 10px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  border: none;
  border-radius: 999px;
  padding: 17px 40px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 113, 128, .38);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 34px rgba(15, 113, 128, .46); }
.btn:active { transform: translateY(0); }
.btn.block { display: block; width: 100%; }
.btn .btn-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .8rem; opacity: .85; margin-top: 3px; }
.btn.pulse { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 12px 26px rgba(15,113,128,.38), 0 0 0 0 rgba(25,167,184,.45); }
  70%  { box-shadow: 0 12px 26px rgba(15,113,128,.38), 0 0 0 18px rgba(25,167,184,0); }
  100% { box-shadow: 0 12px 26px rgba(15,113,128,.38), 0 0 0 0 rgba(25,167,184,0); }
}
.btn.big { font-size: 1.15rem; padding: 20px 52px; }

/* ---------- Secciones ---------- */
section { padding: 64px 0; }
.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
}
.section-title .hl { color: var(--teal); }
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 40px; color: #46595e; }
.divider-line {
  width: 74px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal-bright), var(--gold));
  margin: 0 auto 34px;
}

/* ---------- Barra de prensa / logos ---------- */
.press { background: var(--bone-card); padding: 38px 0 30px; border-bottom: 1px solid #eee6d8; }
.press .press-label {
  text-align: center;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a9aa0;
  font-weight: 600;
  margin-bottom: 22px;
}
.press-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 34px 44px;
}
.press-logos img {
  height: 34px; width: auto;
  filter: grayscale(1) opacity(.55);
  transition: filter .25s ease, transform .25s ease;
}
.press-logos img:hover { filter: grayscale(0) opacity(1); transform: scale(1.06); }

/* ---------- Historia ---------- */
.story-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: start;
}
.story-photo { position: sticky; top: 96px; }
.story-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.story-photo .photo-badge {
  background: var(--navy);
  color: var(--bone-card);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: -34px;
  position: relative;
  width: calc(100% - 36px);
  margin-left: 18px;
  box-shadow: var(--shadow);
  font-size: .92rem;
}
.story-photo .photo-badge strong { color: var(--teal-bright); }
.story-body p { margin-bottom: 16px; }
.story-body .lead-line { font-size: 1.14rem; font-weight: 600; }
.pull-quote {
  border-left: 4px solid var(--teal-bright);
  background: var(--teal-soft);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--teal-800);
}

/* ---------- Marcas / clientes ---------- */
.brand-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brand-chips span {
  background: var(--bone-card);
  border: 1.4px solid #e4dcc9;
  color: var(--teal-800);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: .93rem;
  transition: border-color .2s, transform .2s;
}
.brand-chips span:hover { border-color: var(--teal-bright); transform: translateY(-2px); }

/* ---------- Bullets (variante B) ---------- */
.bullets { list-style: none; margin: 20px 0 8px; }
.bullets li {
  position: relative;
  padding: 10px 0 10px 40px;
  font-size: 1.04rem;
}
.bullets li::before {
  content: '✓';
  position: absolute; left: 0; top: 8px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}

/* ---------- Pruebas / capturas ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.proof-grid img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid #e8e1d2;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.proof-grid img:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }

/* ---------- Vídeo ---------- */
.video-shell {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-shell.vertical { max-width: 400px; }

/* ---------- Página agendar / gracias ---------- */
.dark-section {
  background:
    radial-gradient(900px 460px at 110% 0%, rgba(25, 167, 184, .22), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--teal-800));
  color: var(--bone-card);
}
.dark-section .section-title { color: var(--bone-card); }
.dark-section .section-lead { color: rgba(247, 243, 235, .8); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bone-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--teal-bright);
  transition: transform .22s ease, box-shadow .22s ease;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-card .step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--teal-800); }
.step-card p { font-size: .94rem; color: #46595e; margin-bottom: 8px; }
.step-card strong { color: var(--ink); }

.notice-band {
  background: var(--teal-soft);
  border: 1.6px solid rgba(15, 113, 128, .28);
  border-radius: var(--radius);
  padding: 18px 26px;
  text-align: center;
  font-weight: 600;
  color: var(--teal-800);
  max-width: 680px;
  margin: 0 auto;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(35, 170, 120, .14);
  border: 1.5px solid rgba(35, 170, 120, .5);
  color: #1e8a60;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.dark-section .success-badge { color: #7be0b6; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(247, 243, 235, .65);
  padding: 42px 0 34px;
  text-align: center;
  font-size: .88rem;
}
.site-footer img { height: 38px; width: auto; margin: 0 auto 18px; }
.site-footer a { color: rgba(247, 243, 235, .85); text-decoration: none; margin: 0 12px; }
.site-footer a:hover { color: var(--teal-bright); }
.site-footer .legal { margin-top: 10px; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { position: static; max-width: 420px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 46px 0; }
  .hero { padding: 52px 0 70px; }
  .proof-grid { grid-template-columns: 1fr; }
  .press-logos { gap: 22px 28px; }
  .press-logos img { height: 26px; }
}

/* ============================================================
   AÑADIDOS DE LA WEB (web-nueva) — nav, testimonios, temario
   ============================================================ */

.site-header .container { justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: rgba(247, 243, 235, .85);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  transition: color .18s;
}
.nav a:hover { color: var(--teal-bright); }
.nav .btn { padding: 11px 24px; font-size: .92rem; }
.nav-toggle { display: none; }

.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn.ghost {
  background: transparent;
  border: 1.6px solid rgba(247, 243, 235, .5);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--teal-bright); box-shadow: none; }

/* Testimonios */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.testi-card {
  background: var(--bone-card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--teal-bright);
  transition: transform .22s ease, box-shadow .22s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testi-card .stars { color: var(--gold); letter-spacing: .18em; margin-bottom: 10px; font-size: .95rem; }
.testi-card p { font-size: .97rem; color: #3c5257; }
.testi-card .who { margin-top: 14px; font-weight: 700; color: var(--teal-800); font-size: .92rem; }

/* Temario */
.fase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.fase-card {
  background: var(--bone-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  border-top: 6px solid var(--teal);
  display: flex; flex-direction: column;
}
.fase-card.alt { border-top-color: var(--gold); }
.fase-card .fase-tag {
  align-self: flex-start;
  background: var(--teal-soft);
  color: var(--teal-800);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}
.fase-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.fase-card .temario-list { list-style: none; margin: 14px 0; counter-reset: tema; }
.fase-card .temario-list li {
  counter-increment: tema;
  position: relative;
  padding: 7px 0 7px 42px;
  font-size: .95rem;
  border-bottom: 1px dashed #e8e0cf;
}
.fase-card .temario-list li::before {
  content: counter(tema);
  position: absolute; left: 0; top: 6px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: #fff; font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.fase-card .logro {
  margin-top: auto;
  background: var(--teal-soft);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .92rem;
  color: var(--teal-800);
}
.fase-card .logro strong { display: block; margin-bottom: 4px; }

/* Footer de la web */
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  text-align: left; margin-bottom: 26px;
}
.footer-cols h4 { color: var(--bone-card); font-size: .95rem; margin-bottom: 6px; }
.footer-cols p { font-size: .9rem; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 18px 22px 22px; gap: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
  .nav-toggle { display: block; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
  .site-header { position: sticky; }
  .testi-grid, .fase-grid, .footer-cols { grid-template-columns: 1fr; }
}
