/* =========================================================
   Rincón del Tomero — "Atardecer serrano"
   Paleta tomada del logo · Literata + Figtree
   ========================================================= */

@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-italic-subset.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f0e7;          /* papel cálido */
  --surface: #efe4d5;     /* banda suave */
  --peach: #ffcc9f;       /* fondo exacto del logo */
  --ink: #211c17;
  --ink-2: #3a332c;
  --muted: #645e58;
  --line: rgba(33, 28, 23, .14);
  --accent: #c2451c;      /* sol del logo, oscurecido para contraste AA */
  --accent-hover: #a63a15;
  --night: #1d1915;
  --night-2: #2a241f;
  --on-night: #f6f0e7;
  --on-night-muted: #b4aa9f;

  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 152px);
  --radius: 4px;

  --t-h1: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem);
  --t-h2: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --t-statement: clamp(1.7rem, 1.1rem + 2.6vw, 3.25rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --nav-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
p { text-wrap: pretty; }
em { font-style: italic; }
::selection { background: var(--peach); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--bg); border-radius: var(--radius); transform: translateY(-160%); transition: transform 200ms var(--ease-out); }
.skip:focus-visible { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .8125rem/1 var(--font-text);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.label { font: 600 .8125rem/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }

/* ---------- Botones y links ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font: 500 1rem/1 var(--font-text);
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(194, 69, 28, .7); }
  .btn--dark:hover { background: #000; transform: translateY(-1px); }
  .btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
}

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; padding: 10px 0; min-height: 44px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 26px; bottom: 8px; height: 1px;
  background: currentColor; transform: scaleX(.25); transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover::after { transform: scaleX(1); }
  .link-arrow:hover svg { transform: translateX(3px); }
}

/* ---------- Marcos de foto ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.frame picture { display: block; height: 100%; background: var(--ph, var(--surface)); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.zoom img { transition: transform 600ms var(--ease-out); }
.zoom { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .zoom:hover img { transform: scale(1.03); }
  a.zoom:hover, button.zoom:hover { transform: translateY(-2px); }
}

/* Revelado de imagen (una vez, al entrar en pantalla) */
.js [data-reveal] { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
.js [data-reveal].is-in { clip-path: inset(0 0 0 0); }

/* Control de video */
.vctrl {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(29, 25, 21, .55); color: #fff;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.vctrl svg { width: 16px; height: 16px; }
.vctrl:active { transform: scale(.94); }
@media (hover: hover) { .vctrl:hover { background: rgba(29, 25, 21, .8); } }

/* ---------- Encabezado ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background-color 300ms ease, box-shadow 300ms ease, transform 400ms var(--ease-drawer);
}
.nav.is-solid { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand__name { font: 500 1.1875rem/1 var(--font-display); letter-spacing: -0.01em; }
.nav__links { display: none; gap: 28px; }
.nav__links a { position: relative; font-size: .9375rem; font-weight: 500; padding: 12px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out);
}
.nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__cta { display: none; }
.nav__toggle { width: 48px; height: 48px; display: grid; place-items: center; margin-right: -12px; }
.burger { position: relative; width: 22px; height: 12px; }
.burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 300ms var(--ease-out), top 300ms var(--ease-out); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 10.5px; }
.nav__toggle[aria-expanded="true"] .burger i:first-child { top: 5.25px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .burger i:last-child { top: 5.25px; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  padding: calc(var(--nav-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transform: none; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font: 400 clamp(2rem, 9vw, 2.75rem)/1.1 var(--font-display); letter-spacing: -0.02em;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.menu__links a:first-child { border-top: 1px solid var(--line); }
.menu__meta { margin-top: 16px; font-size: .9375rem; color: var(--muted); text-align: center; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: var(--bg); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; padding: calc(var(--nav-h) + 20px) 0 0; }
.hero__copy { padding-bottom: 36px; }
.hero__title { font-size: var(--t-h1); margin-bottom: 20px; }
.hero__title em { color: var(--accent); font-weight: 300; }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.hero__facts li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.hero__facts svg { width: 20px; height: 20px; color: var(--accent); }

.hero__media { position: relative; width: 100%; aspect-ratio: 1; max-height: 78svh; overflow: hidden; background: #8d7666; }
.hero__poster, .hero__poster img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero__media video { opacity: 0; transition: opacity 500ms ease; }
.hero__media video.is-playing { opacity: 1; }
.hero__media .vctrl { z-index: 3; }
@media (min-width: 768px) { .hero__media { aspect-ratio: 16 / 10; } }

/* Escritorio: el vuelo del dron a pantalla completa */
@media (min-width: 1024px) and (min-height: 620px) {
  .hero { position: relative; isolation: isolate; min-height: 100svh; padding: 0; color: #fff; background: var(--night); }
  .hero__media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; max-height: none; }
  .hero__media::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(22, 17, 13, .8) 0%, rgba(22, 17, 13, .66) 36%, rgba(22, 17, 13, .2) 60%, rgba(22, 17, 13, 0) 74%);
  }
  .hero__copy { padding-top: calc(var(--nav-h) + clamp(24px, 5svh, 60px)); padding-bottom: 0; }
  .hero .eyebrow { color: rgba(255, 255, 255, .86); }
  .hero__title { font-size: clamp(3rem, 1.9rem + 3.1vw, 4.75rem); max-width: 17ch; margin-bottom: 16px; }
  .hero__title em { color: var(--peach); }
  .hero__lead { color: rgba(255, 255, 255, .94); max-width: 58ch; margin-bottom: 24px; }
  .hero__actions { margin-bottom: 18px; }
  .hero__facts { border-top: 0; padding-top: 0; }
  .hero__facts li { color: rgba(255, 255, 255, .94); }
  .hero__facts svg { color: var(--peach); }
  .hero :focus-visible { outline-color: #fff; }
  .nav { transition: background-color 300ms ease, box-shadow 300ms ease, color 300ms ease, transform 400ms var(--ease-drawer); }
  .nav:not(.is-solid) { color: #fff; }
}

/* Entrada del hero (una sola vez) */
.js [data-enter] { opacity: 0; transform: translateY(14px); }
.is-loaded [data-enter] { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.is-loaded [data-enter]:nth-child(2) { transition-delay: 60ms; }
.is-loaded [data-enter]:nth-child(3) { transition-delay: 140ms; }
.is-loaded [data-enter]:nth-child(4) { transition-delay: 200ms; }
.is-loaded [data-enter]:nth-child(5) { transition-delay: 260ms; }

/* ---------- Encabezado de sección ---------- */
.head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2 { max-width: 16ch; }
.head__side { color: var(--muted); max-width: 42ch; font-size: 1.0625rem; }
@media (min-width: 1024px) {
  .head { grid-template-columns: 7fr 5fr; align-items: end; gap: 48px; }
  .head__side { justify-self: end; }
}

section:not(.hero) { padding-block: var(--section); }

/* ---------- Manifiesto ---------- */
.intro { padding-top: clamp(64px, 8vw, 120px); }
.statement {
  font: 400 var(--t-statement)/1.18 var(--font-display); letter-spacing: -0.02em;
  max-width: 24ch; margin-bottom: clamp(48px, 7vw, 96px);
}
.js .statement .w { color: rgba(33, 28, 23, .2); transition: color 400ms ease; }
.js .statement .w.on { color: var(--ink); }
.intro__grid { display: grid; gap: 48px; }
.intro__text { display: grid; gap: 20px; align-content: start; color: var(--ink-2); max-width: 46ch; }
.intro__text .link-arrow { justify-self: start; color: var(--ink); }

.trio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trio__a { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.trio__b, .trio__c { aspect-ratio: 1; }
.trio__c img { object-position: 50% 72%; }
@media (min-width: 640px) { .trio__a { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) {
  .intro__grid { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .trio { grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr; gap: 20px; }
  .trio__a { grid-column: 1; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
  .trio__b, .trio__c { aspect-ratio: auto; min-height: 0; }
  .trio__b picture, .trio__c picture { position: absolute; inset: 0; }
}

/* ---------- Cabañas ---------- */
.cabins { background: var(--surface); }
.cabins__grid { display: grid; gap: 40px; }
.cabin { display: grid; gap: 20px; align-content: start; }
.cabin__media { aspect-ratio: 4 / 5; display: block; }
.cabin__body { display: grid; gap: 8px; }
.cabin__kicker { font: 400 .9375rem/1 var(--font-display); color: var(--accent-hover); }
.cabin h3 { font: 400 clamp(1.75rem, 1.4rem + 1vw, 2.25rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.cabin p { color: var(--muted); max-width: 32ch; }
.cabin .link-arrow { justify-self: start; }
.cabins__exterior { aspect-ratio: 4 / 3; }
@media (min-width: 640px) {
  .cabins__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cabins__exterior { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .cabins__grid { grid-template-columns: 3fr 3fr 5fr; gap: 24px; }
  .cabins__exterior { grid-column: auto; aspect-ratio: auto; min-height: 0; }
  .cabins__exterior picture { position: absolute; inset: 0; }
}

.inside { margin-top: clamp(64px, 8vw, 104px); }
.inside__title { font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--font-display); margin-bottom: 24px; letter-spacing: -0.01em; }
.inside__strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inside__item { aspect-ratio: 1; width: 100%; }
.inside__item:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
  .inside__strip { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .inside__item:first-child { grid-column: auto; aspect-ratio: 1; }
}

/* ---------- Comodidades ---------- */
.amen__grid { display: grid; gap: 48px; }
.rows li {
  display: flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
}
.rows svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.label--gap { margin-top: 48px; }
.amen__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amen__tall { aspect-ratio: 3 / 4; }
.amen__small { aspect-ratio: 3 / 4; }
@media (min-width: 768px) {
  .amen__grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .amen__media { grid-column: 1 / -1; grid-template-columns: 2fr 1fr; align-items: end; }
  .amen__tall { grid-column: auto; aspect-ratio: 16 / 10; }
  .amen__small { grid-column: auto; }
}
@media (min-width: 1024px) {
  .amen__grid { grid-template-columns: 3.5fr 3.5fr 5fr; gap: 40px; }
  .amen__media { grid-column: auto; grid-template-columns: 1fr; position: relative; padding-bottom: 72px; }
  .amen__tall { aspect-ratio: 4 / 5; }
  .amen__small { position: absolute; left: -20px; bottom: 0; width: 46%; border: 8px solid var(--bg); border-radius: 8px; }
}

/* ---------- Pileta ---------- */
.pool { padding-bottom: var(--section); }
.bleed { height: clamp(360px, 62vw, 720px); overflow: hidden; position: relative; }
.bleed picture { position: absolute; inset: -8% 0; display: block; background: var(--ph); }
.bleed img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.pool__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pool__video { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.pool__img { aspect-ratio: 3 / 4; width: 100%; }
@media (min-width: 768px) {
  .pool__row { grid-template-columns: 4fr 3fr 3fr; gap: 24px; margin-top: 24px; }
  .pool__video { grid-column: auto; aspect-ratio: 4 / 5; }
  .pool__img { aspect-ratio: auto; height: 100%; min-height: 0; position: relative; }
  .pool__img picture { position: absolute; inset: 0; }
}

/* ---------- Pet friendly (banda de marca) ---------- */
.pets { background: var(--peach); }
.pets .eyebrow { color: var(--ink-2); }
.pets__grid { display: grid; gap: 48px; }
.pets__intro h2 { max-width: 14ch; margin-bottom: 24px; }
.pets__lead { font-size: 1.125rem; color: var(--ink-2); max-width: 40ch; margin-bottom: 32px; }
.pets__rules { display: grid; gap: 12px; counter-reset: r; }
.pets__rules li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  background: rgba(255, 255, 255, .45); padding: 24px; border-radius: 6px;
}
.pets__rules svg { width: 28px; height: 28px; color: var(--accent); }
.pets__rules h3 { font: 400 1.375rem/1.2 var(--font-display); margin-bottom: 6px; }
.pets__rules p { color: var(--ink-2); }
@media (min-width: 768px) { .pets__rules { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1024px) {
  .pets__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
}

/* ---------- Galería ---------- */
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wall__item { display: block; width: 100%; aspect-ratio: 3 / 4; }
.wall__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 768px) {
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .wall__item--wide:not(.wall__item--video) { grid-column: auto; aspect-ratio: 3 / 4; }
  .wall__item--video { aspect-ratio: 16 / 9; }
  .wall__item--video video { object-position: 50% 58%; }
}
@media (min-width: 1024px) {
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .wall__item--wide, .wall__item--wide:not(.wall__item--video) { grid-column: span 2; aspect-ratio: auto; height: 100%; min-height: 0; position: relative; }
  .wall__item--wide picture, .wall__item--wide video { position: absolute; inset: 0; }
}

/* ---------- Ubicación ---------- */
.visit { background: var(--surface); }
.visit h2 { margin-bottom: 16px; }
.type-moment { font: 400 clamp(2.4rem, 1rem + 6vw, 6.5rem)/1.02 var(--font-display); letter-spacing: -0.035em; margin-bottom: clamp(40px, 6vw, 72px); }
.type-moment a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 500ms var(--ease-out), color 200ms ease; padding-bottom: 4px; }
@media (hover: hover) and (pointer: fine) { .type-moment a:hover { background-size: 100% 2px; color: var(--accent); } }
.visit__grid { display: grid; gap: 24px; }
.visit__panel { background: var(--bg); padding: clamp(24px, 4vw, 48px); border-radius: 6px; display: grid; gap: 28px; align-content: start; }
.visit__list { display: grid; gap: 0; }
.visit__grid > * { min-width: 0; }
.visit__list dd { min-width: 0; }
@media (max-width: 479px) {
  .visit__list > div { grid-template-columns: minmax(0, 1fr) !important; gap: 2px !important; }
}
.visit__list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit__list dt { font-size: .875rem; color: var(--muted); padding-top: 3px; }
.visit__list dd a { display: inline-block; padding-block: 11px; margin-block: -11px; font-size: 1.125rem; line-height: 1.45; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .visit__list dd a:hover { background-size: 100% 1px; } }
.visit__sub { display: block; margin-top: 6px; color: var(--muted); }
.visit__sub a { font-size: 1rem !important; color: var(--accent-hover); font-weight: 500; }
.visit__note { color: var(--muted); }
.visit__panel .btn { justify-self: start; }
.map { min-height: 360px; display: grid; place-items: center; }
.map .map__bg { position: absolute; inset: 0; }
.map .map__bg img { filter: saturate(.85); }
.map::after { content: ""; position: absolute; inset: 0; background: rgba(29, 25, 21, .35); }
.map__load {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 500;
  transition: transform 160ms var(--ease-out);
}
.map__load svg { width: 20px; height: 20px; color: var(--accent); }
.map__load:active { transform: scale(.97); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
@media (min-width: 1024px) {
  .visit__grid { grid-template-columns: 5fr 7fr; gap: 24px; }
  .map { min-height: 100%; }
}

/* ---------- Reservas (banda oscura) ---------- */
.book { background: var(--night); color: var(--on-night); }
.book .eyebrow { color: var(--on-night-muted); }
.book__grid { display: grid; gap: 48px; }
.book__intro h2 { margin-bottom: 20px; }
.book__intro > p { color: var(--on-night-muted); max-width: 40ch; font-size: 1.0625rem; margin-bottom: 32px; }
.book__direct li a { display: flex; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid rgba(246, 240, 231, .12); font-size: 1.0625rem; transition: color 200ms ease; }
.book__direct li:last-child a { border-bottom: 1px solid rgba(246, 240, 231, .12); }
.book__direct svg { width: 20px; height: 20px; color: var(--peach); }
@media (hover: hover) and (pointer: fine) { .book__direct a:hover { color: var(--peach); } }

.form { background: var(--night-2); padding: clamp(24px, 4vw, 48px); border-radius: 8px; display: grid; gap: 20px; }
.form__row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field { display: grid; gap: 8px; min-width: 0; }
.field input, .field select { min-width: 0; max-width: 100%; }
.book__grid > * { min-width: 0; }
.field label { font-size: .9375rem; font-weight: 500; }
.optional { color: var(--on-night-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-text); color: var(--on-night);
  background: var(--night); border: 1px solid rgba(246, 240, 231, .18); border-radius: 6px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peach); box-shadow: 0 0 0 3px rgba(255, 204, 159, .2); }
.field [aria-invalid="true"] { border-color: #ff8a65; }
.field__err { color: #ffab91; font-size: .875rem; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.form__note { font-size: .875rem; color: var(--on-night-muted); text-align: center; }
.form__note.is-sent { color: var(--peach); }
.book :focus-visible { outline-color: var(--peach); }
@media (min-width: 1024px) {
  .book__grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
}
@media (max-width: 380px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.footer { background: var(--night); color: var(--on-night); padding: 0 0 calc(88px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(246, 240, 231, .1); }
.footer__top { display: grid; gap: 40px; padding-top: 72px; }
.footer__logo { width: 200px; height: auto; border-radius: 8px; }
.footer .label { color: var(--on-night-muted); font-size: .75rem; }
.footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer__cols a { display: inline-block; padding: 11px 0; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { color: var(--peach); } }
.footer__word {
  font: 400 clamp(2.4rem, 9.4vw, 8.5rem)/.95 var(--font-display); letter-spacing: -0.045em;
  color: rgba(246, 240, 231, .9); margin: 72px 0 32px; white-space: nowrap;
}
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(246, 240, 231, .12); font-size: .875rem; color: var(--on-night-muted); }
.footer__legal a { min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .footer__legal a:hover { color: var(--on-night); } }
@media (min-width: 1024px) {
  .footer { padding-bottom: 32px; }
  .footer__top { grid-template-columns: 4fr 8fr; align-items: start; }
}

/* ---------- Barra móvil y FAB ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%); transition: transform 400ms var(--ease-drawer);
}
.actionbar .btn { --h: 48px; padding: 0 12px; }
.actionbar.is-on { transform: none; }
.fab { display: none; }
@media (min-width: 1024px) {
  .actionbar { display: none; }
  .fab {
    position: fixed; right: 28px; bottom: 28px; z-index: 45;
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: #fff;
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
    opacity: 0; transform: translateY(12px) scale(.95); pointer-events: none;
    transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
  }
  .fab svg { width: 28px; height: 28px; }
  .fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .fab.is-on:hover { transform: translateY(-2px); }
  .fab.is-on:active { transform: scale(.95); }
}

/* ---------- Visor ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(16, 13, 11, .94); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: lbIn 250ms var(--ease-out); }
.lightbox::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 82dvh; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .1);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); } }
.lightbox__close:active, .lightbox__nav:active { transform: scale(.94); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__nav--prev svg { transform: rotate(180deg); }
.lightbox__nav--next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: .875rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 767px) {
  .lightbox__nav { top: auto; bottom: 16px; translate: none; }
  .lightbox__count { bottom: 32px; }
}

/* ---------- Página 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 20px; padding-block: 64px; }
.notfound img { width: 72px; height: 72px; border-radius: 50%; }
.notfound p { color: var(--muted); max-width: 40ch; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js [data-enter], .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .statement .w { color: var(--ink); }
  .bleed img { transform: none !important; }
}
