/* 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; }
}

/* ---------------------------------------------------------------- equipo en el celular: sin deslizar.
   La Dra. Bonin arriba a todo el ancho (más compacta) y las otras dos debajo, lado a lado. */
@media (max-width: 760px) {
  .team-grid.podium { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
  .team-grid.podium .lead { grid-column: 1 / -1; padding: 22px 18px 20px; }
  .team-grid.podium .lead .lead-tag { margin: 0 0 14px; padding: 5px 12px; font-size: .68rem; }
  .team-grid.podium .lead .avatar { width: 140px; height: 140px; margin-bottom: 14px; box-shadow: 0 0 0 3px var(--sun), 0 0 0 8px var(--cream), 0 12px 28px rgba(11, 20, 38, .18); }
  .team-grid.podium .lead h3 { font-size: 1.4rem; margin-bottom: 4px; }
  .team-grid.podium .lead > p:first-of-type strong { font-size: .9rem; }
  .team-grid.podium .person:not(.lead) { padding: 18px 10px 16px; }
  .team-grid.podium .person:not(.lead) .avatar { width: 72px; height: 72px; font-size: 1.4rem; margin-bottom: 10px; }
  .team-grid.podium .person:not(.lead) h3 { font-size: 1.02rem; line-height: 1.25; margin-bottom: 4px; }
  .team-grid.podium .person:not(.lead) p { font-size: .8rem; line-height: 1.35; margin: 0; }
}

/* ---------------------------------------------------------------- celular: repaso general (04/11/2026) */
@media (max-width: 760px) {
  /* formación y trayectoria: una lista de papeles compactos (sello a la izquierda), sin deslizar ni estirarse */
  .refs { margin-top: 36px; padding-inline: 16px; }
  .papers { display: grid; grid-template-columns: 1fr; gap: 12px; overflow: visible; padding: 4px 4px 8px; margin: 0; }
  .paper { display: block; padding: 14px 16px 14px 70px; min-height: 0; }
  .paper:nth-child(odd) { --r: -.7deg; } .paper:nth-child(even) { --r: .7deg; }
  .paper .paper-seal { position: absolute; top: 50%; left: 16px; width: 38px; height: 38px; margin: -19px 0 0; }
  .paper.has-photo { padding-left: 16px; }
  .paper.has-photo .paper-seal { top: 12px; left: 12px; margin: 0; }
  .paper-photo { aspect-ratio: 16 / 9; margin-bottom: 10px; }
  .paper-tag { font-size: .64rem; margin-bottom: 2px; }
  .paper strong { font-size: 1rem; }
  .paper-detail { margin-top: 4px; padding-top: 5px; font-size: .8rem; }
  .paper::after { width: 16px; height: 16px; }

  /* nuestro enfoque: los tres pilares como filas (dibujo a la izquierda, texto a la derecha) */
  .approach + .pillars { gap: 20px; margin-top: 32px; padding-top: 26px; }
  .pillar { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; }
  .pillar .illus { grid-row: 1 / span 2; margin: 2px 0 0; }
  .pillar h3 { font-size: 1.25rem; margin: 0 0 2px; }
  .pillar p { margin: 0; font-size: .92rem; }

  /* sedes: mapas más bajos */
  .place-map { aspect-ratio: 400 / 130; }
  .place-body { padding: 16px 18px 18px; }
  .place-grid { gap: 14px; margin-top: 20px; }

  /* el lugar que deja la barra de abajo va dentro del pie (antes quedaba una franja clara debajo del pie) */
  body.has-dock { padding-bottom: 0; }
  body.has-dock .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* celulares chicos (320–380 px, p. ej. iPhone SE): el encabezado no entraba y el botón del menú quedaba afuera */
@media (max-width: 380px) {
  .site-head .wrap, .head-inner { gap: 8px; }
  .head-actions { gap: 6px; }
  .head-actions .btn.small { padding: 8px 11px; font-size: .78rem; }
  .menu-btn { width: 40px; height: 40px; }
  .lang-switch { font-size: .72rem; }
  .lang-switch span { padding: 4px 6px; }
  .dock { gap: 8px; padding-inline: 10px; }
  .dock .btn { font-size: .9rem; padding-inline: 8px; white-space: nowrap; }
  .stat strong { font-size: 1.9rem; white-space: nowrap; }   /* «+80 mil» en una sola línea */
}

/* tablet (761–900 px): sin columnas únicas larguísimas ni la foto de cirugía a todo el ancho */
@media (min-width: 761px) and (max-width: 900px) {
  .action-grid, .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .action { padding: 22px 18px; }
  .pillar h3 { font-size: 1.3rem; }
  .surgery-side { max-width: 600px; margin-inline: auto; }
  .surgery-photo img { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------- portada clara con la foto de la Dra. (04/11/2026)
   Sin el azul: la portada es parte del fondo crudo/amarillento de la página. La foto ocupa la mitad derecha y se
   difumina hacia el fondo por la izquierda, arriba y abajo (máscara). Con «multiply» el blanco de la foto toma el tono
   del fondo, así no queda un rectángulo. En el celular la foto va arriba, a todo el ancho, y el texto se monta debajo. */
.hero.hero-cover { position: relative; display: flex; align-items: center; min-height: clamp(540px, calc(100svh - 90px), 760px);
  padding: 48px 0 64px; background: none; overflow: hidden; }
.hero-cover .hero-grid { display: block; position: relative; z-index: 1; padding: 0; }
.hero-cover .hero-copy { max-width: min(560px, 50vw - 40px); }
.hero-cover h1 { color: var(--navy); font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.06; }
.hero-cover .lead { color: #3d4252; font-size: 1.16rem; max-width: 46ch; }
.hero-cover .cta-row { margin: 30px 0 0; }
.hero-cover .btn.ghost { background: rgba(255, 255, 255, .35); }
.hero-cover .btn.ghost:hover { background: var(--navy); }
.cover-photo { position: absolute; top: 0; right: 0; bottom: 0; width: min(58%, 900px); margin: 0; z-index: 0; }
.cover-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .2) 12%, rgba(0, 0, 0, .65) 26%, #000 42%), linear-gradient(180deg, transparent 0, #000 9%, #000 70%, rgba(0, 0, 0, .4) 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .2) 12%, rgba(0, 0, 0, .65) 26%, #000 42%), linear-gradient(180deg, transparent 0, #000 9%, #000 70%, rgba(0, 0, 0, .4) 86%, transparent 100%);
  mask-composite: intersect; }
.cover-photo figcaption { position: absolute; right: clamp(16px, 5vw, 72px); bottom: 15%; display: grid; gap: 2px; padding: 11px 18px 12px 16px;
  border-left: 4px solid var(--sun); border-radius: 4px 14px 14px 4px; background: rgba(255, 251, 240, .9); color: var(--navy);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 34px rgba(11, 20, 38, .14); }
.cover-photo figcaption strong { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; }
.cover-photo figcaption span { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: #5a5440; }
.hero-cover.no-photo .hero-copy { max-width: 680px; }
@media (min-width: 761px) and (max-width: 1000px) {
  .cover-photo { width: 62%; }
  .hero-cover .hero-copy { max-width: 48vw; }
  .hero-cover h1 { font-size: clamp(2.2rem, 5.2vw, 3rem); }
}
@media (max-width: 760px) {
  .hero.hero-cover { display: block; min-height: 0; padding: 0 0 34px; }
  .cover-photo { position: relative; width: 100%; height: min(100vw, 460px); }
  .cover-photo img { object-position: 50% 10%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 58%, rgba(0, 0, 0, .45) 80%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 58%, rgba(0, 0, 0, .45) 80%, transparent 100%); }
  .cover-photo figcaption { right: 16px; bottom: 96px; padding: 8px 13px 9px 12px; }
  .cover-photo figcaption strong { font-size: .95rem; }
  .cover-photo figcaption span { font-size: .68rem; }
  .hero-cover .hero-grid { margin-top: -64px; padding-top: 0; }
  .hero-cover .hero-copy { max-width: none; }
  .hero-cover h1 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
  .hero-cover .lead { font-size: .98rem; }
  .hero-cover .cta-row { margin-top: 18px; }
  .hero-cover.no-photo { padding-top: 32px; }
  .hero-cover.no-photo .hero-grid { margin-top: 0; }
}

/* ---------------------------------------------------------------- cirugía: collage y pasos (04/11/2026)
   El collage son rombos con esquinas redondeadas (cuadrados girados 45°); la foto adentro se gira al revés y se agranda
   (√2) para llenar el rombo. Medidas en unidades del contenedor (cqw), así se mantiene igual en cualquier ancho.
   Los tres pasos van debajo, a todo el ancho, del mismo tamaño. */
.surgery-grid { grid-template-columns: 1.05fr .95fr; }
.surgery .surgery-line { font-size: 1.22rem; padding-left: 16px; border-left: 3px solid var(--sun); margin-top: 18px; }
.surgery-note { margin: 16px 0 0; color: #4a4f5c; font-size: .95rem; }
.surgery .cta-row { margin-top: 26px; }
.surgery-collage { position: relative; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 1 / 1.06; container-type: inline-size; }
.surgery-collage .tile { position: absolute; margin: 0; aspect-ratio: 1; border-radius: 24%; overflow: hidden; transform: rotate(45deg);
  background: var(--brand-soft); box-shadow: 0 22px 44px rgba(11, 20, 38, .16); }
.surgery-collage .tile img { position: absolute; top: -20.71%; left: -20.71%; width: 141.42%; height: 141.42%; max-width: none; object-fit: cover; transform: rotate(-45deg); }
/* seis rombos que encajan en diagonal (sin pisarse) y tres chicos de adorno; left/top/ancho en cqw */
.surgery-collage .t-a { width: 36.8cqw; left: 41.6cqw; top: 33.6cqw; z-index: 2; }
.surgery-collage .t-a img { object-position: 50% 28%; }
.surgery-collage .t-b { width: 25.5cqw; left: 19.3cqw; top: 17.3cqw; }
.surgery-collage .t-b img { object-position: 30% 40%; }
.surgery-collage .t-c { width: 19.8cqw; left: 66.1cqw; top: 8.1cqw; }
.surgery-collage .t-c img { object-position: 42% 35%; }
.surgery-collage .t-d { width: 22.6cqw; left: 14.7cqw; top: 54.7cqw; }
.surgery-collage .t-d img { object-position: 45% 45%; }
.surgery-collage .t-e { width: 21.2cqw; left: 67.4cqw; top: 73.4cqw; }
.surgery-collage .t-e img { object-position: 45% 30%; }
.surgery-collage .t-f { width: 17cqw; left: 43.5cqw; top: 83.5cqw; }
.surgery-collage .t-f img { object-position: 50% 40%; }
.surgery-collage .tile-accent { position: absolute; aspect-ratio: 1; border-radius: 26%; transform: rotate(45deg); pointer-events: none; }
.surgery-collage .a1 { width: 7.1cqw; left: 4.5cqw; top: 36.5cqw; background: var(--sun); }
.surgery-collage .a2 { width: 5.7cqw; left: 91.2cqw; top: 47.2cqw; border: 2px solid var(--sun-dark); }
.surgery-collage .a3 { width: 5cqw; left: 37.5cqw; top: 81.5cqw; background: var(--sun); opacity: .75; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .surgery-collage .tile { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
  .surgery-collage .tile:hover { transform: rotate(45deg) scale(1.03); box-shadow: 0 28px 56px rgba(11, 20, 38, .22); }
}
.steps-title { margin: 56px 0 18px; text-align: center; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--navy); }
.surgery-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 26px; counter-reset: none; }
.surgery-steps li { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 26px 26px; border-radius: 24px;
  background: #fff; box-shadow: 0 18px 40px rgba(11, 20, 38, .1); border-top: 5px solid var(--sun); }
.surgery-steps .n { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: var(--sun);
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; font-variant-numeric: lining-nums; box-shadow: 0 0 0 6px var(--sun-soft); }
.surgery-steps strong { display: block; font-size: 1.14rem; color: var(--navy); line-height: 1.3; margin-bottom: 6px; }
.surgery-steps p { margin: 0; color: #4a4f5c; font-size: .96rem; line-height: 1.5; }
/* flecha entre paso y paso */
.surgery-steps li:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 50%; right: -26px; width: 26px; text-align: center;
  transform: translateY(-50%); color: var(--sun-dark); font-size: 1.4rem; font-weight: 700; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .surgery-steps li { transition: transform .25s ease, box-shadow .25s ease; }
  .surgery-steps li:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(11, 20, 38, .14); }
}
@media (max-width: 900px) {
  .surgery-grid { grid-template-columns: 1fr; }
  .surgery-collage { max-width: 440px; }
}
@media (max-width: 760px) {
  .steps-title { margin-top: 40px; text-align: left; }
  .surgery-steps { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .surgery-steps li { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; align-items: center; padding: 18px 18px 18px 16px; border-top: 0; border-left: 5px solid var(--sun); }
  .surgery-steps .n { grid-row: 1 / span 2; width: 50px; height: 50px; margin: 0; font-size: 1.35rem; box-shadow: 0 0 0 5px var(--sun-soft); }
  .surgery-steps strong { font-size: 1.04rem; margin-bottom: 2px; }
  .surgery-steps p { font-size: .9rem; }
  .surgery-steps li:not(:last-child)::after { content: "↓"; top: auto; bottom: -15px; right: auto; left: 33px; width: 18px; transform: none; font-size: 1rem; line-height: 1; }
}
/* en la compu el collage se agranda hacia el margen derecho (la columna sola le queda chica) */
@media (min-width: 901px) { .surgery-collage { width: 118%; max-width: 640px; margin: -20px -18% -20px 0; } }
/* flecha entre pasos: círculo amarillo, bien visible */
@media (min-width: 761px) {
  .surgery-steps li:not(:last-child)::after { right: -32px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
    background: var(--sun); color: var(--navy); font-size: 1.15rem; box-shadow: 0 6px 16px rgba(11, 20, 38, .15), 0 0 0 5px rgba(255, 255, 255, .7); }
}

/* ---------------------------------------------------------------- nuestro enfoque (04/11/2026)
   Como la portada: la foto del equipo se funde con el fondo (máscara + multiply), acá a la izquierda y llegando al borde
   de la pantalla; el texto a la derecha. Lo que se remarca va en etiquetas con el «+» del logo y la frase sin recuadro. */
.enfoque-top { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 560px; }
.enfoque-photo { position: absolute; top: -48px; bottom: -48px; left: calc(50% - 50vw); width: calc(50vw + 10%); margin: 0; }
.enfoque-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
  mask-composite: intersect; }
.enfoque-copy { position: relative; z-index: 1; width: min(480px, 100%); }
.enfoque-top.no-photo { justify-content: flex-start; min-height: 0; }
.enfoque-top.no-photo .enfoque-copy { width: min(680px, 100%); }
.enfoque-copy h2 { color: var(--navy); }
.enfoque-copy .lead { margin-bottom: 0; }
.enfoque-tags { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.enfoque-tags li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(201, 176, 120, .45), 0 6px 16px rgba(11, 20, 38, .06); color: var(--navy); font-weight: 600; font-size: .92rem; }
.enfoque-tags li::before { content: "+"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: var(--sun); font-weight: 700; font-size: 1rem; line-height: 1; }
.enfoque-quote { margin: 30px 0 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun); font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.35; color: var(--navy); }
.enfoque-quote em { font-style: italic; background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }
.enfoque-top + .pillars { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); gap: 44px; }
@media (min-width: 761px) and (max-width: 1000px) {
  .enfoque-photo { width: calc(50vw + 16%); }
  .enfoque-copy { width: min(420px, 52%); }
}
@media (max-width: 760px) {
  .enfoque-top { display: block; min-height: 0; }
  .enfoque-photo { position: relative; top: auto; bottom: auto; left: -16px; width: calc(100% + 32px); height: 68vw; max-height: 420px; }
  .enfoque-photo img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 62%, transparent 100%); }
  .enfoque-copy { width: auto; margin-top: -36px; }
  .enfoque-tags li { font-size: .86rem; padding: 7px 13px 7px 7px; }
  .enfoque-tags li::before { width: 22px; height: 22px; }
  .enfoque-top + .pillars { gap: 20px; margin-top: 32px; padding-top: 26px; }
}
/* enfoque (ajuste): la foto con su proporción (entra el grupo entero) y el difuminado solo al final, antes del texto */
@media (min-width: 761px) {
  .enfoque-top { min-height: 500px; }
  .enfoque-photo { top: 50%; bottom: auto; transform: translateY(-50%); width: calc(50vw + 6%); aspect-ratio: 1.5; }
  .enfoque-photo img { object-position: 50% 40%;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 70%, rgba(0, 0, 0, .5) 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 70%, rgba(0, 0, 0, .5) 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%); }
}
@media (min-width: 761px) and (max-width: 1000px) { .enfoque-photo { width: calc(50vw + 10%); } }
/* enfoque: lo que se remarca vuelve a ser una lista con puntos amarillos, en dos columnas (3 y 2) */
.enfoque-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column;
  grid-auto-columns: max-content; gap: 12px 34px; }
.enfoque-list li { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; font-size: .95rem; }
.enfoque-list li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(252, 213, 42, .25); }
@media (max-width: 760px) { .enfoque-list { gap: 10px 18px; grid-auto-columns: auto; } .enfoque-list li { font-size: .86rem; gap: 8px; } }

/* portada: el nombre vuelve a ir en una cinta, pero fina y suave (amarillo pálido, puntas chicas) */
.cover-photo figcaption { padding: 6px 22px 7px; gap: 0; text-align: center; border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; isolation: isolate; }
.cover-photo figcaption::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 2px;
  background: linear-gradient(180deg, #fdeaa0 0%, #f7dc72 100%); box-shadow: 0 6px 16px rgba(11, 20, 38, .1); }
.cover-photo .rib-end { position: absolute; z-index: -2; top: 6px; width: 22px; height: 100%; background: #efd162; }
.cover-photo .rib-end.l { left: -14px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 7px 50%); }
.cover-photo .rib-end.r { right: -14px; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%); }
.cover-photo .rib-end::before { content: ""; position: absolute; top: calc(100% - 6px); width: 8px; height: 6px; background: #c9a62e; }
.cover-photo .rib-end.l::before { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.cover-photo .rib-end.r::before { left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.cover-photo figcaption strong { font-size: 1rem; }
.cover-photo figcaption span:not(.rib-end) { font-size: .7rem; color: #5a4c1c; }
@media (max-width: 760px) {
  .cover-photo figcaption { padding: 5px 16px 6px; right: 26px; }
  .cover-photo figcaption strong { font-size: .88rem; }
  .cover-photo figcaption span:not(.rib-end) { font-size: .64rem; }
  .cover-photo .rib-end { width: 16px; top: 5px; }
  .cover-photo .rib-end.l { left: -10px; }
  .cover-photo .rib-end.r { right: -10px; }
}
/* la cinta con el nombre va abajo y centrada sobre ella (no a un costado); 45 % porque en la foto ella esta apenas a la izquierda */
.cover-photo figcaption { left: 45%; right: auto; bottom: 13%; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 760px) { .cover-photo figcaption { left: 45%; right: auto; bottom: 86px; } }
/* solo el nombre, al pie de la foto */
.cover-photo figcaption { bottom: 5%; }
@media (max-width: 760px) { .cover-photo figcaption { bottom: 76px; } }
/* nombre en vidrio esmerilado (reemplaza la cinta, 04/11/2026): translúcido, desenfoca la foto detrás, línea amarilla fina */
.cover-photo .rib-end { display: none; }
.cover-photo figcaption { display: grid; justify-items: center; gap: 3px; padding: 10px 26px 12px; border-radius: 16px;
  background: rgba(255, 253, 248, .68); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 12px 32px rgba(11, 20, 38, .14), inset 0 1px 0 rgba(255, 255, 255, .8); }
.cover-photo figcaption::after { inset: auto 50% -1px auto; width: 40px; height: 3px; transform: translateX(50%); border-radius: 3px 3px 0 0;
  background: var(--sun); box-shadow: none; z-index: 0; }
.cover-photo figcaption strong { font-size: 1.12rem; letter-spacing: .01em; color: var(--navy); }
.cover-photo figcaption span:not(.rib-end) { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #3d4252; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .cover-photo figcaption { background: rgba(255, 252, 244, .9); } }
@media (max-width: 760px) {
  .cover-photo figcaption { padding: 7px 18px 9px; border-radius: 13px; }
  .cover-photo figcaption strong { font-size: .92rem; }
  .cover-photo figcaption span:not(.rib-end) { font-size: .6rem; letter-spacing: .12em; }
}
/* flechas entre pasos (arreglo): van en la lista y no en cada tarjeta, así quedan fijas y siempre adelante cuando la
   tarjeta se levanta con el mouse (antes se movían con ella y la tarjeta siguiente las tapaba) */
@media (min-width: 761px) {
  .surgery-steps { position: relative; }
  .surgery-steps li:not(:last-child)::after { content: none; }
  .surgery-steps::before, .surgery-steps::after { content: "→"; position: absolute; z-index: 3; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
    display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--navy); font-size: 1.15rem; font-weight: 700;
    box-shadow: 0 6px 16px rgba(11, 20, 38, .15), 0 0 0 5px rgba(255, 255, 255, .7); pointer-events: none; }
  .surgery-steps::before { left: calc((100% - 52px) / 3 + 13px); }
  .surgery-steps::after { left: calc((100% - 52px) / 3 * 2 + 39px); }
}

/* ---------------------------------------------------------------- «Contenido» con vida (04/11/2026)
   Sigue azul, pero con luces suaves y lazos dorados de fondo (con un rulo cada uno). Los lazos se dibujan al entrar en
   pantalla (donde el navegador lo permite) y flotan despacio; las tarjetas pasan a ser de vidrio para que se vean detrás. */
.topics-sec { background:
    radial-gradient(circle at 12% 18%, rgba(252, 213, 42, .16) 0, rgba(252, 213, 42, 0) 34%),
    radial-gradient(circle at 88% 82%, rgba(242, 176, 128, .14) 0, rgba(242, 176, 128, 0) 36%),
    radial-gradient(circle at 60% 40%, rgba(43, 62, 108, .55) 0, rgba(43, 62, 108, 0) 55%),
    var(--navy); }
.topics-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.topics-deco svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.topics-deco .lz { stroke-linecap: round; stroke-linejoin: round; }
.topics-deco .lz1 { stroke: url(#lazo-g); stroke-width: 3; opacity: .55; }
.topics-deco .lz2 { stroke: #fcd52a; stroke-width: 1.4; opacity: .3; }
.topics-deco .lz3 { stroke: #fff; stroke-width: 1.2; opacity: .12; stroke-dasharray: .004 .012; }
@media (prefers-reduced-motion: no-preference) {
  .topics-deco .lazos { animation: lazos-float 14s ease-in-out infinite alternate; }
  @keyframes lazos-float { from { transform: translate3d(0, -10px, 0); } to { transform: translate3d(-24px, 12px, 0); } }
  @supports (animation-timeline: view()) {
    .topics-sec { view-timeline: --lazos block; }
    .topics-deco .lz1, .topics-deco .lz2 { stroke-dasharray: 1; animation: lazo-draw linear both; animation-timeline: --lazos; animation-range: entry 10% cover 55%; }
    .topics-deco .lz2 { animation-range: entry 25% cover 65%; }
    @keyframes lazo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  }
}
.topics-sec .topic { background: rgba(20, 33, 61, .55); -webkit-backdrop-filter: blur(8px) saturate(130%); backdrop-filter: blur(8px) saturate(130%);
  border-color: rgba(252, 213, 42, .28); }

/* ---------------------------------------------------------------- videos: bordes rectos (se destaca como zona aparte) */
.section.videos { -webkit-mask: none; mask: none; padding-block: 80px; }
.section.videos + script + .section, .section.videos + .section { margin-top: 0; }
@media (max-width: 760px) { .section.videos { padding-block: 52px; } }
/* «Contenido»: onda más suave (la misma curva, menos alta) */
.topics-sec { --wave-h: 26px; padding-block: 88px; }
@media (max-width: 760px) { .topics-sec { --wave-h: 16px; padding-block: 56px; } }
/* aclaración debajo de un par de campos (registro: «Mínimo 8 caracteres»), así los dos rótulos quedan a la misma altura */
.field-note { margin: -4px 0 0; color: var(--muted); font-size: .84rem; }
/* campos obligatorios: un * amarillo oscuro junto al rótulo (lo pone el CSS mirando el «required» del campo) */
.req-marks div:has(> input[required]) > label::after, .req-marks div:has(> select[required]) > label::after { content: " *"; color: #b08900; font-weight: 700; }
.req-legend { white-space: nowrap; }

/* Reserva: «Volver» arriba y pasos hechos que se pueden tocar (04/11/2026) */
.step-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); font-size: .9rem; font-weight: 600;
  text-decoration: none; transition: background .15s, box-shadow .15s; }
.step-back svg { transform: scaleX(-1); }
.step-back:hover { background: var(--sun-soft); box-shadow: inset 0 0 0 1px #ecd47a; }
.stepper .step-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: 999px; }
.stepper .step-link:hover .n { box-shadow: 0 0 0 4px var(--sun-soft); }
.stepper .step-link:hover .t { text-decoration: underline; text-underline-offset: 3px; }

/* página del turno (producción, 04/11/2026): los avisos juntos en una lista corta, en lugar de párrafos sueltos */
.turno-notes { list-style: none; display: grid; gap: 10px; margin: 6px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.turno-notes li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.turno-notes svg { flex: none; margin-top: 2px; color: #b08900; }
.turno-notes .nt-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; letter-spacing: .06em; color: var(--ink); }
.turno-cancel { margin-top: 16px; }

/* ---------------------------------------------------------------- Indicaciones del turno confirmado (06/11/2026) */
.guide { display: grid; gap: 14px; margin-top: 22px; }
.guide h2 { margin: 0; font-size: 1.5rem; }
.guide-part { display: grid; gap: 12px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.guide-part h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.12rem; }
.guide-part h3 svg { flex: none; color: #b08900; }
.guide-part p { margin: 0; }
.guide-ids { display: grid; gap: 8px; margin: 0; }
.guide-ids div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.guide-ids div:last-child { padding-bottom: 0; border-bottom: 0; }
.guide-ids dt { color: var(--muted); font-size: .92rem; }
.guide-ids dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.guide-list { display: grid; gap: 7px; margin: 0; padding-left: 20px; line-height: 1.5; }
.guide-more summary { cursor: pointer; font-weight: 600; }
.guide-more[open] { display: grid; gap: 10px; }
.guide-more[open] summary { margin-bottom: 4px; }
.guide-labs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 18px; margin: 0; padding-left: 20px; }
