/* Agregados de la web pública (oct 2026): ilustraciones de línea, cifras, línea de tiempo del circuito, formación y
   trayectoria, sedes con mapa ilustrado, versión en inglés, pantalla de bienvenida, encabezado que se achica, textura
   en los fondos azules, herramientas de las preguntas frecuentes, calendario del mes y resúmenes fijos de la reserva.
   Todo respeta «reducir movimiento». Se carga después de ui.css. */

/* ---------------------------------------------------------------- ilustraciones de línea */
.illus { display: block; flex: none; color: var(--navy); }
.illus .il-sun { fill: var(--sun); stroke: none; opacity: .9; }
.action .illus { margin-bottom: 14px; }
.service .illus { width: 56px; height: 56px; margin-bottom: 14px; }
.pillar .illus { margin-bottom: 10px; }
.action::before, .pillar::before { content: none; }   /* los números 01/02/03 dejan lugar a las ilustraciones */
.service:hover .illus .il-sun, .action:hover .illus .il-sun { transform: scale(1.12); }
.illus .il-sun { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }

/* ---------------------------------------------------------------- cifras */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 22px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.3rem, 4.6vw, 3.4rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat strong span:first-child, .stat strong span:last-child { color: #b08900; }
.stat > span { display: block; margin: 10px auto 0; max-width: 22ch; color: var(--muted); font-size: .93rem; line-height: 1.4; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 12px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- línea de tiempo del circuito */
.ctl { position: relative; gap: 14px; }
.ctl small.t-when { display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9a7800; }
.ctl.animated::before, .ctl.animated::after { content: ""; position: absolute; left: 39px; top: 38px; bottom: 38px; width: 3px; border-radius: 3px; }
.ctl.animated::before { background: var(--line); }
.ctl.animated::after { background: linear-gradient(var(--sun-dark), var(--sun)); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.ctl li { position: relative; z-index: 1; }
.ctl.animated li { opacity: .55; transform: translateX(10px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.ctl.animated li.on { opacity: 1; transform: none; }
.ctl.animated li .n { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), box-shadow .4s; background: var(--line); color: var(--muted); }
.ctl.animated li.on .n { background: var(--sun); color: var(--navy); transform: scale(1.06); box-shadow: 0 0 0 6px rgba(252, 213, 42, .25); }

/* ---------------------------------------------------------------- equipo en podio: la Dra. Bonin al medio y más grande */
.person.lead { position: relative; border: 2px solid var(--sun); background: linear-gradient(180deg, var(--sun-soft), var(--surface) 55%); box-shadow: 0 22px 50px rgba(11, 20, 38, .16); }
.person.lead .avatar { width: 210px; height: 210px; font-size: 3.6rem; margin-bottom: 22px; box-shadow: 0 0 0 4px var(--sun), 0 0 0 10px var(--cream), 0 18px 40px rgba(11, 20, 38, .22); }
.person.lead h3 { font-size: 1.65rem; }
.person.lead > p:first-of-type strong { font-size: 1rem; }
.lead-tag { display: inline-block; margin: -4px 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--navy); color: var(--sun); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 761px) {
  .team-grid.podium { grid-template-columns: 1fr 1.3fr 1fr; align-items: end; gap: 22px; max-width: 1060px; margin-inline: auto; }
  .team-grid.podium .lead { grid-column: 2; grid-row: 1; padding: 34px 26px 32px; }
  /* el escalón: las de los costados, iguales entre sí y más bajas que la del medio */
  .team-grid.podium .person:not(.lead) { align-self: end; height: 76%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 20px; }
  .team-grid.podium .lead { transform: translateY(-14px); }
  .team-grid.podium .lead:hover { transform: translateY(-20px); }
}
@media (max-width: 760px) { .team-grid.podium { grid-auto-columns: 82%; } }

/* ---------------------------------------------------------------- formación y trayectoria: «papeles» tipo certificado
   (papel crema con la esquina doblada, sello amarillo y etiqueta; entran repartiéndose cuando aparecen y quedan quietos) */
.refs { margin-top: 48px; }
.refs-title { margin: 0 0 18px; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.papers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1060px; margin: 0 auto; padding: 10px 6px 18px; list-style: none; }
/* La esquina de arriba a la derecha está recortada (transparente) y la sombra es drop-shadow: sigue la forma del papel,
   así no aparece un cuadrado del color del fondo en la esquina. */
.paper { --r: -1.6deg; position: relative; padding: 20px 20px 18px; border-radius: 6px; color: #0e1626; text-align: left;
  background: linear-gradient(225deg, transparent 15.5px, #fbf7ee 15.5px);
  filter: drop-shadow(0 12px 16px rgba(11, 20, 38, .26)); transform: rotate(var(--r));
  transition: transform .5s cubic-bezier(.2, .9, .3, 1.2), filter .3s, opacity .4s; transition-delay: calc(var(--i) * 110ms); }
.paper:nth-child(2) { --r: 1.3deg; } .paper:nth-child(3) { --r: -.8deg; } .paper:nth-child(4) { --r: 1.8deg; }
/* la solapa doblada de la esquina */
.paper::after { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px; border-bottom-left-radius: 4px;
  background: linear-gradient(225deg, transparent 50%, #e6dcc6 50%); }
.paper > a { display: block; color: inherit; text-decoration: none; }
.paper-seal { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--sun); color: #0b1426;
  box-shadow: 0 0 0 4px rgba(252, 213, 42, .25); }
.paper-tag { display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a6500; }
.paper strong { display: block; font-family: var(--serif); font-size: 1.08rem; line-height: 1.25; color: #0b1426; }
.paper-detail { display: block; margin-top: 6px; padding-top: 8px; border-top: 1px dashed rgba(11, 20, 38, .2); font-size: .84rem; color: #4a4f5c; }
.paper img { max-height: 40px; width: auto; object-fit: contain; }
@media (hover: hover) { .paper:hover { transform: rotate(0) translateY(-6px); filter: drop-shadow(0 18px 22px rgba(11, 20, 38, .32)); transition-delay: 0s; } }
/* entrada: los papeles llegan de abajo a la izquierda, uno detrás de otro (solo con JavaScript; sin él se ven quietos) */
.papers.pre .paper { opacity: 0; transform: translate(-60px, 40px) rotate(-12deg); }
.papers.pre.dealt .paper { opacity: 1; transform: rotate(var(--r)); }
@media (max-width: 860px) {
  .papers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 12px 6px 22px; margin: 0; scrollbar-width: none; }
  .papers::-webkit-scrollbar { display: none; }
  .paper { flex: 0 0 74%; scroll-snap-align: center; }
}

/* ---------------------------------------------------------------- sedes con mapa ilustrado */
.place-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px; }
.place { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.place:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 20, 38, .12); }
.place-map { aspect-ratio: 400 / 190; overflow: hidden; }
.place-map svg { display: block; width: 100%; height: 100%; }
.pm-bg { fill: #efe7d6; }
.pm-park { fill: #d9e4c3; }
.pm-river { fill: none; stroke: #bcd3e3; stroke-width: 16; stroke-linecap: round; }
.pm-road path { stroke: #fff; stroke-width: 10; fill: none; }
.pm-road .pm-diag { stroke-width: 7; }
.pm-street path { stroke: #fff; stroke-width: 3.5; opacity: .85; fill: none; }
.pm-drop { fill: var(--navy); }
.pm-dot { fill: var(--sun); }
.pm-pulse { fill: rgba(252, 213, 42, .35); transform-box: fill-box; transform-origin: center; animation: pm-pulse 2.4s ease-out infinite; }
@keyframes pm-pulse { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.place-body { padding: 20px 22px 22px; }
.place-body h3 { margin: 0 0 4px; font-size: 1.12rem; }
.place-body p { margin: 0 0 14px; color: var(--muted); }
.place-body .place-addr { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.place-body .btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .place-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- idioma */
.lang-switch { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.lang-switch span { padding: 5px 9px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.lang-switch span.on { background: var(--navy); color: #fff; }
.lang-switch:hover span:not(.on) { color: var(--navy); }
.mmenu-lang { display: block; text-align: center; padding: 8px; font-weight: 600; }
@media (max-width: 1300px) { .head-actions .lang-switch { order: -1; } }
@media (max-width: 440px) { .lang-switch span { padding: 4px 7px; } }

/* ---------------------------------------------------------------- pantalla de bienvenida (solo la primera visita) */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--navy); pointer-events: none; animation: splash-out .55s ease 1s forwards; }
.splash-in { display: grid; justify-items: center; gap: 10px; text-align: center; color: #fff; animation: splash-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.splash-in svg { animation: splash-spin 1.1s cubic-bezier(.4, 1.4, .5, 1) both; }
.splash-in strong { font-family: var(--serif); font-size: 1.45rem; margin-top: 6px; }
.splash-in span { color: #cfc7b4; font-size: .9rem; }
@keyframes splash-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes splash-spin { from { transform: rotate(-90deg) scale(.6); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

/* ---------------------------------------------------------------- encabezado: se achica y se vuelve translúcido al bajar */
/* el logo se achica con transform (sin cambiar su ancho): así el nombre y el menú no se corren hacia los costados */
.site-head .brand svg { transition: transform .25s; transform-origin: left center; }
.site-head .brand small { transition: opacity .2s, max-height .25s; max-height: 1.4em; overflow: hidden; display: block; }
.scrolled-far .site-head { background: rgba(245, 238, 226, .78); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 6px 24px rgba(11, 20, 38, .08); }
.scrolled-far .site-head .wrap { padding-block: 6px; }
.scrolled-far .site-head .brand svg { transform: scale(.84); }
.scrolled-far .site-head .brand small { opacity: 0; max-height: 0; }

/* ---------------------------------------------------------------- textura de grano en los fondos azules */
.hero-dark, .important, .topics-sec, .section.videos, .info-box, .faq-more, .site-foot, .quote { position: relative; isolation: isolate; }
.important::before, .topics-sec::before, .info-box::after, .faq-more::after, .site-foot::before, .section.videos::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: .18; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* la portada ya usa ::before y ::after: el grano va como una capa más de su fondo (el mismo de brand.css) */
.hero.hero-dark {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 82% 18%, rgba(252, 213, 42, .20) 0, rgba(252, 213, 42, 0) 36%),
    radial-gradient(circle at 8% 90%, rgba(252, 213, 42, .08) 0, rgba(252, 213, 42, 0) 32%),
    linear-gradient(160deg, #070d1a 0%, #0b1426 55%, #14213d 100%);
}

/* ---------------------------------------------------------------- preguntas frecuentes: ¿te sirvió? y enlace directo */
.faq-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .86rem; color: var(--muted); }
.faq-vote { display: flex; align-items: center; gap: 8px; }
.faq-vote[hidden] { display: none; }
.faq-vote button, .faq-copy { font: inherit; font-size: .84rem; cursor: pointer; border-radius: 999px; transition: background .15s, color .15s, border-color .15s; }
.faq-vote button { min-width: 44px; min-height: 32px; padding: 4px 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.faq-vote button:hover { border-color: var(--navy); }
.faq-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 0; background: none; color: var(--muted); }
.faq-copy:hover { color: var(--navy); background: var(--sun-soft); }
.faq-copy.done { color: #1d7a46; }
.faq-thanks { margin: 0; font-weight: 600; color: #1d7a46; }
.faq-no { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px; background: var(--sun-soft); color: var(--ink); }
.faq-no[hidden], .faq-thanks[hidden] { display: none; }
.faq-no p { margin: 0; flex: 1 1 260px; }
details.faq-target { box-shadow: 0 0 0 3px var(--sun); transition: box-shadow .6s; }
details[data-faq] { scroll-margin-top: 90px; }

/* ---------------------------------------------------------------- reserva: calendario del mes */
.day-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: -14px 0 24px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.month-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: -8px 0 28px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.month-cal[hidden] { display: none; }
.month h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.1rem; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mwd { padding: 4px 0; text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.mday { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font-size: .92rem; color: #b6ad99; font-variant-numeric: tabular-nums; }
.mday.out { visibility: hidden; }
a.mday.on { color: var(--navy); font-weight: 700; background: var(--sun-soft); text-decoration: none; box-shadow: inset 0 0 0 1.5px #f0dc85; transition: background .15s, transform .15s; }
a.mday.on:hover { background: var(--sun); transform: translateY(-1px); }
a.mday.on i, .mcal-legend i { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: #b08900; }
a.mday.sel { background: var(--navy); color: #fff; box-shadow: none; }
a.mday.sel i { background: var(--sun); }
.mcal-legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; }
.mcal-legend i { position: static; }

/* ---------------------------------------------------------------- reserva: resúmenes fijos en el celular */
.pick-bar, .bar-sum { display: none; }
@media (max-width: 760px) {
  .pick-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--navy); color: #fff; text-decoration: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
  .pick-bar.gone { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .pick-bar strong { display: block; font-size: .95rem; }
  .pick-bar small { color: #cfc7b4; font-size: .8rem; }
  .pick-go { flex: none; padding: 10px 14px; border-radius: 999px; background: var(--sun); color: var(--navy); font-weight: 700; font-size: .88rem; }
  .book-bar { position: sticky; bottom: 0; z-index: 30; margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .bar-sum { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin: 0 0 2px; }
  .bar-sum small { color: var(--muted); }
  .book-bar .btn.ghost { min-height: 0; padding: 6px; background: none; box-shadow: none; color: var(--navy-2); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------------------------------------------------------------- turno: agregar al calendario */
.cal-menu { position: relative; }
.cal-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cal-menu > summary::-webkit-details-marker { display: none; }
.cal-opts { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; min-width: 250px; display: grid; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px rgba(11, 20, 38, .16); animation: pop-in .18s ease both; }
.cal-opts a { padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.cal-opts a:hover { background: var(--sun-soft); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------------------------------------------------------------- sin conexión */
.offline-turnos { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.offline-turnos[hidden] { display: none; }
.offline-list { margin: 8px 0 0; padding-left: 18px; }

/* el cierre de la portada no suma su espacio al margen del pie */
.section.closing { padding-bottom: 0; }

/* ---------------------------------------------------------------- reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .pm-pulse, .splash, .splash-in, .splash-in svg, .cal-opts { animation: none !important; }
  .papers.pre .paper { opacity: 1; transform: rotate(var(--r)); transition: none; }
  .splash { display: none; }
  .ctl li, .place, .pick-bar, .illus .il-sun { transition: none !important; }
}

/* Turno: correo para el recordatorio, cambio de día y lista de espera */
.mail-box { display: grid; gap: 10px; margin: 0 0 22px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface); }
.mail-box label { display: block; font-weight: 400; line-height: 1.45; }
.mail-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mail-row input { flex: 1 1 220px; min-width: 0; }
.waitlist-hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.slot-form { display: contents; }
.slot-form .slot { font: inherit; cursor: pointer; }

/* ---------------------------------------------------------------- aviso del chat como globo de diálogo que sale del botón */
.chat-teaser { margin-right: 22px; border-radius: 18px 18px 6px 18px; border: 2px solid var(--pop, #d81b60);
  box-shadow: 0 12px 30px rgba(11, 20, 38, .18); transform-origin: 85% 110%; animation: teaser-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.chat-teaser::after { content: ""; position: absolute; right: 26px; bottom: -11px; width: 18px; height: 18px;
  background: var(--surface); border-right: 2px solid var(--pop, #d81b60); border-bottom: 2px solid var(--pop, #d81b60);
  transform: rotate(45deg); border-bottom-right-radius: 4px; }
.chat-teaser:hover { box-shadow: 0 14px 34px var(--pop-glow, rgba(216, 27, 96, .35)); }
@keyframes teaser-pop { from { opacity: 0; transform: translateY(8px) scale(.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat-teaser { animation: none; } }

/* ---------------------------------------------------------------- cirugía: fondo beige de la marca; el amarillo, solo de acento
   (en un bloque entero el amarillo le ganaba al texto) */
.surgery { background: var(--brand-soft); }
.surgery::before { background: rgba(252, 213, 42, .28); }
.surgery .eyebrow::before { background: var(--sun-dark); }
.surgery .hl { background: linear-gradient(transparent 60%, var(--sun) 60%, var(--sun) 92%, transparent 92%); }
.surgery-facts li { background: var(--sun-soft); box-shadow: inset 0 0 0 1px rgba(239, 194, 0, .55); }
.surgery-path li { background: #fff; box-shadow: 0 14px 34px rgba(11, 20, 38, .1); }

/* ---------------------------------------------------------------- números en círculos: Playfair usa por defecto números
   «estilo antiguo» (el 3 y el 4 bajan de la línea) y quedaban descentrados. Números de altura fija y centrados. */
.goals .n, .surgery-path .n, .mini-steps .n, .kpi .n, .stepper .n, .fs legend .n, .timeline .dot, .stat strong {
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1;
}

/* pie: el número de WhatsApp no se corta en dos renglones */
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- barra de arriba: solo 4 secciones y subrayado fino
   (las demás quedan en el menú del celular). La sección activa se marca con una línea amarilla, no con un óvalo relleno. */
.site-nav .nav-extra { display: none; }
.site-nav { gap: 4px; }
.site-nav a { position: relative; padding: 10px 14px; border-radius: 0; background: none !important; }
.site-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--sun); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after { transform: scaleX(.5); }
.site-nav a.is-active { color: inherit; }
.site-nav a.is-active::after { transform: scaleX(1); }
/* con 4 secciones el menú entra desde pantallas más chicas */
@media (min-width: 1101px) and (max-width: 1300px) { .site-nav { display: flex; } .menu-btn { display: none; } }


/* ---------------------------------------------------------------- fotos reales (02/11/2026) */
/* cirugía: la foto del quirófano arriba de los pasos; los pasos se montan un poco sobre la foto */
.surgery-side { display: grid; }
.surgery-photo { margin: 0 0 -38px; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(11, 20, 38, .2); }
.surgery-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.surgery-side .surgery-path { position: relative; padding: 0 18px; }
@media (max-width: 900px) { .surgery-photo { margin-bottom: -28px; } .surgery-side .surgery-path { padding: 0 10px; } }
/* papeles: cinco en fila (con el del congreso) y el del congreso con la foto pegada arriba, como una polaroid */
.papers { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: 1180px; }
.paper:nth-child(5) { --r: -1.2deg; }
.paper-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 14px; border-radius: 3px; box-shadow: 0 0 0 5px #fff, 0 3px 10px rgba(11, 20, 38, .2); }
.paper.has-photo .paper-seal { position: absolute; top: 12px; left: 12px; margin: 0; }

/* portada: los carteles flotantes a los costados y fuera de la cara de la Dra. (02/11/2026):
   el de la derecha baja a la altura del torso; los de la izquierda, más afuera de la foto */
@media (min-width: 861px) {
  .hero .chip { max-width: 230px; }
  .hero .chip.c1 { top: 4%; left: -14%; }
  .hero .chip.c2 { top: 50%; bottom: auto; right: -12%; }
  .hero .chip.c3 { bottom: 24%; left: -14%; }
}
@media (min-width: 1280px) { .hero .chip.c2 { right: -18%; } }


/* ---------------------------------------------------------------- fondo de la portada (02/11/2026)
   Una capa fija detrás de todo: crudo con manchas de luz muy difusas (amarillo, durazno, un toque de azul) y unas
   cintas finas doradas. Al bajar, las manchas se corren y las cintas se van dibujando (--p va de 0 a 1, backdrop.js).
   Las secciones claras quedan transparentes o apenas veladas, así el fondo une toda la página sin chocar con nada. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #f3ede1; --p: 0; }
.backdrop .glow { position: absolute; border-radius: 50%; will-change: transform; }
.backdrop .g1 { width: 58vmax; height: 58vmax; left: -18vmax; top: -12vmax; background: radial-gradient(circle, rgba(252, 213, 42, .42), rgba(252, 213, 42, 0) 68%);
  transform: translate3d(calc(var(--p) * 38vw), calc(var(--p) * 30vh), 0); }
.backdrop .g2 { width: 52vmax; height: 52vmax; right: -16vmax; top: 18vh; background: radial-gradient(circle, rgba(242, 176, 128, .32), rgba(242, 176, 128, 0) 68%);
  transform: translate3d(calc(var(--p) * -30vw), calc(var(--p) * 22vh), 0) scale(calc(1 + var(--p) * .25)); }
.backdrop .g3 { width: 46vmax; height: 46vmax; left: 22vw; bottom: -22vmax; background: radial-gradient(circle, rgba(20, 33, 61, .14), rgba(20, 33, 61, 0) 68%);
  transform: translate3d(calc(var(--p) * 20vw), calc(var(--p) * -34vh), 0); }
.backdrop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop path { fill: none; stroke: #c49a17; stroke-width: 1.3; stroke-linecap: round; opacity: .32;
  stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - (var(--p) * 900 + 100)); }
.backdrop path + path { opacity: .2; stroke-dashoffset: calc(1000 - (var(--p) * 850 + 60)); }
.backdrop path + path + path { opacity: .14; stroke-dashoffset: calc(1000 - var(--p) * 1000); }
@media (prefers-reduced-motion: reduce) { .backdrop .glow { transform: none !important; } .backdrop path { stroke-dashoffset: 0 !important; } }
@media print { .backdrop { display: none; } }
/* las secciones claras son una sola tira continua sobre el fondo: sin velos ni líneas entre sección y sección */
body.has-backdrop, body.has-backdrop main { background: transparent; }
.has-backdrop .section:not(.topics-sec):not(.videos):not(.closing), .has-backdrop .stats, .has-backdrop .surgery {
  background: transparent; border-block: 0; box-shadow: none; }
.has-backdrop .section::before, .has-backdrop .section::after, .has-backdrop .stats::before, .has-backdrop .surgery::before { border: 0; }

/* ---------------------------------------------------------------- portada: retrato con forma orgánica (02/11/2026)
   Sin el recuadro: la foto con esquinas de arriba suaves y abajo bien redondeada (como en su sitio), un halo amarillo
   detrás, dos puntos amarillos de la marca y los carteles como burbujas de vidrio que flotan. */
.hero .hero-art { padding: 18px 0 46px; }
.hero .portrait { border: 0; background: none; box-shadow: none; overflow: visible; isolation: isolate; }
.hero .portrait::before { content: ""; position: absolute; z-index: -1; inset: 10% -12% 0 -10%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(252, 213, 42, .34), rgba(252, 213, 42, 0) 66%); filter: blur(10px); }
.hero .portrait::after { content: ""; position: absolute; z-index: -1; top: -10px; right: 4%; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sun); }
.hero .hero-art { isolation: isolate; }
.hero .hero-art::after { content: ""; position: absolute; z-index: -1; left: -3%; bottom: 150px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sun); pointer-events: none; }
.hero .portrait img { border-radius: 46px 120px 170px 230px / 46px 150px 150px 210px; box-shadow: 0 34px 70px rgba(0, 0, 0, .45);
  border: 0; }
.hero .portrait figcaption { left: 50%; right: auto; bottom: -24px; transform: translateX(-50%); width: max-content; max-width: 92%;
  padding: 12px 22px; border-radius: 999px; text-align: center; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 34px rgba(0, 0, 0, .3); }
.hero .portrait figcaption span { font-size: .8rem; }
/* carteles: burbujas de vidrio con un punto amarillo */
.hero .chip { gap: 9px; padding: 10px 16px 10px 12px; color: #fff; font-weight: 600; background: rgba(11, 20, 38, .58);
  border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25); border-radius: 999px; }
.hero .chip::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(252, 213, 42, .22); }
@media (max-width: 860px) {
  .hero .hero-art::after { width: 34px; height: 34px; bottom: 120px; left: 0; }
  .hero .portrait img { border-radius: 36px 92px 130px 170px / 36px 116px 116px 160px; }
}

/* nombre de la Dra. en la portada: cinta amarilla con las puntas dobladas hacia atrás (en vez de la burbuja blanca).
   La figcaption no tiene fondo propio: ::after es la cinta y ::before las puntas, las dos detrás del texto. */
.hero .portrait figcaption { left: 0; right: 0; bottom: -26px; transform: none; margin-inline: auto; width: max-content; max-width: 96%;
  z-index: 3; padding: 11px 30px 12px; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero .portrait figcaption::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background: linear-gradient(180deg, #ffe46f 0%, var(--sun) 52%, #f0c40f 100%);
  box-shadow: inset 0 0 0 4px var(--sun), inset 0 0 0 5px rgba(11, 20, 38, .22), 0 12px 24px rgba(0, 0, 0, .35); }
.hero .portrait figcaption { padding: 12px 34px 13px; }
/* puntas de la cinta: cada una va más abajo y detrás de la banda, con el corte en V afuera y el doblez oscuro */
.hero .portrait .rib-end { position: absolute; z-index: -2; top: 13px; width: 50px; height: 100%; background: linear-gradient(180deg, #e4b711, #c99c0b); }
.hero .portrait .rib-end.l { left: -36px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%); }
.hero .portrait .rib-end.r { right: -36px; clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 50%, 100% 100%, 0 100%); }
.hero .portrait .rib-end::before { content: ""; position: absolute; top: calc(100% - 13px); width: 14px; height: 13px; background: #8a6a05; }
.hero .portrait .rib-end.l::before { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.hero .portrait .rib-end.r::before { left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.hero .portrait figcaption strong { color: var(--navy); font-size: 1.12rem; }
.hero .portrait figcaption span { color: #3b3420; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
@media (max-width: 480px) { .hero .portrait figcaption { padding: 10px 22px 11px; } .hero .portrait .rib-end { width: 38px; } .hero .portrait .rib-end.l { left: -26px; } .hero .portrait .rib-end.r { right: -26px; } }
@media (min-width: 481px) { .hero .portrait figcaption { max-width: none; } .hero .portrait figcaption span { white-space: nowrap; } }

/* ---------------------------------------------------------------- bordes ondulados entre secciones claras y azules
   (en vez del corte recto): las secciones azules se recortan con una onda suave arriba y abajo y el fondo crudo
   entra en la curva. Se hace con máscara, así no hay que tocar los fondos ni las texturas de cada sección. */
.topics-sec, .section.videos, .hero.hero-dark {
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-5%25' y='-60%25' width='110%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='3.2'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' d='M-30 100V40C240 6 470 0 720 24s490 44 750 6V100z'/%3E%3C/svg%3E");
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-5%25' y='-60%25' width='110%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='3.2'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' d='M-30 -30h1500v60c-260 38-500 40-750 14S230 -4 -30 36z'/%3E%3C/svg%3E");
  --wave-h: 64px;
}
.topics-sec, .section.videos {
  padding-block: calc(var(--wave-h) + 34px);
  -webkit-mask: var(--wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--wave-h) + 8px) no-repeat, var(--wave-bottom) bottom / 100% var(--wave-h) no-repeat;
  mask: var(--wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--wave-h) + 8px) no-repeat, var(--wave-bottom) bottom / 100% var(--wave-h) no-repeat;
}
/* la portada solo lleva la onda abajo */
.hero.hero-dark {
  --wave-h: 56px;
  padding-bottom: calc(var(--wave-h) + 10px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave-h) + 1px) no-repeat, var(--wave-bottom) bottom / 100% var(--wave-h) no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave-h) + 1px) no-repeat, var(--wave-bottom) bottom / 100% var(--wave-h) no-repeat;
}
/* secciones azules seguidas de otra sección: se acercan para que la onda no deje un hueco grande */
.topics-sec + .section, .section.videos + script + .section, .section.videos + .section { margin-top: -18px; }
@media (max-width: 760px) { .topics-sec, .section.videos, .hero.hero-dark { --wave-h: 34px; } }
/* equipo: la formación de la Dra. Bonin ya está en «Formación y trayectoria»; ese lugar es para una foto más grande */
.person.lead .avatar img { object-position: 50% 22%; }
@media (max-width: 600px) { .person.lead .avatar { width: 170px; height: 170px; } }
/* cirugía: los tres pasos del mismo alto (el más largo manda) y con el contenido centrado */
.surgery-side .surgery-path { grid-auto-rows: 1fr; }
.surgery-side .surgery-path li { align-items: center; }
/* cirugía (ajuste): foto más grande y vertical; los pasos más compactos y angostos, montados sobre la parte de abajo */
.surgery-photo { margin-bottom: -150px; }
.surgery-photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.surgery-side .surgery-path { padding: 0 34px; gap: 9px; grid-auto-rows: auto; }
.surgery-side .surgery-path li { grid-template-columns: 36px 1fr; gap: 12px; padding: 11px 16px; border-radius: 16px; }
.surgery-side .surgery-path .n { width: 36px; height: 36px; font-size: 1.05rem; }
.surgery-side .surgery-path strong { font-size: .95rem; margin-bottom: 0; }
.surgery-side .surgery-path span:not(.n) { font-size: .84rem; line-height: 1.35; }
@media (max-width: 900px) { .surgery-photo { margin-bottom: -110px; } .surgery-side .surgery-path { padding: 0 16px; } }

/* celular: nada puede ensanchar la página hacia los costados (clip no rompe el encabezado fijo, a diferencia de hidden) */
html, body { overflow-x: clip; }

/* ---------------------------------------------------------------- celular (03/11/2026) */
@media (max-width: 760px) {
  /* filas deslizables: solo se mueven de costado (antes también subían y bajaban adentro de la fila) */
  [data-swipe] { overflow-y: hidden; padding-block: 14px 18px; touch-action: pan-x pan-y; }
  /* barra de abajo pegada al borde, como parte de la página: fondo crudo esmerilado, sin flotar */
  .dock { left: 0; right: 0; bottom: 0; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0; background: rgba(243, 237, 225, .9); -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%); border-top: 1px solid rgba(201, 176, 120, .35); box-shadow: 0 -10px 30px rgba(11, 20, 38, .08); }
  .dock .btn { min-height: 48px; border-radius: 14px; box-shadow: none; }
  body.has-dock { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- portada en el celular: compacta (03/11/2026)
   Antes medía 1,6 pantallas y la foto de la Dra. quedaba fuera de la primera vista. Texto corto, botones lado a lado,
   sin la lista de garantías ni la franja de sedes (la barra de abajo y la sección «Dónde atendemos» ya las cubren). */
.lead-short { display: none; }
@media (max-width: 760px) {
  .hero .hero-grid { gap: 22px; padding-top: 18px; }
  .hero .eyebrow { font-size: .7rem; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); line-height: 1.08; margin-bottom: 12px; }
  .hero .lead { font-size: .98rem; line-height: 1.5; margin-bottom: 18px; }
  .hero .lead-long { display: none; }
  .hero .lead-short { display: inline; }
  .hero .cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .cta-row .btn { min-height: 48px; padding: 10px 12px; font-size: .92rem; width: auto; }
  .hero .trust, .hero .hero-places { display: none; }
  .hero .hero-art { max-width: 250px; padding-top: 6px; }
  .hero.hero-dark { padding-bottom: calc(var(--wave-h) + 26px); }
}

/* portada en el celular: la foto primero y el texto debajo; cinta más chica, en una línea */
@media (max-width: 760px) {
  .hero .hero-art { order: -1; max-width: 240px; padding: 4px 0 30px; }
  .hero .hero-grid { gap: 18px; }
  .hero .portrait figcaption { padding: 7px 16px 8px; bottom: -18px; }
  .hero .portrait figcaption strong { font-size: .95rem; }
  .hero .portrait figcaption span { font-size: .68rem; }
  .hero .portrait .cap-extra { display: none; }
  .hero .portrait .rib-end { width: 30px; top: 9px; }
  .hero .portrait .rib-end.l { left: -20px; }
  .hero .portrait .rib-end.r { right: -20px; }
  .hero .portrait .rib-end::before { top: calc(100% - 9px); width: 10px; height: 9px; }
}
