/* ===================================================================
   Facturante · Onepage Compañías de Seguros — RG 5824/2026 y RG 5866/2026
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Gray */
  --color-gray-0: #FFFFFF;
  --color-gray-100: #FBFBFB;
  --color-gray-200: #F1F1F2;
  --color-gray-300: #EBEBEB;
  --color-gray-400: #E2E1E4;
  --color-gray-500: #D2D0D5;
  --color-gray-600: #C3C0C6;
  --color-gray-700: #9D98A2;
  --color-gray-800: #69676C;
  --color-gray-900: #353535;
  --color-gray-1000: #12071F;

  /* Green (primary) */
  --color-green-100: #C3F2DD;
  --color-green-200: #C5E1CF;
  --color-green-400: #87C19B;
  --color-green-500: #65B07F;
  --color-green-700: #28914D;
  --color-green-800: #126E39;
  --color-green-900: #005028;

  /* Violet */
  --color-violet-50: #EEE9F6;
  --color-violet-80: #E2D9F0;
  --color-violet-100: #D2C8E1;
  --color-violet-200: #9A7EC3;
  --color-violet-400: #774FB1;
  --color-violet-500: #56229F;
  --color-violet-700: #3C0091;
  --color-violet-800: #32086B;
  --color-violet-900: #280F46;

  /* Yellow */
  --color-yellow-100: #FEEEDF;
  --color-yellow-200: #F9DDC4;
  --color-yellow-800: #DD7F28;
  --color-yellow-1000: #984F0B;

  /* Red */
  --color-red-100: #FFE5E5;
  --color-red-300: #ECA5A5;
  --color-red-800: #BD2828;

  /* Semantic */
  /* Green 800 (not 700) on solid fills: 700 gives 4.0:1 with white text,
     under the 4.5:1 AA minimum for this weight/size. 800 gives 6.3:1. */
  --color-primary: var(--color-green-800);
  --color-primary-hover: var(--color-green-900);
  --color-primary-active: var(--color-green-900);
  --color-text: var(--color-gray-1000);
  /* Un poco más oscuro que gray-800 puro, para que las descripciones se lean
     más firmes sin llegar al contraste del texto principal. */
  --color-text-muted: #353537;
  --color-bg: var(--color-gray-0);
  --color-bg-tint: var(--color-green-100);
  --color-border: var(--color-gray-400);
  --color-focus-ring: var(--color-violet-700);

  --font-body: "Lato", Arial, Helvetica, sans-serif;

  --container-w: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 16px rgba(18, 7, 31, 0.06);
  --shadow-card-hover: 0 10px 28px rgba(18, 7, 31, 0.10);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 480ms;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 900; line-height: 1.15; }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

.visually-hidden {
  position: absolute !important;
  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: 12px;
  top: -60px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top 160ms var(--ease);
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 900;
  text-align: center;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  white-space: normal;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(18, 110, 57, 0.28);
}
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); }
.btn--primary:active { background: var(--color-primary-active); transform: translateY(0); }

.btn--outline {
  background: #fff;
  border-color: var(--color-violet-700);
  color: var(--color-violet-700);
  box-shadow: 0 2px 10px rgba(18, 7, 31, 0.10);
}
.btn--outline:hover { background: var(--color-violet-700); color: #fff; transform: translateY(-2px); }

.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--xs { padding: 7px 16px; font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn--primary:hover, .btn--outline:hover { transform: none; }
}

.btn__arrow { flex-shrink: 0; transition: transform 220ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .btn__arrow { transition: none; }
  .btn:hover .btn__arrow { transform: none; }
}

/* Destello sutil en el borde, en violeta (no en el verde del botón) para que se note */
@keyframes btn-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(86, 34, 159, 0), 0 6px 18px rgba(18, 110, 57, 0.28); }
  50% { box-shadow: 0 0 0 7px rgba(86, 34, 159, 0.38), 0 6px 18px rgba(18, 110, 57, 0.28); }
}
.btn--pulse { animation: btn-pulse-glow 2.6s ease-in-out infinite; }
.btn--pulse:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .btn--pulse { animation: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  /* Blur siempre activo: sobre la foto del hero desenfoca lo que pasa detrás
     del nav sin taparlo con un fondo sólido. */
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
/* Al scrollear, además del blur, suma un fondo blanco para legibilidad sobre el resto de la página */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 20px rgba(18, 7, 31, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { height: 28px; width: auto; }

.utility-nav__full { display: none; }
.utility-nav__short { display: inline; }

@media (min-width: 640px) {
  .utility-nav__full { display: inline; }
  .utility-nav__short { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  /* Se estira por debajo del header transparente (margin-top negativo) y compensa
     con padding-top, para que el fondo llegue hasta arriba sin tapar el contenido. */
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(32px + var(--header-h));
  padding-bottom: 40px;
  background:
    linear-gradient(
      to right,
      color-mix(in srgb, var(--color-violet-50) 95%, transparent) 0%,
      color-mix(in srgb, var(--color-violet-50) 95%, transparent) 45%,
      color-mix(in srgb, var(--color-violet-50) 90%, transparent) 70%,
      color-mix(in srgb, var(--color-violet-50) 74%, transparent) 85%,
      color-mix(in srgb, var(--color-violet-50) 50%, transparent) 100%
    ),
    url("../img/hero1.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero__content { max-width: 600px; }

@media (min-width: 640px) and (max-width: 959px) {
  .hero {
    background:
      linear-gradient(
        to right,
        color-mix(in srgb, var(--color-violet-50) 95%, transparent) 0%,
        color-mix(in srgb, var(--color-violet-50) 95%, transparent) 45%,
        color-mix(in srgb, var(--color-violet-50) 90%, transparent) 70%,
        color-mix(in srgb, var(--color-violet-50) 74%, transparent) 85%,
        color-mix(in srgb, var(--color-violet-50) 50%, transparent) 100%
      ),
      url("../img/hero1.jpg") center / cover no-repeat;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: calc(12px + var(--header-h));
    padding-bottom: 16px;
    min-height: 440px;
    display: flex;
    align-items: center;
    background:
      linear-gradient(
        to right,
        color-mix(in srgb, var(--color-violet-50) 95%, transparent) 0%,
        color-mix(in srgb, var(--color-violet-50) 90%, transparent) 56%,
        color-mix(in srgb, var(--color-violet-50) 74%, transparent) 72%,
        transparent 90%
      ),
      url("../img/hero1.jpg") center / cover no-repeat;
  }
  .hero .eyebrow { margin-bottom: 8px; padding: 6px 12px; }
  #hero-title { font-size: 3rem; }
  .hero__lead { margin-top: 8px; max-width: 56ch; }
  .hero__actions { margin-top: 12px; }
  .hero__secondary-link { margin-top: 6px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-green-800);
  background: var(--color-green-100);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--violet { color: var(--color-violet-700); background: var(--color-violet-50); }
/* yellow-1000 (no yellow-800) para el texto: 4.7:1 sobre yellow-200, cumple AA */
.eyebrow--yellow { color: var(--color-yellow-1000); background: var(--color-yellow-200); }
.eyebrow .icon { flex-shrink: 0; }

#disposicion .eyebrow { font-size: 0.95rem; padding: 10px 18px; margin-bottom: 22px; }
#disposicion .quote p { font-size: 22px; font-weight: 600; }
#disposicion {
  background:
    linear-gradient(rgba(18, 7, 31, 0.82), rgba(18, 7, 31, 0.82)),
    url("../img/fachadaseguros.jpg") center / cover no-repeat;
}
@media (min-width: 640px) {
  #disposicion {
    background:
      linear-gradient(rgba(18, 7, 31, 0.82), rgba(18, 7, 31, 0.82)),
      url("../img/fachadaseguros.jpg") center / cover no-repeat;
  }
}
@media (min-width: 960px) {
  #disposicion {
    background:
      linear-gradient(rgba(18, 7, 31, 0.82), rgba(18, 7, 31, 0.82)),
      url("../img/fachadaseguros.jpg") center / cover no-repeat;
  }
}

.hero__lead {
  margin-top: 20px;
  font-size: 20px;
  color: var(--color-text-muted);
  max-width: 46ch;
}
.hero__actions { margin-top: 32px; }
.hero__actions--row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__secondary-link { margin-top: 14px; font-size: 0.85rem; color: var(--color-violet-800); }

@media (max-width: 639px) {
  .hero { padding-top: calc(16px + var(--header-h)); padding-bottom: 20px; background-position: right center; }
  .hero .eyebrow { margin-bottom: 10px; }
  #hero-title { font-size: 32px; }
  .hero__lead { margin-top: 10px; font-size: 20px; }
  .hero__actions { margin-top: 18px; }
  .hero__secondary-link { margin-top: 10px; }
}
.link-button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover, .link-button:focus-visible { color: var(--color-violet-500); }

/* ---------- Social proof ---------- */
.proof { padding-block: 28px; border-block: 1px solid var(--color-border); }
.proof__title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.proof__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 64px;
}
@media (min-width: 640px) {
  .proof__logos { gap: 120px; }
}
.proof__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 140px;
}
.proof__logo-box img {
  position: relative;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: transform 320ms cubic-bezier(0.65, 0, 0.35, 1), filter 260ms var(--ease), opacity 260ms var(--ease);
}
.proof__logo-box:hover img,
.proof__logo-box:focus-within img {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms var(--ease), opacity 220ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .proof__logo-box::before { display: none; }
  .proof__logo-box img { transition: none; }
  .proof__logo-box:hover img, .proof__logo-box:focus-within img { transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section--tint { background: var(--color-gray-100); }
.section--salon {
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url("../img/mostradorseguros.jpg") center top / cover no-repeat;
}
@media (min-width: 640px) {
  .section--salon {
    background:
      linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
      url("../img/mostradorseguros.jpg") center top / cover no-repeat;
  }
}
@media (min-width: 960px) {
  .section--salon {
    background:
      linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
      url("../img/mostradorseguros.jpg") center top / cover no-repeat;
  }
}
.section--salon__compare { margin-top: 56px; }
#aplica-title { padding-top: 2rem; }
.section__narrow { max-width: 760px; }
.section--center { text-align: center; }
.section--center .btn { margin-top: 8px; }
.section__head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 44px; }
.section__head--start { text-align: left; margin-inline: 0; max-width: none; }
.section__head--faq { margin-bottom: 20px; }

/* ---------- Cursor trail (rastro de partículas sutil que se desvanece) ---------- */
.cursor-particle {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 176, 127, 0.85), rgba(101, 176, 127, 0.1) 70%);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.7;
  animation: cursor-particle-fade 550ms ease-out forwards;
}
@keyframes cursor-particle-fade {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-particle { display: none; }
}

/* ---------- Wave dividers (clip-path, revelan la foto real de cada sección) ---------- */
.section--waved { padding-block: 0; }
.section--waved > .container { padding-top: 112px; padding-bottom: 112px; }
@media (min-width: 640px) {
  .section--waved > .container { padding-top: 152px; padding-bottom: 152px; }
}

#por-que { padding-bottom: 112px; }
@media (min-width: 640px) {
  #por-que { padding-bottom: 152px; }
}

/* Onda de entrada de #disposicion: recorta su propio borde superior para
   que se vea el fondo blanco de la sección anterior por detrás. */
.section--disposicion-wave {
  margin-top: -48px;
  clip-path: polygon(
    0% 24px, 10% 17.5px, 20% 15.4px, 30% 16.4px, 40% 19.7px,
    50% 24px, 60% 28.3px, 70% 31.6px, 80% 32.6px, 90% 30.5px, 100% 24px,
    100% 100%, 0% 100%
  );
}
@media (min-width: 640px) {
  .section--disposicion-wave {
    margin-top: -88px;
    clip-path: polygon(
      0% 44px, 10% 32.1px, 20% 28.2px, 30% 30.1px, 40% 36.1px,
      50% 44px, 60% 51.9px, 70% 57.9px, 80% 59.8px, 90% 55.9px, 100% 44px,
      100% 100%, 0% 100%
    );
  }
}

/* Onda de salida de #disposicion: se recorta con clip-path para que se
   vea la foto real de #disposicion detrás, no un relleno de color plano. */
.section--salon-wave {
  margin-top: -48px;
  clip-path: polygon(
    0% 24px, 10% 17.5px, 20% 15.4px, 30% 16.4px, 40% 19.7px,
    50% 24px, 60% 28.3px, 70% 31.6px, 80% 32.6px, 90% 30.5px, 100% 24px,
    100% 100%, 0% 100%
  );
}
@media (min-width: 640px) {
  .section--salon-wave {
    margin-top: -88px;
    clip-path: polygon(
      0% 44px, 10% 32.1px, 20% 28.2px, 30% 30.1px, 40% 36.1px,
      50% 44px, 60% 51.9px, 70% 57.9px, 80% 59.8px, 90% 55.9px, 100% 44px,
      100% 100%, 0% 100%
    );
  }
}
.section__lead { margin-top: 18px; font-size: 1.38rem; color: var(--color-text-muted); }
.note { margin-top: 14px; font-size: 0.8rem; color: var(--color-gray-700); font-style: italic; }

.quote {
  margin: 24px auto 0;
  max-width: 600px;
  padding: 28px 28px 24px;
  background: #fff;
  border-left: 5px solid var(--color-violet-700);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.quote p {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
}
.quote footer {
  margin-top: 14px;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-violet-700);
}
.quote__mark {
  background: var(--color-yellow-200);
  color: inherit;
  padding: 0 4px;
  border-radius: 4px;
}

/* ---------- Check list (¿Aplica a su Compañía?) ---------- */
.check-list__intro {
  margin-top: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--color-text);
}
.check-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 22px 0 0 22px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.25rem;
}
.check-list svg { flex-shrink: 0; }
@media (max-width: 639px) {
  .check-list li { font-size: 16px; }
}

/* ---------- Compare (qué cambia / cómo lo resuelve) ---------- */
.compare {
  display: grid;
  gap: 20px;
}
@media (min-width: 780px) {
  .compare { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.compare__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.compare__card--after { border: 2px solid var(--color-green-700); }
.compare__tag {
  display: inline-block;
  align-self: flex-start;
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-red-800);
  background: var(--color-red-100);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.compare__tag--ok { color: var(--color-green-800); background: var(--color-green-100); }
.compare__desc { color: var(--color-text-muted); padding: 0 0 2rem 0; font-size: 18px; }
.compare__card strong { color: var(--color-text); }
.compare__list { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.compare__item { padding: 14px 0; border-top: 1px solid var(--color-border); }
.compare__item:first-child { padding-top: 0; border-top: none; }
.compare__item-title { display: block; color: var(--color-text); margin-bottom: 4px; font-size: 20px; }
.compare__item-desc { margin: 0; color: var(--color-text-muted); font-size: 20px; }
.compare__highlight {
  align-self: flex-start;
  margin-top: auto;
  padding: 14px 20px;
  border-radius: 1rem;
  background: #E8FBF2;
  color: var(--color-green-800);
  font-weight: 900;
  text-align: left;
  font-size: 1.05rem;
}
.compare__highlight--red { background: #FDECEC; color: var(--color-red-800); }

.cta-inline {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta-inline--center { align-items: center; }

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: box-shadow 260ms var(--ease), transform 260ms var(--ease), border-color 260ms var(--ease);
}
.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-green-400);
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-green-100);
  color: var(--color-green-800);
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--color-text-muted); font-size: 1rem; }
.feature-card strong { color: var(--color-text); }

.features__group-tag {
  display: block;
  text-align: left;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-green-800);
  margin-bottom: 18px;
}
.features + .features__group-tag { margin-top: 44px; }
.features__group-tag--violet { color: var(--color-violet-700); }
.features--violet .feature-card__icon {
  background: var(--color-violet-50);
  color: var(--color-violet-700);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card { transition: none; }
  .feature-card:hover { transform: none; }
}

/* ---------- Certificaciones ---------- */
.section--certs { padding-block: 48px; }
.certs__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 56px;
}
.certs__logos img { max-height: 100%; width: auto; filter: grayscale(60%); opacity: 0.85; transition: filter 220ms var(--ease), opacity 220ms var(--ease); }
.certs__logos img:hover { filter: grayscale(0%); opacity: 1; }
.certs__logos img.cert-badge--sm { max-height: 48px; }
.certs__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 190px;
  text-align: center;
}
/* Altura fija: todos los logos quedan centrados en la misma franja,
   así logos y captions se alinean entre grupos sin importar el tamaño natural de cada imagen. */
.certs__group-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 80px;
}
.certs__caption { font-size: 0.87rem; color: var(--color-text-muted); line-height: 1.4; }

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding-inline: 24px;
  transition: border-color 200ms var(--ease);
}
.faq__item[open] { border-color: var(--color-green-400); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-green-800);
}
.faq__item[open] summary::after { content: '\2212'; }
.faq__item p {
  margin: 0;
  padding-bottom: 20px;
  color: var(--color-text-muted);
}
.faq__item p:has(+ .faq__steps) { padding-bottom: 10px; }
.faq__steps {
  margin: 0;
  padding: 0 0 20px 20px;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- CTA final oscuro ---------- */
.section--dark {
  background:
    linear-gradient(rgba(18, 7, 31, 0.88), rgba(18, 7, 31, 0.88)),
    url("../img/asesoraseguros.jpg") center / cover no-repeat;
  color: #fff;
}
@media (min-width: 640px) {
  .section--dark {
    background:
      linear-gradient(rgba(18, 7, 31, 0.88), rgba(18, 7, 31, 0.88)),
      url("../img/asesoraseguros.jpg") center / cover no-repeat;
  }
}
@media (min-width: 960px) {
  .section--dark {
    background:
      linear-gradient(rgba(18, 7, 31, 0.88), rgba(18, 7, 31, 0.88)),
      url("../img/asesoraseguros.jpg") center / cover no-repeat;
  }
}
.section--dark h2 { color: #fff; }
.section__lead--onDark {
  color: var(--color-gray-400);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 30px;
}
.eyebrow--onDark { color: var(--color-green-400); background: rgba(255, 255, 255, 0.12); }

/* ---------- Control / quiebre emocional ---------- */
.section--dark.section--pivot {
  background: linear-gradient(135deg, var(--color-violet-900) 0%, var(--color-gray-1000) 100%);
}
.section--pivot .section__lead--onDark { margin-top: 36px; margin-bottom: 0; font-size: 22px; }
.section--pivot__highlight { color: var(--color-green-400); }
.section--pivot__narrow { max-width: 700px; }
#control-title { line-height: 1.2; }

/* ---------- Stats (20.000 empresas) ---------- */
.stats-layout {
  display: grid;
  gap: 36px;
}
@media (min-width: 860px) {
  .stats-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
}
.stats-layout__text { max-width: 560px; }
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
@media (min-width: 860px) {
  .stats-grid { justify-content: flex-start; flex-wrap: nowrap; }
  .stats-grid__item { flex: 1 1 0; min-width: 0; }
}
.stats-grid__item {
  min-width: 180px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.stats-grid__number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-green-400);
}
.stats-grid__label {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--color-gray-400);
}
.stats-grid__label-strong {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-green-400);
}

/* ---------- Modal (Alianzas / formulario de partnership) ---------- */
.modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(620px, calc(100vw - 40px));
  max-height: calc(100vh - 64px);
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.modal[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@starting-style {
  .modal[open] {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
.modal::backdrop {
  background: rgba(18, 7, 31, 0.55);
  opacity: 0;
  transition: opacity 220ms var(--ease), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.modal[open]::backdrop { opacity: 1; }
@starting-style {
  .modal[open]::backdrop { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .modal::backdrop { transition: none; }
}
.modal__inner {
  position: relative;
  padding: 28px 32px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.modal #alianzas-modal-title,
.modal h2 { font-size: 32px; }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--color-gray-100);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 180ms var(--ease);
}
.modal__close:hover { background: var(--color-gray-300); }
.modal__lead { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--color-text-muted); }
.modal .eyebrow { margin-bottom: 10px; }

@media (max-width: 639px) {
  .modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    margin: 0;
    inset: 0;
  }
  .modal__inner { max-height: 100vh; padding: 28px 24px; }
}

.partner-form { margin-top: 16px; }
.partner-form__title {
  font-weight: 900;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.partner-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (min-width: 480px) {
  .partner-form__row { grid-template-columns: 1fr 1fr; }
}
.partner-form__field { display: flex; flex-direction: column; gap: 4px; }
.partner-form__field--full { margin-bottom: 14px; }
.partner-form__field label { font-size: 0.8rem; font-weight: 700; color: var(--color-text-muted); }
.partner-form__field input,
.partner-form__field textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 8px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  resize: vertical;
}
.partner-form__field input:focus-visible,
.partner-form__field textarea:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 1px;
}
.partner-form__field--invalid input,
.partner-form__field--invalid textarea {
  border-color: var(--color-red-800);
}
.partner-form__field-message {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-red-800);
}
.partner-form__submit { width: 100%; padding: 12px 30px; }
.partner-form__recaptcha-note {
  margin-top: 10px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-align: center;
}
.partner-form__recaptcha-note a { color: inherit; text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }
.partner-form__success {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--color-green-100);
  color: var(--color-green-900);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.partner-form__error {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--color-red-100);
  color: var(--color-red-800);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-green-900);
  padding-block: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.site-footer p { color: var(--color-green-200); font-size: 0.82rem; margin: 0; }

@media (min-width: 700px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .site-footer__brand { align-items: flex-start; }
}

.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.social-links a:hover {
  background: #fff;
  color: var(--color-green-900);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .social-links a { transition: none; }
  .social-links a:hover { transform: none; }
}

/* ---------- Micro motion (scroll reveal) ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 60px;
  z-index: 90;
  display: flex;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(18, 7, 31, 0.25);
  transition: transform 220ms var(--ease);
}
.whatsapp-float img { display: block; height: 52px; width: auto; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: translateY(-2px); }
@media (min-width: 640px) {
  .whatsapp-float { bottom: 120px; }
  .whatsapp-float img { height: 70px; }
}
@media (min-width: 960px) {
  .whatsapp-float {
    bottom: auto;
    top: calc(100vh - 190px);
    transition: transform 220ms var(--ease), top 320ms var(--ease);
  }
  .whatsapp-float.is-near-header { top: calc(var(--header-h) + 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}

/* ---------- Volver arriba (solo tablet/desktop) ---------- */
.back-to-top {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(18, 110, 57, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), background-color 220ms var(--ease), visibility 220ms;
}
@media (min-width: 640px) {
  .back-to-top { display: flex; }
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--color-primary-hover); }

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 220ms, visibility 220ms; }
}
