/* Oral Vitalis — hoja de estilos compartida
   Colores tomados del logo: azul #174D7B y naranja #F5811E. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #0f2f4c;        /* azul profundo: títulos, pie */
  --blue: #174d7b;       /* azul del logo: enlaces, estructura */
  --orange: #f5811e;     /* naranja del logo: acento y botón principal */
  --orange-dark: #a04f07;/* naranja para texto sobre blanco (contraste AA) */
  --mist: #eef3f7;       /* fondo claro de secciones */
  --line: #d3dde6;
  --text: #1c2a35;
  --muted: #4b5b69;
  --paper: #ffffff;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-weight: 800; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--mist { background: var(--mist); }
.lead { font-size: 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--wa { background: var(--orange); color: var(--ink); }
.btn--wa:hover { background: #ff9638; color: var(--ink); }
.btn--line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--line:hover { background: var(--blue); color: #fff; }
.btn--small { min-height: 42px; padding: .5em 1em; font-size: .98rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.header-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; }

@media (max-width: 1020px) {
  .header-cta .btn--line { display: none; }
}
@media (max-width: 880px) {
  .header-inner { min-height: 64px; gap: 10px; }
  .brand img { height: 44px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    min-height: 44px; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .header-cta .btn--wa span { display: none; }
  .header-cta .btn--wa { width: 44px; min-height: 44px; padding: 0; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--mist); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
  html:not(.js) .nav { display: block; position: static; }
}

/* ---------- Portada ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.4em; }
.hero-media { position: relative; }
.hero-frame { position: relative; z-index: 1; border-radius: var(--radius) var(--radius) var(--radius) 120px; overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* La curva naranja del logo, una sola vez en la web */
.swoosh { position: absolute; left: 10%; bottom: -40px; width: 115%; height: auto; z-index: 0; pointer-events: none; overflow: visible; }
.swoosh path { fill: none; stroke: var(--orange); stroke-width: 26; stroke-linecap: round; }

.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 32px; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font-weight: 700; color: var(--ink); font-size: .98rem; }
.facts dd { margin: 0; color: var(--muted); font-size: 1rem; }
.facts a { color: var(--muted); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-bottom: 18px; }
  .hero-frame { border-radius: var(--radius) var(--radius) var(--radius) 64px; }
  .hero-media img { aspect-ratio: 16 / 9; }
  .swoosh { bottom: -26px; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 420px) {
  .hero .actions .btn { width: 100%; }
}

/* ---------- Cabecera de páginas interiores ---------- */
.page-head { padding-block: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .95rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); }

/* ---------- Tratamientos ---------- */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 28px; }
.head-row p { margin: 0; }
.treatments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 5vw, 64px); }
.treatments li { border-top: 1px solid var(--line); padding: 22px 0 24px; }
.treatments h3 { margin-bottom: .3em; }
.treatments h3 a { color: var(--ink); text-decoration: none; }
.treatments h3 a:hover { color: var(--blue); text-decoration: underline; }
.treatments p { margin: 0; color: var(--muted); }
.treatments .more { display: inline-block; margin-top: 8px; font-weight: 700; }
@media (max-width: 720px) { .treatments { grid-template-columns: 1fr; } }
.note { margin-top: 24px; padding: 16px 20px; background: var(--mist); border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; }
.section--mist .note { background: #fff; }

/* ---------- Equipo ---------- */
.team-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.person-main { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.person-main img, .person-small img { border-radius: var(--radius); background: var(--mist); }
.person-small-list { display: grid; gap: 20px; }
.person-small { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.person-small h3 { margin-bottom: .15em; font-size: 1.1rem; }
.person-small p, .person-main p { margin-bottom: .5em; }
.role { color: var(--orange-dark); font-weight: 700; margin-bottom: .4em; }
@media (max-width: 880px) { .team-teaser { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .person-main { grid-template-columns: 1fr; } .person-main img { max-width: 260px; } }

.bio { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); padding-block: 40px; border-top: 1px solid var(--line); }
.bio:first-of-type { border-top: 0; padding-top: 0; }
.bio img { border-radius: var(--radius); }
.bio h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: .2em; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } .bio img { max-width: 300px; } }

details.cv { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
details.cv summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--blue); min-height: 48px; display: flex; align-items: center; }
details.cv[open] summary { border-bottom: 1px solid var(--line); }
details.cv ul { margin: 0; padding: 14px 18px 16px 34px; }
details.cv li { margin-bottom: .35em; }

/* ---------- Galerías ---------- */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mosaic { grid-template-columns: 1fr; } .mosaic figure:first-child { grid-row: auto; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { font-size: 1rem; color: var(--muted); padding-top: 8px; }

.cases { display: grid; gap: 32px; }
.cases img { border-radius: 10px; background: #111; }

/* ---------- Pasos para pedir cita ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; padding-top: 16px; border-top: 3px solid var(--blue); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bloques de contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 1.35rem; }
.panel p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { font-weight: 700; color: var(--ink); padding-right: 16px; }
.big-tel { font-size: 1.35rem; font-weight: 700; }

.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.cta-band p { margin: 0; color: #d6e2ec; }
.cta-band .btn--line { border-color: #fff; color: #fff; }
.cta-band .btn--line:hover { background: #fff; color: var(--ink); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { max-width: 68ch; }
.prose li { margin-bottom: .4em; }
.treat-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.treat-layout figure img { border-radius: var(--radius); }
@media (max-width: 880px) { .treat-layout { grid-template-columns: 1fr; } }
.related { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; }
.related a:hover { border-color: var(--blue); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #d6e2ec; padding-block: 56px 28px; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45em; }
.footer-grid address { font-style: normal; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #b9c9d6; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 96px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--ink);
  box-shadow: 0 6px 18px rgba(15, 47, 76, .28);
  transition: opacity .2s, transform .2s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { color: var(--ink); background: #ff9638; }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .wa-float, .swoosh { display: none; } }
.h-small { font-size: 1.15rem; margin-top: 32px; }
.treat-layout figure img { width: 100%; max-height: 460px; object-fit: cover; }


/* =====================================================================
   v2 · Movimiento, línea naranja bajo las fotos, mapa y contacto
   ===================================================================== */

/* Foto con la línea naranja del logo debajo */
.ph { position: relative; padding-bottom: 22px; }
.ph-frame { position: relative; z-index: 1; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.ph-frame img { width: 100%; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.ph:hover .ph-frame img { transform: scale(1.045); }
.ph-line { position: absolute; z-index: 0; left: -3%; bottom: 0; width: 106%; height: 46px; overflow: visible; }
.ph--flip .ph-line { transform: scaleX(-1); }
.ph-line path { fill: none; stroke: var(--orange); stroke-width: 13; stroke-linecap: round; }
.gallery .ph-frame img, .strip .ph-frame img { aspect-ratio: 3 / 2; object-fit: cover; }
.bio .ph-frame img, .person-card .ph-frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.treat-layout .ph-frame img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 0; }
.bio img, .gallery img { border-radius: 0; }

/* Dibujo de líneas: estado inicial solo si hay JS y no se pide movimiento reducido */
.js .ph-line path, .js .swoosh path, .js .contact-hero-line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-in .ph-line path, .js .is-in.ph .ph-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.65,0,.35,1) .25s; }
.js .hero-media .swoosh path { animation: draw 1.6s cubic-bezier(.65,0,.35,1) .5s forwards; }
.js .contact-hero-line path { animation: draw 2.2s cubic-bezier(.65,0,.35,1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Aparición al hacer scroll */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }

/* Entrada de la portada */
.js .hero-text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-text > :nth-child(2) { animation-delay: .1s; }
.js .hero-text > :nth-child(3) { animation-delay: .2s; }
.js .hero-text > :nth-child(4) { animation-delay: .3s; }
.js .hero-text > :nth-child(5) { animation-delay: .4s; }
.js .hero-frame { animation: unveil 1.1s cubic-bezier(.65,0,.35,1) .15s both; }
.js .hero-frame img { animation: settle 1.8s cubic-bezier(.2,.7,.2,1) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Cabecera compacta al desplazarse */
.site-header { transition: box-shadow .3s, min-height .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 47, 76, .10); }
.header-inner, .brand img { transition: min-height .3s, height .3s; }
.site-header.is-scrolled .header-inner { min-height: 62px; }
.site-header.is-scrolled .brand img { height: 42px; }

/* Interacciones */
.btn { transition: background-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--wa:hover { box-shadow: 0 8px 20px rgba(245, 129, 30, .35); }
.btn--pulse { position: relative; }
.btn--pulse::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(245, 129, 30, .55); animation: pulse 2.6s ease-out 1.5s infinite; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 129, 30, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(245, 129, 30, 0); } }
.treatments li { position: relative; transition: background-color .25s; }
.treatments li::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--orange); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.treatments li:hover::after, .treatments li:focus-within::after { width: 100%; }
.wa-float { animation: pulse 2.8s ease-out 3s infinite; }
.related a { transition: border-color .2s, background-color .2s, transform .2s; }
.related a:hover { transform: translateY(-2px); background: #fff; }

/* Equipo en la portada: dos protagonistas */
.team-duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 64px); }
.person-card { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 24px; align-items: start; }
.person-card h3 { font-size: 1.35rem; margin-bottom: .2em; }
.person-card p { margin-bottom: .6em; }
@media (max-width: 1100px) { .team-duo { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .person-card { grid-template-columns: 1fr; } .person-card .ph { max-width: 280px; } }
.bio { grid-template-columns: 340px 1fr; }
.bio.bio--rev { grid-template-columns: 1fr 340px; }
.bio--rev > .ph { order: 2; }
@media (max-width: 760px) { .bio, .bio.bio--rev { grid-template-columns: 1fr; } .bio--rev > .ph { order: 0; } .bio .ph { max-width: 320px; } }

/* Tira de fotos de la clínica (desliza en móvil, sin movimiento automático) */
.strip { list-style: none; margin: 0; padding: 4px 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; overscroll-behavior-x: contain; }
  .strip li { scroll-snap-align: start; }
}

/* Estado de apertura en tiempo real */
.open-status { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 8px 14px; border-radius: 999px; background: var(--mist); font-weight: 700; color: var(--ink); font-size: 1rem; }
.open-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #8a99a6; flex: none; }
.open-status.is-open .dot { background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .6); animation: blink 2s ease-out infinite; }
@keyframes blink { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(31, 157, 85, 0); } }
.site-footer .open-status { background: rgba(255,255,255,.08); color: #fff; margin-top: 10px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 700; }
.hours tr.is-today { background: linear-gradient(90deg, rgba(245,129,30,.14), transparent); }
.hours tr.is-today th { padding-left: 10px; box-shadow: inset 4px 0 0 var(--orange); }

/* Mapa de Google (se carga con consentimiento) */
.map { position: relative; border-radius: var(--radius); overflow: hidden; background: #e6eef4; min-height: 260px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map--tall { min-height: 460px; }
.map--wide { min-height: 360px; }
.map--footer { min-height: 230px; border-radius: 12px; }
.map-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(245,129,30,.18), transparent 38%),
    linear-gradient(90deg, rgba(23,77,123,.07) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(rgba(23,77,123,.07) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(160deg, #eef3f7, #dfe8ef);
  color: var(--ink);
}
.map-ph::before { content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 14px; background: rgba(255,255,255,.9); transform: rotate(-8deg); }
.map-ph::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 63%; width: 10px; background: rgba(255,255,255,.9); transform: rotate(14deg); }
.map-ph > * { position: relative; z-index: 1; }
.map-pin { width: 44px; height: 44px; color: var(--orange); filter: drop-shadow(0 4px 6px rgba(15,47,76,.25)); animation: bob 2.4s ease-in-out infinite; }
.map-pin svg { width: 100%; height: 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.map-addr { margin: 0; font-size: 1rem; }
.map-note { margin: 0; font-size: .85rem; color: var(--muted); max-width: 34ch; }
.map-note a { color: var(--blue); }
.map.is-loaded .map-ph { display: none; }
.map--footer .map-addr { display: none; }
.site-footer .map-note a { color: var(--blue); }

.footer-grid { grid-template-columns: 1.1fr 1fr .9fr 1.3fr; }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: auto; } .footer-map { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Contacto */
.contact-hero { position: relative; overflow: hidden; background: var(--ink); color: #e3ecf3; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 88px); }
.contact-hero h1 { color: #fff; }
.contact-hero .lead { color: #c9d8e4; }
.contact-hero .breadcrumb a, .contact-hero .breadcrumb ol { color: #b9c9d6; }
.contact-hero .open-status { background: rgba(255,255,255,.1); color: #fff; margin-bottom: 8px; }
.contact-hero-line { position: absolute; left: 0; bottom: 0; width: 100%; height: 160px; pointer-events: none; opacity: .9; }
.contact-hero-line path { fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round; }
.contact-hero .wrap { position: relative; z-index: 1; }
.contact-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 900px) { .contact-actions { grid-template-columns: 1fr; } }
.tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; text-decoration: none; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: transform .25s, background-color .25s, box-shadow .25s; }
.tile:hover { color: #fff; transform: translateY(-4px); background: rgba(255,255,255,.12); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.tile-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); flex: none; transition: transform .35s; }
.tile:hover .tile-icon { transform: rotate(-12deg) scale(1.08); }
.tile-icon svg { width: 26px; height: 26px; }
.tile-title { display: block; font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.tile-sub { display: block; color: #b9c9d6; font-size: .95rem; }
.tile--wa { background: var(--orange); border-color: var(--orange); color: var(--ink); position: relative; }
.tile--wa:hover { background: #ff9638; color: var(--ink); }
.tile--wa .tile-sub { color: #3a2a12; }
.tile--wa .tile-icon { background: rgba(15,47,76,.12); }
.tile--wa::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: pulse 2.6s ease-out 1.2s infinite; pointer-events: none; }
.contact-small { color: #b9c9d6; font-size: .95rem; margin-top: 14px; }
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-side .panel { padding: 20px 22px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .map--tall { min-height: 340px; } }
.panel { transition: transform .25s, box-shadow .25s; }
.panel:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,47,76,.08); }
.btn svg + span, .btn span + svg { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .js .ph-line path, .js .swoosh path, .js .contact-hero-line path { stroke-dashoffset: 0; }
  .js .hero-frame, .js .hero-frame img, .js .hero-text > * { animation: none; }
  .ph:hover .ph-frame img, .btn:hover, .tile:hover, .panel:hover { transform: none; }
}


/* =====================================================================
   v3 · Logo rectangular, línea encima de las fotos, slider, iconos
   ===================================================================== */

/* Logo de cabecera más grande (proporción 3,7:1, transparente) */
.brand img { height: 56px; width: auto; }
.header-inner { min-height: 84px; }
.site-header.is-scrolled .header-inner { min-height: 66px; }
.site-header.is-scrolled .brand img { height: 46px; }
@media (max-width: 1180px) { .nav a { padding: 10px 9px; } .header-inner { gap: 14px; } }
@media (max-width: 880px) {
  .header-inner { min-height: 68px; }
  .brand img { height: 40px; }
  .site-header.is-scrolled .brand img { height: 36px; }
}
@media (max-width: 380px) { .brand img { height: 34px; } .menu-toggle span { display: none; } .menu-toggle { padding: 0 10px; } }

/* Línea naranja ENCIMA de cada foto (antes iba debajo) */
.ph { padding-bottom: 0; padding-top: 20px; }
.ph-line { top: 0; bottom: auto; z-index: 2; height: 44px; }
.ph--flip .ph-line { transform: scaleX(-1); }

/* La curva grande de la portada también pasa por encima */
.hero-media .swoosh { top: -34px; bottom: auto; left: 8%; width: 108%; z-index: 3; }
@media (max-width: 880px) { .hero-media { margin-top: 18px; } .hero-media .swoosh { top: -22px; } }

/* ---------- Slider de instalaciones ---------- */
.slider { position: relative; width: 100%; height: 100%; }
.hero-frame .slider, .split-media .slider { aspect-ratio: 3 / 2; }
@media (max-width: 880px) { .hero-frame .slider { aspect-ratio: 16 / 9; } }
.slides { position: absolute; inset: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 5.5s ease-out; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-active img { transform: scale(1); }
.hero-media .slide img { aspect-ratio: auto; }
.slide .cap {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(15, 47, 76, .78); color: #fff; font-size: .9rem; font-weight: 700;
}
.slider-ui { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; }
.s-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 8px rgba(15,47,76,.2); transition: transform .2s, background-color .2s;
}
.s-btn:hover { transform: scale(1.08); background: #fff; }
.s-btn svg { width: 18px; height: 18px; }
.s-pause .i-play { display: none; }
.slider.is-paused .s-pause .i-play { display: block; }
.slider.is-paused .s-pause .i-pause { display: none; }
.dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: -34px; display: flex; gap: 2px; }
.split-media .dots, .hero-frame .dots { display: none; }
.dot { width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(15,47,76,.35); transition: background-color .2s, transform .2s; }
.dot.is-active::before { background: var(--orange); transform: scale(1.25); }
html:not(.js) .slider-ui { display: none; }
@media (max-width: 520px) { .slide .cap { font-size: .8rem; left: 10px; bottom: 10px; } .s-btn { width: 36px; height: 36px; } }

/* La clínica: slider protagonista */
.split--media { grid-template-columns: 1.45fr 1fr; }
.split-media { position: relative; border-radius: var(--radius) var(--radius) var(--radius) 120px; overflow: hidden; }
@media (max-width: 880px) { .split--media { grid-template-columns: 1fr; } .split-media { border-radius: var(--radius) var(--radius) var(--radius) 64px; } }

/* ---------- Iconos de tratamientos ---------- */
.treatments li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.t-ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: 0 4px 14px rgba(15,47,76,.08); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.section:not(.section--mist) .t-ico { background: var(--mist); box-shadow: none; }
.t-ico svg { width: 44px; height: 44px; }
.t-ico .ac { stroke: var(--orange); }
.treatments li:hover .t-ico { transform: translateY(-3px) rotate(-4deg); }
/* Logopedia centrada en la última fila */
.treatments li.t-last:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: min(100%, calc(50% - clamp(12px, 2.5vw, 32px))); }
@media (max-width: 720px) {
  .treatments li { grid-template-columns: 56px 1fr; gap: 14px; }
  .t-ico { width: 56px; height: 56px; border-radius: 16px; }
  .t-ico svg { width: 36px; height: 36px; }
  .treatments li.t-last:nth-child(odd) { width: 100%; justify-self: stretch; }
}
.treat-ico { margin-bottom: 18px; }
.treat-ico .t-ico { width: 84px; height: 84px; background: var(--mist); box-shadow: none; }
.treat-ico .t-ico svg { width: 52px; height: 52px; }

/* ---------- Equipo: nombre de Michelle en una línea en escritorio ---------- */
.person-card h3 { font-size: 1.25rem; letter-spacing: -.02em; }
@media (min-width: 1100px) { .person-card { grid-template-columns: 220px 1fr; gap: 22px; } }

/* ---------- Galería de La clínica: 4 + 3 centradas ---------- */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; }
.gallery li { flex: 0 0 calc((100% - 60px) / 4); }
@media (max-width: 1000px) { .gallery li { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .gallery li { flex-basis: 100%; } }

/* ---------- Casos clínicos: etiquetas Antes / Después ---------- */
.case-img { position: relative; border-radius: 10px; overflow: hidden; }
.case-img img { border-radius: 0; width: 100%; }
.tag { position: absolute; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff; background: rgba(15,47,76,.85); }
.tag--despues { background: var(--orange); color: var(--ink); }
.case--h .tag--a { left: 12px; top: 12px; } .case--h .tag--b { left: calc(50% + 12px); top: 12px; }
.case--v .tag--a { left: 12px; top: 12px; } .case--v .tag--b { left: 12px; top: calc(50% + 12px); }
.case figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.case figcaption strong { color: var(--ink); }
.pending { display: inline-block; padding: 2px 10px; border-radius: 6px; background: #fff3e6; color: var(--orange-dark); font-size: .9rem; border: 1px dashed var(--orange); }

/* ---------- Pie: dirección completa y «Cómo llegar» debajo ---------- */
.footer-logo img { height: 40px; }
.footer-dir { margin-top: 10px; }
.footer-dir a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.footer-dir svg { width: 18px; height: 18px; color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide img { transition: none; transform: none; }
  .treatments li:hover .t-ico { transform: none; }
}

/* v3 · ajustes tras revisión visual */
.site-header { background: #fff; }
.hero-media .swoosh path { stroke-width: 18; }
.hero-frame .slide .cap, .split-media .slide .cap { left: 100px; }
@media (max-width: 880px) { .hero-frame .slide .cap, .split-media .slide .cap { left: 52px; } }


/* v3 · Pie: logo grande centrado y mapa real del mismo tamaño */
.footer-grid { grid-template-columns: 1.15fr 1fr .95fr 1.15fr; align-items: start; }
.footer-logo { display: grid; place-items: center; width: 100%; height: 170px; padding: 20px; margin-bottom: 18px; border-radius: 14px; background: #fff; }
.footer-logo img { height: auto; width: 100%; max-width: 250px; }
.footer-map .map--footer { height: 170px; min-height: 0; border-radius: 14px; background: #dfe8ef; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map--tall { height: 460px; } .map--wide { height: 380px; }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-map { grid-column: auto; } }
@media (max-width: 900px) { .map--tall { height: 340px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-logo, .footer-map .map--footer { height: 150px; } }

/* v3.1 · Ajustes de móvil */
.site-footer li a, .facts a, .footer-dir a { display: inline-block; padding: 6px 0; }
.site-footer li { margin-bottom: 0; }
.facts dd { line-height: 1.5; }
@media (max-width: 760px) {
  .contact-hero { padding-bottom: 96px; }
  .contact-hero-line { height: 70px; }
  .contact-small { position: relative; z-index: 1; }
  .wa-float { width: 52px; height: 52px; right: 12px; bottom: 12px; }
  .wa-float.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }
}

/* v3.2 · Dirección del pie en una línea bajo las cuatro columnas */
.footer-address { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); max-width: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; text-align: center; color: #e3ecf3; }
.footer-address svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.footer-address a { font-weight: 700; display: inline-block; padding: 6px 0; }
.footer-bottom { margin-top: 16px; }
.footer-logo { margin-bottom: 0; }
.site-footer .open-status { font-size: .88rem; padding: 7px 12px; }

/* v3.3 · Contacto: imagen difuminada bajo el azul translúcido */
.contact-hero {
  background-color: var(--ink);
  background-image: linear-gradient(115deg, rgba(15,47,76,.92) 0%, rgba(15,47,76,.84) 45%, rgba(15,47,76,.72) 100%), url("../img/contacto-fondo-1600.webp");
  background-size: cover; background-position: center 35%;
}
@media (max-width: 760px) {
  .contact-hero { background-image: linear-gradient(180deg, rgba(15,47,76,.9), rgba(15,47,76,.86)), url("../img/contacto-fondo-800.webp"); }
}
.contact-hero .tile:not(.tile--wa) { background: rgba(15,47,76,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* v3.4 · Imagen de fondo de Contacto más visible */
.contact-hero {
  background-image: linear-gradient(100deg, rgba(15,47,76,.86) 0%, rgba(15,47,76,.66) 42%, rgba(15,47,76,.30) 100%), url("../img/contacto-fondo-1600.webp");
  background-position: center 40%;
}
.contact-hero h1, .contact-hero .lead, .contact-hero .contact-small, .contact-hero .breadcrumb { text-shadow: 0 1px 12px rgba(10,30,50,.55); }
@media (max-width: 760px) {
  .contact-hero { background-image: linear-gradient(180deg, rgba(15,47,76,.78), rgba(15,47,76,.62)), url("../img/contacto-fondo-800.webp"); background-position: 60% center; }
}

/* =====================================================================
   PROPUESTA · Portada con cabecera a todo lo ancho (hero2)
   Fotos de la clínica de fondo + azul translúcido + raya naranja animada
   ===================================================================== */
.hero2 { position: relative; overflow: hidden; color: #fff; min-height: clamp(580px, 82vh, 780px); display: flex; align-items: stretch; background: var(--ink); }
.hero2-bg { position: absolute; inset: 0; }
.hero2-bg .slider { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.hero2-bg .slide img { transform: scale(1.12); transition: transform 7s ease-out; }
.hero2-bg .slide.is-active img { transform: scale(1.02); }
.hero2-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(15,47,76,.92) 0%, rgba(15,47,76,.78) 38%, rgba(15,47,76,.38) 72%, rgba(15,47,76,.25) 100%),
              linear-gradient(0deg, rgba(15,47,76,.65) 0%, rgba(15,47,76,0) 35%); }
.hero2-line { position: absolute; left: 0; bottom: 0; width: 100%; height: 190px; z-index: 2; pointer-events: none; }
.hero2-line path { fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round; }
.js .hero2-line path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.65,0,.35,1) .4s forwards; }
.hero2-inner { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding-block: clamp(48px, 8vh, 96px) clamp(110px, 14vh, 150px); }
.hero2-text { max-width: 640px; }
.hero2 h1 { color: #fff; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem); margin-bottom: .3em; text-shadow: 0 2px 18px rgba(10,30,50,.45); }
.hero2 .lead { color: #dbe6ef; margin-bottom: 1.4em; text-shadow: 0 1px 12px rgba(10,30,50,.5); }
.hero2 .open-status { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.hero2-facts { margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; padding: 16px 22px; border-radius: 16px; max-width: max-content;
  background: rgba(15,47,76,.55); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero2-facts dt { font-weight: 700; font-size: .85rem; color: #ffb36b; }
.hero2-facts dd { margin: 0; font-size: 1rem; color: #fff; }
.hero2-facts a { color: #fff; }
/* controles y rótulo del pase de fotos, abajo a la derecha */
.hero2 .slider-ui { z-index: 4; right: max(16px, calc((100vw - var(--wrap)) / 2)); bottom: 96px; }
.hero2 .slide .cap { z-index: 4; left: auto; right: max(16px, calc((100vw - var(--wrap)) / 2)); bottom: 146px; }
/* entrada */
.js .hero2-text > *, .js .hero2-facts { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero2-text > :nth-child(2) { animation-delay: .12s; }
.js .hero2-text > :nth-child(3) { animation-delay: .24s; }
.js .hero2-text > :nth-child(4) { animation-delay: .36s; }
.js .hero2-facts { animation-delay: .5s; }
@media (max-width: 900px) {
  .hero2 { min-height: 0; }
  .hero2-shade { background: linear-gradient(180deg, rgba(15,47,76,.80) 0%, rgba(15,47,76,.70) 55%, rgba(15,47,76,.90) 100%); }
  .hero2-inner { padding-block: 40px 120px; gap: 26px; }
  .hero2-facts { grid-template-columns: 1fr; max-width: none; }
  .hero2 .slider-ui { right: 16px; bottom: 74px; }
  .hero2 .slide .cap { display: none; }
  .hero2-line { height: 90px; }
}
@media (max-width: 420px) { .hero2 .actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero2-bg .slide img { transform: none; transition: none; } }
.hero2 .slide .cap { bottom: auto; top: 22px; }
@media (min-width: 901px) { .hero2-facts { max-width: calc(100% - 200px); } }
/* Portada: «La clínica» queda como franja compacta (sus fotos ya están en la cabecera) */
.section:has(#t-clinica) { padding-block: clamp(32px, 4vw, 48px); }
.section:has(#t-clinica) .head-row { margin-bottom: 0; }

/* =====================================================================
   Comparador antes / después (casos clínicos)
   Variables: --ba-radius, --ba-line (grosor de la barra), --ba-knob (círculo)
   ===================================================================== */
.ba { --pos: 0%; --ba-radius: 14px; --ba-line: 2px; --ba-knob: 46px;
  position: relative; overflow: hidden; border-radius: var(--ba-radius); background: #0b1620;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; isolation: isolate; }
.ba img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); will-change: clip-path; }
.ba-after img { width: 100%; height: 100%; object-fit: cover; }
.ba-bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: var(--ba-line); margin-left: calc(var(--ba-line) / -2);
  background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.35); pointer-events: none; z-index: 2; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: var(--ba-knob); height: var(--ba-knob); transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: transform .2s; }
.ba-knob svg { width: 26px; height: 26px; }
.ba.is-drag .ba-knob, .ba:hover .ba-knob { transform: translate(-50%, -50%) scale(1.08); }
.ba-tag { position: absolute; top: 14px; z-index: 3; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .35s; pointer-events: none; }
.ba-tag--a { right: 14px; background: rgba(15,47,76,.82); color: #fff; }
.ba-tag--d { left: 14px; background: var(--orange); color: var(--ink); }
.ba.show-a .ba-tag--a, .ba.show-d .ba-tag--d { opacity: 1; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.cases-ba { display: grid; gap: 48px; }
.case-ba { margin: 0; }
.case-ba .ba { margin-inline: auto; }
.case-ba--narrow .ba { max-width: 640px; }
.case-ba figcaption { max-width: 640px; margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.case-ba--wide figcaption { max-width: none; }
.case-ba figcaption strong { color: var(--ink); font-size: 1.1rem; }
.case-hint { color: var(--muted); font-size: .95rem; text-align: center; margin: 0 auto 28px; }
@media (max-width: 560px) { .ba { --ba-knob: 40px; } .ba-tag { top: 10px; font-size: .7rem; padding: 4px 9px; } .ba-tag--a { right: 10px; } .ba-tag--d { left: 10px; } }
@media (prefers-reduced-motion: reduce) { .ba-tag, .ba-knob { transition: none; } }
/* Etiquetas Antes / Después más grandes */
.ba-tag { top: 18px; padding: 8px 18px; font-size: 1.05rem; letter-spacing: .06em; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ba-tag--a { right: 18px; } .ba-tag--d { left: 18px; }
@media (max-width: 560px) { .ba-tag { top: 10px; padding: 6px 12px; font-size: .85rem; } .ba-tag--a { right: 10px; } .ba-tag--d { left: 10px; } }
