/* ============ Coachnex — landing simple, una sola columna ============ */

:root {
  --bg: #0a1526;          /* azul marino base (hero y cierre) */
  --bg-2: #0c1a2f;        /* variación suave para el hero */
  --panel: #12233d;       /* marco del vídeo */
  --text: #eef2f8;        /* texto sobre fondo oscuro */
  --muted: #9db0c6;       /* texto secundario sobre oscuro */

  --paper: #ffffff;       /* fondo blanco de las secciones centrales */
  --ink: #14223a;         /* texto principal sobre blanco */
  --ink-soft: #55637a;    /* texto secundario sobre blanco */
  --line-light: #e6e9ef;  /* separadores sobre blanco */

  --accent: #2f7df6;
  --accent-2: #38bdf8;
  --line: rgba(255, 255, 255, 0.09);
  --wrap: 620px;
  --radius: 14px;
  --header-h: 0px;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: 20px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2 {
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(28px, 5vw, 40px); }

p { margin: 0 0 18px; color: var(--muted); }

.accent { color: var(--accent-2); }

.lead {
  font-size: clamp(17px, 2.4vw, 20px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- CTA (botón repetido) ---------- */
.cta {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 28px auto 0;
  padding: 17px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06131f;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 28px rgba(56, 138, 255, 0.28);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(56, 138, 255, 0.38); }
.cta:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* ---------- HERO (ocupa toda la primera pantalla) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 56px 0;
  background:
    linear-gradient(180deg, rgba(10, 21, 38, 0.72) 0%, rgba(10, 21, 38, 0.82) 55%, rgba(10, 21, 38, 0.95) 100%),
    url('../assets/images/hero-bg.jpg') center 25% / cover no-repeat,
    var(--bg-2);
}
.hero .wrap { width: 100%; max-width: 820px; }
.hero .lead {
  font-size: clamp(17px, 1.5vw, 20px);
  max-width: 38em;
}
.hero h1 {
  margin-bottom: 34px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-brand img { height: 26px; width: auto; }

/* ---------- Header fijo ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 21, 38, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: 1400px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark { height: 34px; width: auto; }

.site-nav { display: flex; gap: 42px; }
.site-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }

.header-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0a1526;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.header-cta:hover { transform: translateY(-1px); opacity: 0.92; }

@media (max-width: 880px) {
  .site-nav { display: none; }
}
@media (max-width: 600px) {
  .header-inner { padding: 12px 20px; }
  .brand-link { font-size: 17px; }
  .brand-mark { height: 26px; }
  .header-cta { font-size: 14px; padding: 11px 20px; }
}

/* ---------- Logo grande del cierre ---------- */
.closing .brand {
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Bloques de contenido (fondo blanco) ---------- */
/* Cada bloque ocupa una pantalla completa, igual que el hero. */
.block {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding: 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
}
.block h2 { color: var(--ink); }
.block.wide .wrap { max-width: 1060px; }

.section-intro {
  max-width: 40em;
  margin: 14px auto 0;
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--ink-soft);
}

/* En las secciones claras el acento tiene que contrastar sobre blanco */
.block .accent { color: var(--accent); }

/* Títulos de Problema y Proceso: todo en azul marino, sin resalte claro */
#problema h2 .accent,
#proceso h2 .accent { color: var(--ink); }

/* separación amplia entre título y contenido */
.problem-grid,
.steps { margin-top: 60px; }
.block .cta { margin-top: 56px; }

/* ---------- PROBLEMA: tarjetas con mini-móviles ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  text-align: left;
}
.problem-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.problem-card .phone { margin: 0 0 26px; }
.pc-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e6eefb;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.problem-card h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 8px;
}
.problem-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Mini-móvil */
.phone {
  position: relative;
  width: 100%;
  max-width: 184px;
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  background: #101f38;
  border-radius: 22px;
  padding: 26px 14px 16px;
  box-shadow: 0 22px 44px rgba(15, 30, 60, 0.20);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}

/* 1 · mensajes repetidos cada día */
.ph-day {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2px 0 1px;
}
.ph-msg {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ph-av {
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, #3d537a, #24344d);
  flex-shrink: 0;
}
.ph-msg p {
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #dbe6f5;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 9px;
  border-bottom-left-radius: 3px;
}

/* 2 · visitas vs clientes */
.ph-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  padding: 11px 0;
}
.ph-stat + .ph-stat { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ph-stat-ico { font-size: 14px; }
.ph-stat-num { color: #eaf1fb; font-size: 22px; font-weight: 800; line-height: 1; }
.ph-stat-num.is-zero { color: #ff7a7a; }
.ph-stat-lbl { flex-basis: 100%; color: rgba(255, 255, 255, 0.5); font-size: 8.5px; }

/* 3 · sin seguimiento */
.ph-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.ph-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.ph-dot.ok { background: #35d07f; }
.ph-lead p { margin: 0; color: #cdd8ea; font-size: 9px; line-height: 1.2; }
.ph-lead.lost { opacity: 0.4; }
.ph-note {
  margin-top: 6px;
  align-self: flex-start;
  color: #ff9a9a;
  font-size: 8.5px;
  font-weight: 700;
}

/* ---------- PROCESO: 4 tarjetas ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: left;
}
.step {
  background: #f3f6fb;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}
.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e6eefb;
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
  transition: background 0.18s ease, color 0.18s ease;
}
.step h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Se enfoca la tarjeta que toca el ratón */
.step:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(20, 34, 58, 0.14);
}
.step:hover .n {
  background: var(--accent);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .step { transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
  .step:hover { transform: none; }
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: 52px; max-width: 320px; margin-left: auto; margin-right: auto; }
  .problem-card { align-items: center; text-align: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* ---------- Testimonio: vídeo a la izquierda, texto a la derecha ---------- */
.testi-row {
  display: grid;
  grid-template-columns: minmax(0, 232px) 1fr;
  grid-template-areas:
    "video arrow"
    "video text";
  column-gap: 30px;
  align-items: center;
  margin: 52px auto 8px;
  max-width: 620px;
}
.video-frame {
  grid-area: video;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}
.video-arrow {
  grid-area: arrow;
  align-self: end;
  justify-self: start;
  width: 96px;
  height: auto;
  margin-bottom: 10px;
  color: var(--accent);
}
.stat {
  grid-area: text;
  margin: 0;
  text-align: left;
  font-size: 17px;
  color: var(--ink-soft);
}
.stat-client {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.stat strong {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .testi-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .stat { order: 1; text-align: center; max-width: 24em; }
  .video-arrow {
    order: 2;
    align-self: center;
    transform: rotate(90deg);
    width: 58px;
    margin: 8px 0 12px;
  }
  .video-frame { order: 3; max-width: 240px; }
}

/* ---------- Casos: frase → flecha → captura, alternando lados ---------- */
#testimonios { justify-content: flex-start; }

.cases {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin: 72px 0 0;
}
.case {
  display: grid;
  grid-template-columns: 1fr auto 268px;
  grid-template-areas: "def arrow shot";
  align-items: center;
  column-gap: 26px;
}
.case:nth-child(even) {
  grid-template-columns: 268px auto 1fr;
  grid-template-areas: "shot arrow def";
}

.case-def {
  grid-area: def;
  margin: 0;
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
  text-wrap: balance;
  text-align: right;
}
.case:nth-child(even) .case-def { text-align: left; }

.case-arrow {
  grid-area: arrow;
  width: 96px;
  height: auto;
  color: var(--accent);
}
.case:nth-child(even) .case-arrow { transform: scaleX(-1); }

.case-shot {
  grid-area: shot;
  align-self: center;
  width: 268px;
  max-width: 100%;
  margin: 0;
}
/* La captura de Marta es un pantallazo completo (vertical): más estrecho */
.case:first-child { align-items: start; }
.case:first-child .case-def { align-self: start; padding-top: 8px; }
.case:first-child .case-arrow { align-self: start; margin-top: 14px; }
.case:first-child .case-shot { width: 186px; }
.phone-shot {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 34, 58, 0.08);
  box-shadow: 0 24px 52px rgba(20, 34, 58, 0.18);
  transform: rotate(-2deg);
}
.case:nth-child(even) .phone-shot { transform: rotate(2deg); }
.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-ph {
  aspect-ratio: 5 / 4;
  background: #eef2f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 18px;
}
.shot-ph span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.shot-ph small { font-size: 10px; color: var(--ink-soft); opacity: 0.6; }

@media (max-width: 720px) {
  .cases { gap: 52px; }
  .case,
  .case:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "def"
      "arrow"
      "shot";
    justify-items: center;
    row-gap: 12px;
  }
  .case-def,
  .case:nth-child(even) .case-def { text-align: center; }
  .case-arrow,
  .case:nth-child(even) .case-arrow {
    transform: rotate(56deg);
    width: 64px;
    margin: 4px 0;
  }
  .case-shot { width: 100%; max-width: 300px; }
}


/* ---------- Cierre (también a pantalla completa) ---------- */
.closing {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding: 84px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 21, 38, 0.82), rgba(10, 21, 38, 0.92)),
    url('../assets/images/closing-bg.jpg') center 40% / cover no-repeat,
    var(--bg);
}
.closing h2 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.08;
  margin-bottom: 0;
}
.closing-sub {
  margin: 40px 0 52px;
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.72);
}
.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.cta-group .cta {
  margin: 0;
  width: auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.cta-wa {
  background: #25d366;
  color: #06210f;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.3);
}
.cta-wa:hover { box-shadow: 0 16px 34px rgba(37, 211, 102, 0.42); }
.cta-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}
.cta-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

@media (max-width: 520px) {
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .cta { justify-content: center; }
}

