/* Thai Relax Ourense · estilos
   Paleta: marrón y crema (los uniformes de Nirada) + el dorado de su logo.
   Tipos: Fraunces (títulos) y Figtree (texto), alojados en /fonts (licencia OFL). */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic-var.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 103%; ascent-override: 94%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial"); size-adjust: 99%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --espresso-950: #150D08;
  --espresso-900: #1D120C;
  --espresso-800: #2A1A12;
  --brown-700: #4A3022;
  --wine: #3B1813;
  --taupe: #B39A86;
  --sand: #EBDDCA;
  --cream: #F6EEE3;
  --paper: #FFFBF5;
  --gold: #E8B552;
  --gold-hi: #F2C76E;
  --gold-deep: #7C500E;
  --ink: #2B1A12;
  --ink-soft: #5C4335;
  --on-dark: #F6EEE3;
  --on-dark-soft: #D9C6B0;
  --line: rgba(43, 26, 18, .16);
  --line-dark: rgba(246, 238, 227, .18);
  --focus: var(--gold-deep);

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(2.6rem, 1.5rem + 4.2vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.1vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.08rem, 1rem + .35vw, 1.28rem);
  --fs-quote: clamp(1.75rem, 1.1rem + 2.7vw, 3.4rem);

  --gut: clamp(1.25rem, .6rem + 3vw, 3rem);
  --sec: clamp(4rem, 2.6rem + 6vw, 8rem);
  --r: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

/* pantallas grandes: todo crece en proporción (las medidas van en rem) */
@media (min-width: 106.25rem) { html { font-size: 112.5%; } }
@media (min-width: 137.5rem) { html { font-size: 131.25%; } }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: var(--taupe) var(--espresso-900);
  background: var(--espresso-950);
}

body {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure, blockquote, address, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: .06em; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--espresso-900); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }
p { text-wrap: pretty; }
strong { font-weight: 650; }

.wrap { width: min(100% - 2 * var(--gut), 75rem); margin-inline: auto; }
main > section { padding-block: var(--sec); position: relative; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 60ch; margin-top: 1.25rem; }
.soft { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1.1rem; border-radius: 999px; background: var(--gold); color: var(--espresso-900); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }

.ico { width: 1.5rem; height: 1.5rem; flex: none; }
.ico--sm { width: 1.1rem; height: 1.1rem; }
.ico--xl { width: 2.75rem; height: 2.75rem; }
.ico--lotus { width: 1.75rem; height: 1.75rem; color: var(--gold-deep); }
.ico--hero { width: 3.5rem; height: 3.5rem; color: var(--gold-deep); }
.stars { display: inline-flex; gap: .08rem; color: #B9790C; vertical-align: middle; }

/* superficies oscuras */
.site-header, .menu, .hero, .gifts, .rules, .book, .site-footer { --focus: var(--gold); color: var(--on-dark); }
.gifts .soft, .rules .soft, .book .soft { color: var(--on-dark-soft); }

/* ---------- botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .7rem 1.35rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  background: none;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .35s, transform .2s var(--ease);
}
.btn .ico { width: 1.25rem; height: 1.25rem; transition: transform .35s var(--ease); }
.btn:hover span + .ico { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 3.4rem; padding: .9rem 1.7rem; font-size: 1.05rem; }
.btn--sm { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .94rem; }
.btn--gold { background: var(--gold); color: var(--espresso-900); }
.btn--gold:hover { background: var(--gold-hi); box-shadow: 0 14px 28px -14px rgba(232, 181, 82, .8); }
.btn--line { border-color: rgba(246, 238, 227, .55); color: var(--on-dark); }
.btn--line:hover { background: rgba(246, 238, 227, .1); border-color: var(--on-dark); }
.btn--dark { background: var(--espresso-900); color: var(--on-dark); }
.btn--dark:hover { background: var(--brown-700); }
.btn--line-dark { border-color: rgba(43, 26, 18, .6); color: var(--ink); }
.btn--line-dark:hover { background: rgba(43, 26, 18, .06); border-color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; font-weight: 650; text-decoration: none; }
.link-arrow > span:first-child { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .28em; }
.link-arrow .ico { transition: transform .35s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow:hover > span:first-child { text-decoration-thickness: .12em; }

.textbtn { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0 .25rem; border: 0; background: none; font-weight: 650; text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: .06em; }
.textbtn:hover { text-decoration-thickness: .12em; }
.ico--play { display: none; }
.is-paused > .ico--play, .is-paused .ico--play { display: block; }
.is-paused > .ico--pause, .is-paused .ico--pause { display: none; }

/* ---------- barra de progreso ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; transition: background-color .35s, box-shadow .35s; }
.site-header.is-stuck, .page-doc .site-header, .menu-open .site-header { background: rgba(29, 18, 12, .92); box-shadow: 0 1px 0 var(--line-dark); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-stuck { background: rgba(29, 18, 12, .82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
}
/* Mientras la cabecera está sobre la foto de la portada lleva su propio velo oscuro:
   el logotipo y el menú se leen sea cual sea la foto (clara u oscura). */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -75% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(21, 13, 8, .84) 0%, rgba(21, 13, 8, .7) 50%, rgba(21, 13, 8, 0) 100%);
  transition: opacity .35s;
}
.site-header.is-stuck::before, .page-doc .site-header::before, .menu-open .site-header::before { opacity: 0; }
html:not(.js) .site-header { background: rgba(29, 18, 12, .92); box-shadow: 0 1px 0 var(--line-dark); }
html:not(.js) .site-header::before { content: none; }
.site-header__in { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { flex-shrink: 0; }
/* Logotipo: grande mientras la cabecera está sobre la portada; más pequeño cuando la cabecera
   se fija al bajar, en las páginas de texto y con el menú abierto. Lleva un halo dorado. */
.site-header { --logo: 4.5rem; }
.site-header.is-stuck, .page-doc .site-header, .menu-open .site-header, html:not(.js) .site-header { --logo: 3.5rem; }
.brand img {
  width: var(--logo); height: var(--logo); border-radius: 50%; filter: brightness(1.1);
  box-shadow: 0 0 0 1px rgba(232, 181, 82, .6), 0 0 1.4rem rgba(232, 181, 82, .34);
  transition: width .35s var(--ease), height .35s var(--ease);
}
/* « Thai Relax » et « Ourense » restent entiers ; si la place manque (écran très étroit, texte agrandi), « Ourense » passe à la ligne */
.brand__name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.05; letter-spacing: -.01em; }
.brand__name span { white-space: nowrap; }
.brand__name span { font-style: italic; color: var(--gold); }
/* si la place manque (texte agrandi ou espacé), les liens passent sur deux lignes au lieu de pousser les drapeaux et le bouton hors de l'écran */
.nav { min-width: 0; }
.nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: clamp(1rem, .2rem + 1.2vw, 1.3rem); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .95rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.site-header__tools { display: flex; flex-shrink: 0; align-items: center; gap: .75rem; }
.langs ul { display: flex; gap: .1rem; }
.langs a { display: grid; place-items: center; min-width: 2.4rem; min-height: 2.4rem; border-radius: 999px; text-decoration: none; transition: background-color .25s; }
.langs a:hover { background: rgba(246, 238, 227, .12); }
/* Banderas: la del idioma actual lleva un aro dorado; las demás, un poco apagadas hasta pasar por encima. */
.flag { display: block; width: 1.5rem; height: 1rem; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(246, 238, 227, .4); opacity: .88; transition: opacity .25s, box-shadow .25s; }
.flag svg { display: block; width: 100%; height: 100%; }
.langs a:hover .flag, .langs a:focus-visible .flag { opacity: 1; }
.langs a[aria-current] .flag { opacity: 1; box-shadow: 0 0 0 2px var(--espresso-900), 0 0 0 4px var(--gold); }
.menu-btn { display: none; width: 2.9rem; height: 2.9rem; padding: 0; border: 1px solid rgba(246, 238, 227, .45); border-radius: 50%; background: none; color: var(--on-dark); place-items: center; }
html:not(.js) .menu-btn { display: none; }
.menu-btn .ico--close { display: none; }
.menu-btn[aria-expanded="true"] .ico--close { display: block; }
.menu-btn[aria-expanded="true"] .ico--menu { display: none; }

/* ordinateur : le logo et le nom gardent leur taille ; entre 1248 et 1312 px, un peu moins d'espace entre les liens pour que tout tienne sur une ligne */
@media (min-width: 78.0625rem) { .brand { flex-shrink: 0; } }
@media (min-width: 78.0625rem) and (max-width: 82rem) { .site-header__in { gap: 1rem; } .nav ul { column-gap: .9rem; } }
@media (max-width: 78rem) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 46rem) {
  .site-header .langs, .header-cta { display: none; }
  :root { --header-h: 4.25rem; }
  .site-header { --logo: 3.5rem; }
  .site-header.is-stuck, .page-doc .site-header, .menu-open .site-header, html:not(.js) .site-header { --logo: 3rem; }
  .brand__name { font-size: 1.15rem; }
}
/* pantallas muy estrechas: el logotipo no crece para que quepa el nombre */
@media (max-width: 21.5rem) {
  .site-header, .site-header.is-stuck, .page-doc .site-header, .menu-open .site-header, html:not(.js) .site-header { --logo: 2.75rem; }
  /* un peu moins d'espace avant le bouton du menu : le nom tient sur une ligne dès 320 px */
  .site-header__in { gap: .75rem; }
}
/* menú a pantalla completa */
.menu { position: fixed; inset: 0; z-index: 55; background: var(--espresso-900); padding-top: calc(var(--header-h) + 1.5rem); overflow-y: auto; overscroll-behavior: contain; }
.menu__in { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 3rem; }
.menu__cta { margin-top: 2rem; }
.menu__cta .btn { width: 100%; }
.menu__nav a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 3vw, 2.5rem); line-height: 1.15; text-decoration: none; }
.langs--menu ul { gap: .5rem; }
.langs--menu a { min-width: 3.25rem; min-height: 3rem; }
.langs--menu .flag { width: 2.1rem; height: 1.4rem; border-radius: 4px; }
.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .menu.is-open .menu__nav li, .menu.is-open .langs--menu, .menu.is-open .btn { animation: rise .6s var(--ease) both; }
  .menu.is-open .menu__nav li:nth-child(2) { animation-delay: 40ms; }
  .menu.is-open .menu__nav li:nth-child(3) { animation-delay: 80ms; }
  .menu.is-open .menu__nav li:nth-child(4) { animation-delay: 120ms; }
  .menu.is-open .menu__nav li:nth-child(5) { animation-delay: 160ms; }
  .menu.is-open .menu__nav li:nth-child(6) { animation-delay: 200ms; }
  .menu.is-open .menu__nav li:nth-child(7) { animation-delay: 240ms; }
  .menu.is-open .btn { animation-delay: 300ms; }
  .menu.is-open .langs--menu { animation-delay: 360ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- portada ---------- */
.hero { min-height: 100svh; padding: 0; background: var(--espresso-900); display: grid; align-items: center; overflow: clip; isolation: isolate; }
main > .hero { padding-block: 0; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: 60%; z-index: -1; overflow: hidden; --mx: 62%; --my: 44%; }
.hero__zoom { position: absolute; inset: -5% 0; translate: 0 var(--py, 0px); }
.hero__zoom picture, .hero__zoom img { width: 100%; height: 100%; }
.hero__zoom img { object-fit: cover; object-position: 58% 58%; }
.hero__light { position: absolute; inset: 0; background: radial-gradient(34rem circle at var(--mx) var(--my), rgba(255, 205, 130, .5), rgba(255, 205, 130, 0) 62%); mix-blend-mode: soft-light; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, var(--espresso-900) 0%, rgba(29, 18, 12, .78) 16%, rgba(29, 18, 12, 0) 48%),
    linear-gradient(to top, var(--espresso-900) 0%, rgba(29, 18, 12, 0) 24%),
    linear-gradient(to bottom, rgba(21, 13, 8, .35) 0%, rgba(21, 13, 8, 0) 22%);
}
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__in { padding-block: calc(var(--header-h) + 2.5rem) 5rem; }
.hero__copy { max-width: 40rem; }
/* En ordenador el texto queda en parte sobre la foto: lleva detrás un velo que termina
   justo después de la columna de texto, para que se lea con cualquier foto. */
@media (min-width: 60rem) {
  .hero__copy { position: relative; max-width: min(40rem, 50vw); }
  .hero__copy::before {
    content: ""; position: absolute; z-index: -1; inset: -100vh -11rem -100vh -100vw; pointer-events: none;
    background: linear-gradient(to right, rgba(29, 18, 12, .93) 0, rgba(29, 18, 12, .93) calc(100% - 11rem), rgba(29, 18, 12, 0) 100%);
  }
}
.hero__title { font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -.025em; font-weight: 380; }
.hero__title em { display: block; font-style: italic; color: var(--gold); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.hero__title .w > span { display: inline-block; }
.hero__lead { margin-top: 1.5rem; max-width: 34rem; font-size: var(--fs-lead); line-height: 1.55; color: var(--on-dark-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin-top: 2rem; font-size: .96rem; color: var(--on-dark-soft); }
.fact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; min-height: 2.75rem; text-decoration: none; }
a.fact:hover > span:not(.stars) { text-decoration: underline; }
.fact .stars { color: var(--gold); }
.fact__sub::before { content: "·"; margin-right: .5rem; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--taupe); }
.is-open .dot { background: #8BD3A1; }
.motion-btn { position: absolute; right: var(--gut); bottom: 1.5rem; z-index: 2; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; border: 1px solid rgba(246, 238, 227, .45); border-radius: 50%; background: rgba(29, 18, 12, .55); color: var(--on-dark); transition: background-color .25s, border-color .25s; }
.motion-btn:hover { background: rgba(29, 18, 12, .85); border-color: var(--on-dark); }

@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-fx) .hero__zoom { animation: drift 30s ease-in-out 2.4s infinite alternate; }
  .hero__zoom img { animation: develop 2.4s var(--ease) both; }
  .js:not(.no-fx) .hero__light { animation: candle 6s ease-in-out infinite; }
  .hero__title .w > span { animation: word-rise 1s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 300ms); }
  .hero__lead, .hero__actions, .hero__facts { animation: rise 1s var(--ease) both; }
  .hero__lead { animation-delay: .85s; }
  .hero__actions { animation-delay: 1s; }
  .hero__facts { animation-delay: 1.15s; }
  .js:not(.no-fx) .hero.is-paused .hero__zoom, .js:not(.no-fx) .hero.is-paused .hero__light { animation-play-state: paused; }
}
/* la photo « se révèle » en sortant du noir : opacité et échelle seulement (un filtre animé sur une grande photo fait planter le moteur de Safari) */
@keyframes develop { from { opacity: 0; transform: scale(1.16); } to { opacity: 1; transform: none; } }
@keyframes drift { from { scale: 1; } to { scale: 1.07; } }
@keyframes candle { 0%, 100% { opacity: .78; } 22% { opacity: 1; } 41% { opacity: .7; } 63% { opacity: .95; } 80% { opacity: .82; } }
@keyframes word-rise { from { transform: translateY(112%); } to { transform: none; } }

@media (max-width: 59.99rem) {
  .hero { display: block; min-height: 0; padding-bottom: 4.5rem; }
  main > .hero { padding-bottom: 4.5rem; }
  .hero__media { position: relative; inset: auto; width: 100%; height: min(66svh, 34rem); z-index: 0; }
  .hero__zoom img { object-position: 62% 55%; }
  .hero__media::after {
    background:
      linear-gradient(to top, var(--espresso-900) 3%, rgba(29, 18, 12, 0) 52%),
      linear-gradient(to bottom, rgba(21, 13, 8, .3) 0%, rgba(21, 13, 8, 0) 26%);
  }
  .hero__in { position: relative; z-index: 1; margin-top: -6.5rem; padding-block: 0; }
  .hero__actions .btn { flex: 1 1 15rem; }
  .motion-btn { bottom: 1rem; }
}

/* ---------- franja de visita ---------- */
.visit { background: var(--paper); border-bottom: 1px solid var(--line); }
main > .visit { padding-block: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem); }
.visit__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); }
.visit__item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-content: start; }
.visit__item > .ico { grid-row: span 4; width: 1.9rem; height: 1.9rem; margin-top: .1rem; color: var(--gold-deep); }
.visit__item dt { grid-column: 2; margin-bottom: .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.visit__item dd { grid-column: 2; font-size: 1.06rem; }
.visit__item dd.soft { font-size: .98rem; }
@media (max-width: 52rem) {
  .visit__grid { grid-template-columns: minmax(0, 1fr); }
  .visit__item + .visit__item { padding-top: 1.5rem; border-top: 1px solid var(--line); }
}

/* ---------- fotos ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r); background: var(--sand); }
.photo picture { display: block; width: 100%; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.photo:hover img, .route__step:hover .photo img { transform: scale(1.03); }
@media (prefers-reduced-motion: no-preference) {
  /* el recorte va en la imagen, no en la caja observada: una caja recortada del todo no cuenta como visible */
  .js:not(.no-fx) .photo--reveal:not(.is-in) { background: none; }
  .js:not(.no-fx) .photo--reveal picture { clip-path: inset(0 0 100% 0); }
  .js:not(.no-fx) .photo--reveal img { transform: scale(1.14); }
  .js:not(.no-fx) .photo--reveal.is-in picture { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease); }
  .js:not(.no-fx) .photo--reveal.is-in img { transform: none; transition-duration: 1.8s; }
}

/* ---------- frase de Nirada ---------- */
.statement { background: var(--paper); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.statement__quote p { font-family: var(--font-display); font-size: var(--fs-quote); font-weight: 380; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.statement__quote p::before { content: open-quote; }
.statement__quote p::after { content: close-quote; }
.statement__quote { quotes: "«" "»"; }
:lang(en) .statement__quote { quotes: "\201C" "\201D"; }
.js:not(.no-fx) .statement__quote[data-lit] .w { color: #9A7F6E; transition: color .6s var(--ease); }
.js:not(.no-fx) .statement__quote[data-lit] .w.is-lit { color: var(--ink); }
.statement figcaption { display: flex; align-items: center; gap: .6rem; margin-top: 2rem; color: var(--ink-soft); font-size: .98rem; }
.statement__photo { aspect-ratio: 4 / 5; }
@media (max-width: 59.99rem) {
  .statement__grid { grid-template-columns: minmax(0, 1fr); }
  .statement__photo { max-width: 26rem; }
}

/* ---------- masajes ---------- */
.massages { background: var(--sand); }
.massages__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.massages__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.massages__media .photo { aspect-ratio: 3 / 4; }
.mlist { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.mitem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "head points" "link points"; gap: .5rem 2.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.mitem__head { grid-area: head; }
.mitem__head h3 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); line-height: 1.12; }
.mitem__tag { margin-top: .6rem; font-family: var(--font-display); font-style: italic; font-size: 1.12rem; color: var(--gold-deep); }
.mitem__points { grid-area: points; display: grid; gap: .55rem; align-content: start; font-size: 1rem; }
.mitem__points li { position: relative; padding-left: 1.5rem; }
.mitem__points li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: 1px; background: var(--gold-deep); }
.mitem .link-arrow { grid-area: link; align-self: end; justify-self: start; }
@media (max-width: 59.99rem) {
  .massages__grid { grid-template-columns: minmax(0, 1fr); }
  .massages__media { position: static; max-width: 26rem; }
}
@media (max-width: 40rem) {
  .mitem { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "points" "link"; gap: 1rem; }
}

/* ---------- precios ---------- */
.prices { background: var(--paper); }
.prices__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.tagchip { display: inline-block; margin: 1.5rem 0 .75rem; padding: .4rem 1rem; border: 1px solid var(--gold-deep); border-radius: 999px; color: var(--gold-deep); font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pmenu { border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: auto minmax(1rem, 1fr) auto 1.5rem; align-items: baseline; gap: .9rem; padding: 1.35rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .3s; }
.prow:hover { background: var(--cream); }
.prow__name { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 1.2vw, 2rem); line-height: 1.1; }
.prow__name small { margin-left: .4rem; font-family: var(--font-body); font-size: .92rem; color: var(--ink-soft); white-space: nowrap; }
.prow__dots { align-self: end; height: 1px; margin-bottom: .45em; border-bottom: 1px dotted rgba(43, 26, 18, .5); }
.prow__price { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.prow__go { align-self: center; color: var(--gold-deep); transition: transform .35s var(--ease); }
.prow:hover .prow__go { transform: translateX(4px); }
.reyes { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; margin-top: 2rem; padding: 1.5rem; border-radius: var(--r); background: var(--sand); }
.reyes__ico { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--espresso-900); color: var(--gold); }
.reyes__txt h3 { font-size: 1.35rem; }
.reyes__txt p { margin-top: .3rem; font-size: 1rem; max-width: 46ch; }
.reyes__price { text-align: right; }
.reyes__price strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; line-height: 1; white-space: nowrap; }
.reyes__price s { font-size: .92rem; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 59.99rem) { .prices__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 34rem) {
  .prow { grid-template-columns: minmax(0, 1fr) auto 1.25rem; }
  .prow__dots { display: none; }
  .prow__name small { display: block; margin: .2rem 0 0; white-space: normal; }
  .reyes { grid-template-columns: auto minmax(0, 1fr); }
  .reyes__price { grid-column: 1 / -1; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
}

/* ---------- tarjeta regalo y fidelización ---------- */
.gifts { background: var(--espresso-900); }
.gifts h2 { max-width: 22ch; }
.gifts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6rem); margin-top: 3rem; }
.gift, .loyal { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-content: start; justify-items: start; }
.gift > p, .loyal > p { color: var(--on-dark-soft); max-width: 44ch; }
.gift > p strong { color: var(--on-dark); }
.gift .btn, .loyal .btn { margin-top: .5rem; }
.giftcard, .stampcard { width: 100%; max-width: 27rem; aspect-ratio: 1.62; margin-bottom: 1.25rem; border-radius: var(--r); }
.giftcard { position: relative; overflow: hidden; background: linear-gradient(135deg, #FCF5E8, #E9D7BA); color: var(--ink); box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .9); }
.giftcard::before { content: ""; position: absolute; inset: .65rem; border: 1px solid rgba(124, 80, 14, .6); border-radius: 8px; }
.giftcard::after { content: ""; position: absolute; inset: -40% -70%; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 43%, rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, 0) 57%); transform: translateX(-62%); transition: transform 1.2s var(--ease); }
.gift:hover .giftcard::after, .gift:focus-within .giftcard::after { transform: translateX(62%); }
.giftcard__in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .35rem; text-align: center; padding: 1.5rem; }
.giftcard__in img { width: 4.5rem; height: 4.5rem; border-radius: 50%; }
.giftcard__t { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); line-height: 1.1; color: var(--gold-deep); }
.giftcard__n { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.stampcard { display: grid; grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem 1.4rem; background: linear-gradient(135deg, #2E1D14, #3D2619); border: 1px solid rgba(232, 181, 82, .4); box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .9); }
.stampcard__t { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--gold); }
.stampcard__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; min-width: 0; }
.stamp { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--gold); color: var(--espresso-900); }
.stamp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); }
.stamp .ico { position: relative; width: 62%; height: 62%; }
.stamp--free { grid-column: span 2; aspect-ratio: auto; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stamp--free::before { border-radius: 999px; }
.stamp--free span { position: relative; }
/* vacía hasta que entra en pantalla; luego se sella sello a sello */
.js:not(.no-fx) .loyal:not(.is-on) .stamp { border-style: dashed; border-color: rgba(246, 238, 227, .4); color: rgba(246, 238, 227, .32); }
.js:not(.no-fx) .loyal:not(.is-on) .stamp::before { transform: scale(0); opacity: 0; }
.js:not(.no-fx) .loyal:not(.is-on) .stamp--free { border-style: solid; border-color: var(--gold); color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .loyal.is-on .stamp { transition: color 0s calc(var(--n) * 140ms + 120ms), border-color 0s calc(var(--n) * 140ms + 120ms); }
  .loyal.is-on .stamp::before { transition: transform .55s cubic-bezier(.2, 1.4, .4, 1) calc(var(--n) * 140ms), opacity .2s calc(var(--n) * 140ms); }
}
@media (max-width: 52rem) { .gifts__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- el centro ---------- */
.centre { background: var(--cream); }
.centre__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.centre__media .photo { aspect-ratio: 4 / 5; }
.centre__body h3 { margin-top: 2.5rem; }
.steps { counter-reset: paso; display: grid; gap: .9rem; margin-top: 1.1rem; max-width: 52ch; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: baseline; }
.steps li::before { content: counter(paso); font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--gold-deep); }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 30rem; margin-top: 2.5rem; }
.details .photo { aspect-ratio: 1; }
@media (max-width: 59.99rem) {
  .centre__grid { grid-template-columns: minmax(0, 1fr); }
  .centre__media { max-width: 30rem; }
}

/* ---------- normas ---------- */
.rules { background: var(--wine); }
.rules__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.rules__head .lead { color: var(--on-dark-soft); }
.rules__list { border-top: 1px solid var(--line-dark); }
.rules__list li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line-dark); }
.rules__n { font-family: var(--font-display); font-style: italic; font-size: 2.5rem; line-height: .95; color: var(--gold); }
.rules__list h3 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.6rem); }
.rules__list p { margin-top: .45rem; max-width: 54ch; color: var(--on-dark-soft); }
.rules__close { grid-column: 2; display: flex; align-items: center; gap: .75rem; margin-top: .5rem; font-weight: 650; font-size: 1.08rem; }
.rules__close .ico--lotus { color: var(--gold); }
@media (max-width: 59.99rem) {
  .rules__in { grid-template-columns: minmax(0, 1fr); }
  .rules__close { grid-column: 1; }
}

/* ---------- Nirada ---------- */
.about { background: var(--sand); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.about__media .photo { aspect-ratio: 4 / 5; }
.about__body > p { max-width: 60ch; }
.about__body > p + p { margin-top: 1rem; }
.about__quote { margin: 2rem 0; padding: 1.6rem 0; border-block: 1px solid var(--line); quotes: "«" "»"; }
:lang(en) .about__quote { quotes: "\201C" "\201D"; }
.about__quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); line-height: 1.25; letter-spacing: -.01em; max-width: 30ch; }
.about__quote p::before { content: open-quote; }
.about__quote p::after { content: close-quote; }
.about__proof { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.about__certs { grid-column: 1 / -1; margin-bottom: .5rem; }
.certs { display: grid; gap: .5rem; margin: .9rem 0 .7rem; max-width: 30rem; }
.certs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding-bottom: .45rem; border-bottom: 1px dotted rgba(43, 26, 18, .5); }
.diploma { display: block; aspect-ratio: 4 / 3; }
.vid { aspect-ratio: 1; }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid:not(.is-ready) .vid__btn { display: none; }
.vid__btn { position: absolute; right: .5rem; bottom: .5rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: rgba(29, 18, 12, .78); color: var(--on-dark); --focus: var(--gold); }
.vid__btn .ico--pause { display: none; }
.vid__btn .ico--play { display: block; }
.vid.is-playing .vid__btn .ico--pause { display: block; }
.vid.is-playing .vid__btn .ico--play { display: none; }

/* Vídeos de Nirada (28/11/2026), verticales y con sonido */
.videos { background: var(--cream); }
.videos__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.videos__head .lead + .soft { margin-top: .75rem; }
.videos__list { display: grid; grid-template-columns: repeat(3, minmax(0, 19rem)); gap: clamp(1.25rem, .5rem + 3vw, 3rem); margin: 0; padding: 0; list-style: none; }
.vclip video { display: block; width: 100%; height: auto; aspect-ratio: 464 / 832; object-fit: cover; border-radius: var(--r); background: var(--espresso-900); }
.vclip figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem .75rem; margin-top: .8rem; }
.vclip figcaption span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 34rem) {
  .videos__list { grid-template-columns: minmax(0, 20rem); }
}
@media (max-width: 59.99rem) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { position: static; max-width: 26rem; }
}

/* ---------- opiniones ---------- */
.reviews { background: var(--paper); overflow: clip; }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-bottom: 2.5rem; }
.reviews__note { margin-top: 1rem; max-width: 48ch; }
.score { display: flex; align-items: center; gap: 1.1rem; }
.score__n { font-family: var(--font-display); font-size: clamp(3.2rem, 2rem + 4.5vw, 5.2rem); line-height: .9; font-variant-numeric: lining-nums; }
.score__meta p { font-size: .98rem; }
.score__meta .soft { font-size: .88rem; }
.marquee { display: grid; gap: 1rem; overflow-x: auto; scrollbar-width: thin; padding-block: .25rem; }
.marquee__row { display: flex; gap: 1rem; width: max-content; padding-inline: var(--gut); }
.rcard { flex: none; display: flex; flex-direction: column; gap: .9rem; width: min(24rem, 80vw); padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); }
.rcard blockquote p { font-size: 1rem; line-height: 1.55; }
.rcard__by { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: auto; padding-top: .35rem; font-size: .88rem; color: var(--ink-soft); }
.rcard__by strong { color: var(--ink); }
.reviews__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2rem; }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-fx) .marquee.is-ready:not(.is-paused) { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
  .js:not(.no-fx) .marquee.is-ready:not(.is-paused) .marquee__row { animation: marquee var(--dur, 80s) linear infinite; }
  .js:not(.no-fx) .marquee.is-ready:not(.is-paused) .marquee__row--rev { animation-direction: reverse; }
  .marquee:hover .marquee__row, .marquee:focus-visible .marquee__row, .marquee.is-off .marquee__row { animation-play-state: paused !important; }
}
.marquee.is-paused .is-clone, .no-fx .marquee .is-clone { display: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }

/* ---------- cómo llegar ---------- */
.find { background: var(--sand); }
.find__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem 3rem; }
.find__head .lead { margin-top: 0; }
.route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.route__step .photo { aspect-ratio: 4 / 5; }
.route__step h3 { display: flex; align-items: baseline; gap: .6rem; margin-top: 1rem; font-size: 1.2rem; }
.route__n { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--gold-deep); }
.route__step p { margin-top: .3rem; font-size: .98rem; color: var(--ink-soft); }
.find__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: stretch; margin-top: 3.5rem; }
.hours table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours th { padding: .62rem 0; font-weight: 500; text-align: left; }
.hours td { padding: .62rem 0 .62rem .75rem; text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 750; }
.hours tr.is-closed td { color: var(--ink-soft); }
.map { position: relative; min-height: 23rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); }
/* tant que le plan n'est pas chargé, l'encadré fait sa propre hauteur (rien n'est coupé si le texte est agrandi) */
.map__ph { position: relative; min-height: 23rem; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 1.5rem; text-align: center; }
.map__ph .ico--xl { color: var(--gold-deep); }
.map__addr { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
html:not(.js) [data-map-load] { display: none; }
.map__note { max-width: 44ch; font-size: .88rem; color: var(--ink-soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded .map__ph { display: none; }
@media (max-width: 59.99rem) {
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .find__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- preguntas ---------- */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 3.5rem; padding: 1.1rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.12rem, 1.02rem + .5vw, 1.38rem); line-height: 1.25; }
.faq summary:hover h3 { text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .2em; }
.ico--plus { color: var(--gold-deep); transition: transform .4s var(--ease); }
.faq details[open] .ico--plus { transform: rotate(45deg); }
.faq__a { padding: 0 2.5rem 1.5rem 0; max-width: 64ch; color: var(--ink-soft); }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}
@media (max-width: 59.99rem) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- reserva ---------- */
.book { background: var(--espresso-900); }
.book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.book__copy .lead { color: var(--on-dark-soft); }
.book__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.book__rules { margin-top: 1.5rem; color: var(--on-dark-soft); }
.form { --focus: var(--gold-deep); padding: clamp(1.25rem, .8rem + 2.4vw, 2.5rem); border-radius: var(--r); background: var(--cream); color: var(--ink); }
.form h3 { margin-bottom: 1.25rem; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .65rem .85rem; border: 1px solid rgba(43, 26, 18, .58); border-radius: 10px; background: var(--paper); caret-color: var(--gold-deep); }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--gold-deep); border-radius: 10px; }
.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .7rem; align-items: start; margin-top: 1rem; font-size: .96rem; }
.check input { width: 1.5rem; height: 1.5rem; margin: .05rem 0 0; accent-color: var(--brown-700); }
.form .btn { margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 59.99rem) { .book__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 34rem) {
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .book__actions .btn, .form .btn { width: 100%; }
}

/* ---------- pie ---------- */
.site-footer { padding-block: 4rem 2rem; background: var(--espresso-950); color: var(--on-dark-soft); font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.site-footer__brand img { width: 5.5rem; height: 5.5rem; border-radius: 50%; }
.site-footer__name { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--on-dark); }
.site-footer__h { margin-bottom: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark); }
.site-footer a { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.5rem; }
.site-footer__links { display: grid; }
.thanks { margin-top: 1rem; color: var(--gold); }
.site-footer .credit__a { color: var(--gold); font-weight: 650; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .28em; }
.site-footer .credit__a:hover { color: var(--gold-hi); text-decoration-thickness: .14em; }
.site-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.site-footer__bar p { display: flex; align-items: center; min-height: 2.5rem; gap: .3rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
@media (max-width: 59.99rem) { .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- botones fijos ---------- */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: inline-flex; align-items: center; gap: .5rem; min-height: 3.25rem; padding: .8rem 1.3rem; border-radius: 999px; background: var(--gold); color: var(--espresso-900); font-weight: 750; text-decoration: none; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6); transition: transform .5s var(--ease), opacity .3s, visibility .3s, background-color .25s; --focus: var(--espresso-900); }
.wa-float:hover { background: var(--gold-hi); }
.actionbar { display: none; }
.js .wa-float:not(.is-visible), .js .actionbar:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(1.25rem); }
/* sin JavaScript el botón flotante no se retira: el pie deja sitio debajo para que no tape su última línea */
@media (min-width: 47.5rem) { html:not(.js) .site-footer { padding-bottom: 5.75rem; } }
@media (max-width: 47.49rem) {
  .wa-float { display: none; }
  .actionbar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom); background: var(--espresso-900); border-top: 1px solid var(--line-dark); transition: transform .5s var(--ease), opacity .3s, visibility .3s; --focus: var(--gold); }
  .actionbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; font-weight: 750; text-decoration: none; color: var(--on-dark); }
  .actionbar a + a { background: var(--gold); color: var(--espresso-900); --focus: var(--espresso-900); }
  .actionbar a:focus-visible { outline-offset: -4px; }
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); background: var(--espresso-950); }
}

/* ---------- aviso de cookies (Google Analytics solo si se acepta) ---------- */
.ck { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 45; width: min(25rem, calc(100% - 2.5rem)); padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--line-dark); border-radius: 1rem; background: var(--espresso-900); color: var(--on-dark-soft); font-size: .92rem; line-height: 1.5; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .75); --focus: var(--gold); }
.ck[hidden] { display: none; }
.ck a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.ck a:hover { color: var(--gold-hi); }
/* los dos botones iguales: rechazar es tan fácil como aceptar */
.ck__btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; margin-top: .9rem; }
.ck__btn { min-height: 2.75rem; padding: .5rem .9rem; border: 1px solid var(--gold); border-radius: 999px; background: transparent; color: var(--on-dark); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.ck__btn:hover { background: var(--gold); color: var(--espresso-900); }
@media (max-width: 47.49rem) { .ck { left: var(--gut); right: var(--gut); width: auto; bottom: calc(4.25rem + env(safe-area-inset-bottom)); } }
@media (max-width: 15rem) { .ck__btns { grid-template-columns: minmax(0, 1fr); } }
.site-footer .linkbtn { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.site-footer .linkbtn:hover { color: var(--on-dark); }
html:not(.js) [data-ck-open] { display: none; }

/* ---------- páginas de texto ---------- */
.doc { padding-block: calc(var(--header-h) + 3.5rem) 5rem; min-height: 72vh; background: var(--paper); }
.doc__in { max-width: 46rem; }
.doc h1 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.doc h2 { margin: 2.25rem 0 .7rem; font-size: 1.5rem; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: .8rem; }
.doc ul { display: grid; gap: .35rem; padding-left: 1.25rem; list-style: disc; }
.doc .link-arrow { margin-top: 2rem; }
mark.todo { padding: .05em .35em; border-radius: 3px; background: #FFE36E; color: #2B1A12; }
.doc--center .doc__in { display: grid; justify-items: center; gap: 1rem; margin-inline: auto; text-align: center; padding-top: 3rem; }
.doc--center h1 { margin: 0; font-size: var(--fs-h1); }
.doc--center .lead { margin-top: 0; }
.doc__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1rem; }

/* transición suave entre idiomas (navegadores que la admiten) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* écrans de moins de 240 px (téléphone avec un zoom d'accessibilité de 160 à 200 %) : marges, logo et nom un peu plus petits */
@media (max-width: 15rem) {
  :root { --gut: .875rem; }
  .site-header, .site-header.is-stuck, .page-doc .site-header, .menu-open .site-header, html:not(.js) .site-header { --logo: 2.25rem; }
  .brand { gap: .5rem; }
  .brand__name { font-size: 1rem; }
  .menu-btn { width: 2.75rem; height: 2.75rem; }
  :root { --fs-h1: 2.1rem; --fs-h2: 1.65rem; --fs-quote: 1.5rem; }
  .reyes { grid-template-columns: minmax(0, 1fr); }
  .reyes__price { grid-column: auto; }
  .actionbar a { gap: .3rem; padding-inline: .25rem; font-size: .875rem; }
  .actionbar .ico { width: 1.1rem; height: 1.1rem; }
  .rules__list li { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .prow { grid-template-columns: minmax(0, 1fr) 1.25rem; row-gap: .35rem; }
  .prow__name, .prow__price { grid-column: 1; }
  .prow__go { grid-column: 2; grid-row: 1 / span 2; }
}
/* moins de 288 px : les 4 étapes du trajet l'une sous l'autre (sur deux colonnes, les mots ne tiennent plus) */
@media (max-width: 18rem) { .route { grid-template-columns: minmax(0, 1fr); } }
