/* ==================================================================
   Dr. Diego Flores Orozco · Hoja de estilos
   ------------------------------------------------------------------
   Identidad (paleta B): marino profundo sólido + blanco, acento gris perla (#C9D3E6).
   Diseño limpio, mucho aire, esquinas redondeadas y sombras suaves.

   Índice
     1. Tipografías locales       11. Costos y métodos de pago
     2. Variables                 12. Procedimientos
     3. Base y utilidades         13. Aseguradoras
     4. Botones                   14. Testimonios (carrusel)
     5. Encabezado y menús        15. Instalaciones y texto SEO
     6. Hero                      16. Preguntas frecuentes
     7. Puntos clave              17. Ubicación y mapa
     8. Sobre mí                  18. Pie de página y barra móvil
     9. Servicios                 19. Páginas interiores
    10. Por qué elegirme          20. Animaciones y responsive
   ================================================================== */

/* 1. TIPOGRAFÍAS LOCALES (más rápido que cargar Google Fonts) ------- */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

/* 2. VARIABLES ------------------------------------------------------ */
:root {
  --navy:      #183d86;   /* azul del logo (acento sobre fondo claro) */
  --navy-deep: #0b1a3f;   /* marino profundo (hero, secciones oscuras, pie) */
  --navy-ink:  #0b1a3f;   /* títulos */
  --sky:       #c9d3e6;   /* acento gris perla (sobre fondo oscuro) */
  --sky-soft:  #eef1f6;   /* fondos suaves de íconos */
  --mist:      #f5f6f8;   /* fondo alterno muy pálido */
  --fg:        #1a2333;   /* texto */
  --muted:     #5b6577;   /* texto secundario */
  --line:      #e4eaf2;   /* bordes */
  --wa:        #1fa855;   /* verde WhatsApp (botones) */
  --wa-dark:   #178a45;

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --r-sm: 12px; --r: 18px; --r-lg: 26px;
  --shadow-sm: 0 2px 10px -4px rgba(8, 33, 99, .12);
  --shadow:    0 18px 40px -22px rgba(8, 33, 99, .35);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* 3. BASE Y UTILIDADES ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--fg); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-ink); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
button { font: inherit; }
.sprite { display: none; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
:focus-visible { outline: 3px solid #9fb0cf; outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.container--md { max-width: 1040px; }
.container--sm { max-width: 820px; }
.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.muted { color: var(--muted); }
.center { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; text-align: center; }

/* Encabezado de sección: etiqueta sobria + título */
.head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.head--left { text-align: left; margin-left: 0; }
.head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); }
.eyebrow--light::before { background: var(--sky); }
.eyebrow--light { color: var(--sky); }

/* 4. BOTONES ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: .98rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { border-color: #cfdaea; color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--navy); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 5. ENCABEZADO Y MENÚS -------------------------------------------- */
.header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-color: var(--line); }
.header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__text { min-width: 0; overflow: hidden; }
.brand__text strong, .brand__text small { overflow: hidden; text-overflow: ellipsis; }
.header__actions { flex-shrink: 0; }
.brand__logo { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--navy-deep); }
.brand__logo img { width: 34px; height: 34px; }
.brand__text { line-height: 1.2; white-space: nowrap; }
.brand__text strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--navy-ink); }
.brand__text small { display: block; font-size: .78rem; color: var(--muted); }
.brand__text .brand__full { display: none; }

.nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__call { display: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--navy-ink); cursor: pointer; }
.menu-btn .icon { width: 24px; height: 24px; }

/* Menú de escritorio con desplegables */
.nav > a, .dropdown > button { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; border: 0; background: none; cursor: pointer; font-size: .93rem; font-weight: 500; color: #3a4558; transition: color .2s; }
.nav > a:hover, .dropdown > button:hover, .nav > a.is-active { color: var(--navy); }
.dropdown { position: relative; }
.dropdown > button .icon { width: 14px; height: 14px; transition: transform .25s; }
.dropdown__panel {
  position: absolute; top: calc(100% + 10px); left: -16px; min-width: 260px; padding: 10px;
  border-radius: var(--r); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown__panel--cols { display: grid; grid-template-columns: 1fr 1fr; min-width: 440px; }
.dropdown:hover .dropdown__panel, .dropdown:focus-within .dropdown__panel { opacity: 1; visibility: visible; transform: none; }
.dropdown:hover > button .icon { transform: rotate(180deg); }
.dropdown__panel a { display: block; padding: 8px 12px; border-radius: 10px; font-size: .92rem; color: var(--fg); }
.dropdown__panel a:hover { background: var(--sky-soft); color: var(--navy); }

/* Menú lateral móvil (cajón desde la izquierda) */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 33, 99, .45); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 380px); overflow-y: auto;
  display: flex; flex-direction: column; background: #fff; transform: translateX(-100%); transition: transform .35s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__nav { padding: 8px 16px 16px; flex-grow: 1; }
.drawer__nav > a, .drawer__nav summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy-ink); cursor: pointer; list-style: none; }
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav summary .icon { width: 18px; height: 18px; color: var(--navy); transition: transform .25s; }
.drawer__nav details[open] summary .icon { transform: rotate(180deg); }
.drawer__nav details div { display: grid; padding: 6px 0 10px 8px; border-bottom: 1px solid var(--line); }
.drawer__nav details a { padding: 9px 4px; font-size: .95rem; color: #3a4558; }
.drawer__cta { display: grid; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }

/* 6. HERO ----------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero__grid { display: grid; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
.hero__copy { display: flex; flex-direction: column; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.6vw, 3.4rem); font-weight: 800; line-height: 1.08; }
.hero h1 span { color: var(--sky); }
.hero__lead { margin-top: 18px; max-width: 34rem; font-size: 1.06rem; color: rgba(255, 255, 255, .8); }
.hero .btn-row { margin-top: 28px; }

/* Credenciales del hero: certificación + opiniones; cédulas en pequeño debajo */
.creds { display: grid; gap: 0; margin-top: 32px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); }
.creds__item { display: flex; align-items: center; gap: 14px; padding: 16px; }
.creds__item + .creds__item { border-top: 1px solid rgba(255, 255, 255, .12); }
.creds__item img { width: 52px; height: 52px; flex-shrink: 0; padding: 4px; border-radius: 50%; background: #fff; object-fit: contain; }
.creds__icons { display: flex; flex-shrink: 0; width: 52px; height: 52px; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--sky); }
.creds__icons .icon { width: 18px; height: 18px; }
.creds strong { display: block; font-family: var(--font-head); font-size: 1rem; color: #fff; }
.creds__item > div > span { display: block; font-size: .85rem; color: rgba(255, 255, 255, .7); line-height: 1.4; }
.creds__ids { margin-top: 12px; font-size: .74rem; letter-spacing: .01em; color: rgba(255, 255, 255, .5); }

.creds__wrap .creds { margin-top: 0; }
/* Foto completa, sin recorte (proporción original vertical) */
.hero__photo { overflow: hidden; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero__photo img { display: block; width: 100%; height: auto; }


/* Sobre mí ampliado: puntos y frase destacada ------------------------ */
.about { align-items: start; }
.about__copy > p + p { margin-top: 14px; }
.about__checks { margin-top: 24px; }
.about__checks span { color: var(--ink, #1f2937); }
.about__quote { margin-top: 26px; padding: 16px 20px; border-left: 3px solid var(--navy); border-radius: 0 var(--r) var(--r) 0; background: var(--sky-soft); font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--navy-ink); }

/* Sección oscura: infiltraciones y viscosuplementación --------------- */
.section--dark { background: var(--navy-deep); color: #fff; }
.section--dark h2 { color: #fff; }
.infil { display: grid; gap: 40px; align-items: center; }
.infil__copy > p:not(.eyebrow) { margin-top: 16px; color: rgba(255, 255, 255, .8); font-size: 1.05rem; }
.checks--light { margin-top: 22px; }
.section--dark .checks .icon { color: var(--sky); }
.checks--light span { color: rgba(255, 255, 255, .9); }
.infil .btn-row { margin-top: 28px; }
.btn--light { background: #fff; color: var(--navy-ink); }
.btn--light:hover { background: var(--sky-soft); }
.btn--light .icon { width: 18px; height: 18px; }
.infil__photo { overflow: hidden; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); aspect-ratio: 4 / 3; }
.infil__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .infil { grid-template-columns: 1.05fr .95fr; gap: 72px; } }

/* 7. PUNTOS CLAVE --------------------------------------------------- */
.keys { border-bottom: 1px solid var(--line); background: #fff; }
.keys__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 28px; padding-bottom: 28px; }
.key { display: flex; align-items: flex-start; gap: 12px; }
.key__icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--sky-soft); color: var(--navy); }
.key__icon .icon { width: 20px; height: 20px; }
.key strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--navy-ink); }
.key span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.4; }

/* 8. SOBRE MÍ (texto + ficha de credenciales) ---------------------- */
.about { display: grid; gap: 40px; align-items: start; }
.about__copy h2 { margin-top: 2px; }
.about__copy > p { margin-top: 18px; color: var(--muted); }
.focus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; }
.focus li { list-style: none; padding: 7px 14px; border-radius: 999px; background: var(--sky-soft); font-size: .88rem; font-weight: 500; color: var(--navy); }
.about .btn-row { margin-top: 28px; }
.profile { padding: 28px 24px; border-radius: var(--r-lg); background: var(--navy-deep); color: #fff; box-shadow: var(--shadow); }
.profile__head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.profile__logo { display: grid; place-items: center; flex-shrink: 0; width: 60px; height: 60px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.profile__logo img { width: 46px; height: 46px; }
.profile__head strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.profile__head span { display: block; margin-top: 2px; font-size: .82rem; letter-spacing: .08em; color: var(--sky); }
.profile__list { display: grid; gap: 22px; margin-top: 24px; }
.profile__list > div { display: flex; gap: 16px; }
.profile__list .icon { width: 26px; height: 26px; margin-top: 2px; color: var(--sky); }
.profile__list dt { font-family: var(--font-head); font-weight: 700; color: var(--sky); }
.profile__list dd { margin: 4px 0 0; color: rgba(255, 255, 255, .88); line-height: 1.5; }

/* Bloques grandes "En consulta" / "En quirófano" */
.story { display: grid; gap: 64px; }
.story__item { display: grid; gap: 24px; align-items: center; }
.story__text h2 { margin-top: 2px; }
.story__text p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.story__photo { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }

/* 9. SERVICIOS ------------------------------------------------------ */
.services { display: grid; gap: 16px; }
.service { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3e3f3; }
.service__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 14px; background: var(--sky-soft); color: var(--navy); }
.service__icon .icon { width: 24px; height: 24px; }
.service h3 a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: #9fb0cf; text-underline-offset: 4px; }
.service p { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.service__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; }
.btn-info { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid #cfe9d9; color: var(--wa-dark); font-size: .88rem; font-weight: 600; transition: background .25s, border-color .25s; }
.btn-info:hover { background: #effaf3; border-color: var(--wa); }
.btn-info .icon { width: 17px; height: 17px; color: var(--wa); }

/* 10. POR QUÉ ELEGIRME ---------------------------------------------- */
.why { display: grid; gap: 40px; align-items: center; }
.why__photo { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.why__list { display: grid; gap: 26px; margin-top: 8px; padding: 0; list-style: none; }
.why__list li { display: flex; gap: 16px; }
.why__icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--sky-soft); color: var(--navy); }
.why__icon .icon { width: 22px; height: 22px; }
.why__list p { margin-top: 4px; color: var(--muted); font-size: .96rem; }

/* 11. COSTOS Y MÉTODOS DE PAGO -------------------------------------- */
.prices { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.price { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.price__tag { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--sky-soft); font-size: .8rem; font-weight: 600; color: var(--navy); }
.price h3 { font-weight: 600; }
.price__amount { margin-top: 6px; font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--navy-ink); }
.price__amount small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price ul { margin-top: 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.price li { display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--fg); }
.price li .icon { color: var(--navy); }
.pay { max-width: 820px; margin: 20px auto 0; padding: 28px; border-radius: var(--r); background: var(--mist); text-align: center; }
.pay h3 { font-weight: 600; }
.pay__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 24px; padding: 0; list-style: none; }
.pay__list li { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--navy-ink); }
.pay__list span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sky-soft); color: var(--navy); }
.pay__list .icon { width: 20px; height: 20px; }
.steps-title { margin-top: 72px; text-align: center; font-size: clamp(1.3rem, 3vw, 1.6rem); }
.steps { display: grid; gap: 22px; margin-top: 32px; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding-left: 52px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #9fb0cf; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.steps strong { display: block; font-family: var(--font-head); color: var(--navy-ink); }
.steps p { margin-top: 2px; font-size: .93rem; color: var(--muted); }

/* 12. PROCEDIMIENTOS ------------------------------------------------ */
.procs { display: grid; gap: 32px; align-items: center; }
.procs__photo { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.procs__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.procs__grid { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.proc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.proc:nth-child(2n) { border-right: 0; }
.proc:nth-child(n+3) { border-bottom: 0; }
.proc:hover { background: var(--mist); }
.proc > .icon { width: 40px; height: 40px; color: var(--navy); margin-bottom: 6px; }
.proc h3 { font-size: 1.02rem; }
.proc p { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.proc .link-arrow { margin-top: 6px; font-size: .88rem; }
.procs + .center { margin-top: 40px; }

/* 13. ASEGURADORAS (sin cambios: carrusel de nombres) ---------------- */
.insurers { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.insurers__track { display: flex; gap: 14px; width: max-content; animation: scroll-x 40s linear infinite; }
.insurers:hover .insurers__track { animation-play-state: paused; }
.insurers__track span { padding: 14px 26px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-family: var(--font-head); font-weight: 700; color: var(--navy-ink); white-space: nowrap; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
#aseguradoras .center { margin-top: 28px; }

/* 14. TESTIMONIOS --------------------------------------------------- */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 16px; margin: 0 -20px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: center; display: flex; flex-direction: column; min-width: 0; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.review__tag { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--sky-soft); font-size: .78rem; font-weight: 600; color: var(--navy); }
.review blockquote { margin-top: 14px; font-size: .98rem; line-height: 1.65; color: var(--fg); }
.review figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; }
.review figcaption strong { color: var(--navy-ink); font-size: .95rem; }
.review figcaption span { font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.reviews__nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.reviews__nav button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.reviews__nav button:hover { border-color: var(--navy); }
.reviews__nav .icon { width: 20px; height: 20px; }
.platforms { display: grid; gap: 14px; max-width: 860px; margin: 36px auto 0; }
.platform { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .25s, box-shadow .25s; }
.platform:hover { border-color: #cbdcef; box-shadow: var(--shadow-sm); }
.platform__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; }
.platform__icon .icon { width: 20px; height: 20px; }
.platform strong { display: block; font-family: var(--font-head); color: var(--navy-ink); }
.platform small { font-size: .88rem; color: var(--muted); }
.platform > .icon { margin-left: auto; width: 20px; height: 20px; color: var(--navy); }

/* 15. INSTALACIONES Y TEXTO SEO ------------------------------------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure { overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 4; }
.gallery .gallery__big { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.seo-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.seo-text p { margin-top: 16px; color: #3a4558; }
.seo-text a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: #9fb0cf; text-underline-offset: 3px; }

/* 16. PREGUNTAS FRECUENTES ------------------------------------------ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 14px 20px; list-style: none; cursor: pointer; font-weight: 600; color: var(--navy-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--navy); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* 17. UBICACIÓN Y MAPA ---------------------------------------------- */
.contact { display: grid; gap: 28px; }
.contact__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__item > .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--navy); }
.contact__item small { display: block; font-size: .82rem; color: var(--muted); }
.contact__item strong, .contact__item a { font-weight: 600; color: var(--navy-ink); }
.contact__item a:hover { color: var(--navy); text-decoration: underline; }
.contact .btn-row { margin-top: 22px; }
.directions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.map { position: relative; min-height: 380px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--mist); }
.map__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.map__fallback .icon { width: 40px; height: 40px; color: var(--navy); }
.map__fallback p { color: var(--muted); font-size: .95rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 18. PIE DE PÁGINA Y BARRA MÓVIL ----------------------------------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); }
.footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 36px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); font-size: .9rem; font-weight: 500; color: #fff; transition: background .25s; }
.footer__social a:hover { background: rgba(255, 255, 255, .12); }
.footer__social .icon { width: 17px; height: 17px; }
.footer__grid { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
.footer__brand img { width: 64px; height: 64px; }
.footer__brand p { margin-top: 14px; font-size: .9rem; max-width: 28rem; }
.footer h4 { font-size: .95rem; color: #fff; }
.footer ul { margin-top: 14px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .9rem; }
.footer li { display: flex; gap: 8px; }
.footer li .icon { margin-top: 5px; color: var(--sky); }
.footer a:hover { color: #fff; }
.footer__bottom { padding: 20px 0 110px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.footer__bottom p + p { margin-top: 6px; }
.footer__bottom a { text-decoration: underline; }

/* Barra fija inferior en celular: WhatsApp + Llamar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mobile-bar .btn { min-height: 50px; padding: 10px; }
/* Botón flotante de WhatsApp en escritorio (sin pulso) */
.wa-float { display: none; }

/* 19. PÁGINAS INTERIORES -------------------------------------------- */
.crumbs { padding: 16px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--sky); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero { color: #fff; background: var(--navy-deep); }
.page-hero__inner { padding-top: 28px; padding-bottom: 52px; }
.page-hero h1 { margin-top: 6px; color: #fff; font-size: clamp(1.9rem, 4.8vw, 2.9rem); font-weight: 800; }
.page-hero p.lead { margin-top: 16px; max-width: 44rem; color: rgba(255, 255, 255, .84); font-size: 1.05rem; }
.page-hero .btn-row { margin-top: 26px; }
.page-hero__cert { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .88rem; color: rgba(255, 255, 255, .8); }
.page-hero__cert img { width: 34px; height: 34px; padding: 3px; border-radius: 50%; background: #fff; }
.article { display: grid; gap: 40px; padding: 64px 0 80px; }
.article h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 44px; }
.article h2:first-child { margin-top: 0; }
.article p { margin-top: 14px; color: #3a4558; }
.checks { margin-top: 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--navy); flex-shrink: 0; }
.treat { display: grid; gap: 14px; margin-top: 18px; }
.treat > div { padding: 20px; border-radius: var(--r); background: var(--mist); }
.treat h3 { font-size: 1rem; }
.treat p { margin-top: 6px; font-size: .96rem; }
.article .faq { margin-top: 18px; }
.article figure.article__photo { margin-top: 28px; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; }
.article__photo img { width: 100%; height: 100%; object-fit: cover; }
.quote { margin-top: 32px; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); }
.quote blockquote { font-size: 1rem; line-height: 1.65; }
.quote figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.quote figcaption strong { color: var(--navy-ink); }
.aside { align-self: start; }
.aside__card { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.aside__card h3 { font-size: 1.1rem; }
.aside__card ul { margin: 14px 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .93rem; color: #3a4558; }
.aside__card li { display: flex; gap: 10px; }
.aside__card li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--navy); }
.aside__card .btn { width: 100%; }
.aside__card .btn + .btn { margin-top: 10px; }
.related { margin-top: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chips a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--navy); transition: background .2s, border-color .2s; }
.chips a:hover { background: var(--sky-soft); border-color: #9fb0cf; }
.closing { padding: 64px 0; background: var(--mist); text-align: center; }
.closing h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.closing .btn-row { justify-content: center; margin-top: 22px; }
.closing p { margin-top: 14px; color: var(--muted); }
.closing p a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: #9fb0cf; text-underline-offset: 3px; }

/* Página de gracias */
.thanks { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--mist); }
.thanks__card { width: 100%; max-width: 480px; padding: 40px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); text-align: center; }
.thanks__logo { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto; border-radius: 22px; background: var(--navy-deep); }
.thanks__logo img { width: 62px; height: 62px; }
.thanks h1 { margin-top: 24px; font-size: 2rem; }
.thanks p { margin-top: 12px; color: var(--muted); }
.thanks p strong { color: var(--navy-ink); }
.thanks .btn { width: 100%; margin-top: 12px; white-space: normal; text-align: center; }
.thanks .btn:first-of-type { margin-top: 26px; }
.thanks__tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 14px; border-radius: var(--r-sm); background: var(--sky-soft); text-align: left; font-size: .9rem; color: var(--navy-ink); }
.thanks__tip .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--navy); }

/* Encabezado compacto en celulares angostos para que quepa todo en una línea */
@media (max-width: 479px) {
  .brand__logo { width: 40px; height: 40px; }
  .brand__logo img { width: 30px; height: 30px; }
  .brand__text strong { font-size: .92rem; }
  .brand__text small { font-size: .7rem; }
  .header__actions { gap: 4px; }
  .header__actions .btn--wa { min-height: 40px; padding: 8px 12px; font-size: .84rem; }
  .header__actions .btn--wa .icon { display: none; }
  .menu-btn { width: 40px; }
}

/* Teléfono visible en el encabezado solo en pantallas grandes */
@media (min-width: 1440px) { .header__call { display: inline-flex; } .container { max-width: 1320px; } }

/* 20. ANIMACIONES (solo aparición suave al bajar) -------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .insurers__track { flex-wrap: wrap; width: auto; justify-content: center; }
}

/* RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1023px) {
  body { padding-bottom: 72px; }   /* espacio para la barra fija */
}
@media (min-width: 640px) {
  .keys__grid { grid-template-columns: repeat(4, 1fr); }
  .key + .key { border-left: 1px solid var(--line); padding-left: 16px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .steps li { padding-left: 0; padding-top: 48px; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .reviews { grid-auto-columns: 46%; }
  .treat { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 32px; }
  .section { padding: 112px 0; }
  .brand__text .brand__short { display: none; }
  .brand__text .brand__full { display: block; }
  .brand { flex-shrink: 0; }
  .nav { display: flex; align-items: center; gap: 22px; }

  .menu-btn { display: none; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; grid-template-areas: "copy photo" "creds photo"; column-gap: 64px; row-gap: 32px; padding-top: 72px; padding-bottom: 80px; }
  .hero__copy { grid-area: copy; align-self: end; }
  .creds__wrap { grid-area: creds; align-self: start; }
  .hero__photo { grid-area: photo; align-self: center; justify-self: end; width: 100%; max-width: 470px; }
  .creds { grid-template-columns: 1fr 1fr; }
  .creds__item + .creds__item { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .12); }
  .about { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .story__item { grid-template-columns: 1fr 1fr; gap: 72px; }
  .story__item--rev .story__text { order: 2; }
  .story__photo { aspect-ratio: 4 / 4.4; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .why { grid-template-columns: 1fr 1fr; gap: 72px; }
  .procs { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .procs__photo { aspect-ratio: 4 / 5; }
  .reviews { grid-auto-columns: calc((100% - 32px) / 3); margin: 0; padding: 4px 0 16px; }
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 440px; }
  .gallery .gallery__big { grid-column: auto; }
  .gallery figure { aspect-ratio: auto; }
  .contact { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .map { min-height: 100%; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__bottom { padding-bottom: 20px; }
  .mobile-bar { display: none; }
  .wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
  .wa-float:hover { transform: scale(1.06); }
  .wa-float .icon { width: 30px; height: 30px; }
  .article { grid-template-columns: 1fr 320px; gap: 56px; }
  .aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ===== Páginas ampliadas y blog ===================================== */
.cta-box { display: grid; gap: 14px; align-items: center; margin-top: 32px; padding: 22px; border-radius: var(--r-lg); background: var(--navy-deep); color: #fff; }
.cta-box strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.cta-box span { display: block; margin-top: 4px; font-size: .92rem; color: rgba(255, 255, 255, .75); }
.post-links { margin-top: 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.post-links a { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy); }
.post-links a:hover span { text-decoration: underline; }
.post-links .icon { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
.posts { display: grid; gap: 24px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.post-card__meta { font-size: .82rem; color: var(--muted); }
.post-card h2 { margin-top: 8px; font-size: 1.2rem; line-height: 1.3; }
.post-card h2 a:hover { color: var(--navy); }
.post-card__body > p:not(.post-card__meta) { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.post-card .link-arrow { margin-top: auto; padding-top: 16px; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.post-meta img { width: 34px; height: 34px; flex-shrink: 0; padding: 3px; border-radius: 50%; background: #fff; }
.post-meta strong { color: #fff; }
.article .post__photo { margin-top: 0; aspect-ratio: 16 / 10; }
.post__intro { font-size: 1.06rem; }
.post h3 { margin-top: 24px; font-size: 1.1rem; }
.post ul, .post ol { margin-top: 12px; padding-left: 22px; display: grid; gap: 8px; color: #3a4558; }
.post ul.checks { padding-left: 0; }
.post a:not(.btn) { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post .chips a, .post .post-links a { text-decoration: none; }
.toc { margin-top: 28px; padding: 20px 22px; border-radius: var(--r); background: var(--mist); border: 1px solid var(--line); }
.toc strong { font-family: var(--font-head); color: var(--navy-ink); }
.toc ol { margin-top: 10px; gap: 6px; font-size: .95rem; }
.when-box { margin-top: 44px; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); border-left: 4px solid var(--navy); background: var(--sky-soft); }
.when-box h2 { margin-top: 0 !important; }
.when-box .btn { margin-top: 20px; }
.author { display: flex; gap: 16px; align-items: center; margin-top: 40px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); }
.author img { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: center 15%; }
.author strong { display: block; font-family: var(--font-head); color: var(--navy-ink); }
.author span { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); }
.post__note { font-size: .85rem; font-style: italic; }
[id] { scroll-margin-top: 90px; }
@media (min-width: 640px) { .posts { grid-template-columns: 1fr 1fr; } .cta-box { grid-template-columns: 1fr auto; padding: 24px 28px; } }
@media (min-width: 1024px) { .posts { grid-template-columns: repeat(3, 1fr); } }

/* Firma de revisión médica ------------------------------------------- */
.reviewed { display: flex; gap: 14px; align-items: flex-start; margin-top: 36px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--mist); }
.reviewed__icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; }
.reviewed__icon .icon { width: 18px; height: 18px; }
.reviewed strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--navy-ink); }
.reviewed strong a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.reviewed span:not(.reviewed__icon) { display: block; margin-top: 2px; font-size: .86rem; color: var(--muted); }

/* Aviso de publicidad COFEPRIS: muy discreto ------------------------- */
.footer__bottom .cofepris { margin-top: 4px; font-size: .62rem; color: rgba(255, 255, 255, .35); letter-spacing: .01em; }
.cofepris--page { margin-top: 36px !important; font-size: .62rem !important; color: #9aa3b2 !important; text-align: center; }

/* Encabezado de redes sociales en el pie ----------------------------- */
.footer__follow { max-width: 520px; margin: 0 auto; padding-top: 48px; text-align: center; }
.footer__follow h2 { font-size: 1.35rem; color: #fff; }
.footer__follow p { margin-top: 8px; font-size: .95rem; color: rgba(255, 255, 255, .7); }
.footer__follow + .footer__social { padding-top: 22px; }
