/* =================================================================
   ATELIER DE ESTÉTICA DENTAL · Sistema de diseño
   Paleta: neutros cálidos + azul sereno + filete cálido discreto
   Tipografía: Playfair Display (titulares) + Inter (texto)
   Estructura pensada para portar a WordPress + WPBakery
   (cada .section = fila / .container = ancho de columna)
   ================================================================= */

/* ----- 1. Tokens de marca ---------------------------------------- */
:root {
  /* Neutros */
  --lino:        #F7F5F1;
  --marfil:      #FFFFFF;
  --arena:       #ECE6DD;
  --arena-soft:  #F1ECE4;
  --linea:       #E4DDD2;
  --linea-fuerte:#D8CFC1;

  /* Tinta */
  --grafito:     #232427;
  --topo:        #6B675F;
  --topo-soft:   #908A7E;

  /* Acento azul sereno */
  --azul:        #7E9BB6;
  --azul-soft:   #E7EEF4;
  --azul-prof:   #38566E;   /* interacción · contraste AA sobre blanco */
  --azul-prof-h: #2B4459;   /* hover */

  /* Filete cálido (toque "atelier", muy discreto) */
  --laton:       #C2A878;

  /* WhatsApp (CTA principal de contacto) */
  --wa:          #1FA855;
  --wa-h:        #178A44;

  /* Sistema */
  --radio:       16px;
  --radio-s:     10px;
  --radio-pill:  999px;
  --sombra:      0 1px 2px rgba(35,36,39,.04), 0 18px 40px -24px rgba(35,36,39,.18);
  --sombra-soft: 0 1px 2px rgba(35,36,39,.04), 0 10px 24px -18px rgba(35,36,39,.14);
  --ancho:       1180px;
  --ancho-prosa: 760px;
  --trans:       .35s cubic-bezier(.22,.61,.36,1);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ----- 2. Reset y base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--grafito);
  background: var(--lino);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-prof); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--azul-prof-h); }
ul { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--azul-prof); color: #fff;
  padding: 10px 18px; border-radius: var(--radio-s); z-index: 200;
  transition: top var(--trans);
}
.skip-link:focus { top: 16px; color: #fff; }
.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;
}

/* ----- 3. Tipografía -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--grafito);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; color: var(--grafito); }
p.lead { font-size: 1.2rem; color: var(--topo); line-height: 1.7; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--azul-prof);
  display: inline-block;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 26px; height: 1px; background: var(--laton);
  vertical-align: middle; margin-right: 12px;
}

.serif-accent { font-family: var(--serif); font-style: italic; color: var(--azul-prof); }

/* ----- 4. Layout ------------------------------------------------- */
.container { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--arena { background: var(--arena); }
.section--soft  { background: var(--arena-soft); }
.section--blue  { background: var(--azul-soft); }
.section--ink   { background: var(--grafito); color: #ECEAE5; }
.section--ink h1,.section--ink h2,.section--ink h3 { color: #fff; }
.section--ink p { color: #C9C6BF; }
.section--ink .stat b { color: #fff; }
.section--ink .stat span { color: #C9C6BF; }
.section--ink .eyebrow { color: #A9C2D6; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

/* ----- 5. Botones ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-size: .98rem; font-weight: 500;
  padding: .85em 1.6em; border-radius: var(--radio-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans);
  text-align: center; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--azul-prof); color: #fff; }
.btn--primary:hover { background: var(--azul-prof-h); color: #fff; }
.btn--ghost { background: transparent; color: var(--grafito); border-color: var(--linea-fuerte); }
.btn--ghost:hover { border-color: var(--azul-prof); color: var(--azul-prof); }
.btn--light { background: #fff; color: var(--azul-prof); }
.btn--light:hover { background: #fff; color: var(--azul-prof-h); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-h); color: #fff; }
.btn .ti { font-size: 1.15em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; }
.link-arrow .ti { transition: transform var(--trans); }
.link-arrow:hover .ti { transform: translateX(4px); }

/* ----- 6. Header / navegación ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,241,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans), background var(--trans), padding var(--trans);
}
.site-header.is-scrolled { border-bottom-color: var(--linea); background: rgba(247,245,241,.94); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 18px; transition: padding var(--trans);
}
.is-scrolled .nav { padding-block: 12px; }

.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .01em; color: var(--grafito); }
.brand span { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--topo); margin-top: 4px; }
.brand-logo { height: 52px; width: auto; display: block; transition: height var(--trans); }
.is-scrolled .brand-logo { height: 44px; }
@media (max-width: 560px) { .brand-logo { height: 42px; } }

.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a {
  font-size: .96rem; color: var(--grafito); position: relative; padding: 4px 0; font-weight: 400;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--azul-prof); transition: width var(--trans);
}
.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after { width: 100%; }
.nav-menu a[aria-current="page"] { color: var(--azul-prof); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  color: var(--grafito); font-size: 1.6rem;
}

/* ----- 7. Hero --------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero__inner > div { max-width: 560px; }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 24%, #000 62%);
          mask-image: linear-gradient(to right, transparent 0%, transparent 24%, #000 62%);
}
@media (max-width: 980px) { .hero__media { width: 66%; } }
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; }
  .hero__media { position: static; width: 100%; }
  .hero__media img {
    height: auto; aspect-ratio: 16/10; border-radius: var(--radio); box-shadow: var(--sombra);
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__inner { padding-block: clamp(2.2rem, 7vw, 3.4rem); }
  .hero__inner > div { max-width: none; }
}

/* ----- 8. Tarjetas genéricas ------------------------------------ */
.card {
  background: var(--marfil); border: 1px solid var(--linea);
  border-radius: var(--radio); padding: 30px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-soft); border-color: var(--linea-fuerte); }
.card .ti-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--azul-soft); color: var(--azul-prof); font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--topo); margin-bottom: 0; font-size: .98rem; }

/* ----- 9. Tarjetas de tratamiento ------------------------------- */
.treat-card {
  background: var(--marfil); border: 1px solid var(--linea);
  border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.treat-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-soft); border-color: var(--linea-fuerte); }
.treat-card__media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.treat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--trans); }
.treat-card:hover .treat-card__media img { transform: scale(1.05); }
.treat-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.treat-card__tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-prof); margin-bottom: 10px; }
.treat-card h3 { font-size: 1.35rem; margin-bottom: .4em; }
.treat-card p { color: var(--topo); font-size: .95rem; flex: 1; }
.treat-card .link-arrow { margin-top: 14px; }

/* ----- 10. Equipo / fichas de doctor ---------------------------- */
.doctor {
  background: var(--marfil); border: 1px solid var(--linea); border-radius: var(--radio);
  overflow: hidden; display: grid; grid-template-columns: 248px 1fr; align-items: start;
}
.doctor__media { position: relative; aspect-ratio: 1 / 1; background: var(--arena); }
.doctor__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doctor__body { padding: 34px 36px; }
.doctor__role { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-prof); margin-bottom: 12px; }
.doctor__body h3 { font-size: 1.7rem; margin-bottom: .15em; }
.doctor__spec { color: var(--topo); font-style: italic; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 18px; }
.doctor__meta { list-style: none; border-top: 1px solid var(--linea); padding-top: 18px; margin-top: 18px; display: grid; gap: 8px; }
.doctor__meta li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--topo); }
.doctor__meta .ti { color: var(--laton); margin-top: 2px; }

/* ----- 11. Galería ---------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radio); overflow: hidden; background: var(--arena); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--trans); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-tall { grid-column: span 5; aspect-ratio: 3/4; }
.gallery .g-wide { grid-column: span 7; aspect-ratio: 16/11; }
.gallery .g-third { grid-column: span 4; aspect-ratio: 1/1; }

/* ----- 12. Testimonios ------------------------------------------ */
.quote { background: var(--marfil); border: 1px solid var(--linea); border-radius: var(--radio); padding: 34px 36px; }
.quote .stars { color: var(--laton); font-size: 1rem; margin-bottom: 14px; display: flex; gap: 3px; }
.quote blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--grafito); }
.quote figcaption { font-size: .92rem; color: var(--topo); display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--azul-soft); color: var(--azul-prof); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: .85rem; }

/* ----- 13. FAQ (details/summary nativo) ------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0; display: flex;
  justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--serif); font-size: 1.2rem; color: var(--grafito);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ti { color: var(--azul-prof); transition: transform var(--trans); flex: 0 0 auto; }
.faq details[open] summary .ti { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--topo); max-width: 70ch; }

/* ----- 14. CTA band --------------------------------------------- */
.cta-band { background: var(--grafito); color: #fff; border-radius: var(--radio); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9C6BF; max-width: 560px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.8rem; }

/* ----- 15. Formularios ------------------------------------------ */
.form-card { background: var(--marfil); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--sombra-soft); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 7px; color: var(--grafito); }
.field .req { color: var(--azul-prof); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--grafito);
  background: var(--lino); border: 1px solid var(--linea-fuerte); border-radius: var(--radio-s);
  padding: 13px 15px; transition: border-color var(--trans), box-shadow var(--trans);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azul-prof); box-shadow: 0 0 0 3px var(--azul-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--topo); }
.consent input { width: auto; margin-top: 4px; flex: 0 0 auto; }
.form-success {
  display: none; background: var(--azul-soft); border: 1px solid var(--azul);
  color: var(--azul-prof); border-radius: var(--radio-s); padding: 16px 18px; margin-bottom: 18px; font-size: .95rem;
}
.form-success.show { display: block; }
.form-error {
  display: none; background: #FBECEC; border: 1px solid #E0A3A3;
  color: #9A2C2C; border-radius: var(--radio-s); padding: 16px 18px; margin-bottom: 18px; font-size: .95rem;
}
.form-error.show { display: block; }

/* ----- 16. Info de contacto ------------------------------------- */
.info-list { list-style: none; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ti { color: var(--azul-prof); font-size: 1.4rem; margin-top: 2px; flex: 0 0 auto; }
.info-list b { display: block; font-weight: 500; margin-bottom: 2px; }
.info-list span, .info-list a { color: var(--topo); font-size: .96rem; }
.map-embed { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ----- 17. Breadcrumb / detalle tratamiento --------------------- */
.breadcrumb { font-size: .85rem; color: var(--topo); padding: 22px 0 0; }
.breadcrumb a { color: var(--topo); }
.breadcrumb a:hover { color: var(--azul-prof); }
.breadcrumb span { margin: 0 6px; color: var(--topo-soft); }

.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; background: var(--marfil); border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px 26px; }
.step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  font-family: var(--serif); font-size: 1.5rem; color: var(--azul-prof);
  width: 56px; height: 56px; border-radius: 50%; background: var(--azul-soft);
  display: flex; align-items: center; justify-content: center;
}
.step h4 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--topo); font-size: .96rem; }

.benefits { list-style: none; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits .ti { color: var(--azul-prof); margin-top: 3px; flex: 0 0 auto; }

/* ----- 18. Prosa legal ------------------------------------------ */
.prose { max-width: var(--ancho-prosa); margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--topo); }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .5rem; list-style: disc; }

/* ----- 19. Footer ----------------------------------------------- */
.site-footer { background: var(--grafito); color: #C9C6BF; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.site-footer a { color: #C9C6BF; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: #fff; display: block; }
.footer-brand span { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--topo-soft); }
.footer-brand p { color: #A8A49C; font-size: .92rem; margin-top: 16px; max-width: 30ch; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: .94rem; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.footer-social a:hover { background: rgba(255,255,255,.08); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--topo-soft); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ----- 20. WhatsApp flotante (CTA principal de contacto) -------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px -6px rgba(31,168,85,.55), var(--sombra); font-size: 1.85rem;
  transition: transform var(--trans), background var(--trans);
}
.wa-float:hover { background: var(--wa-h); color: #fff; transform: scale(1.07); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(31,168,85,.45); animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(31,168,85,.45); } 70%,100% { box-shadow: 0 0 0 16px rgba(31,168,85,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }
@media (max-width: 560px) { .wa-float { width: 52px; height: 52px; font-size: 1.6rem; right: 16px; bottom: 16px; } }

/* ----- 21. Cookie banner ---------------------------------------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  background: var(--marfil); border: 1px solid var(--linea); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: 20px 22px; max-width: 520px;
  display: none;
}
.cookie.show { display: block; }
.cookie p { font-size: .88rem; color: var(--topo); margin-bottom: 14px; }
.cookie .btn-row { gap: 10px; }
.cookie .btn { padding: .6em 1.2em; font-size: .88rem; }

/* ----- 22. Animaciones de aparición ----------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .treat-card, .treat-card__media img, .gallery img { transition: none; }
}

/* ----- 23. Utilidades ------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--topo); }
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 4.5rem); }
.stat b { font-family: var(--serif); font-size: 2.6rem; color: var(--azul-prof); display: block; line-height: 1; }
.stat span { color: var(--topo); font-size: .9rem; }
.divider { width: 48px; height: 2px; background: var(--laton); border: 0; margin: 0 0 1.4rem; }
.section-head.center .divider { margin-inline: auto; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--azul-soft); color: var(--azul-prof); font-size: .82rem; padding: 7px 14px; border-radius: var(--radio-pill); }

/* Placeholder de imagen (fallback cuando una foto no carga) */
.img-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: var(--arena); color: var(--topo); text-align: center; padding: 20px;
  width: 100%; height: 100%; min-height: 160px; font-size: .82rem;
}
.img-ph .ti { font-size: 2rem; color: var(--azul-prof); opacity: .65; }

/* ----- 24. Responsive ------------------------------------------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .doctor { grid-template-columns: 220px 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--lino); border-bottom: 1px solid var(--linea);
    padding: 8px 24px 20px; box-shadow: var(--sombra);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--trans), opacity var(--trans);
  }
  .site-header.nav-open .nav-menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu li { border-top: 1px solid var(--linea); }
  .nav-menu a { display: block; padding: 16px 0; }
  .nav-menu a::after { display: none; }
  .nav-actions .btn { display: none; }
  .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-tall, .gallery .g-wide, .gallery .g-third { grid-column: span 6; }
  .doctor { grid-template-columns: 1fr; }
  .doctor__media { min-height: 280px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero .btn-row, .cta-band .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn, .cta-band .btn-row .btn { width: 100%; justify-content: center; }
  .cookie { right: auto; max-width: calc(100% - 32px); }
  .gallery .g-tall, .gallery .g-wide, .gallery .g-third { grid-column: span 12; }
  .hero__badge { left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
