/* =====================================================================
   HORUS SCALE · ESTILOS DEL FUNNEL
   ---------------------------------------------------------------------
   Variables de marca al inicio — cambia aquí y se propaga a toda la web.
   Paleta sacada del logo:
     #0D1B3E navy oscuro · #1A3166 navy medio · #2B5CE6 azul Horus
   ===================================================================== */

:root {
  /* Paleta */
  --navy-900: #0D1B3E;
  --navy-700: #1A3166;
  --navy-500: #243C7A;
  --accent:   #2B5CE6;
  --accent-d: #1E47BD;
  --accent-l: #6F9BFF;

  --bg:        #F7F8FB;
  --bg-alt:    #EEF1F8;
  --surface:   #FFFFFF;
  --line:      #E4E7EE;

  --text:        #0D1B3E;
  --text-mut:    #4A5677;
  --text-soft:   #7782A0;
  --text-inv:    #FFFFFF;
  --text-inv-m:  #B8C2DE;

  --ok:   #1FAE6A;
  --err:  #D7263D;
  --star: #F6B73C;

  /* Tipografía */
  --font: "Red Hat Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Sombras */
  --shadow-sm: 0 1px 2px  rgba(13,27,62,.06);
  --shadow-md: 0 6px 24px rgba(13,27,62,.10);
  --shadow-lg: 0 20px 60px rgba(13,27,62,.18);

  /* Layout */
  --max:        1180px;
  --max-narrow: 760px;
}

/* =====================================================================
   RESET SUAVE + BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(13,27,62,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,27,62,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
button {
  font: inherit; cursor: pointer; background: none;
  border: 0; padding: 0; color: inherit;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.3px; line-height: 1.15; }

:focus-visible {
  outline: 3px solid rgba(43,92,230,.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =====================================================================
   CONTAINERS
   ===================================================================== */
.wrap,
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: var(--max-narrow); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--text-inv);
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(13,27,62,.18);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.site-header__logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.site-header__brand {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  margin-right: auto;
}
.site-header__brand small {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-inv-m);
  letter-spacing: .4px;
  margin-top: 2px;
}
.header-cta { white-space: nowrap; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero-section {
  background: transparent;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 800;
  margin: 14px 0 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(180deg, transparent 64%, rgba(43,92,230,.18) 64%);
  padding: 0 .15em;
  border-radius: 4px;
}
.hero p {
  color: var(--text-mut);
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(15px, 1.8vw, 18px);
}

.eyebrow {
  display: inline-block;
  background: rgba(43,92,230,.10);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

/* Video (Panda) */
.video-card {
  background: #000;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 28px auto 26px;
  max-width: 920px;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.hero-cta    { margin: 18px auto 0; text-align: center; }
.cta-note    { color: var(--text-soft); font-size: 13px; margin: 10px 0 0; }

/* Trust bar */
.trust {
  margin: 30px auto 0;
  max-width: 920px;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--text-mut);
}
.trust__divider      { width: 1px; height: 16px; background: var(--line); }
.trust__item         { white-space: nowrap; }

/* =====================================================================
   SECCIONES GENÉRICAS
   ===================================================================== */
.section { padding: 72px 0; }
.section--alt  { background: var(--surface); }
.section--navy {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--text-inv);
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section__title {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
}
.section__sub {
  margin: 0;
  color: var(--text-mut);
  font-size: clamp(15px, 1.8vw, 17px);
}
.section--navy .section__sub { color: var(--text-inv-m); }

/* =====================================================================
   CASOS REALES (foto + resultado, sin reseñas)
   ===================================================================== */
.cases { display: flex; flex-direction: column; gap: 18px; max-width: 1000px; margin: 0 auto; }
.case {
  display: flex; align-items: center; gap: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case__photo {
  flex: 0 0 auto;
  width: 150px; height: 150px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.case__body { flex: 1; min-width: 0; }
.case__result {
  display: inline-block;
  background: rgba(43, 92, 230, .10);
  color: var(--accent);
  font-weight: 700; font-size: 15px; letter-spacing: -.1px;
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 12px;
}
.case__text { margin: 0 0 14px; color: var(--text); font-size: 16px; line-height: 1.55; }
.case__person strong { display: block; font-size: 15px; }
.case__person span   { color: var(--text-soft); font-size: 13px; }

/* =====================================================================
   FORMULARIO QUICKLIST (multipaso, dinámico)
   ===================================================================== */
.ql__progress {
  height: 6px; background: var(--line); border-radius: 999px; overflow: hidden;
  margin-bottom: 10px;
}
.ql__progress span {
  display: block; height: 100%; width: 25%;
  background: var(--accent); border-radius: 999px;
  transition: width .35s ease;
}
.ql__count { font-size: 13px; color: var(--text-soft); margin: 0 0 22px; font-weight: 600; }
.ql__count b { color: var(--accent); }

.qstep { display: none; }
.qstep.is-active { display: block; animation: qlIn .35s ease both; }
@keyframes qlIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ql-back {
  background: none; border: 0; color: var(--text-soft);
  font-size: 14px; padding: 0; margin-bottom: 14px; cursor: pointer;
}
.ql-back:hover { color: var(--accent); }
.ql__q {
  display: block;
  font-size: clamp(19px, 2.4vw, 25px); font-weight: 700;
  letter-spacing: -.3px; line-height: 1.25; margin-bottom: 18px; color: var(--text);
}
.ql input {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 17px; font-family: inherit; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.ql input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43,92,230,.15); }
.ql .hint { font-size: 13px; color: var(--text-soft); margin: 8px 0 0; }
.ql__nav { margin-top: 20px; }
.ql-next { width: 100%; }

.ql-options { display: flex; flex-direction: column; gap: 12px; }
.ql-option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-size: 16px; font-weight: 600; color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.ql-option:hover  { border-color: var(--accent); background: rgba(43,92,230,.04); }
.ql-option:active { transform: scale(.99); }
.ql-option.is-selected { border-color: var(--accent); background: rgba(43,92,230,.08); }
.ql-option__check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background .15s, border-color .15s;
}
.ql-option:hover .ql-option__check,
.ql-option.is-selected .ql-option__check { background: var(--accent); border-color: var(--accent); }

/* Paso de datos: nombre + WhatsApp + email en una sola pantalla */
.ql-fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 6px; }
.ql-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ql-field label { font-size: 14px; font-weight: 600; color: var(--navy-700); }
.qstep .btn--block { margin-top: 20px; }

/* =====================================================================
   MÉTRICAS (banda navy)
   ===================================================================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.metric__num {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px; line-height: 1;
  color: #fff;
}
.metric__lbl {
  display: block; margin-top: 8px;
  color: var(--text-inv-m); font-size: 14px;
}

/* =====================================================================
   CARD + FORMULARIO + PANTALLAS
   ===================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
@media (min-width: 720px) { .card { padding: 40px; } }
.card h2  { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.card .sub { color: var(--text-mut); margin: 0 0 22px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.field input,
.field select {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43,92,230,.15);
}
.field input::placeholder { color: var(--text-soft); }
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-mut) 50%),
    linear-gradient(135deg, var(--text-mut) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.error {
  color: var(--err);
  font-size: 13px;
  margin: 4px 0 0;
  min-height: 1em;
}
.consent {
  font-size: 12px;
  color: var(--text-soft);
  margin: 16px 0 0;
  text-align: center;
}

.screen { display: none; }
.screen.is-active { display: block; }

.disqualified { text-align: center; padding: 14px 6px; }
.disqualified .icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  background: rgba(43,92,230,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 26px; font-weight: 700;
}

.calwrap { min-height: 640px; margin-top: 8px; }
.calwrap > div { height: 100%; }

/* =====================================================================
   BOTONES
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: 0;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 15px;
  letter-spacing: .2px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(43,92,230,.28);
}
.btn:hover  { background: var(--accent-d); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }

.btn--sm    { padding: 9px 14px;  font-size: 13.5px; box-shadow: 0 4px 12px rgba(43,92,230,.22); }
.btn--lg    { padding: 16px 28px; font-size: 16px;   box-shadow: 0 10px 28px rgba(43,92,230,.32); }
.btn--block { width: 100%; margin-top: 20px; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] {
  border-color: var(--accent-l);
  box-shadow: 0 0 0 4px rgba(43,92,230,.08), var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px; font-weight: 400; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; color: var(--text-mut); line-height: 1.55; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--navy-900);
  color: var(--text-inv-m);
  text-align: center;
  padding: 36px 16px;
  font-size: 13.5px;
}
.site-footer p { margin: 4px 0; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--text-inv-m); }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* =====================================================================
   UTILIDADES
   ===================================================================== */
.hidden { display: none !important; }
.center { text-align: center; }
.mt-0   { margin-top: 0; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 820px) {
  .metrics { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .case          { flex-direction: column; align-items: flex-start; }
  .case__photo   { width: 100%; height: 200px; }
  .trust         { border-radius: 18px; flex-direction: column; gap: 8px; }
  .trust__divider{ display: none; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero-section { padding: 40px 0 48px; }
  .site-header__brand small { display: none; }
  .header-cta { display: none; }
}

/* =====================================================================
   CONVERSIÓN + DISEÑO (branding Horus) — overrides al final
   ===================================================================== */

/* Logo real (isotipo) sobre badge blanco para que resalte en la cabecera navy */
.site-header__logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

/* CTAs con degradado de marca y glow (más profundidad) */
.btn {
  background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-d) 100%);
  box-shadow: 0 10px 26px rgba(43,92,230,.34), 0 2px 6px rgba(13,27,62,.12);
}
.btn:hover {
  background-image: linear-gradient(135deg, #3768F0 0%, var(--accent) 100%);
  box-shadow: 0 16px 38px rgba(43,92,230,.46), 0 2px 6px rgba(13,27,62,.12);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn--lg { box-shadow: 0 18px 44px rgba(43,92,230,.42), 0 3px 8px rgba(13,27,62,.16); }

/* Botones destacados en color Oro (en todos los temas) */
.btn {
  background-image: linear-gradient(135deg, #E0A93B 0%, #B5811E 100%);
  color: #0A1531;
  box-shadow: 0 10px 26px rgba(224,169,59,.36), 0 2px 6px rgba(13,27,62,.12);
}
.btn:hover {
  background-image: linear-gradient(135deg, #F6C766 0%, #E0A93B 100%);
  color: #0A1531;
  box-shadow: 0 16px 38px rgba(224,169,59,.50), 0 2px 6px rgba(13,27,62,.12);
}
.btn--lg  { box-shadow: 0 18px 44px rgba(224,169,59,.46), 0 3px 8px rgba(13,27,62,.16); }
.btn--sm  { box-shadow: 0 4px 12px rgba(224,169,59,.30); }

/* Más profundidad en bloques clave */
.video-card { box-shadow: 0 32px 80px rgba(13,27,62,.32), 0 8px 22px rgba(13,27,62,.18); }
.card       { box-shadow: 0 26px 70px rgba(13,27,62,.16), 0 4px 14px rgba(13,27,62,.08); }
.case       { box-shadow: 0 8px 26px rgba(13,27,62,.08); }
.case:hover { box-shadow: 0 18px 48px rgba(13,27,62,.16); }
.ql-option:hover { box-shadow: 0 8px 20px rgba(43,92,230,.14); }

/* Microcopy de urgencia / prueba social */
.urgency {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 14px; padding: 8px 16px;
  background: rgba(43,92,230,.08); color: var(--accent-d);
  border: 1px solid rgba(43,92,230,.22); border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
}
.urgency::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 4px rgba(31,174,106,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* Banda de cierre (CTA final) */
.cta-band {
  background-image: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.6vw, 36px); margin: 0 0 12px; letter-spacing: -.6px; }
.cta-band p  { color: var(--text-inv-m); margin: 0 auto 26px; font-size: 17px; max-width: 620px; }
.cta-band .urgency { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.20); }
.cta-band__mark {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 360px; height: auto; opacity: .06; pointer-events: none; z-index: 0;
}
@media (max-width: 560px) { .cta-band__mark { display: none; } }

/* =====================================================================
   TEMAS DE COLOR (preview) — se elige con el switcher; data-theme en <html>
   ===================================================================== */

/* Tema 2 · Horus Dark (navy + degradados, estilo horusscale.com) */
html[data-theme="dark"] {
  --bg: #0A1531; --bg-alt: #0E1D40; --surface: #122348; --line: #26396A;
  --text: #EAF0FF; --text-mut: #AEBBDA; --text-soft: #8A98BC;
}
html[data-theme="dark"] body { background: var(--bg); }

/* Tema 3 · Oro (navy + acento dorado) */
html[data-theme="gold"] {
  --bg: #0A1531; --bg-alt: #0E1D40; --surface: #122348; --line: #2C3C66;
  --text: #F6F1E7; --text-mut: #CBBE9E; --text-soft: #9C8F73;
  --accent: #E0A93B; --accent-d: #B5811E; --accent-l: #F6C766;
}
html[data-theme="gold"] body { background: var(--bg); }
html[data-theme="gold"] .btn { color: #0A1531; }

/* Ajustes comunes a los temas oscuros */
html[data-theme="dark"] .section--alt,
html[data-theme="gold"] .section--alt { background: var(--bg-alt); }
html[data-theme="dark"] .hero h1 em { color: var(--accent-l); }
html[data-theme="dark"] .ql input,
html[data-theme="gold"] .ql input {
  background: rgba(255,255,255,.05); color: var(--text);
}
html[data-theme="dark"] .ql input::placeholder,
html[data-theme="gold"] .ql input::placeholder { color: var(--text-soft); }
html[data-theme="dark"] .ql-option,
html[data-theme="gold"] .ql-option { background: rgba(255,255,255,.04); }
html[data-theme="dark"] .case__result,
html[data-theme="gold"] .case__result { background: rgba(255,255,255,.07); color: var(--accent-l); }

/* Switcher de preview (se quita al elegir el tema definitivo) */
#theme-switch {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 999; display: flex; align-items: center; gap: 6px;
  background: rgba(13,27,62,.92); color: #fff; backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: 7px 10px; box-shadow: 0 12px 30px rgba(0,0,0,.28);
  font-size: 13px;
}
#theme-switch span { color: #B8C2DE; padding: 0 6px; font-weight: 600; }
#theme-switch button {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.10); box-shadow: none; transition: background .15s;
}
#theme-switch button:hover { background: rgba(255,255,255,.20); }
#theme-switch button.is-on { background: var(--accent); color: #fff; }
@media (max-width: 560px) { #theme-switch { font-size: 12px; padding: 6px 8px; } #theme-switch span { display: none; } }

/* =====================================================================
   PROFUNDIDAD EXTRA en bloques grandes (más profesional)
   ===================================================================== */
.video-card { box-shadow: 0 40px 90px rgba(13,27,62,.34), 0 12px 28px rgba(13,27,62,.18); }
.card       { box-shadow: 0 30px 80px rgba(13,27,62,.18), 0 6px 18px rgba(13,27,62,.10); }
.case       { box-shadow: 0 12px 32px rgba(13,27,62,.10); }
.case:hover { box-shadow: 0 22px 54px rgba(13,27,62,.18); }
.trust      { box-shadow: 0 12px 32px rgba(13,27,62,.12); }
.faq-item   { box-shadow: 0 6px 18px rgba(13,27,62,.07); }

/* Sombras visibles sobre fondos oscuros (temas Horus y Oro) */
html[data-theme="dark"] .video-card,
html[data-theme="gold"] .video-card { box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 12px 28px rgba(0,0,0,.40); }
html[data-theme="dark"] .card,
html[data-theme="gold"] .card { box-shadow: 0 30px 80px rgba(0,0,0,.50), 0 6px 18px rgba(0,0,0,.35); }
html[data-theme="dark"] .case,
html[data-theme="gold"] .case { box-shadow: 0 14px 36px rgba(0,0,0,.42); }
html[data-theme="dark"] .case:hover,
html[data-theme="gold"] .case:hover { box-shadow: 0 24px 56px rgba(0,0,0,.52); }
html[data-theme="dark"] .trust,
html[data-theme="gold"] .trust { box-shadow: 0 14px 36px rgba(0,0,0,.42); }

/* Disclaimer legal del footer (cumplimiento Meta Ads) */
.footer-disclaimer {
  max-width: 680px; margin: 16px auto 0;
  font-size: 11.5px; line-height: 1.5;
  color: var(--text-soft);
  opacity: .85;
}

/* Cuadrícula clara para el fondo de los temas oscuros (toda la página) */
html[data-theme="dark"] body,
html[data-theme="gold"] body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Prueba social: avatares + cifra (debajo del CTA) */
.proof { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.proof__avatars { display: flex; }
.proof__av {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 12px;
  border: 2px solid var(--bg); margin-left: -10px;
  box-shadow: 0 2px 6px rgba(13,27,62,.20);
  object-fit: cover; background: var(--surface);
}
.proof__av:first-child { margin-left: 0; }
.proof__text { font-size: 15px; color: var(--text-mut); }
.proof__text strong { color: var(--text); font-weight: 800; }

/* Logos en imagen dentro de la banda marquee */
.logos__row img { height: 52px; width: auto; display: block; opacity: .95; flex-shrink: 0; }
.logos__row { gap: 72px; }

/* Muro en 2 filas (segunda en sentido contrario) */
.wall__track + .wall__track { margin-top: 20px; }
.wall__row--rev { animation-direction: reverse; }

/* Muro de testimonios en movimiento */
.wall { overflow: hidden; }
.wall__track {
  display: flex; overflow: hidden; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wall__row {
  display: flex; flex-shrink: 0; gap: 20px; padding-right: 20px;
  animation: marquee 48s linear infinite;
}
.wall:hover .wall__row { animation-play-state: paused; }
.wall__card {
  width: 330px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-sm); white-space: normal;
}
.wall__stars { color: var(--star); letter-spacing: 2px; font-size: 14px; }
.wall__card blockquote { margin: 12px 0 16px; font-size: 15px; line-height: 1.55; color: var(--text); }
.wall__card figcaption { display: flex; align-items: center; gap: 12px; }
.wall__avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid var(--line); background: var(--bg-alt);
}
.wall__id strong { display: block; font-size: 14px; }
.wall__id span { color: var(--text-soft); font-size: 12.5px; }

/* =====================================================================
   VARIANTE VSL (estilo affluent): barra de escasez, rating, pasos
   ===================================================================== */
.topbar {
  text-align: center; font-size: 13px; color: var(--text-mut);
  padding: 9px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line);
}
.topbar b { color: var(--text); }
.topbar .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(31,174,106,.18);
}
.vsl-hero { text-align: center; padding: 34px 0 10px; }
.vsl-hero .brand-word { font-weight: 800; font-size: 22px; letter-spacing: .3px; margin-bottom: 14px; }
.rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; color: var(--text-mut); font-weight: 600; }
.rating .stars { color: var(--star); letter-spacing: 2px; font-size: 16px; }
.vsl-hero h1 { font-size: clamp(28px, 4.8vw, 50px); font-weight: 800; max-width: 940px; margin: 0 auto 14px; line-height: 1.1; letter-spacing: -.5px; }
.vsl-hero h1 em { font-style: normal; color: var(--accent-l); }
.vsl-hero .sub { color: var(--text-mut); max-width: 720px; margin: 0 auto; font-size: clamp(15px, 1.9vw, 18px); }
.vsl-hero .sub b { color: var(--text); }
.steppill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 15px; color: var(--text);
}
.steppill i {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-style: normal; font-weight: 800;
}
.step-gap { margin-top: 22px; }
.wall__cta { text-align: center; margin-top: 28px; }

/* Banda de logos / clientes (marquee — "los logos pasando") */
.logos { padding: 28px 0; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.logos__label {
  text-align: center; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--text-soft); font-weight: 700; margin: 0 0 18px;
}
.logos__track {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos__row {
  display: flex; flex-shrink: 0; align-items: center; gap: 56px; white-space: nowrap;
  padding-right: 56px; animation: marquee 30s linear infinite;
}
.logos__row span { font-weight: 800; font-size: 19px; letter-spacing: -.3px; color: var(--text-mut); opacity: .7; }
.logos:hover .logos__row { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos__row { animation: none; } }

/* =====================================================================
   REDISEÑO V2 — landing más limpia
   ===================================================================== */

/* --- Logos del marquee más grandes --- */
.logos__row img { height: 64px !important; width: auto; opacity: .85; }
.logos__row { gap: 56px; padding: 6px 0; }
@media (max-width: 720px) { .logos__row img { height: 48px !important; } }

/* --- Tarjetas de casos (estilo Dentology, verde) --- */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(13,27,62,.10);
  transition: transform .15s, box-shadow .15s;
}
.case:hover { transform: translateY(-2px); box-shadow: 0 22px 54px rgba(13,27,62,.18); }
.case__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
}
.case__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case__tag {
  display: inline-block;
  color: #4ADE80;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.case__metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.case__metric-num {
  color: #4ADE80;
  font-size: clamp(34px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1;
}
.case__metric-lbl {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
}
.case__metric-lbl small { font-size: 12.5px; opacity: .85; }
.case__head {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}
.case__quote {
  border-left: 3px solid #4ADE80;
  padding-left: 14px;
  color: var(--text-mut);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.case__by {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.case__by-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line);
  background: var(--bg-alt);
}
.case__by-text { display: flex; flex-direction: column; line-height: 1.3; }
.case__by-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.case__by-name a { color: inherit; text-decoration: none; }
.case__by-name a:hover { color: var(--accent); }
.case__by-name .verified { width: 16px; height: 16px; flex-shrink: 0; }
.case__by-role { color: var(--text-soft); font-size: 13px; }

/* Oculta el viejo estilo .case__result si quedara */
.case__result, .case__text, .case__person { display: none; }

/* --- Modal de agendar --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow-y: auto;
}
.modal.is-open { display: block; }
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,27,62,.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  max-width: 720px;
  margin: 6vh auto 6vh;
  background: var(--surface);
  border-radius: 22px;
  padding: 40px 32px 32px;
  box-shadow: 0 40px 100px rgba(13,27,62,.45);
  z-index: 1;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-mut);
  padding: 8px 12px;
  border-radius: 8px;
}
.modal__close:hover { background: var(--bg-alt); color: var(--text); }
.modal__title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 22px;
  color: var(--text);
  padding: 0 28px;
}
@media (max-width: 760px) {
  .modal__dialog { margin: 0; min-height: 100vh; border-radius: 0; padding: 56px 18px 24px; max-width: none; }
}

/* --- Mejor contraste de azules en temas oscuros --- */
html[data-theme="dark"] .eyebrow,
html[data-theme="gold"] .eyebrow {
  color: var(--accent-l);
}
html[data-theme="dark"] .hero h1 em,
html[data-theme="gold"] .hero h1 em {
  color: var(--accent-l);
}
html[data-theme="dark"] .site-header__brand small,
html[data-theme="gold"] .site-header__brand small {
  color: var(--text-mut);
}
html[data-theme="dark"] .modal__dialog,
html[data-theme="gold"] .modal__dialog {
  background: var(--surface);
  border: 1px solid var(--line);
}

/* --- Bloque "Plazas limitadas" en blanco, siempre legible --- */
.urgency {
  background: rgba(255,255,255,.08) !important;
  color: #FFFFFF !important;
  border-color: rgba(255,255,255,.22) !important;
}

/* --- Logos del marquee aún más grandes --- */
.logos__row img { height: 88px !important; }
.logos__row { gap: 64px !important; padding: 8px 0; }
@media (max-width: 720px) { .logos__row img { height: 56px !important; } }

/* --- Modal backdrop más translúcido: que se vea la landing detrás --- */
.modal__backdrop {
  background: rgba(13,27,62,.32) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  backdrop-filter: blur(2px) !important;
}
