/* ==========================================================================
   Abogado de Seguros — Juan Joel Zapata M.
   Hoja de estilos única y compartida por todas las páginas.
   Sin frameworks, sin build step, sin dependencias.
   --------------------------------------------------------------------------
   Índice
   1.  Fuentes autoalojadas
   2.  Design tokens
   3.  Reset y base
   4.  Utilidades y layout
   5.  Botones
   6.  Navbar
   7.  Hero
   8.  Barra de confianza
   9.  Tarjetas (casos, beneficios, dolor)
   10. Línea de tiempo del proceso
   11. Tabla comparativa
   12. Bloque de autoridad
   13. Reseñas
   14. Acordeón FAQ
   15. Formulario
   16. Banda CTA
   17. Footer
   18. CTA fijo en móvil
   19. Accesibilidad y motion
   ========================================================================== */

/* ==========================================================================
   1. Fuentes autoalojadas — sin llamadas a Google Fonts
   ========================================================================== */

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
  /* --- Marca: verde bosque profundo (tema del sitio en producción) --- */
  --brand-950: #10201c;
  --brand-900: #1b332d;
  --brand-800: #223d36;
  --brand-700: #2b4c44;
  --brand-600: #356057;
  --brand-500: #3e6f63;
  --brand-100: #cde0da;
  --brand-50:  #e7efec;

  /* --- Acento cálido: reservado a la acción --- */
  --accent-700: #96650a;
  --accent-600: #b87d0c;
  --accent-500: #d99a12;
  --accent-400: #e8b33d;
  --accent-100: #fbeecd;
  --accent-50:  #fdf7e9;

  /* --- WhatsApp: solo en la barra fija y el botón flotante --- */
  --wa-500: #25d366;
  --wa-600: #1da851;
  --wa-ink: #06240f;

  /* --- Tinta: neutros cálidos --- */
  --ink-900: #2c2c2c;
  --ink-800: #3a3833;
  --ink-700: #4a4640;
  --ink-600: #605847;
  --ink-500: #7a7264;
  --ink-400: #9a9284;

  /* --- Tinta sobre fondo oscuro --- */
  --on-dark:        #f1efe9;
  --on-dark-muted:  #bfcfc9;
  --on-dark-faint:  #8fa79f;

  /* --- Superficies y líneas: crema y beige-taupe --- */
  --surface:      #eeece8;
  --surface-alt:  #e4e1d8;
  --surface-tint: #dbd6c9;
  --line:         #d6d0c2;
  --line-strong:  #c2baa6;

  /* --- Semánticos: bloque de dolor / tabla comparativa --- */
  --warn-50:  #fdf3f2;
  --warn-200: #f6d4d0;
  --warn-600: #b3372c;
  --good-50:  #eef8f2;
  --good-200: #c6e6d3;
  --good-600: #1d7a49;

  /* --- Tipografía --- */
  --font-head: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;   /* opción B elegida por él */
  --font-body: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;

  --fs-xs:   0.8125rem;  /* 13px — solo etiquetas y notas al pie */
  --fs-sm:   1rem;       /* 16px — párrafo en tarjetas, pasos, reseñas (antes 15px) */
  --fs-base: 1rem;       /* 16px — mínimo en móvil */
  --fs-md:   1.0625rem;  /* 17px — cuerpo en desktop */
  --fs-lg:   1.1875rem;  /* 19px */
  --fs-xl:   clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
  --fs-2xl:  clamp(1.55rem, 1.25rem + 1.4vw, 2.1rem);
  --fs-3xl:  clamp(1.9rem, 1.45rem + 2.1vw, 2.85rem);
  --fs-4xl:  clamp(2.15rem, 1.6rem + 2.8vw, 3.4rem);

  --lh-tight: 1.15;
  --lh-head:  1.25;
  --lh-snug:  1.4;
  --lh-body:  1.65;

  /* --- Espaciado (base 4px) --- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  --section-y: clamp(3rem, 2rem + 5vw, 5.5rem);

  /* --- Radios --- */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-pill: 999px;

  /* --- Sombras --- */
  --sh-1: 0 1px 2px rgba(20, 34, 30, 0.06), 0 1px 3px rgba(20, 34, 30, 0.08);
  --sh-2: 0 2px 4px rgba(20, 34, 30, 0.05), 0 6px 16px rgba(20, 34, 30, 0.09);
  --sh-3: 0 8px 24px rgba(20, 34, 30, 0.12), 0 2px 6px rgba(20, 34, 30, 0.07);
  --sh-up: 0 -2px 12px rgba(20, 34, 30, 0.16);

  /* --- Layout --- */
  --wrap:        1140px;
  --wrap-narrow: 760px;
  --gutter:      clamp(1rem, 0.6rem + 2vw, 2rem);

  --nav-h: 62px;
  --sticky-h: 68px;
}

/* ==========================================================================
   3. Reset y base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Deja aire bajo el contenido para la barra fija de WhatsApp en móvil */
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-head);
  color: var(--brand-900);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: 0; }
h2 { font-size: var(--fs-3xl); letter-spacing: 0; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }

img, picture, svg { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: var(--brand-900); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-8) 0; }

table { border-collapse: collapse; width: 100%; }

:target { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ==========================================================================
   4. Utilidades y layout
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.section--alt { background: var(--surface-alt); }
.section--tint { background: var(--surface-tint); }

.section--dark {
  background: var(--brand-900);
  color: var(--on-dark);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark p { color: var(--on-dark-muted); }
.section--dark a:not(.btn) { color: var(--accent-400); }

.section__head {
  max-width: 62ch;
  margin-bottom: var(--sp-10);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: var(--accent-400); }

.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-700);
}
.section--dark .lede { color: var(--on-dark-muted); }

.muted { color: var(--ink-500); }

.note {
  font-size: var(--fs-sm);
  color: var(--ink-500);
  line-height: 1.5;
}
.section--dark .note { color: var(--on-dark-faint); }

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-900);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.center { text-align: center; }
.stack > * + * { margin-top: var(--sp-4); }

/* ==========================================================================
   5. Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;              /* tap target cómodo */
  padding: var(--sp-3) var(--sp-6);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

/* CTA primario — todos abren WhatsApp, así que van en verde WhatsApp */
.btn--primary {
  background: var(--wa-500);
  border-color: var(--wa-500);
  color: #fff;
}
.btn--primary:hover {
  background: var(--wa-600);
  border-color: var(--wa-600);
  color: #fff;
}

/* CTA secundario sobre fondo claro */
.btn--outline {
  background: transparent;
  border-color: var(--brand-600);
  color: var(--brand-700);
}
.btn--outline:hover {
  background: var(--brand-50);
  color: var(--brand-800);
}

/* CTA secundario sobre fondo oscuro */
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--lg {
  min-height: 54px;
  font-size: var(--fs-md);
  padding: var(--sp-4) var(--sp-8);
}

.btn--block { display: flex; width: 100%; }

.btn__icon { flex: none; width: 20px; height: 20px; fill: currentColor; }

/* Grupo de botones */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* Microcopy bajo el CTA — sostiene la promesa y la acota */
.cta-micro {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-500);
}
.section--dark .cta-micro,
.hero .cta-micro { color: var(--on-dark-muted); }
.cta-micro b { color: inherit; font-weight: 600; }

/* Negritas sobre fondo oscuro: heredan el color claro del contenedor,
   si no, quedan en --brand-900 e invisibles (p. ej. el hero de gracias.html). */
.hero b, .hero strong,
.section--dark b, .section--dark strong { color: inherit; }

/* ==========================================================================
   6. Navbar
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--nav-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.1;
  color: var(--brand-900);
  text-decoration: none;
  margin-right: auto;
}
.nav__brand:hover { color: var(--brand-800); }

.nav__mark {
  flex: none;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--brand-900);
  color: var(--accent-400);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav__brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 2px;
}

.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--sp-5);
}
.nav__links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  padding: var(--sp-2) 0;
}
.nav__links a:hover { color: var(--brand-700); text-decoration: underline; }

.nav__tel {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-800);
  text-decoration: none;
  white-space: nowrap;
}
.nav__tel:hover { color: var(--brand-600); }

.nav__cta { display: none; }

/* Botón hamburguesa */
.nav__toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--brand-900);
}
.nav__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* Panel móvil */
.nav__panel {
  display: none;
  padding-block: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--line);
}
.nav__panel[data-open="true"] { display: block; }
.nav__panel ul {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
}
.nav__panel li { margin: 0; border-bottom: 1px solid var(--line); }
.nav__panel a {
  display: block;
  padding: var(--sp-4) 0;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink-800);
  text-decoration: none;
}
.nav__panel a:hover { color: var(--brand-700); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__tel   { display: inline-flex; }
  .nav__cta   { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__panel { display: none !important; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
  position: relative;
  background:
    radial-gradient(90rem 40rem at 15% -10%, var(--brand-800) 0%, transparent 60%),
    var(--brand-900);
  color: var(--on-dark);
  padding-block: clamp(2.5rem, 1.8rem + 4vw, 4.5rem) clamp(3rem, 2rem + 5vw, 5rem);
  overflow: hidden;
}

/* Filo de acento en el borde superior */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-600) 55%, transparent);
}

.hero__grid { display: grid; gap: var(--sp-10); }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-400);
  margin-bottom: var(--sp-4);
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--sp-5);
  max-width: 18ch;
}

.hero__sub {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 54ch;
  margin-bottom: var(--sp-8);
}

.hero__points {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-8);
  display: grid;
  gap: var(--sp-3);
}
.hero__points li {
  position: relative;
  padding-left: 1.9rem;
  font-size: var(--fs-md);
  color: var(--on-dark);
  margin: 0;
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.44em;
  width: 1.1rem; height: 0.55rem;
  border-left: 2.5px solid var(--accent-400);
  border-bottom: 2.5px solid var(--accent-400);
  transform: rotate(-45deg);
}

/* Tarjeta de formulario en el hero */
.hero__form {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-3);
  color: var(--ink-900);
}
.hero__form h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}
.hero__form > p { font-size: var(--fs-sm); color: var(--ink-500); }

@media (min-width: 940px) {
  .hero__grid--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: start;
    gap: var(--sp-12);
  }
}

/* ==========================================================================
   8. Barra de confianza
   ========================================================================== */

.trust {
  background: var(--brand-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--sp-6);
}

.trust__grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

.trust__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.trust__item svg {
  flex: none;
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--accent-400);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}
.trust__item b { display: block; color: #fff; font-weight: 600; }
.trust__item span { color: var(--on-dark-muted); }

@media (min-width: 620px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .trust__grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }

/* ==========================================================================
   9. Tarjetas
   ========================================================================== */

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-1);
}
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card p { font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.6; }

/* Tarjeta enlazada — "¿Cuál es tu caso?" */
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh-1);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.case-card:hover {
  border-color: var(--brand-500);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  color: inherit;
}
.case-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--brand-50);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
}
.case-card__icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--brand-600);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.case-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.case-card p {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}
.case-card__more {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-600);
}
.case-card:hover .case-card__more { text-decoration: underline; }

/* Lista de ramos adicionales */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.chips li {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
}

/* Bloque de dolor — "¿Te pasó esto?" */
.pain-card {
  background: var(--warn-50);
  border: 1px solid var(--warn-200);
  border-left: 4px solid var(--warn-600);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
}
.pain-card h3 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--brand-900);
  margin-bottom: var(--sp-2);
}
.pain-card p {
  font-size: var(--fs-sm);
  color: var(--ink-700);
  line-height: 1.6;
}

/* Bloque educativo — "Por qué rechazan" */
.reason {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
}
.reason h3 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.reason p { font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.6; }

/* ==========================================================================
   10. Línea de tiempo del proceso
   ========================================================================== */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-6);
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0;
  padding-left: 3.75rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-900);
  color: var(--accent-400);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
/* Línea vertical de conexión */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2.9rem;
  bottom: calc(var(--sp-6) * -1 + 0.4rem);
  width: 2px;
  background: var(--line-strong);
}
.steps h3 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.steps p { font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.6; }
.steps .step-when {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-700);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--r-pill);
  padding: 2px var(--sp-3);
}

.section--dark .steps li::before { background: var(--accent-500); color: var(--brand-950); }
.section--dark .steps li:not(:last-child)::after { background: rgba(255,255,255,0.2); }
.section--dark .steps h3 { color: #fff; }
.section--dark .steps p { color: var(--on-dark-muted); }
.section--dark .steps .step-when {
  color: var(--accent-400);
  background: rgba(217, 154, 18, 0.12);
  border-color: rgba(217, 154, 18, 0.3);
}

@media (min-width: 860px) {
  .steps--row { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
  .steps--row li { padding-left: 0; padding-top: 3.5rem; }
  .steps--row li::before { top: 0; }
  .steps--row li:not(:last-child)::after {
    left: 3rem; right: calc(var(--sp-5) * -1);
    top: 1.25rem; bottom: auto;
    width: auto; height: 2px;
  }
}

/* ==========================================================================
   11. Tabla comparativa
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.compare {
  min-width: 640px;
  font-size: var(--fs-sm);
}
.compare caption {
  caption-side: bottom;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--ink-500);
  text-align: left;
  line-height: 1.5;
}
.compare th, .compare td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-900);
  background: var(--surface-alt);
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}
.compare tbody th {
  font-weight: 600;
  color: var(--brand-900);
  width: 30%;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

.compare .col-alone { background: var(--warn-50); color: var(--ink-700); }
.compare .col-with  { background: var(--good-50); color: var(--ink-800); }
.compare thead .col-alone { background: #fbe9e7; color: var(--warn-600); }
.compare thead .col-with  { background: #dff1e7; color: var(--good-600); }

/* ==========================================================================
   12. Bloque de autoridad
   ========================================================================== */

.authority__grid {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}

.authority__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
  max-width: 300px;
  background: var(--brand-800);
}
.authority__photo img { width: 100%; height: auto; display: block; }

.authority__quote {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  line-height: 1.4;
  color: #fff;
  margin-bottom: var(--sp-6);
  padding-left: var(--sp-5);
  border-left: 3px solid var(--accent-500);
}

.creds {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.creds li {
  position: relative;
  margin: 0;
  padding-left: 1.9rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--on-dark-muted);
}
.creds li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4em;
  width: 1.1rem; height: 0.55rem;
  border-left: 2.5px solid var(--accent-400);
  border-bottom: 2.5px solid var(--accent-400);
  transform: rotate(-45deg);
}
.creds b { color: #fff; }

@media (min-width: 820px) {
  .authority__grid { grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-12); }
}

/* ==========================================================================
   13. Reseñas
   ========================================================================== */

.reviews__grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

.review {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-1);
}

.review__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-3);
}
.review__stars svg { width: 17px; height: 17px; fill: var(--accent-500); }

.review__text {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-700);
  margin-bottom: var(--sp-5);
  flex-grow: 1;
}

.review__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
}

/* Avatar con iniciales — no usamos fotos de terceros sin autorización */
.avatar {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--brand-700);
}
.avatar--b { background: var(--brand-600); }
.avatar--c { background: var(--accent-700); }
.avatar--d { background: var(--brand-800); }
.avatar--e { background: var(--accent-600); color: var(--brand-950); }
.avatar--f { background: var(--brand-500); }

.review__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-900);
  line-height: 1.3;
}
.review__meta {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  line-height: 1.4;
}

.reviews__source {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--ink-500);
  text-align: center;
}

/* ==========================================================================
   14. Acordeón FAQ
   ========================================================================== */

.faq {
  border-top: 1px solid var(--line);
  max-width: 820px;
}

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.45;
  color: var(--brand-900);
  text-align: left;
  cursor: pointer;
}
.faq__q:hover { color: var(--brand-600); }

.faq__q .faq__sign {
  flex: none;
  position: relative;
  width: 20px; height: 20px;
  margin-top: 2px;
}
.faq__q .faq__sign::before,
.faq__q .faq__sign::after {
  content: "";
  position: absolute;
  background: var(--brand-600);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.faq__q .faq__sign::before { left: 0; top: 9px; width: 20px; height: 2px; }
.faq__q .faq__sign::after  { left: 9px; top: 0; width: 2px; height: 20px; }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(90deg); opacity: 0; }

.faq__a {
  padding: 0 0 var(--sp-5);
  max-width: 68ch;
}
.faq__a[hidden] { display: none; }
.faq__a p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-600);
}
.faq__a p + p { margin-top: var(--sp-3); }
.faq__a ul { font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.7; }

/* ==========================================================================
   15. Formulario
   ========================================================================== */

.field { margin-bottom: var(--sp-4); }

.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-900);
  margin-bottom: var(--sp-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);          /* 16px evita el zoom automático en iOS */
  line-height: 1.4;
  color: var(--ink-900);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-400); }

.field-hint {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ink-500);
  line-height: 1.5;
}

/* Consentimiento Ley 19.628 / 21.719 — nunca premarcado */
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-600);
}
.consent input[type="checkbox"] {
  flex: none;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand-600);
  cursor: pointer;
}
.consent label { cursor: pointer; }
.consent a { color: var(--brand-600); }

/* ==========================================================================
   16. Banda CTA
   ========================================================================== */

.cta-band {
  background:
    radial-gradient(60rem 30rem at 80% 0%, var(--brand-800) 0%, transparent 60%),
    var(--brand-900);
  color: var(--on-dark);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p {
  color: var(--on-dark-muted);
  font-size: var(--fs-lg);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}
.cta-band .btn-row { justify-content: center; }

/* Banda CTA intermedia, más compacta y clara */
.cta-inline {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
}
.cta-inline h2 { font-size: var(--fs-2xl); max-width: 24ch; margin-inline: auto; }
.cta-inline p {
  color: var(--ink-600);
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}
.cta-inline .btn-row { justify-content: center; }

/* ==========================================================================
   17. Footer
   ========================================================================== */

.footer {
  background: var(--brand-950);
  color: var(--on-dark-muted);
  padding-block: var(--sp-16) var(--sp-10);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.footer__grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 720px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-10); } }

.footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-400);
  margin-bottom: var(--sp-4);
}

.footer__brand {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-2);
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--sp-3); }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer__legal {
  padding-top: var(--sp-8);
  font-size: var(--fs-xs);
  color: var(--on-dark-faint);
  line-height: 1.7;
}
.footer__legal p { margin-bottom: var(--sp-3); }
.footer__legal a { color: var(--on-dark-muted); text-decoration: underline; }

.footer__disclaimer {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
}

/* ==========================================================================
   18. CTA fijo en móvil — barra inferior, no burbuja flotante
   ========================================================================== */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  padding-bottom: calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: var(--sh-up);
}

.sticky-cta__wa {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 50px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--wa-500);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.sticky-cta__wa:hover { background: var(--wa-600); color: #fff; }
.sticky-cta__wa svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

.sticky-cta__tel {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand-800);
}
.sticky-cta__tel svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ==========================================================================
   19. Accesibilidad y motion
   ========================================================================== */

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 3px;
}
.section--dark :focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--accent-400);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .case-card:hover { transform: none; }
}

@media print {
  .nav, .sticky-cta, .cta-band, .cta-inline { display: none; }
  body { padding-bottom: 0; color: #000; }
  .faq__a[hidden] { display: block !important; }
}

/* ==========================================================================
   20. Landing para anuncios (agregado 2026-11-21)
   ========================================================================== */

/* Prueba rápida bajo el titular */
.proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}
.proof li { margin: 0; display: inline-flex; align-items: center; gap: var(--sp-2); }
.proof b { color: #fff; font-weight: 600; }
.proof__icons { display: inline-flex; gap: 1px; }
.proof__icons svg { width: 15px; height: 15px; fill: var(--accent-400); }

/* Formulario del hero */
.hero__form-sub { font-size: var(--fs-sm); color: var(--ink-600); margin-bottom: var(--sp-5); }
.hero__form .field label { color: var(--brand-900); }
.field-opt { font-weight: 400; color: var(--ink-500); }
.field-row { display: grid; gap: 0 var(--sp-4); }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }

.file-label { display: block; }
.file-label svg {
  width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px;
  fill: none; stroke: var(--brand-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.field input[type="file"] {
  min-height: 0;
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  background: var(--brand-50);
  border-style: dashed;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--brand-600);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--brand-800);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

/* Trampa anti-bots: fuera de pantalla, no display:none (algunos bots lo detectan) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.5;
  background: var(--warn-50);
  border: 1px solid var(--warn-200);
  color: var(--warn-600);
}
.form-status.is-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.form-status a { color: inherit; font-weight: 600; }

.hero .cta-micro--form { color: var(--ink-500); font-size: var(--fs-xs); text-align: center; }
.hero .cta-micro--form b { color: var(--brand-900); }

button[disabled] { opacity: .65; cursor: progress; }

.form-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--good-600);
  text-decoration: none;
}
.form-alt svg { width: 18px; height: 18px; fill: var(--wa-500); }
.form-alt:hover { text-decoration: underline; }

/* Aviso para casos de vida, invalidez o salud */
.note-band {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
}
.note-band svg {
  width: 24px; height: 24px; flex: none; margin-top: 2px;
  fill: none; stroke: var(--accent-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.note-band p { margin: 0; color: var(--ink-700); }
.note-band b { color: var(--brand-900); }

/* Tarjetas de seguros sin enlace */
.case-card--static:hover { transform: none; border-color: var(--line); box-shadow: var(--sh-1); }
.case-card--static p { margin-bottom: 0; }

.rating-inline svg { width: 0.85em; height: 0.85em; fill: var(--accent-500); vertical-align: -0.05em; }
.reviews__source a { font-weight: 600; }

/* Footer de dos columnas */
@media (min-width: 720px) { .footer--slim .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Barra fija en móvil: formulario primero */
.sticky-cta__main {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--accent-500);
  color: var(--brand-950);
  font-size: var(--fs-base);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.sticky-cta__main:hover { background: var(--accent-400); color: var(--brand-950); }
.sticky-cta__icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand-800);
}
.sticky-cta__icon svg { width: 22px; height: 22px; fill: currentColor; }
.sticky-cta__icon svg.is-stroke { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sticky-cta__icon--wa { background: var(--wa-500); border-color: var(--wa-500); color: #fff; }

/* Acción del formulario: dorado (el verde queda reservado a WhatsApp) */
.btn--accent { background: var(--accent-500); border-color: var(--accent-500); color: var(--brand-950); }
.btn--accent:hover { background: var(--accent-400); border-color: var(--accent-400); color: var(--brand-950); }

body.no-sticky { padding-bottom: 0; }

/* ==========================================================================
   21. Ajustes "menos plantilla" (2026-11-21)
   Tipografía: títulos en Libre Caslon Text regular, texto en Libre Franklin. Fondos planos, sin degradados ni filos decorativos.
   ========================================================================== */
h1, h2 { font-weight: 400; letter-spacing: 0; }
h1 { line-height: 1.08; }
h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

.nav__logo { display: block; height: 40px; width: auto; }

.hero { background: var(--brand-900); }
.hero::before { display: none; }
.hero__eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); font-weight: 600; }
.cta-band { background: var(--brand-900); }

.trust__item p { margin: 0; }

.pain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.case-card, .review, .hero__form { border-radius: var(--r-sm); }
.case-card { box-shadow: none; }
.case-card__icon { background: transparent; width: auto; height: auto; justify-content: start; }
.review__author { gap: 0; }

/* Medios de pago en el pie */
.pay p { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.pay img { display: block; width: 220px; max-width: 100%; height: auto; background: #fff; border-radius: 4px; padding: 8px 10px; }
.pay__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.file-label svg { display: inline-block; }
