/* ===== Tokens de marca ===== */
:root {
  --black: #0A0908;
  --graphite: #141210;
  --char: #1C1915;
  --gold: #B5A57F;        /* oro champán: el dorado del logo (#AE9E78), apenas aclarado para leer sobre negro */
  --gold-deep: #AE9E78;   /* dorado exacto del logo */
  --gold-soft: rgba(174, 158, 120, .45);
  --ivory: #EDE6D6;
  --muted: #A69E8E;
  --line: rgba(174, 158, 120, .26);
  /* una sola familia en todo el sitio y en las páginas de campaña: Inter Tight (pedido de la clienta, 2026-10-20).
     --serif queda como nombre del papel «display» (títulos y cifras), ya no de una serif. */
  --serif: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
/* al terminar la carga, la escena 3D y el encabezado aparecen despacio bajo las chispas de la carga */
.gl, .header, .rail { transition: opacity 2.4s cubic-bezier(.4,0,.2,1); }
body.is-loading .gl, body.is-loading .header, body.is-loading .rail { opacity: 0; transition: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--black); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--black); }
.treat__obj:focus-visible { outline-offset: -12px; }

.eyebrow, .hud-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.005em;
  margin-bottom: 22px;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  font: 500 11px/1 var(--sans);
  letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--ivory); border-color: var(--ivory); }
.btn--line { color: var(--gold); background: rgba(10, 9, 8, .25); backdrop-filter: blur(6px); }
.btn--line:hover { background: var(--gold); color: var(--black); }
.link { color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-underline-offset: 6px; }

/* ===== Carga ===== */
.loader {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--black);
  transition: background-color 1.6s var(--ease), visibility 0s 2.5s;
}
/* sin corte: el fondo negro se vuelve transparente y las chispas del lienzo se apagan solas
   (2,4 s) encima de la portada, que ya empezó a formarse debajo */
.loader.is-done { background-color: transparent; visibility: hidden; pointer-events: none; }
.loader__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ===== Encabezado y menú lateral ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header__logo img { width: clamp(150px, 15vw, 210px); height: auto; }
.header__right { display: flex; align-items: center; gap: 14px; }
.header.is-solid { background: linear-gradient(rgba(10,9,8,.85), rgba(10,9,8,0)); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(10,9,8,.4); cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 18px; height: 1px; background: var(--gold); margin: 5px auto; transition: transform .4s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.rail {
  position: fixed; right: var(--gutter); top: 50%; z-index: 30;
  transform: translateY(-50%);
}
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 14px; text-decoration: none; padding: 4px 0; }
.rail i { width: 6px; height: 6px; border: 1px solid var(--gold); border-radius: 50%; transition: background .4s, transform .4s var(--ease); }
.rail__label {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory);
  opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .4s var(--ease);
}
.rail a:hover .rail__label, .rail a:focus-visible .rail__label { opacity: 1; transform: none; }
.rail a.is-active i { background: var(--gold); transform: scale(1.35); box-shadow: 0 0 10px var(--gold); }

/* ===== Experiencia fijada ===== */
.experience { position: relative; height: 100vh; height: 100svh; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--black);
  --mx: 0; --my: 0;
}
.env { position: absolute; inset: -4%; z-index: 1; }
.env__video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: var(--env-op, 1);
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0) scale(var(--env-scale, 1.04));
  filter: blur(var(--env-blur, 0px)) brightness(var(--env-bright, .85)) saturate(.9);
  will-change: transform, filter;
}
.env::after { /* viñeta para que la boca resalte en el centro */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(10,9,8,.0), rgba(10,9,8,.55) 70%, rgba(10,9,8,.9));
}
.gl { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.fog { position: absolute; inset: 0; z-index: 8; width: 100%; height: 100%; pointer-events: none; }
.flash { position: absolute; inset: 0; z-index: 9; pointer-events: none; background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #EFE7D6, var(--gold-deep) 30%, var(--black) 75%); opacity: var(--flash, 0); }

.ghost { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: var(--ghost, .5); }
.ghost .g1 { --x: 8%; --y: 22%; } .ghost .g2 { --x: 62%; --y: 16%; } .ghost .g3 { --x: 70%; --y: 78%; } .ghost .g4 { --x: 14%; --y: 84%; }   /* sin estilos en línea: la CSP no los permite */
.ghost span {
  position: absolute; left: var(--x); top: var(--y);
  font: 500 clamp(14px, 1.6vw, 24px)/1 var(--sans); letter-spacing: .3em;
  color: rgba(237,230,214,.16); filter: blur(3px);
  transform: translate3d(calc(var(--mx) * 22px), calc(var(--my) * 14px), 0);
}

/* Portada */
.hero { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: var(--hero-op, 1); }
.hero > * { pointer-events: auto; }
.hero__copy {
  position: absolute; left: var(--gutter); bottom: calc(5vh + 100px); width: min(340px, 26vw);
  transform: translateY(calc(var(--hero-shift, 0) * -40px));
}
.hero__title { text-shadow: 0 2px 30px rgba(10,9,8,.7); font-family: var(--serif); font-size: clamp(28px, 2.6vw, 42px); line-height: 1.02; margin: 0 0 14px; }
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--gold); padding-left: .6em; }
.hero__lead { color: var(--muted); max-width: 36ch; margin-bottom: 18px; font-size: 13px; line-height: 1.6; }
.hero__manifest {
  position: absolute; right: calc(var(--gutter) + 56px); bottom: 13vh; width: 210px;
  font-size: 11px; line-height: 1.7; color: rgba(237,230,214,.75); text-align: right;
}
@media (max-width: 1180px) { .hero__manifest { display: none; } }
.hero__hint {
  position: absolute; right: calc(var(--gutter) + 56px); bottom: 7vh;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px; margin: 0;
}
.hint-touch { display: none; }
/* pantallas táctiles y celulares: la indicación invita a tocar, centrada bajo la boca; se aparta mientras se ve la ficha de un diente */
@media (max-width: 860px), (pointer: coarse) {
  .hero__hint {
    left: 50%; right: auto; bottom: auto; top: 49vh; transform: translateX(-50%);
    white-space: nowrap; gap: 9px;
    font-family: var(--serif); font-size: 15px; font-weight: 400; letter-spacing: .03em; text-transform: none;
    color: rgba(237,230,214,.6);                                  /* sutil: serif, minúsculas, sin recuadro */
    pointer-events: none; opacity: calc(1 - var(--tt, 0)); transition: opacity .4s;
  }
  .hero__hint .hero__hint-dot { width: 5px; height: 5px; }
  .hint-desk { display: none; }
  .hint-touch { display: inline; }
}
.hero__hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold-soft); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(174,158,120,0); } 100% { box-shadow: 0 0 0 0 rgba(174,158,120,0); } }
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 5vh; margin: 0;
  font-size: 11px; line-height: 1.6; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { display: block; width: 1px; height: 34px; margin-top: 10px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Medición por diente */
.tooth-lines { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tooth-line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 4; opacity: var(--tt, 0); }
.tooth-ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: var(--tt, 0); transform-box: fill-box; transform-origin: center; }
.tooth-tag {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none;
  padding: 12px 16px 10px; min-width: 190px;
  border-left: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(10,9,8,.78), rgba(10,9,8,.2));
  backdrop-filter: blur(6px);
  opacity: var(--tt, 0);
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: opacity .35s;
}
.tooth-tag p { margin: 0; }
.tooth-tag__id { font-size: 11px; letter-spacing: .3em; color: var(--gold); }
.tooth-tag__id b { font-family: var(--serif); font-size: 26px; letter-spacing: 0; font-weight: 500; margin-left: 6px; color: var(--ivory); }
.tooth-tag__name { font-family: var(--serif); font-size: 19px; }
.tooth-tag__dims { display: flex; gap: 16px; font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.tooth-tag__dims b { color: var(--ivory); font-weight: 500; letter-spacing: .05em; }

/* Tratamientos */
.treats { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.treat { position: absolute; inset: 0; opacity: var(--op, 0); visibility: hidden; }
.treat.is-on { visibility: visible; }
.treat.is-on .treat__obj, .treat.is-on .treat__copy { pointer-events: auto; }
.treat__obj {
  position: absolute; left: 50%; top: 50%;
  height: var(--obj-h, min(84vh, 150vw)); aspect-ratio: 9 / 16;
  transform: translate3d(calc(-50% - var(--sx, 0%) + var(--pdx, 0px)), calc(-50% + var(--oy, 0) * 1vh), 0) rotate(calc(var(--rz, 0) * 1deg));
  cursor: ew-resize;
}
/* Lentes: el par (pieza de frente + carilla en 3/4) queda centrado; la foto real sigue calzando sobre la pieza de frente.
   --sx = shift de stage.js (0,0083 altos de la imagen) en anchos del cuadro: 0,0083 × 16 / (1,4 × 9) */
.treat[data-treat="lente"] { --sx: 1.06%; }
.treat__seq {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--px, 0); transition: opacity .5s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  transform: perspective(900px) rotateY(var(--sry, 0deg)) rotateX(var(--srx, 0deg));
  mix-blend-mode: lighten;                         /* el negro de la foto desaparece: solo queda la pieza */
}
.treat__hint {
  position: absolute; left: calc(50% + var(--sx, 0%)); bottom: 9%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
  padding: 8px 14px; border: 1px solid var(--line); background: rgba(10,9,8,.6);
  opacity: calc(var(--hud, 0) * (1 - var(--px, 0)));
  white-space: nowrap;
}
.hud {
  position: absolute; z-index: 2;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  opacity: var(--hud, 0);
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--oy, 0) * 1vh * .6 + var(--my) * 8px), 0);
}
.hud p { margin: 0 0 4px; }
.hud b { color: var(--ivory); font-weight: 500; letter-spacing: .08em; }
.hud .hud-title { margin-bottom: 4px; }
.hud-big { font-family: var(--serif); font-size: 15px; letter-spacing: .12em; color: var(--ivory); }
.hud-line { position: absolute; display: block; height: 1px; background: linear-gradient(90deg, rgba(181,165,127,.35), var(--gold)); margin: 0; transform-origin: left center; transform: scaleX(var(--hud, 0)); }   /* app.js la orienta hacia la pieza */
/* anillo en el punto exacto donde la línea toca la pieza */
.treat .hud-line { opacity: calc(1 - var(--px, 0)); }   /* con la pieza real a la vista, las líneas (medidas sobre la plexus) se apartan */
.hud-line::after { content: ""; position: absolute; right: -4px; top: -3px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ivory); background: rgba(10,9,8,.6); opacity: var(--hud, 0); }
.hud--a { right: calc(50% + 21vh + 40px); top: 18vh; text-align: right; }   /* anclado por la derecha: un nombre largo no corre la línea */
.hud--b { left: calc(50% + 21vh + 40px); top: 40vh; }   /* la pieza mide 60vh de alto: las fichas se separan con ella */
.hud--c { left: calc(50% + 20vh + 40px); top: 70vh; }
.hud--d { right: calc(50% + 20vh + 40px); top: 75vh; text-align: right; }   /* bajo el botón del texto, que con los textos técnicos quedó más largo */
.hud-live { font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.hud-live b { display: inline-block; min-width: 5.4ch; text-align: right; margin-right: 8px; }
.treat__copy {
  position: absolute; left: var(--gutter); top: 50%; width: min(380px, 30vw);
  opacity: var(--cop, 0);
  transform: translate3d(0, calc(-50% + var(--cy, 0) * 1px), 0);
}
.treat__num { font-size: 11px; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); }
.treat__title { font-family: var(--serif); font-size: clamp(40px, 4.6vw, 70px); line-height: 1; margin: 0 0 20px; }
.treat__copy p:not(.treat__num) { color: var(--muted); margin-bottom: 26px; }

/* Monograma */
.mono {
  position: absolute; left: 50%; bottom: 12vh; z-index: 5; transform: translateX(-50%);
  text-align: center; opacity: var(--mono, 0); pointer-events: none; width: min(560px, 90vw);
}
.mono__line { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 18px; color: var(--ivory); }
.mono__sub { font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin: 0; opacity: .85; }

.progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; height: 1px; z-index: 7; background: rgba(174,158,120,.14); }
.progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--prog, 0)); }

/* ===== Otros servicios ===== */
.services { position: relative; height: 420vh; background: var(--black); }
.services__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end; padding-bottom: 14vh;
  background: var(--black);
}
.services__pin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(174,158,120,.07), transparent 70%),
    radial-gradient(circle, rgba(174,158,120,.10) 1px, transparent 1.4px) 0 0 / 34px 34px;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.services__head { position: absolute; left: var(--gutter); top: 15vh; width: min(460px, 80vw); z-index: 2; }
.services__count { font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.services__count b { color: var(--gold); font-weight: 500; }
.services__track {
  display: flex; gap: clamp(18px, 2.4vw, 36px);
  padding-left: calc(var(--gutter) + min(500px, 38vw));
  padding-right: 20vw;
  will-change: transform;
  transform: translate3d(calc(var(--sx, 0) * 1px), 0, 0);
}
.services__pin::after { /* las tarjetas se desvanecen al pasar bajo el título */
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--gutter) + min(380px, 30vw)); z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--black) 55%, rgba(10,9,8,0));
}
.card {
  flex: 0 0 clamp(270px, 25vw, 360px);
  min-height: min(48vh, 440px);
  padding: 34px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(28,25,21,.92), rgba(10,9,8,.92));
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  transition: border-color .5s, transform .6s var(--ease);
}
.card:hover { border-color: var(--gold); transform: translateY(-6px); }
.card__icon { position: absolute; top: 30px; left: 28px; width: 54px; height: 54px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.card__num { position: absolute; top: 30px; right: 28px; font-family: var(--serif); font-size: 46px; color: rgba(174,158,120,.25); margin: 0; line-height: 1; }
.card h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.services__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9vh; height: 1px; background: rgba(174,158,120,.15); }
.services__bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--sp, 0)); }

/* ===== Nosotros ===== */
.about {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(30px, 6vw, 110px);
  padding: 18vh calc(var(--gutter) + 70px) 16vh var(--gutter);
  position: relative; z-index: 2;
}
/* retratos: el fondo oscuro del estudio se funde con la página por abajo y los lados */
.about__mark { margin: 0; justify-self: center; width: min(460px, 100%); }
.about__mark img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  /* corte sutil: un degradado elíptico amplio, sin ningún borde recto a la vista */
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 46%, #000 52%, rgba(0,0,0,.55) 78%, transparent 100%);
          mask-image: radial-gradient(ellipse closest-side at 50% 46%, #000 52%, rgba(0,0,0,.55) 78%, transparent 100%);
}
.about__role { color: var(--gold); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.about__body > p:not(.eyebrow):not(.about__role) { color: var(--muted); max-width: 60ch; }
.team__title { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.team { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team li { display: grid; gap: 4px; align-content: start; }
.team img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 10px;
  /* batas blancas: un degradado vertical largo y laterales suaves, para que no se dibuje un óvalo */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 40%, rgba(0,0,0,.45) 72%, transparent 100%), linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 40%, rgba(0,0,0,.45) 72%, transparent 100%), linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.team b { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.15; }
.team span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* ===== Globo ===== */
.world {
  position: relative; display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; align-items: center;
  min-height: 100vh; padding: 12vh calc(var(--gutter) + 70px) 12vh var(--gutter);
  position: relative; z-index: 1;
  overflow-x: clip; overflow-y: visible;
}
.world__copy { position: relative; z-index: 2; }
.stats { display: flex; gap: 42px; margin: 10px 0 24px; }
.stats p { margin: 0; display: grid; }
.stats b { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 6vw, 90px); line-height: 1; color: var(--gold); }
.stats span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.world__lead { color: var(--muted); max-width: 42ch; }
.flags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 470px; }
.flags li {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--line); border-radius: 30px; font-size: 12px; color: var(--ivory);
  cursor: pointer; transition: border-color .3s, background .3s;
}
.flags li:hover, .flags li.is-active { border-color: var(--gold); background: rgba(174,158,120,.1); }
.flags img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
/* sin reseñas: países como texto (sin aspecto de botón) y «+N países más» */
.flags--static li { cursor: default; }
.flags--static li:hover { border-color: var(--line); background: none; }
.flags .flags__more { border: 0; padding: 6px 4px; color: var(--muted); letter-spacing: .04em; }
/* testimonios escritos (CLINIC_CONFIG.testimonials): solo aparecen si la clienta los carga */
.voices { display: grid; gap: 18px; margin: 26px 0 0; max-width: 520px; }
.voice { margin: 0; padding-left: 18px; border-left: 1px solid var(--gold-soft); }
.voice p { font-family: var(--serif); font-size: 20px; line-height: 1.35; color: var(--ivory); margin: 0 0 8px; }
.voice footer { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.flags li.has-reviews::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-left: 2px; }
.reviews { margin-top: 26px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .8s var(--ease), opacity .6s; }
.reviews.is-open { max-height: 900px; opacity: 1; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-width: 520px; }
.review { margin: 0; border: 1px solid var(--line); background: rgba(10,9,8,.6); }
.review video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.review figcaption { padding: 8px 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.reviews__empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; max-width: 46ch; margin: 0; }
.world__hint { margin-top: 22px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.world__globe { position: relative; aspect-ratio: 1; width: min(100%, 86vh); justify-self: center; touch-action: pan-y; cursor: grab; }
.world__globe:active { cursor: grabbing; }
.globe { position: absolute; inset: -45%; width: 190%; height: 190%; max-width: none; pointer-events: none; }
.globe__pins { position: absolute; inset: -45%; pointer-events: none; }
.pin {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; overflow: hidden; border: 1px solid var(--gold);
  box-shadow: 0 0 12px rgba(174,158,120,.5);
  transition: opacity .3s;                    /* sin transición en transform: la bandera sigue a su punto en cada cuadro */
  pointer-events: auto; cursor: pointer;
}
.pin img { width: 100%; height: 100%; object-fit: cover; }
.pin--home { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-width: 2px; }

/* ===== Contacto ===== */
.contact { position: relative; z-index: 2; padding: 16vh var(--gutter) 0; }
.contact__cta { text-align: center; max-width: 720px; margin: 0 auto 12vh; }
.contact__cta > p:not(.eyebrow) { color: var(--muted); }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; padding: 50px 0; border-top: 1px solid var(--line); }
.contact__grid p { color: var(--muted); font-size: 14.5px; }
.contact__grid a { text-decoration: none; }
.contact__grid a:hover { color: var(--gold); }
.social { display: flex; gap: 12px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); transition: background .3s, color .3s; }
.social a:hover { background: var(--gold); color: var(--black); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px 0 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer img { width: 160px; height: auto; }
.footer p { margin: 0; }
.footer__legal a { color: var(--gold); text-decoration: none; }

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .hud--a { right: calc(50% + 160px); }
  .hud--c { display: none; }
}
@media (min-width: 861px) and (max-width: 1199px) { .rail { display: none; } }
@media (min-width: 861px) and (max-height: 820px) {   /* pantallas bajas: el rótulo sube para no tocar el texto del tratamiento */
  .hud--a { top: 11vh; }
}
@media (min-width: 861px) {   /* el par de lentes es más ancho: las fichas se separan más */
  .treat[data-treat="lente"] .hud--a { right: calc(50% + 21vh * var(--pf, 1) + 40px - var(--pdx, 0px)); }
  .treat[data-treat="lente"] .hud--b { left: calc(50% + 21vh * var(--pf, 1) + 40px + var(--pdx, 0px)); }
}
.rail .rail__cta, .mcta { display: none; }   /* .rail a tiene más peso: hay que nombrar .rail */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header { z-index: 35; }                                  /* el botón de cerrar queda sobre el menú abierto */
  .rail .rail__cta { display: inline-flex; margin-top: 40px; justify-content: center; flex-direction: row; }
  .mcta {
    display: flex; position: fixed; z-index: 40; left: var(--gutter); right: var(--gutter);
    bottom: calc(14px + env(safe-area-inset-bottom)); padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease);
  }
  .mcta.is-on { transform: none; }
  .header__right .btn { display: none; }
  .rail {
    inset: 0; transform: none; right: 0; display: grid; place-content: center;
    background: rgba(10,9,8,.96); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
  }
  .rail.is-open { opacity: 1; visibility: visible; }
  .rail ol { gap: 22px; }
  .rail a { justify-content: center; flex-direction: row-reverse; }
  .rail__label { opacity: 1; transform: none; font-size: 13px; }
  .hero__copy { width: auto; right: var(--gutter); bottom: 9vh; }
  .hero__manifest { display: none; }
  .scroll-cue { display: none; }
  .treat__obj { top: var(--obj-top, 35%); height: var(--obj-h, 50vh); }   /* app.js (mobileLayout) lo calcula con el mismo encuadre que la pieza plexus */
  .treat__hint { bottom: auto; top: 100%; z-index: 3; background: rgba(10,9,8,.85); border-color: var(--gold); }   /* sobre la pieza, lejos del texto de abajo */
  .treat__copy { top: auto; bottom: 6vh; right: var(--gutter); width: auto; transform: translate3d(0, calc(var(--cy, 0) * 1px), 0); }
  .treat__copy p:not(.treat__num) { font-size: 14px; margin-bottom: 16px; }
  .treat__title { font-size: 38px; margin-bottom: 10px; }
  .mono__sub { letter-spacing: .22em; white-space: nowrap; }
  .hud--a { left: var(--gutter); right: auto; top: 13vh; text-align: left; }
  .hud--a .hud-line, .hud--b .hud-line { display: none; }
  .hud--b { left: auto; right: var(--gutter); top: 50vh; text-align: right; }
  .hud--d { display: none; }
  .hud-big { font-size: 13px; }
  .services { height: 520vh; }
  .services__head { top: 11vh; }
  .services__pin { padding-bottom: 10vh; }
  .services__pin::after { display: none; }
  .services__track { padding-left: var(--gutter); }
  .about, .world { padding-right: var(--gutter); }
  .card { flex-basis: 78vw; min-height: 46vh; }
  .about { grid-template-columns: 1fr; padding-top: 12vh; }
  .about__mark { width: min(340px, 78%); }
  .team { grid-template-columns: 1fr; gap: 0; }
  .team li { grid-template-columns: 92px 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .team img { grid-row: span 2; margin: 0; }
  .team b { align-self: end; }
  .team span { align-self: start; }
  .world { grid-template-columns: minmax(0, 1fr); padding-top: 12vh; }   /* minmax: la columna no se estira más que la pantalla */
  .world__globe { width: 82%; order: 2; margin: 22vw auto 18vw; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
}
/* celulares muy bajos (≤640 px de alto): texto compacto y sin ficha técnica, para que la pieza quepa */
@media (max-width: 860px) and (max-height: 640px) {
  .treat .hud--b { display: none; }
  .treat__title { font-size: 30px; margin-bottom: 6px; }
  .treat__copy p:not(.treat__num) { font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
  .treat__copy .btn { padding: 10px 16px; }
}
@media (max-width: 560px) {
  .contact__grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .btn { padding: 12px 18px; }
  .contact__btns .btn { flex: 1 1 100%; }
}

/* ===== Movimiento reducido: todo apilado y estático ===== */
.reduced .experience { height: auto; }
.reduced .stage { position: relative; height: auto; overflow: visible; }
.reduced .env { position: fixed; z-index: -1; }   /* detrás de todo: fijo y con z 1 tapaba Servicios y las demás secciones */
.reduced .gl, .reduced .fog, .reduced .flash, .reduced .tooth-tag, .reduced .tooth-lines, .reduced .progress, .reduced .mono, .reduced .ghost { display: none; }
.reduced .hero { position: relative; min-height: 100vh; opacity: 1; background: url("../assets/img/boca-plexus.webp") 50% 42% / min(92vw, 1100px) auto no-repeat; }
.reduced .treats { position: relative; }
.reduced .treat { position: relative; height: 100vh; opacity: 1; visibility: visible; --hud: 1; --cop: 1; --px: 1; }
.reduced .treat__obj, .reduced .treat__copy { pointer-events: auto; }
.reduced .services { height: auto; }
.reduced .services__pin { position: relative; height: auto; display: block; padding: 14vh 0; }
.reduced .services__head { position: relative; top: 0; margin-bottom: 40px; }
.reduced .services__track { flex-wrap: wrap; padding: 0 var(--gutter); transform: none; }
.reduced .services__bar { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ===== Inter Tight en títulos y cifras =====
   Inter Tight se ve más grande que la Cormorant a igual tamaño: los títulos bajan ~15 %, pasan a peso 400
   y se cierran como en las páginas de campaña (-.03 em). */
.h2 { font-weight: 400; font-size: clamp(30px, 3.9vw, 58px); letter-spacing: -.03em; }
.hero__title { font-weight: 400; font-size: clamp(26px, 2.4vw, 40px); letter-spacing: -.03em; line-height: 1.04; }
.tooth-tag__id b { font-size: 22px; letter-spacing: -.02em; }
.tooth-tag__name { font-size: 16px; letter-spacing: -.01em; }
.hud-big { font-size: 13px; letter-spacing: .06em; }
.treat__title { font-weight: 400; font-size: clamp(34px, 3.9vw, 60px); letter-spacing: -.035em; line-height: 1.02; }
.mono__line { font-size: clamp(26px, 2.9vw, 46px); letter-spacing: -.03em; }
.card__num { font-size: 38px; letter-spacing: -.03em; }
.card h3 { font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.team__title { font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
.team b { font-size: 17px; letter-spacing: -.01em; }
.stats b { font-weight: 400; font-size: clamp(46px, 5vw, 76px); letter-spacing: -.04em; }
.voice p { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }
@media (max-width: 860px), (pointer: coarse) { .hero__hint { font-size: 14px; letter-spacing: 0; } }
@media (max-width: 860px) { .treat__title { font-size: 32px; } .hud-big { font-size: 12px; } }
@media (max-width: 860px) and (max-height: 640px) { .treat__title { font-size: 26px; } }

/* ===== Testimonios en video: miniaturas y visor en grande (app.js, openViewer) ===== */
.review__open { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.review__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; opacity: .9; }
.review__open:hover img, .review__open:focus-visible img { transform: scale(1.04); opacity: 1; }
.review__play {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border: 1px solid rgba(237,230,214,.8); border-radius: 50%; background: rgba(10,9,8,.45);
}
.review__play::after { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--ivory); }
.review__open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.vbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ivory); overflow: hidden; }
.vbox[open] { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.vbox::backdrop { background: rgba(10,9,8,.55); -webkit-backdrop-filter: blur(18px) saturate(.8); backdrop-filter: blur(18px) saturate(.8); }   /* el sitio se ve difuminado detrás */
.vbox__fig { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vbox__video { height: min(84vh, 160vw); aspect-ratio: 9 / 16; width: auto; max-width: 92vw; background: #000; object-fit: contain; }
.vbox__cap { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.vbox__nav, .vbox__close {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; padding: 0; cursor: pointer;
  background: rgba(10,9,8,.5); border: 1px solid var(--line); color: var(--gold); transition: background .3s, color .3s, border-color .3s;
}
.vbox__nav:hover, .vbox__close:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.vbox__prev { grid-column: 1; justify-self: end; margin-right: clamp(12px, 3vw, 40px); }
.vbox__next { grid-column: 3; justify-self: start; margin-left: clamp(12px, 3vw, 40px); }
.vbox__next svg { transform: scaleX(-1); }
.vbox__close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2; }
.vbox.is-single .vbox__nav { visibility: hidden; }
@media (max-width: 720px) {
  .vbox[open] { grid-template-columns: 1fr; }
  .vbox__fig { grid-column: 1; grid-row: 1; }
  .vbox__video { height: auto; width: 100vw; max-width: none; max-height: 78vh; }
  .vbox__nav { grid-column: 1; grid-row: 1; align-self: center; width: 44px; height: 64px; background: rgba(10,9,8,.55); border: 0; z-index: 1; margin: 0; }
  .vbox__prev { justify-self: start; }
  .vbox__next { justify-self: end; }
}

/* ===== Citas de pacientes: recuadro con una cita a la vez y botones (app.js) ===== */
.voices {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 6px;
  margin: 28px 0 0; max-width: 560px; padding: 22px 10px 14px; border: 1px solid var(--line); background: rgba(10,9,8,.55);
}
.voices__track { min-height: 6.2em; display: flex; align-items: center; }
.voices .voice { margin: 0; padding: 0; border: 0; width: 100%; animation: voice-in .55s var(--ease); }
.voices .voice.is-back { animation-name: voice-back; }
.voices .voice[hidden] { display: none; }
@keyframes voice-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes voice-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.voices .voice p { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; color: var(--ivory); margin: 0 0 10px; }
.voices .voice footer { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.voices__nav {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--gold); transition: background .3s, color .3s;
}
.voices__nav:hover { background: var(--gold); color: var(--black); }
.voices__next svg { transform: scaleX(-1); }
.voices__count { grid-column: 1 / -1; margin: 8px 0 0; text-align: center; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.voices.is-single { grid-template-columns: 1fr; }
.voices.is-single .voices__nav, .voices.is-single .voices__count { display: none; }
@media (max-width: 720px) { .voices { grid-template-columns: 38px minmax(0, 1fr) 38px; padding: 18px 4px 12px; } .voices__nav { width: 38px; height: 44px; border: 0; } .voices .voice p { font-size: 15.5px; } }
@media (prefers-reduced-motion: reduce) { .voices .voice { animation: none; } }

/* citas discretas (pedido de la clienta): sin recuadro ni fondo, cursiva tenue y flechas suaves */
.voices { border: 0; background: none; padding: 0; margin-top: 30px; max-width: 520px; grid-template-columns: 34px minmax(0, 1fr) 34px; }
.voices__track { min-height: 5.4em; }
.voices .voice p { font-size: 15px; line-height: 1.55; font-style: italic; color: rgba(237,230,214,.72); margin-bottom: 8px; }
.voices .voice footer { font-size: 10.5px; letter-spacing: .2em; color: rgba(181,165,127,.85); }
.voices__nav { border: 0; color: rgba(181,165,127,.55); width: 34px; }
.voices__nav:hover { background: none; color: var(--gold); }
.voices__count { color: rgba(166,158,142,.6); margin-top: 4px; }
@media (max-width: 720px) { .voices { padding: 0; grid-template-columns: 30px minmax(0, 1fr) 30px; } .voices .voice p { font-size: 14px; } }

/* ===== Ajustes 2026-10-21 (tercera tanda): citas bajo el planeta en celular, visor más pequeño y botones finos ===== */
@media (max-width: 860px) { .world > .voices { order: 3; margin: 0 auto 8vw; width: 100%; } }

/* visor: el sitio se ve difuminado detrás, sin fondo negro */
.vbox::backdrop { background: rgba(10,9,8,.22); -webkit-backdrop-filter: blur(16px) saturate(.9); backdrop-filter: blur(16px) saturate(.9); }
.vbox__video { height: min(76vh, 150vw); max-width: 86vw; border-radius: 6px; box-shadow: 0 24px 60px rgba(10,9,8,.55); }
.vbox__cap { color: var(--ivory); text-shadow: 0 1px 10px rgba(10,9,8,.9); }

/* botones del visor y de las citas: círculos finos, discretos, de vidrio */
.vbox__nav, .vbox__close, .voices__nav {
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(237,230,214,.28); background: rgba(10,9,8,.28); color: var(--ivory);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .35s var(--ease), color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.vbox__nav svg, .vbox__close svg, .voices__nav svg { width: 18px; height: 18px; }
.vbox__nav:hover, .vbox__close:hover, .voices__nav:hover { border-color: var(--gold); color: var(--gold); background: rgba(10,9,8,.4); }
.vbox__prev:hover { transform: translateX(-2px); }
.vbox__next:hover { transform: translateX(2px); }
.vbox__close { width: 40px; height: 40px; top: max(18px, env(safe-area-inset-top)); right: 18px; }
.vbox__nav:focus-visible, .vbox__close:focus-visible, .voices__nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.voices__nav { width: 34px; height: 34px; border-color: rgba(237,230,214,.18); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: rgba(237,230,214,.6); }
.voices__nav svg { width: 15px; height: 15px; }

@media (max-width: 720px) {
  .vbox[open] { grid-template-columns: 1fr auto 1fr; }
  .vbox__fig { grid-column: 2; grid-row: auto; }
  .vbox__video { width: auto; height: min(62vh, 112vw); max-width: 74vw; max-height: none; }
  .vbox__nav { grid-column: auto; grid-row: auto; width: 38px; height: 38px; margin: 0; background: rgba(10,9,8,.3); border: 1px solid rgba(237,230,214,.28); }
  .vbox__prev { grid-column: 1; justify-self: center; }
  .vbox__next { grid-column: 3; justify-self: center; }
  .voices__nav { width: 32px; height: 32px; }
}

/* Celular: menos aire entre las reseñas de texto y el contacto (antes ~257 px) */
@media (max-width: 860px) {
  .world > .voices { margin-bottom: 0; }
  .world { padding-bottom: 6vh; }
  .contact { padding-top: 9vh; }
}

/* Retrato de Próximamente (fondo transparente, bata blanca): sin óvalo, solo un fundido largo abajo para que la bata no termine en línea recta */
.about__mark--c img {
  aspect-ratio: 820 / 1098; object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,.6) 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,.6) 80%, transparent 100%);
}

/* Bata más cálida (pedido de la clienta): baja el brillo del blanco y lo lleva al marfil de la página, para que no se vea pegada sobre el negro */
.about__mark--c img { filter: brightness(.97); }   /* retrato nuevo (2026-10-22): ya trae la bata marfil y la luz en el rostro */

/* Blazer negro (2026-10-22): se funde con la página por los lados y abajo, sin bordes marcados; rostro y pelo quedan nítidos */
.about__mark--c img {
  -webkit-mask-image: radial-gradient(ellipse 68% 74% at 50% 30%, #000 48%, rgba(0,0,0,.62) 66%, rgba(0,0,0,.22) 84%, transparent 100%);
          mask-image: radial-gradient(ellipse 68% 74% at 50% 30%, #000 48%, rgba(0,0,0,.62) 66%, rgba(0,0,0,.22) 84%, transparent 100%);
}

/* Blazer marfil (2026-10-22): sin óvalo. Fundido largo abajo y leve a los lados (dos degradados que se intersecan) */
.about__mark--c img {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.55) 78%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.55) 78%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-composite: intersect;
}

/* «Preferencias de cookies» en el pie (abre el aviso de js/consent.js) */
.footer__legal .ck-link { color: var(--gold); text-decoration: none; }
.footer__legal .ck-link:hover { text-decoration: underline; }
.footer__legal .ck-link:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 2px; }

/* Fondo con imagen en cada especialidad (2026-10-28, pedido de la clienta): la foto va en ::before para que
   se acerque un poco al pasar el cursor; el degradado oscuro de abajo deja leer el texto */
.card { overflow: hidden; isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--card-img) center / cover no-repeat;
  scale: 1.04; translate: var(--px, 0px) var(--py, 0px);   /* margen para que el paralaje no muestre bordes */
  transition: scale 1.2s var(--ease), translate .9s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,9,8,.97) 0%, rgba(10,9,8,.9) 34%, rgba(10,9,8,.45) 66%, rgba(10,9,8,.18) 100%);
}
/* Movimiento de la foto (2026-11-05, pedido de la clienta): con el cursor encima (escritorio) o al tocar la tarjeta
   (celular, .is-active lo pone app.js) la foto se acerca despacio y vuelve, en bucle; en escritorio además sigue al
   mouse unos pocos px (--px/--py) y en celular hace un paneo suave */
@keyframes card-vida { from { scale: 1.06; } to { scale: 1.15; } }
@keyframes card-vida-movil {
  0%   { scale: 1.06; translate: -2% 0; }
  50%  { scale: 1.12; translate: 2% -1.5%; }
  100% { scale: 1.16; translate: -1% 1.5%; }
}
.card:hover::before { animation: card-vida 7s ease-in-out infinite alternate; }
.card.is-active { border-color: var(--gold); transform: translateY(-6px); }
.card.is-active::before { animation: card-vida-movil 9s ease-in-out infinite alternate; }
.card__icon, .card__num { filter: drop-shadow(0 1px 6px rgba(0,0,0,.6)); }
.card--1 { --card-img: url("../assets/img/esp/esp-1.webp?v=2"); }
.card--2 { --card-img: url("../assets/img/esp/esp-2.webp?v=4"); }
.card--3 { --card-img: url("../assets/img/esp/esp-3.webp?v=3"); }
.card--4 { --card-img: url("../assets/img/esp/esp-4.webp"); }
.card--5 { --card-img: url("../assets/img/esp/esp-5.webp?v=8"); }
.card--5::before { background-position: 85% center; transform-origin: 60% 20%; }   /* en tarjetas angostas recorta por la izquierda (la doctora está a la derecha) y el acercamiento crece desde el microscopio, así no se corta arriba */
.card--6 { --card-img: url("../assets/img/esp/esp-6.webp?v=3"); }
.card--7 { --card-img: url("../assets/img/esp/esp-7.webp"); }
@media (prefers-reduced-motion: reduce) { .card::before { transition: none; translate: none; } .card:hover::before, .card.is-active::before { animation: none; } }

/* Volver al inicio (2026-11-06, pedido de la clienta: «más dinámico, sutil, premium»): círculo de vidrio con un anillo
   dorado fino que se completa con el avance por la página (--p, app.js). Entra y sale con fundido, desenfoque y escala;
   con el cursor encima la flecha sale por arriba y vuelve a entrar por abajo, aparece un halo dorado y el botón sigue
   al mouse unos px (--mx/--my, imán). En celular va encima del botón de WhatsApp */
.totop {
  position: fixed; z-index: 41; right: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--ivory); background: rgba(10,9,8,.46);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 8px 26px rgba(0,0,0,.4), inset 0 1px 0 rgba(240,232,214,.08);
  opacity: 0; visibility: hidden; translate: 0 16px; scale: .82; filter: blur(6px);
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: opacity .7s var(--ease), visibility .7s, translate .7s var(--ease), scale .7s var(--ease), filter .7s var(--ease),
              transform .5s var(--ease), color .4s, box-shadow .5s var(--ease), background .5s;
}
.totop.is-on { opacity: 1; visibility: visible; translate: 0 0; scale: 1; filter: none; }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.totop__track, .totop__prog { fill: none; stroke-width: 1; }
.totop__track { stroke: rgba(240,232,214,.16); }
.totop__prog {
  stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); transition: stroke-dashoffset .25s linear, stroke .4s;
  filter: drop-shadow(0 0 3px rgba(181,165,127,.55));
}
.totop__arrow { display: grid; width: 18px; height: 22px; place-items: center; overflow: hidden; }
.totop__arrow svg { display: block; }
@keyframes totop-sube {
  0%, 100% { translate: 0 0; opacity: 1; }
  38%      { translate: 0 -130%; opacity: 0; }
  39%      { translate: 0 130%; opacity: 0; }
  78%      { translate: 0 0; opacity: 1; }
}
.totop:hover { color: var(--gold); background: rgba(22,19,15,.62); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 26px rgba(181,165,127,.28), inset 0 1px 0 rgba(240,232,214,.12); }
.totop:hover .totop__arrow svg { animation: totop-sube 1.6s var(--ease) infinite; }
.totop:hover .totop__track { stroke: rgba(181,165,127,.32); }
.totop:active { scale: .93; transition-duration: .15s; }
.totop:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.ck-open .totop.is-on { translate: 0 calc(-1 * var(--ck-h, 0px)); }   /* sube sobre el aviso de cookies */
@media (max-width: 860px) { .totop { bottom: calc(92px + env(safe-area-inset-bottom)); width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) {
  .totop { transition: opacity .3s, visibility .3s; translate: none; scale: none; filter: none; transform: none; }
  .totop:hover .totop__arrow svg { animation: none; }
}

/* ===== Ajustes de conversión (2026-11-06, aprobados por la clienta) ===== */
/* línea de resultado al inicio de cada tratamiento */
.treat__result { display: block; margin-bottom: 8px; color: var(--ivory); font-weight: 500; }
/* enlace general de especialidades, junto al contador */
.services__cta { margin-top: 22px; }
.services__cta .ico-wa { flex: 0 0 auto; fill: currentColor; }
.services__cta:hover { background: var(--gold); color: var(--black); }
.howto__more .link span { display: inline-block; transition: translate .4s var(--ease); }
.howto__more .link:hover span { translate: 4px 0; }
.about__cta { margin-top: 34px; }
.world__cta { margin-top: 22px; }
/* sello de Google junto a las cifras */
.stats__google a { display: grid; text-decoration: none; color: inherit; }
.stats { align-items: flex-start; }
.stats p, .stats__google a { align-content: start; }
.stats__google span { white-space: nowrap; }
.stats__google span svg { display: inline-block; width: 1.1em; height: 1.1em; fill: var(--gold); vertical-align: -.2em; margin-right: .45em; }
.stats__google a:hover span { color: var(--gold); }
.stats__google a:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }

/* Cómo funciona y preguntas frecuentes, antes de Contacto */
.howto {
  position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; align-items: start;
  gap: clamp(40px, 6vw, 110px); padding: 16vh calc(var(--gutter) + 70px) 2vh var(--gutter);
}
.howto__steps { list-style: none; counter-reset: paso; margin: 34px 0 0; padding: 0; display: grid; gap: 30px; }
.howto__steps li { counter-increment: paso; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
.howto__steps li::before {
  content: counter(paso, decimal-leading-zero); grid-row: span 2; align-self: start;
  width: 44px; height: 44px; border: 1px solid rgba(181,165,127,.55); border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; letter-spacing: .08em; color: var(--gold);
}
.howto__steps h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -.02em; line-height: 1.2; }
.howto__steps h3 span { margin-left: 8px; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); vertical-align: .2em; }
.howto__steps p { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
.howto__qa { margin-top: 26px; border-bottom: 1px solid var(--line); }
.howto__qa details { border-top: 1px solid var(--line); }
.howto__qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 0; font-size: 17px; letter-spacing: -.01em; color: var(--ivory); transition: color .3s;
}
.howto__qa summary::-webkit-details-marker { display: none; }
.howto__qa summary::after {
  content: ""; flex: 0 0 11px; height: 11px; transition: rotate .45s var(--ease);
  background: linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1px 100% no-repeat;
}
.howto__qa details[open] summary::after { rotate: 45deg; }
.howto__qa summary:hover { color: var(--gold); }
.howto__qa summary:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.howto__qa details p { margin: -6px 0 22px; color: var(--muted); max-width: 60ch; }
.howto__qa details[open] p { animation: faq-in .45s var(--ease); }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.howto__more { margin: 24px 0 0; color: var(--muted); }
.howto__more .link { margin-left: 6px; text-decoration: none; }
@media (max-width: 860px) {
  .howto { grid-template-columns: 1fr; gap: 56px; padding: 12vh var(--gutter) 2vh; }
  .howto__qa summary { font-size: 16px; padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) { .howto__qa details[open] p { animation: none; } .howto__qa summary::after { transition: none; } }

/* «Ver la pieza real»: cristal difuminado, sin borde duro (2026-11-06) */
.treat__hint {
  border-color: rgba(181,165,127,.28); background: rgba(10,9,8,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 24px 6px rgba(10,9,8,.35), inset 0 0 14px rgba(181,165,127,.08);
  border-radius: 2px;
}
@media (max-width: 860px) { .treat__hint { background: rgba(10,9,8,.4); border-color: rgba(181,165,127,.32); } }

/* ===== Versión en inglés: tratamiento desde el exterior (2026-11-06) ===== */
.abroad { padding-bottom: 0; }
.abroad__trips { padding-top: 10px; }
.trips { width: 100%; margin: 22px 0 0; border-collapse: collapse; font-size: 15px; }
.trips th, .trips td { text-align: left; vertical-align: top; padding: 16px 12px 16px 0; border-top: 1px solid var(--line); font-weight: 400; }
.trips thead th { padding-top: 0; border-top: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.trips tbody th { color: var(--ivory); }
.trips td { color: var(--muted); }
.trips td:nth-child(2) { color: var(--gold); font-family: var(--serif); font-size: 22px; line-height: 1; }
.trips tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.trips__note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.abroad__cta { margin-top: 26px; }
.contact__langs { margin: 12px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 860px) {
  .trips { font-size: 14px; }
  .trips th, .trips td { padding: 14px 10px 14px 0; }
}

/* Selector de idioma ES / EN (2026-11-06) */
.lang { display: flex; align-items: center; gap: 2px; margin: 0; font-size: 11px; letter-spacing: .2em; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0 4px; }
.lang span { color: var(--gold); }
.lang a { color: var(--muted); text-decoration: none; transition: color .3s; }
.lang a:hover { color: var(--ivory); }
.lang a:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.lang span + a::before, .lang a + span::before { content: ""; }

/* Velocidad (2026-11-07): mientras dura la entrada (html.diferir, lo pone loader.js) no se piden las fotos de Especialidades */
.diferir .card::before { background-image: none; }

/* Invitación a las banderas (2026-11-07): va arriba de la lista y en dorado, para que se pulse la bandera y no el planeta */
.world__hint { color: var(--gold); }
.world__hint + .flags { margin-top: 12px; }
