/* ==========================================================================
   Master Leads — landing
   Paleta azul marino de marca + gradientes vivos.
   ========================================================================== */

:root {
  /* Marca — paleta de la referencia */
  --navy-950: #0a0a0c;          /* negro de bloques oscuros y botones */
  --navy-900: #131317;
  --navy-800: #1d1d22;
  --accent: #00d47e;            /* verde de acento: fondos y gráficos */
  --accent-ink: #00895a;        /* el mismo verde, legible como texto */
  --accent-soft: #19e08a;
  --accent-lime: #c6f24e;
  --accent-sky: #22d3ee;
  --accent-mag: #f472b6;
  --accent-dim: rgba(0, 212, 126, .11);

  /* Neutros */
  --ink: #0b0b0f;
  --ink-soft: #6b7280;
  --ink-faint: #9aa0ac;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --border: #e8e9ec;
  --border-strong: #d8dade;

  /* Sobre oscuro */
  --on-dark: #f4f4f6;
  --on-dark-soft: rgba(244, 244, 246, .64);
  --border-dark: rgba(255, 255, 255, .13);

  /* Semántica */
  --ok: #00a86b;
  --ok-bg: #d6f7e8;

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow-card: 0 1px 2px rgba(11, 11, 15, .04);
  --shadow-float: 0 24px 48px -24px rgba(11, 11, 15, .16);
  --shadow-deep: 0 40px 80px -32px rgba(11, 11, 15, .22);
}

*, *::before, *::after { box-sizing: border-box; }

/* El atributo hidden pierde contra cualquier clase que declare display.
   Ya mordió dos veces en este proyecto (la capa del resplandor y el botón
   del formulario), así que aquí queda zanjado de una vez. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.16;
  text-wrap: balance;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 108px 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.head { max-width: 620px; margin: 0 auto 60px; text-align: center; }
.head h2 { font-size: clamp(1.72rem, 3.1vw, 2.45rem); margin-top: 16px; }
.head p { color: var(--ink-soft); font-size: 16.5px; margin: 14px 0 0; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-dark { background: var(--navy-950); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(11, 11, 15, .5); }
.btn-accent { background: var(--accent); color: #05271a; box-shadow: 0 12px 26px -12px rgba(0, 212, 126, .55); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(0, 212, 126, .7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--navy-950); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy-950); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .35); }
/* WhatsApp: verde oficial de la marca (#25d366) */
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1eb85a; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(37, 211, 102, .75); }
.btn-wa svg { width: 16px; height: 16px; }

.btn-outline-light { background: transparent; color: #fff; border-color: var(--border-dark); }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ------------------------------------------------------------------- auras */
.aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aura i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(78px);
}

/* ================================================================== NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.brand svg { width: 28px; height: 28px; }
.brand span b { font-weight: 800; }
.brand span i { font-style: normal; font-weight: 300; }
.brand-img { height: 30px; width: auto; }
.footer .brand-img { height: 28px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.nav-links a {
  position: relative; padding: 9px 14px; border-radius: 10px; letter-spacing: -.01em;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-links a:active { background: var(--border); }

.nav-side { display: flex; align-items: center; gap: 14px; }
.nav-cta-mobile { display: none; }
/* Selector de idioma flotante, abajo a la izquierda.
   Las banderas son SVG (includes/flags.php): los emoji de bandera no se
   dibujan en Windows y se verían como las letras "MX" / "US". */
.lang-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 55;
  display: flex; gap: 3px; padding: 5px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 12px 32px -12px rgba(11, 11, 15, .32);
}
.lang-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px 8px 10px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-soft);
  transition: background .18s ease, color .18s ease;
}
.lang-opt:hover { background: var(--bg-alt); color: var(--ink); }
.lang-opt.is-active { background: var(--navy-950); color: #fff; }
.lang-opt .flag {
  width: 21px; height: 15px; flex: none; display: block;
  border-radius: 2.6px;
}
@media (max-width: 760px) {
  .lang-float { left: 14px; bottom: 14px; padding: 4px; }
  .lang-opt { padding: 7px 12px 7px 8px; font-size: 12.5px; gap: 6px; }
  .lang-opt .flag { width: 19px; height: 14px; }
}

.burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--border);
  background: #fff; border-radius: 11px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger i { display: block; width: 16px; height: 1.6px; background: var(--ink); position: relative; transition: .2s; }
.burger i::before, .burger i::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: var(--ink); transition: .2s;
}
.burger i::before { top: -5px; }
.burger i::after { top: 5px; }
.nav.open .burger i { background: transparent; }
.nav.open .burger i::before { top: 0; transform: rotate(45deg); }
.nav.open .burger i::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 28px 20px;
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta-mobile {
    display: inline-flex; justify-content: center; margin-top: 16px;
    border-bottom: none !important; padding: 15px 26px !important;
  }
  .nav-cta-mobile::after { display: none; }
  .nav-side { margin-left: auto; }
  .burger { display: inline-flex; }
  .nav-side .btn { display: none; }
}

/* ================================================================= HERO === */
.hero { padding: 78px 0 0; text-align: center; overflow: hidden; }
.hero .aura i:nth-child(1) { width: 560px; height: 540px; background: var(--accent-lime); opacity: .55; top: -150px; left: 50%; margin-left: -480px; }
.hero .aura i:nth-child(2) { width: 500px; height: 500px; background: var(--accent-sky); opacity: .44; top: -130px; left: 50%; margin-left: 30px; }
.hero .aura i:nth-child(3) { width: 430px; height: 430px; background: var(--accent-mag); opacity: .32; top: 30px; left: 50%; margin-left: 140px; }
.hero .aura i:nth-child(4) { width: 780px; height: 400px; background: var(--accent); opacity: .36; top: 250px; left: 50%; margin-left: -400px; }

/* Más ancho que antes: en caja alta el titular necesita sitio para no
   romperse en tres líneas. El párrafo conserva su propio ancho corto. */
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); margin: 22px 0 0; }
.hero h1 em {
  font-style: normal;
  color: var(--accent-ink);
  font-weight: 800;
  text-transform: uppercase;
  /* En caja alta el interletrado cerrado del titular aprieta demasiado. */
  letter-spacing: -.005em;
}
.hero .lead { font-size: 17.5px; color: var(--ink-soft); max-width: 560px; margin: 22px auto 0; }
.hero-ctas { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-faint); }

.hero-visual { position: relative; z-index: 2; max-width: 1000px; margin: 68px auto 0; padding: 0 28px; }

/* marco de navegador para las capturas */
.frame {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #fbfbfd;
  border-bottom: 1px solid var(--border);
}
.frame-bar u { width: 9px; height: 9px; border-radius: 50%; background: #e2e4ee; display: block; }
.frame-bar p {
  margin: 0 0 0 10px; font-size: 11.5px; color: var(--ink-faint);
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 12px; letter-spacing: .01em;
}
.frame img, .frame picture { width: 100%; display: block; }

.stat-chip {
  position: absolute; z-index: 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 13px 18px;
  box-shadow: var(--shadow-float);
  text-align: left;
}
.stat-chip b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-chip span { font-size: 12.5px; color: var(--ink-soft); }
.stat-chip.one { left: -6px; top: 96px; }
.stat-chip.two { right: -6px; top: 210px; }
.stat-chip.two b { color: var(--accent-ink); }
@media (max-width: 980px) { .stat-chip { display: none; } }

/* ========================================================== CHIP STRIP === */
.strip { padding: 56px 0 96px; text-align: center; }
/* Un poco más ancho que el resto: así las cinco pastillas caben en una fila. */
.strip .wrap { max-width: 1240px; }
.strip p {
  margin: 0 0 26px;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint);
}
.strip ul { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }
.strip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 9px 20px 9px 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 3px 10px -6px rgba(11, 11, 15, .18);
  transition: transform .22s cubic-bezier(.22,.61,.36,1),
              border-color .22s ease, box-shadow .22s ease;
}
/* El icono va en un disco verde: es lo que da el golpe de color en la fila. */
.strip li i {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-ink);
}
.strip li i svg { width: 16px; height: 16px; }
.strip li:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 26px -14px rgba(0, 212, 126, .75);
}
.strip li:hover i { background: var(--accent); color: #05271a; }

/* Entrada escalonada: las pastillas van apareciendo de izquierda a derecha. */
.strip li.reveal { opacity: 0; transform: translateY(14px) scale(.96); }
.strip li.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.22,.61,.36,1),
              transform .5s cubic-bezier(.22,.61,.36,1);
}
.strip li:nth-child(2).in { transition-delay: .07s; }
.strip li:nth-child(3).in { transition-delay: .14s; }
.strip li:nth-child(4).in { transition-delay: .21s; }
.strip li:nth-child(5).in { transition-delay: .28s; }

@media (max-width: 760px) {
  /* Apiladas en vertical el hueco de abajo sobraba. */
  .strip { padding: 44px 0 58px; }
}
@media (max-width: 560px) {
  .strip li { font-size: 13.2px; padding: 8px 18px 8px 8px; gap: 8px; }
  .strip li i { width: 27px; height: 27px; }
}

/* ============================================================= COMPARE === */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--surface);
}
.compare-col.after {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-lime)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 20px 44px -28px rgba(0, 212, 126, .5);
}
.compare-col h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.compare-col h3 svg { width: 20px; height: 20px; flex: none; }
.compare-col.before h3 { color: var(--ink-soft); }
.compare-col li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; font-size: 14.8px;
  border-top: 1px solid var(--border);
}
.compare-col li:first-child { border-top: none; }
.compare-col.before li { color: var(--ink-soft); }
.compare-col li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; }

/* ============================================================ FEATURES === */
.features { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bento { display: grid; gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-dim);
  padding: 5px 11px; border-radius: 6px;
}

.card-main { display: grid; grid-template-columns: 400px 1fr; align-items: center; gap: 8px; }
.card-main .body { padding: 42px 40px; }
.card-main h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 16px 0 0; }
.card-main p { color: var(--ink-soft); font-size: 15.2px; margin: 14px 0 0; }
.card-main .bullets { margin-top: 24px; display: grid; gap: 10px; }
.card-main .bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.2px; font-weight: 500; }
.card-main .bullets svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent-ink); }
.card-main .shot { padding: 34px 0 34px 6px; overflow: hidden; }
.card-main .shot .frame { border-radius: 12px 0 0 12px; border-right: none; box-shadow: var(--shadow-float); }
.card-main .shot img { width: 100%; }
@media (max-width: 940px) {
  .card-main { grid-template-columns: 1fr; }
  .card-main .body { padding: 32px 26px 4px; }
  .card-main .shot { padding: 28px 0 0 26px; }
  .card-main .shot .frame { border-radius: 12px 0 0 0; }
  .card-main .shot img { width: 100%; }
}

.bento-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .bento-3 { grid-template-columns: 1fr; } }
.card-sm { display: flex; flex-direction: column; }
.card-sm .body { padding: 28px 26px 4px; flex: 1; }
.card-sm h3 { font-size: 17.5px; margin: 14px 0 0; }
.card-sm p { color: var(--ink-soft); font-size: 14.2px; margin: 10px 0 0; }
.card-sm .shot { padding: 24px 0 0 26px; overflow: hidden; }
.card-sm .shot .frame { border-radius: 10px 0 0 0; border-right: none; border-bottom: none; box-shadow: none; }
.card-sm .shot img { width: 100%; }

/* =============================================================== STEPS === */
/* Línea de tiempo central: la línea baja recta por el medio y los pasos se
   alternan a los lados. La línea se colorea conforme baja el scroll. */
.flow { position: relative; max-width: 1000px; margin: 0 auto; }
.flow-line {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.flow-track { stroke: var(--border); stroke-width: 3; stroke-linecap: round; }
.flow-progress {
  stroke: url(#flowGrad);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset .18s linear;
}

/* Tres columnas: contenido, canal de la línea, contenido. */
.flow-items {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 112px 1fr;
  row-gap: 64px;
}
.flow-step { position: relative; }
.flow-step:nth-child(1) { grid-column: 1; grid-row: 1; }
.flow-step:nth-child(2) { grid-column: 3; grid-row: 2; }
.flow-step:nth-child(3) { grid-column: 1; grid-row: 3; }
.flow-step:nth-child(4) { grid-column: 3; grid-row: 4; }
.flow-step:nth-child(5) { grid-column: 1; grid-row: 5; }

/* Los de la izquierda se alinean hacia la línea; los de la derecha, al revés. */
.flow-step:nth-child(odd) { text-align: right; padding-right: 14px; }
.flow-step:nth-child(even) { text-align: left; padding-left: 14px; }

/* El punto vive en el canal central. 112/2 + 34 = 90 */
.flow-step .dot {
  position: absolute;
  top: 2px;
  display: grid; place-items: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--ink-faint);
  font-size: 15px; font-weight: 800; letter-spacing: .03em;
  transition: background .3s ease, border-color .3s ease, color .3s ease,
              box-shadow .3s ease, transform .3s ease;
}
.flow-step:nth-child(odd) .dot { right: -90px; }
.flow-step:nth-child(even) .dot { left: -90px; }

.flow-step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
}
/* row-reverse invierte el eje: aquí flex-start es el lado derecho. */
.flow-step:nth-child(odd) h3 { justify-content: flex-start; flex-direction: row-reverse; }
.flow-step p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 400px;
}
.flow-step:nth-child(odd) p { margin-left: auto; }

/* Los iconos traen sus propios colores, así que el contenedor va neutro. */
.step-ico {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  flex: none;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px -6px rgba(11, 11, 15, .22);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.step-ico svg { width: 28px; height: 28px; }

/* Estado alcanzado por el scroll. */
.flow-step.on .dot {
  background: linear-gradient(148deg, #33333d 0%, #14141a 45%, #0a0a0c 100%);
  border-color: #0a0a0c;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 14px 28px -12px rgba(11, 11, 15, .65);
}
.flow-step.on .step-ico {
  border-color: var(--border-strong);
  box-shadow: 0 8px 18px -8px rgba(11, 11, 15, .3);
}

/* En vertical la línea se va a la izquierda y todo se apila. */
@media (max-width: 900px) {
  .flow-items { grid-template-columns: 1fr; row-gap: 40px; }
  /* Con :nth-child para igualar la especificidad de las reglas de escritorio. */
  .flow-step:nth-child(1) { grid-column: 1; grid-row: 1; }
  .flow-step:nth-child(2) { grid-column: 1; grid-row: 2; }
  .flow-step:nth-child(3) { grid-column: 1; grid-row: 3; }
  .flow-step:nth-child(4) { grid-column: 1; grid-row: 4; }
  .flow-step:nth-child(5) { grid-column: 1; grid-row: 5; }
  .flow-step:nth-child(odd),
  .flow-step:nth-child(even) { text-align: left; padding: 2px 0 0 82px; }
  .flow-step:nth-child(odd) h3 { justify-content: flex-start; flex-direction: row; }
  .flow-step:nth-child(odd) p { margin-left: 0; }
  .flow-step p { max-width: none; font-size: 15.2px; }
  .flow-step .dot,
  .flow-step:nth-child(odd) .dot,
  .flow-step:nth-child(even) .dot {
    left: 0; right: auto; top: 0;
    width: 58px; height: 58px;
    font-size: 13.5px;
  }
  .step-ico { width: 42px; height: 42px; border-radius: 13px; }
  .step-ico svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-progress { transition: none; }
  .flow-step .dot, .step-ico { transition: none; }
}

/* ============================================================= DARK CTA === */
.darkcta { padding: 0 0 108px; }
.darkcta-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--navy-950);
  color: var(--on-dark);
  padding: 82px 40px;
  text-align: center;
}
.darkcta-box .aura i:nth-child(1) { width: 560px; height: 360px; background: var(--accent); opacity: .5; bottom: -160px; left: 50%; margin-left: -420px; }
.darkcta-box .aura i:nth-child(2) { width: 480px; height: 340px; background: var(--accent-sky); opacity: .35; bottom: -150px; left: 50%; margin-left: 20px; }
.darkcta-box .aura i:nth-child(3) { width: 420px; height: 280px; background: var(--accent-mag); opacity: .28; bottom: -140px; left: 50%; margin-left: -210px; }
.darkcta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.darkcta blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.32;
  text-wrap: balance;
}
.darkcta cite { display: block; margin-top: 20px; font-style: normal; font-size: 13.5px; color: var(--on-dark-soft); }
.darkcta .btn { margin-top: 34px; }

/* ============================================================= PRICING === */
.price-heads {
  display: grid; grid-template-columns: 46% 27% 27%;
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
  overflow: hidden;
}
.price-heads > div { padding: 30px 26px; border-left: 1px solid var(--border); }
.price-heads > div:first-child { border-left: none; display: flex; align-items: flex-end; }
.price-heads .lbl { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); }
/* Mismo tratamiento que .compare-col.after y .darkcta-box: negro con el
   resplandor saliendo por abajo, para que la columna destaque de golpe. */
.plan.best {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--on-dark);
  border-left-color: var(--navy-950);
}
/* El resplandor va arriba, no abajo: la columna sigue hacia la tabla y un
   degradado cortado en el borde inferior dejaba una costura visible. */
.plan.best .aura i:nth-child(1) {
  width: 300px; height: 210px; background: var(--accent);
  opacity: .62; top: -95px; left: 50%; margin-left: -200px;
}
.plan.best .aura i:nth-child(2) {
  width: 260px; height: 190px; background: var(--accent-sky);
  opacity: .44; top: -90px; left: 50%; margin-left: 30px;
}
.plan.best .aura i:nth-child(3) {
  width: 230px; height: 170px; background: var(--accent-mag);
  opacity: .34; top: -45px; left: 50%; margin-left: -95px;
}
/* Ojo: no incluir .aura aquí. Con `> *` se le imponía position:relative,
   la capa colapsaba a altura 0 y el resplandor desaparecía. */
.plan.best > *:not(.aura) { position: relative; z-index: 1; }
.plan.best h3 { color: #fff; }
.plan.best .amount { color: #fff; }
.plan.best .unit { color: var(--on-dark-soft); }
.plan.best .note { color: rgba(244, 244, 246, .55); }
.plan.best .badge { background: #fff; color: #05271a; }

/* La columna sigue en negro por la tabla; el mismo fondo evita la costura. */
.price-table td.best {
  background: var(--navy-950);
  color: var(--on-dark);
  border-left-color: rgba(255, 255, 255, .12);
}
.price-table tr:first-child td.best { border-top-color: rgba(255, 255, 255, .12); }
.price-table td.best { border-top-color: rgba(255, 255, 255, .12); }
.price-table td.best .tick { background: rgba(0, 212, 126, .22); color: var(--accent-soft); }
.price-table td.best .dash { color: rgba(255, 255, 255, .35); }
.plan h3 { font-size: 16.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan .badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #05271a; background: var(--accent); padding: 4px 9px; border-radius: 100px;
}
.plan .amount { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; margin: 14px 0 0; line-height: 1; }
.plan .unit { font-size: 13.5px; color: var(--ink-soft); margin: 7px 0 0; }
.plan .note { font-size: 13px; color: var(--ink-faint); margin: 12px 0 0; min-height: 38px; }
.plan .btn { width: 100%; justify-content: center; margin-top: 16px; }

.price-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-top: none; background: var(--surface); }
.price-table th, .price-table td { padding: 15px 26px; text-align: left; font-size: 14.6px; border-top: 1px solid var(--border); }
.price-table th { font-weight: 500; color: var(--ink); width: 46%; }
.price-table td { width: 27%; text-align: center; border-left: 1px solid var(--border); color: var(--ink-soft); font-weight: 600; }

.price-table tr:last-child th { border-radius: 0 0 0 var(--radius); }
.price-table tr:last-child td:last-child { border-radius: 0 0 var(--radius) 0; }
.tick { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.tick svg { width: 12px; height: 12px; }
.dash { color: var(--border-strong); font-weight: 400; }
.price-foot { margin: 20px auto 0; max-width: 680px; text-align: center; font-size: 13px; color: var(--ink-faint); }

@media (max-width: 780px) {
  .price-heads { grid-template-columns: 1fr 1fr; }
  /* Sin la columna de características, encabezado y tabla dejan de cuadrar:
     la celda oscura de la tabla se saldría de eje, así que se queda clara. */
  .price-table td.best {
    background: rgba(0, 212, 126, .05);
    color: var(--ink-soft);
    border-left-color: var(--border);
    border-top-color: var(--border);
  }
  .price-table td.best .tick { background: var(--ok-bg); color: var(--ok); }
  .price-table td.best .dash { color: var(--border-strong); }
  .price-heads > div:first-child { display: none; }
  .price-table th, .price-table td { padding: 13px 14px; font-size: 13.4px; }
  .price-table th { width: 44%; }
}

/* ================================================================= FAQ === */
.faq-list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink);
  text-align: left; padding: 24px 46px 24px 0; position: relative;
}
.faq-q::after, .faq-q::before {
  content: ""; position: absolute; right: 6px; top: 50%; background: var(--ink-soft);
  transition: transform .22s ease, background .22s ease;
}
.faq-q::before { width: 14px; height: 1.8px; margin-top: -.9px; }
.faq-q::after { width: 1.8px; height: 14px; margin-top: -7px; right: 12.1px; }
.faq-item.open .faq-q::after { transform: rotate(90deg); }
.faq-item.open .faq-q { color: var(--accent-ink); }
.faq-item.open .faq-q::before, .faq-item.open .faq-q::after { background: var(--accent-ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 60px 26px 0; color: var(--ink-soft); font-size: 15.2px; }

/* ======================================================== INTEGRATIONS === */
/* Fuera del contenedor estándar: ocupa casi todo el ancho de la pantalla. */
.orbit-wrap { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.orbit { width: 100%; height: auto; overflow: visible; }
.orbit .ring { fill: none; stroke: var(--border); stroke-width: 1; }
.orbit .link { fill: none; stroke: var(--border-strong); stroke-width: 1.3; }
.orbit .spark { fill: var(--accent); }
@media (prefers-reduced-motion: reduce) { .orbit .spark { display: none; } }
/* Disco blanco: el isotipo de la marca es azul marino y sobre negro se
   perdería. El halo verde es lo que lo mantiene como centro del diagrama. */
.orbit .glow { fill: var(--accent); opacity: .16; }
.orbit .hub {
  fill: #fff;
  stroke: var(--border);
  stroke-width: 1.5;
  filter: drop-shadow(0 8px 20px rgba(11, 11, 15, .16));
}
.orbit .node {
  fill: #fff; stroke: var(--border); stroke-width: 1.2;
  filter: drop-shadow(0 6px 14px rgba(11, 11, 15, .08));
}
.orbit .label { font-size: 15px; font-weight: 600; fill: var(--ink); letter-spacing: -.015em; }
.orbit .link { stroke-width: 1.5; }

/* Dos versiones del mismo diagrama: la ancha para escritorio y la vertical
   para móvil. Se alterna con media queries; sólo una está en pantalla. */
.orbit-tall { display: none; }
.orbit-tall .orbit .label { font-size: 12.5px; }
.orbit-tall .orbit .link { stroke-width: 1.2; }

@media (max-width: 900px) {
  .orbit-wide { display: none; }
  .orbit-tall { display: block; max-width: 380px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .orbit .pulse { animation: none; } }

/* =========================================================== FINAL CTA === */
.final { text-align: center; overflow: hidden; padding: 118px 0 128px; }
.final .aura i:nth-child(1) { width: 660px; height: 440px; background: var(--accent-lime); opacity: .5; top: 0; left: 50%; margin-left: -490px; }
.final .aura i:nth-child(2) { width: 580px; height: 430px; background: var(--accent-sky); opacity: .4; top: -40px; left: 50%; margin-left: 20px; }
.final .aura i:nth-child(3) { width: 500px; height: 370px; background: var(--accent-mag); opacity: .32; top: 110px; left: 50%; margin-left: 130px; }
.final-inner { position: relative; z-index: 2; }
.final h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.final p { color: var(--ink-soft); font-size: 17px; max-width: 520px; margin: 18px auto 0; }
.final .btns { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ============================================================== FOOTER === */
.footer { background: var(--navy-950); color: var(--on-dark); padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; }
.footer .tagline { color: var(--on-dark-soft); font-size: 14px; margin: 18px 0 0; max-width: 300px; }
.footer h4 { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 700; }
.footer ul { margin-top: 16px; display: grid; gap: 11px; }
.footer li a, .footer li button {
  color: var(--on-dark); font: inherit; font-size: 14.2px; background: none; border: none;
  padding: 0; cursor: pointer; text-align: left; opacity: .82; transition: opacity .18s;
}
.footer li a:hover, .footer li button:hover { opacity: 1; }
.footer-bot {
  margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--on-dark-soft);
}

/* ============================================================== MODAL === */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(11, 11, 15, .62);
  backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 22px;
  width: min(720px, 100%);
  max-height: min(84vh, 780px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 30px 18px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 20px; }
.modal-head span { display: block; font-size: 12.5px; color: var(--ink-faint); font-weight: 400; letter-spacing: 0; margin-top: 5px; }
.modal-close {
  width: 36px; height: 36px; flex: none; border: 1px solid var(--border); background: #fff;
  border-radius: 50%; cursor: pointer; color: var(--ink-soft); font-size: 18px; line-height: 1;
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-body { padding: 8px 30px 30px; overflow-y: auto; }
.modal-body h4 { font-size: 15px; margin: 26px 0 0; }
.modal-body p { color: var(--ink-soft); font-size: 14.6px; margin: 9px 0 0; }

@media (max-width: 760px) {
  section { padding: 76px 0; }
  .wrap { padding: 0 20px; }
  .hero { padding: 54px 0 0; }
  .hero-visual { margin-top: 48px; padding: 0 20px; }
  .darkcta { padding-bottom: 76px; }
  .darkcta-box { padding: 58px 24px; border-radius: 20px; }
  .final { padding: 88px 0 96px; }
}

/* ============================================================ EXTRAS === */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* iconos de la comparativa */
.compare-col.before h3 svg { color: var(--ink-faint); }
.compare-col.before li svg { color: var(--border-strong); }
.compare-col.after h3 svg  { color: var(--accent-ink); }
.compare-col.after li svg  { color: var(--ok); }

/* el modal oculto no debe pintarse aunque tenga la clase */
.modal[hidden] { display: none; }

/* aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
.bento-3 .card:nth-child(2).in { transition-delay: .08s; }
.bento-3 .card:nth-child(3).in { transition-delay: .16s; }
.steps-grid .step:nth-child(2).in { transition-delay: .06s; }
.steps-grid .step:nth-child(3).in { transition-delay: .12s; }
.steps-grid .step:nth-child(4).in { transition-delay: .18s; }
.steps-grid .step:nth-child(5).in { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* en móvil las capturas usan recortes propios y no deben desbordarse */
@media (max-width: 700px) {
  .card-main .shot { padding: 26px 0 0 20px; }
  .card-main .shot img { width: 100%; }
  .card-sm .shot { padding: 22px 0 0 20px; }
}

/* la comparativa de precios en pantallas angostas */
@media (max-width: 560px) {
  .price-heads > div { padding: 20px 13px; }
  .plan h3 { font-size: 14.5px; gap: 7px; }
  .plan .badge { font-size: 9.5px; padding: 3px 7px; }
  .plan .amount { font-size: 1.65rem; margin-top: 10px; }
  .plan .unit { font-size: 12px; }
  .plan .note { font-size: 12px; min-height: 56px; }
  .plan .btn { font-size: 13px; padding: 12px 10px; border-radius: 13px; line-height: 1.25; }
  .price-table th, .price-table td { padding: 12px 11px; font-size: 12.8px; }
}

/* ====================================================== ORBES DEL HÉROE === */
/* Iconos flotantes alrededor de la captura. Decorativos: se ocultan cuando no
   hay espacio para que no invadan el contenido. */
.hero .wrap { position: relative; }
.orbs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.orb {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 14px 30px -12px rgba(11, 11, 15, .28);
  animation: orbFloat 7s ease-in-out infinite;
}
.orb svg { width: 27px; height: 27px; }
.orb-wa svg { color: #25d366; width: 26px; height: 26px; }

/* Repartidos en los márgenes laterales del titular. */
.orb-maps  { left: 1%;   top: 26px;  animation-delay: 0s; }
.orb-gmail { right: 2%;  top: 6px;   animation-delay: -1.4s; }
.orb-crm   { left: 5%;   top: 196px; animation-delay: -2.8s; }
.orb-wa    { right: 4%;  top: 172px; animation-delay: -4.2s; }
.orb-mkt   { left: 12%;  top: 336px; animation-delay: -5.6s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

/* Tablet: el titular se ensancha, así que los orbes se pegan a los bordes. */
@media (max-width: 1080px) {
  .orb { width: 50px; height: 50px; }
  .orb svg { width: 23px; height: 23px; }
  .orb-maps  { left: 2px;  top: 18px; }
  .orb-gmail { right: 2px; top: 2px; }
  .orb-crm   { left: 0;    top: 210px; }
  .orb-wa    { right: 0;   top: 186px; }
  .orb-mkt   { left: 5%;   top: 352px; }
}

/* Móvil: más chicos y colocados en las franjas libres — junto al distintivo
   de arriba y a la altura de los botones, donde el texto no llega. */
@media (max-width: 760px) {
  .orb {
    width: 42px; height: 42px;
    box-shadow: 0 8px 18px -8px rgba(11, 11, 15, .3);
  }
  .orb svg { width: 20px; height: 20px; }
  .orb-wa svg { width: 19px; height: 19px; }
  /* Anclados arriba al distintivo y abajo a los botones. Los de abajo usan
     bottom en vez de top para que sigan cuadrando cuando el titular crece,
     por ejemplo en la versión en inglés. */
  .orb-maps  { left: 2px;   top: -4px; }
  .orb-gmail { right: 2px;  top: -4px; }
  .orb-crm   { left: 2px;   top: auto; bottom: 62px; }
  .orb-wa    { right: 2px;  top: auto; bottom: 62px; }
  .orb-mkt   { left: 2px;   top: auto; bottom: 4px; }
}

/* ============================================ ONDA DEL ENCABEZADO === */
/* Malla de partículas en azul marino detrás del título del contraste.
   En pantallas angostas se recorta por el centro en vez de achicarse a un
   hilo, por eso el min-width con overflow oculto en la sección. */
.compare { position: relative; overflow: hidden; }
.compare .wrap { position: relative; z-index: 1; }

.head-wave {
  position: absolute;
  top: 46px;
  left: 50%;
  width: 100%;
  min-width: 800px;
  max-width: 1460px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: .42;
}
.head-wave img {
  width: 100%;
  animation: waveFloat 12s ease-in-out infinite;
}
@keyframes waveFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .head-wave img { animation: none; }
}

/* Un velo blanco muy tenue, solo lo justo para que el texto no compita con
   los puntos. Sin bordes duros: el halo cerrado partía la onda en dos. */
.compare .head { position: relative; }
.compare .head::before {
  content: "";
  position: absolute;
  inset: -60px -120px;
  z-index: -1;
  background: radial-gradient(ellipse at center,
              rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .55) 45%,
              rgba(255, 255, 255, 0) 78%);
}

@media (max-width: 760px) {
  .head-wave { top: 26px; min-width: 640px; opacity: .34; }
  .compare .head::before { inset: -40px -40px; }
}

/* ======================================= COLUMNA "CON MASTER LEADS" === */
/* Mismo tratamiento que el bloque oscuro de la cita: fondo negro con el
   resplandor verde-cian-magenta saliendo por abajo. Contrasta de frente con
   la columna clara de al lado. */
.compare-col.after {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--navy-950);
  color: var(--on-dark);
  box-shadow: 0 28px 56px -30px rgba(11, 11, 15, .6);
}
.compare-col.after .aura i:nth-child(1) {
  width: 400px; height: 270px; background: var(--accent);
  opacity: .52; bottom: -140px; left: 50%; margin-left: -300px;
}
.compare-col.after .aura i:nth-child(2) {
  width: 340px; height: 250px; background: var(--accent-sky);
  opacity: .36; bottom: -130px; left: 50%; margin-left: 20px;
}
.compare-col.after .aura i:nth-child(3) {
  width: 300px; height: 210px; background: var(--accent-mag);
  opacity: .28; bottom: -120px; left: 50%; margin-left: -150px;
}
.compare-col.after > h3,
.compare-col.after > ul { position: relative; z-index: 1; }
.compare-col.after h3 { color: #fff; }
.compare-col.after h3 svg { color: var(--accent-soft); }
.compare-col.after li { color: var(--on-dark); border-top-color: rgba(255, 255, 255, .1); }
.compare-col.after li svg { color: var(--accent-soft); }


/* ================================= ICONOS DE LAS TARJETAS CHICAS === */
.card-icons { display: flex; gap: 8px; margin-top: 18px; }
.card-icons span {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 3px 9px -5px rgba(11, 11, 15, .25);
}
.card-icons svg { width: 19px; height: 19px; }
.card-icons .ico-wa { color: #25d366; }


/* ===================================== FORMULARIO DEL BROCHURE === */
.modal-form .modal-body { padding-top: 22px; }
.modal-form .field { margin-bottom: 16px; }
.modal-form label {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  margin-bottom: 7px;
}
.modal-form input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.modal-form input::placeholder { color: var(--ink-faint); }
.modal-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 126, .18);
}
.modal-form input.bad { border-color: #e5484d; }
.modal-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* La trampa para robots no se muestra ni se lee en voz alta. */
.modal-form .hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-consent {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
}
.form-consent button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-ink);
  text-decoration: underline;
  cursor: pointer;
}
.form-msg {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { color: var(--accent-ink); font-weight: 600; }
.form-msg.bad { color: #c62a2f; }
.form-dl { margin-top: 14px; }
.form-dl[hidden] { display: none; }

/* El botón del bloque oscuro abre la ventana, ya no lleva a WhatsApp. */
.darkcta .btn svg { width: 16px; height: 16px; }


/* =============================== SELECTOR DE LADA DEL WHATSAPP === */
/* Las banderas son SVG dibujadas en includes/flags.php: los emoji de
   bandera no existen en Windows y se verían como las letras del país. */
.phone-row { display: flex; gap: 10px; }
.phone-row input[type=tel] { flex: 1; min-width: 0; }

.dial { position: relative; flex: none; }
.dial-btn {
  display: flex; align-items: center; gap: 8px;
  height: 100%;
  padding: 0 12px;
  font: inherit;
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.dial-btn:hover { border-color: var(--border-strong); }
.dial.open .dial-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 126, .18);
}
.dial-btn .flag { width: 24px; height: 17px; flex: none; display: block; }
.dial-arrow { width: 15px; height: 15px; color: var(--ink-faint); transition: transform .2s ease; }
.dial.open .dial-arrow { transform: rotate(180deg); }

.dial-list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  max-height: 264px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 44px -18px rgba(11, 11, 15, .3);
}
.dial-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 14.5px;
  cursor: pointer;
}
.dial-list li:hover,
.dial-list li.active { background: var(--bg-alt); }
.dial-list li[aria-selected=true] { background: var(--accent-dim); font-weight: 600; }
.dial-list .flag { width: 24px; height: 17px; flex: none; display: block; }
.dial-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dial-num { color: var(--ink-faint); font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
  .dial-list { width: min(290px, calc(100vw - 96px)); }
  .dial-btn { padding: 0 9px; gap: 6px; font-size: 14px; }
}

/* La lista de países quedaba recortada por el scroll del cuerpo del modal.
   En el formulario el cuerpo no recorta y, si no cabe, desplaza la ventana
   completa — que es lo único que funciona en pantallas bajas. */
#modal-brochure { overflow-y: auto; }
#modal-brochure .modal-box { max-height: none; margin: auto 0; }
#modal-brochure .modal-body { overflow: visible; }
