/* CDN Clínica Dental Noguera
   Lujo frio: plata, cromo y cristal. Una sola tinta (antracita) y un solo acento (acero hielo).
   Radios: pildora en lo pulsable, marcos de doble bisel 28/22px, celdas 24px.
   Movimiento: solo transform/opacity (clip-path en el hero), curvas fuertes, reduced-motion respetado. */

@font-face { font-family: "Saira"; src: url("/assets/fonts/saira-latin-wdth-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; }

:root {
  --bg: #e9ecef;
  --bg-2: #f4f6f8;
  --surface: #fbfcfd;
  --ink: #15171b;
  --ink-2: #3a3f47;
  --mute: #5d646e;
  --line: rgba(21, 23, 27, .09);
  --glass: rgba(250, 251, 252, .62);
  --glass-hi: rgba(255, 255, 255, .85);
  --accent: #3b6889;          /* acero hielo */
  --accent-soft: rgba(59, 104, 137, .14);
  --silver: linear-gradient(180deg, #ffffff 0%, #dfe4e9 48%, #c9d0d8 52%, #eef1f4 100%);
  --logo-grey: #a3a8ae;
  --shadow: 0 30px 60px -32px rgba(32, 44, 60, .38), 0 2px 6px -2px rgba(32, 44, 60, .08);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --display: "Saira", system-ui, sans-serif;
  --body: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --rail-x: calc(var(--gutter) + 8px);
  --frame: clamp(8px, 1vw, 14px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --bg-2: #15181c;
    --surface: #1a1d22;
    --ink: #eef1f4;
    --ink-2: #c9ced5;
    --mute: #9aa2ac;
    --line: rgba(238, 241, 244, .1);
    --glass: rgba(26, 29, 34, .6);
    --glass-hi: rgba(40, 44, 51, .8);
    --accent: #8db6d6;
    --accent-soft: rgba(141, 182, 214, .16);
    --silver: linear-gradient(180deg, #2b3037 0%, #1c2025 50%, #252a31 100%);
    --logo-grey: #8a9098;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 2px 6px -2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  font-family: var(--body); font-stretch: 100%; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
/* grano muy sutil, fijo y sin eventos (no repinta al hacer scroll) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::after { mix-blend-mode: screen; opacity: .03; } }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ic { width: 1em; height: 1em; flex: none; fill: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: transform .2s var(--ease-out); }
.skip:focus { transform: translateY(72px); }
.wrap { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--mute); }

h1, h2, h3 { font-family: var(--display); font-stretch: 118%; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; max-width: 18ch; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; font-stretch: 110%; }
.sub { margin-top: 18px; color: var(--mute); font-size: clamp(17px, 1.35vw, 19px); max-width: 52ch; text-wrap: pretty; }
.meta { color: var(--mute); font-size: 14px; }

/* ---------- Botones: pildora con icono anidado ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 6px 0 20px; border-radius: 999px;
  font-weight: 500; font-size: 16px; white-space: nowrap; user-select: none; touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; transition: transform .35s var(--ease-out); }
.btn-lg { height: 56px; padding-left: 24px; font-size: 17px; }
.btn-lg .btn-ic { width: 44px; height: 44px; font-size: 20px; }
.btn-sm { height: 42px; padding-left: 16px; font-size: 15px; gap: 10px; }
.btn-sm .btn-ic { width: 32px; height: 32px; font-size: 16px; }
.btn-ink { background: var(--ink); color: var(--bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -12px rgba(21, 23, 27, .5); }
.btn-ink .btn-ic { background: rgba(255, 255, 255, .12); }
@media (prefers-color-scheme: dark) { .btn-ink .btn-ic { background: rgba(0, 0, 0, .1); } }
.btn-glass { background: var(--glass-hi); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px var(--line); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.btn-glass .btn-ic, .btn-line .btn-ic { background: var(--accent-soft); color: var(--accent); }
.btn-line { color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn-ic { transform: translate(2px, -1px) scale(1.06); }
  .btn-ink:hover { background: var(--ink-2); }
  .btn-line:hover, .btn-glass:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px var(--ink-2); }
}

/* ---------- Isla de navegacion ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  padding: 7px 7px 7px 20px; border-radius: 999px; width: max-content; max-width: calc(100% - 24px);
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px var(--line), 0 14px 34px -18px rgba(32, 44, 60, .45);
}
.brand { display: flex; color: var(--ink); }
.brand-mark { width: 62px; height: auto; }
.nav-links { display: flex; gap: 22px; font-size: 15px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { transform: scaleX(1); } }
.langsw { display: flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.langsw > * { padding: 5px 9px; border-radius: 999px; color: var(--mute); }
.langsw [aria-current] { background: var(--ink); color: var(--bg); }

/* ---------- Hero: escenario enmarcado ---------- */
.hero { position: relative; padding: var(--frame); height: 100svh; min-height: 620px; }
.stage-wrap { height: 100%; transform-origin: 50% 0; }
.stage { position: relative; height: 100%; border-radius: 28px; overflow: hidden; isolation: isolate; background: var(--bg-2); box-shadow: var(--shadow); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.stage-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg-2) 94%, transparent) 0%, color-mix(in srgb, var(--bg-2) 82%, transparent) 34%, color-mix(in srgb, var(--bg-2) 0%, transparent) 64%),
              linear-gradient(0deg, color-mix(in srgb, var(--bg-2) 55%, transparent) 0%, transparent 32%);
}
.hero-copy { position: absolute; left: clamp(24px, 5vw, 80px); bottom: clamp(28px, 8vh, 88px); width: min(860px, 100% - 48px); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 1px var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #9aa1ab; }
.status.is-open .pulse { background: #2f8a57; box-shadow: 0 0 0 4px rgba(47, 138, 87, .16); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(40px, 4.6vw, 76px); line-height: 1.0; letter-spacing: -.035em; font-stretch: 120%; max-width: none; }
.hero h1 .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.hero .lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* linea de luz de "escaneo": un solo barrido al cargar */
.scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%); transform: translateX(-100%); }

/* Entrada del hero (se ve una vez por visita: aqui va el presupuesto de "delight") */
.motion .stage { animation: stage-in 1.15s var(--ease-out) both; }
.motion .stage-img { animation: img-in 1.6s var(--ease-out) both; }
.motion .hero h1 .line > span { animation: line-in .95s var(--ease-out) both; animation-delay: calc(.32s + var(--i) * 90ms); }
.motion .hero .lead, .motion .hero .actions, .motion .hero .status:not([hidden]) { animation: fade-up .8s var(--ease-out) both; }
.motion .hero .status { animation-delay: .25s; }
.motion .hero .lead { animation-delay: .62s; }
.motion .hero .actions { animation-delay: .74s; }
.motion .scan { animation: scan 1.8s var(--ease-in-out) .7s both; }
@keyframes stage-in { from { clip-path: inset(4% 3% 4% 3% round 40px); } to { clip-path: inset(0 0 0 0 round 28px); } }
@keyframes img-in { from { transform: scale(1.08); } to { transform: none; } }
@keyframes line-in { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes scan { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(100%); } }

/* El escenario se recoge al salir, como una cortina que deja paso a la siguiente seccion */
@supports (animation-timeline: view()) {
  .motion .stage-wrap { animation: stage-out linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  @keyframes stage-out { to { transform: scale(.9); opacity: .35; } }
}

/* ---------- Secciones y riel de plata ---------- */
.section { position: relative; padding: clamp(96px, 13vw, 176px) 0; }
.section .wrap { position: relative; padding-left: clamp(0px, 4vw, 64px); }
.rail { position: absolute; top: 0; bottom: 0; left: var(--rail-x); width: 11px; pointer-events: none; }
.rail-line { position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--logo-grey) 12%, var(--logo-grey) 88%, transparent); transform-origin: 50% 0; }
.rail-node { position: absolute; left: 0; top: calc(clamp(96px, 13vw, 176px) + 14px); width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--logo-grey); transition: box-shadow .4s var(--ease-out), background-color .4s ease; }
.is-active > .rail .rail-node { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-soft); }
@supports (animation-timeline: view()) {
  .motion .rail-line { animation: draw linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* Revelado al entrar en pantalla (IntersectionObserver anade .in) */
.motion [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.motion [data-rv].in { opacity: 1; transform: none; }

/* ---------- Tratamientos: bento ---------- */
.bento { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); gap: 14px; }
.cell { position: relative; border-radius: 24px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px var(--line); }
.cell-body { position: relative; padding: clamp(20px, 2vw, 28px); }
.cell p { margin-top: 8px; color: var(--mute); font-size: 15.5px; line-height: 1.5; max-width: 40ch; }
.cell-implants { grid-column: span 2; grid-row: span 2; }
.cell-implants h3 { font-size: clamp(22px, 2vw, 28px); }
.cell-ortho, .cell-restore, .cell-aesthetic { grid-column: span 2; }
.cell-hygiene { background: var(--silver); }
.cell-aesthetic { background: linear-gradient(160deg, var(--surface) 0%, color-mix(in srgb, var(--accent) 14%, var(--surface)) 100%); }
.cell.has-img { color: #f5f7f9; min-height: 300px; }
.cell.has-img p { color: rgba(245, 247, 249, .82); }
.cell-media { position: absolute; inset: 0; z-index: -1; }
.cell-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cell-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 21, .82) 0%, rgba(14, 17, 21, .35) 46%, rgba(14, 17, 21, 0) 70%); }
.cell-kids .cell-media img { object-position: 78% 70%; }
@media (hover: hover) and (pointer: fine) { .cell.has-img:hover .cell-media img { transform: scale(1.04); } }
.cell-glyph { position: absolute; top: 22px; right: 22px; font-size: 64px; color: var(--accent); opacity: .85; }
.by { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; color: inherit; opacity: .9; }
.by-faces { display: flex; }
.by-faces img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px var(--surface); }
.has-img .by-faces img { box-shadow: 0 0 0 2px rgba(20, 22, 26, .9); }
.by-faces img + img { margin-left: -8px; }
.by-txt { color: var(--mute); }
.has-img .by-txt { color: rgba(245, 247, 249, .78); }

/* ---------- Equipo ---------- */
.team-grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.bezel { padding: 7px; border-radius: 28px; background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--line), var(--shadow); }
.bezel-in { border-radius: 22px; overflow: hidden; background: var(--bg-2); }
.doctor .bezel-in img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.doctor-body { padding: 24px 6px 0; }
.doctor h3 { font-size: clamp(24px, 2.2vw, 32px); }
.doctor .role { margin-top: 10px; color: var(--ink-2); }
.creds { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.more { margin-top: 18px; }
.more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; color: var(--accent); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary .ic { transition: transform .25s var(--ease-out); }
.more[open] summary .ic { transform: rotate(180deg); }
.more ul { margin-top: 12px; padding-left: 18px; color: var(--mute); font-size: 15px; display: grid; gap: 6px; }
.members { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.member-img { border-radius: 22px; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.member-img img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 22%; transition: transform 1s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .member:hover .member-img img { transform: scale(1.035); } }
.member h3 { margin-top: 14px; font-size: 18px; }
.member .meta { margin-top: 2px; }
.member p:last-child { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* ---------- La clinica: recorrido fijado con el scroll ---------- */
.clinic { position: relative; }
.clinic-track { position: relative; height: calc(var(--n) * 100svh); }
.clinic-mark { position: absolute; left: 0; width: 1px; height: 100svh; pointer-events: none; }
.clinic-stage { position: sticky; top: 0; height: 100svh; padding: var(--frame); }
.shots { position: absolute; inset: var(--frame); border-radius: 28px; overflow: hidden; background: #1a1d22; box-shadow: var(--shadow); }
.shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out); }
.shot.is-past { transform: scale(.97); }
.shot.is-active { opacity: 1; transform: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shots::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(12, 14, 17, .55) 0%, rgba(12, 14, 17, .1) 45%, transparent 70%); }
.clinic-panel {
  position: absolute; left: calc(var(--frame) + clamp(20px, 4vw, 56px)); bottom: calc(var(--frame) + clamp(20px, 6vh, 64px)); width: min(440px, calc(100% - var(--frame) * 2 - 32px));
  padding: clamp(22px, 2.4vw, 32px); border-radius: 28px; color: var(--ink);
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 1px var(--line), var(--shadow);
}
.clinic-panel h2 { font-size: clamp(28px, 2.8vw, 40px); }
.clinic-steps { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 2px; }
.clinic-steps button { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 14px; transition: background-color .3s ease; }
.clinic-steps button::before { content: ""; grid-row: span 2; width: 3px; border-radius: 3px; background: var(--line); transition: background-color .3s ease; }
.clinic-steps b { font-weight: 600; font-size: 15.5px; color: var(--mute); transition: color .3s ease; }
.clinic-steps span { grid-column: 2; display: grid; grid-template-rows: 0fr; opacity: 0; font-size: 14.5px; color: var(--ink-2); transition: grid-template-rows .45s var(--ease-out), opacity .3s ease; }
.clinic-steps .is-active button { background: var(--accent-soft); }
.clinic-steps .is-active button::before { background: var(--accent); }
.clinic-steps .is-active b { color: var(--ink); }
.clinic-steps .is-active span { grid-template-rows: 1fr; opacity: 1; }

/* ---------- Opiniones ---------- */
.rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 16px; border-radius: 999px; font-weight: 500; box-shadow: 0 0 0 1px var(--line); background: var(--surface); transition: box-shadow .2s ease; }
@media (hover: hover) and (pointer: fine) { .rating:hover { box-shadow: 0 0 0 1px var(--ink-2); } }
.stars { display: inline-flex; gap: 2px; color: #c39a3b; font-size: 15px; }
.reviews-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px var(--line), 0 20px 40px -30px rgba(32, 44, 60, .4); display: flex; flex-direction: column; gap: 14px; }
.review blockquote { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: 14px; }
.review figcaption span { color: var(--mute); font-size: 13px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.contact .status { margin-top: 26px; }
.details { margin-top: 30px; display: grid; gap: 22px; }
.details > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.details dt { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); }
.details dt .ic { font-size: 20px; color: var(--accent); }
.details dd .muted { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; margin-top: 4px; }
.link { border-bottom: 1px solid var(--line); transition: border-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { border-color: var(--ink); } }
.hours { display: grid; gap: 4px; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; font-size: 15.5px; padding: 3px 10px; margin-inline: -10px; border-radius: 10px; }
.hours-row dt { color: var(--mute); }
.hours-row.is-today { background: var(--accent-soft); }
.hours-row.is-today dt { color: var(--ink); font-weight: 500; }
.map .bezel-in { aspect-ratio: 4 / 4.4; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }
@media (prefers-color-scheme: dark) { .map iframe { filter: grayscale(.9) invert(.9) hue-rotate(180deg) contrast(.9); } }

/* ---------- Pie ---------- */
.footer { padding: 64px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px 64px; align-items: start; }
.footer-logo { color: var(--ink); }
.footer-mark { width: 168px; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: 48px; color: var(--ink-2); font-size: 15px; }
.footer-links { display: flex; align-items: center; gap: 14px; }
.footer-links .ic { font-size: 22px; }
.fine { grid-column: 1 / -1; color: var(--mute); font-size: 13px; }

/* ---------- Dock movil ---------- */
.dock { display: none; }

/* ---------- Dialogo 360 ---------- */
.tour { width: min(1200px, 100vw - 24px); height: min(780px, 100svh - 24px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 28px; overflow: hidden; background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow); }
.tour[open] { display: flex; flex-direction: column; animation: tour-in .32s var(--ease-out); }
.tour::backdrop { background: rgba(12, 14, 17, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes tour-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 24px; }
.tour-head h2 { font-size: 20px; max-width: none; }
.tour-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; box-shadow: 0 0 0 1px var(--line); transition: transform 160ms var(--ease-out); }
.tour-close:active { transform: scale(.94); }
.tour-frame { flex: 1; }
.tour-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav { top: 10px; left: 12px; right: 12px; translate: none; width: auto; justify-content: space-between; padding-left: 16px; }
  .nav-call-txt { display: none; }
  .nav-call { padding: 0; height: 42px; }
  .nav-call .btn-ic { width: 42px; height: 42px; background: transparent; }
  .hero { height: 100svh; min-height: 560px; }
  .stage-img { height: 60%; object-position: 58% 60%; }
  .stage-veil { background: linear-gradient(0deg, var(--bg-2) 0%, var(--bg-2) 40%, color-mix(in srgb, var(--bg-2) 0%, transparent) 62%); }
  .hero-copy { left: 20px; right: 20px; width: auto; bottom: calc(100px + env(safe-area-inset-bottom)); }
  .hero h1 { font-size: clamp(30px, 8.6vw, 44px); margin: 16px 0 12px; }
  .hero h1 .line { white-space: normal; }
  .hero .lead { font-size: 16px; }
  .hero .actions { display: none; }
  .section .wrap { padding-left: 22px; }
  .rail { left: calc(var(--gutter) - 6px); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cell, .cell-implants, .cell-ortho, .cell-restore, .cell-aesthetic { grid-column: auto; grid-row: auto; }
  .cell-implants { min-height: 420px; }
  .cell.has-img { min-height: 340px; }
  .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .doctor .bezel { max-width: 440px; }
  .details > div { grid-template-columns: 1fr; gap: 8px; }
  .hours-row { font-size: 14.5px; }
  .hours-row dd { white-space: nowrap; }
  .contact .actions { display: none; }
  .clinic-panel { left: calc(var(--frame) + 12px); right: calc(var(--frame) + 12px); width: auto; bottom: calc(var(--frame) + 92px + env(safe-area-inset-bottom)); padding: 20px; }
  .clinic-steps { margin: 14px 0 16px; }
  .clinic-steps li:not(.is-active) { display: none; }
  .shots::after { background: linear-gradient(0deg, rgba(12, 14, 17, .5) 0%, transparent 55%); }
  .reviews-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 20px; margin-left: calc(var(--gutter) * -1 - 22px); margin-right: calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 82%; scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; justify-content: start; gap: 18px; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .dock {
    display: flex; gap: 8px; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 999px;
    background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px var(--line), 0 14px 34px -16px rgba(32, 44, 60, .5);
  }
  .dock .btn { flex: 1; justify-content: space-between; height: 52px; }
}
@media (max-width: 420px) { .langsw > * { padding: 5px 7px; } }

/* ---------- Movimiento reducido: menos y mas suave, no cero ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot { transition: opacity .3s ease; transform: none !important; }
  .member-img img, .cell-media img { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .dock, .btn-glass, .status, .clinic-panel, .bezel { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
