/* Zara House
   Tokens de color, botones, insignias y componentes basados en el sistema de diseño de la marca.
   Tipografía: Bodoni Moda (titulares, fuente variable), Allison (acentos) y Barlow (texto). */

@font-face { font-family: Barlow; src: url("assets/barlow.woff2") format("woff2"); font-display: swap; font-weight: 400; }
@font-face { font-family: Barlow; src: url("assets/barlow-semibold.woff2") format("woff2"); font-display: swap; font-weight: 600; }
@font-face { font-family: Allison; src: url("assets/allison.woff2") format("woff2"); font-display: swap; }
/* Bodoni Moda (OFL), fuente variable: ejes opsz (6–96) y wght (400–900), subconjunto latino */
@font-face { font-family: "Bodoni Moda"; src: url("assets/bodoni-moda-latin.woff2") format("woff2"); font-display: swap; font-weight: 400 900; font-style: normal; }
/* Respaldo local, solo si no carga Bodoni Moda */
@font-face { font-family: "Zara Serif Provisional"; src: url("assets/playfair-display-regular.ttf") format("truetype"); font-display: swap; font-weight: 400; }

:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --serif-opsz: 24; --serif-wght: 500;  /* titulares sobre fondo claro: trazo oscuro sobre claro se ve más grueso, basta peso medio */
  /* Color / Primitives */
  --midnight: #0C1B33;   /* bg/inverse */
  --current: #162440;    /* bg/deep */
  --harbor: #1A2D55;     /* hover de fondos oscuros */
  --water: #1BBDF5;      /* Open Water: acento sobre oscuro */
  --bay: #1A9FD9;        /* Bay Glass: enlaces y estados activos (solo trazos sobre claro) */
  --gold: #F9A825;       /* accent/primary */
  --sunset: #F59B15;     /* accent/dark: hover */
  --morning: #FAFAF8;    /* bg/secondary */
  --sand: #F0EDE8;       /* bg/tertiary */
  --text: #2C2520;       /* text/primary */
  --muted: #7A6E65;      /* text/secondary */
  /* Color / Semantic */
  --border: rgba(44, 37, 32, .10);
  --border-strong: rgba(44, 37, 32, .20);
  --border-inverse: rgba(255, 255, 255, .08);
  --border-inverse-strong: rgba(255, 255, 255, .35);
  /* Spacing (base 4) y radio: esquinas rectas */
  --gutter: clamp(20px, 5vw, 84px);
  --head: 64px;
  --radius: 0;
  /* Tipografía */
  --serif: "Bodoni Moda", "Zara Serif Provisional", Georgia, serif;
  --sans: Barlow, "Helvetica Neue", Arial, sans-serif;
  --script: Allison, cursive;
  color: var(--text);
  background: var(--morning);
  font: 400 1rem/1.6 var(--sans);   /* Body/Base 16 px */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .3em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--midnight); outline-offset: 3px; box-shadow: 0 0 0 5px var(--water); }
.dark :focus-visible, .viewer :focus-visible, .masthead :focus-visible { outline-color: var(--morning); }
[id] { scroll-margin-top: calc(var(--head) + 12px); }
.wrap { inline-size: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto; }

.skip { position: absolute; z-index: 30; top: 8px; left: 8px; padding: 12px 18px; background: var(--morning); transform: translateY(-160%); }
.skip:focus { transform: none; }

/* Iconos Phosphor Light (MIT) con el color del texto */
.icon { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.caret { --i: url("assets/caret-right.svg"); }
.caret-left { --i: url("assets/caret-left.svg"); }
.x { --i: url("assets/x.svg"); width: 24px; height: 24px; }
.plus { --i: url("assets/plus.svg"); }
.arrow { --i: url("assets/arrow-up-right.svg"); }
.ig { --i: url("assets/instagram-logo.svg"); width: 20px; height: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ───── Tokens de texto ───── */
h1, h2, h3, .welcome-copy, .si-name {
  font-family: var(--serif); font-weight: var(--serif-wght); color: var(--midnight);
  /* Bodoni Moda es variable (opsz 6–96, wght 400–900). Con opsz automático, a tamaño grande baja a opsz 96 y los trazos
     de pelo casi desaparecen. Se fija opsz a mano y se ajusta según el fondo (valores en :root y en .dark). */
  font-optical-sizing: none; font-variation-settings: "opsz" var(--serif-opsz);
  line-height: 1; letter-spacing: -.035em; text-wrap: balance;
}
/* Titulares pequeños (≤ ~32 px): con opsz 24 y tracking cerrado los trazos de pelo de Bodoni Moda desaparecen en pantallas móviles.
   Se usa el diseño de tamaño pequeño de la fuente (opsz bajo), algo más de peso y menos tracking negativo. */
.sv-title, .si-name { --serif-opsz: 11; --serif-wght: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(2.7rem, 5.6vw, 5.6rem); }
h3 { font-size: clamp(2.6rem, 4.2vw, 4.4rem); }
/* Headline/Group: las partes caligráficas van en Warm Muted sobre claro y en dorado sobre oscuro */
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: .7; white-space: nowrap; color: var(--muted); }
.dark { --serif-opsz: 11; --serif-wght: 600; }  /* sobre fondo oscuro: opsz bajo (trazos de pelo robustos) y más peso */
/* Móvil, fondo claro: titulares de ~40 px con opsz 24 pierden los trazos de pelo en pantallas de móvil; opsz más bajo y algo más de peso */
@media (max-width: 899px) { :root { --serif-opsz: 14; --serif-wght: 600; } }
.dark .script { color: var(--gold); }
/* Eyebrow (Heading/H6-Eyebrow): mayúsculas con tracking amplio */
.eyebrow {
  display: block; font-size: .875rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text); margin-bottom: 14px;
}
.dark .eyebrow { color: var(--water); }
/* Divider/Accent: 48 × 2 px dorado */
.rule { display: block; width: 48px; height: 2px; background: var(--gold); margin-bottom: 18px; }
figcaption { margin-top: 10px; font-size: 1rem; line-height: 1.4; color: var(--text); }

/* ───── Atoms ───── */
/* Button: mayúsculas, tracking .20em, esquinas rectas. Tamaños DS SM/MD/LG con etiqueta ≥ 12–13 px y alto táctil ≥ 44 px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius); background: transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: .8125rem; }
.btn-lg { min-height: 56px; padding: 18px 48px; font-size: .8125rem; }
.btn-gold { background: var(--gold); color: var(--midnight); }
.btn-gold:hover { background: var(--sunset); }
.btn-outline { border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.btn-outline-light { border-color: var(--border-inverse-strong); color: #fff; }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
/* Badge/Neutral/Rect */
.badge {
  display: inline-block; padding: 3px 9px; font-size: .75rem; font-weight: 400; letter-spacing: .1em; line-height: 1.2;
  background: var(--sand); color: var(--text); font-variant-numeric: tabular-nums;   /* relleno sin borde: un solo trazo por contenedor */
}
/* Sobre oscuro (botón con borde): sin caja, el número va tras un punto medio */
.dark .badge { background: none; padding: 0; font-size: .875rem; color: rgba(255, 255, 255, .78); }
.dark .badge::before { content: "·"; margin-right: .7em; }
/* Button/Link */
.album-link {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 0;
  background: none; border: 0; border-bottom: 1px solid var(--border-strong); text-align: left;
  letter-spacing: .08em; color: var(--text);
}
.album-link .badge { margin-left: auto; }

/* ───── Nav / Header ───── */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--midnight); border-bottom: 1px solid var(--border-inverse); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand nav cta"; align-items: center; min-height: var(--head); }
.brand { grid-area: brand; }
.masthead nav { grid-area: nav; }
.masthead-contact { grid-area: cta; }
.menu-toggle { display: none; }
.brand { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 58px; }
.masthead nav { display: flex; gap: clamp(8px, 3.4vw, 40px); }
.masthead nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .78);
  transition: color .2s;
}
.masthead nav a { position: relative; }
.nav-group { display: contents; }
.sub-toggle, .sub, .nav-end, .brand-dark { display: none; }
.masthead nav a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 2px; background: var(--water); transform: scaleX(0); transform-origin: left center; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .masthead nav a:hover { color: #fff; }
  .masthead nav a:hover::after { transform: scaleX(1); }
  .btn:active { transform: scale(.97); }
}
/* Fotos: ocultas desde el principio cuando la animación está activa (evita el parpadeo) y las revela animations.js */
.anim .suite-main .photo, .anim .pool-day .photo { clip-path: inset(100% 0% 0% 0%); }
.anim main .photo:not(.cover .photo):not(.suite-main .photo):not(.pool-day .photo) { opacity: 0; }
.masthead-contact { justify-self: end; white-space: nowrap; }

/* ───── Portada ─────
   Criterios aplicados (editorial, ERA y guías de diseñadores):
   1. La serif manda: alta, estrecha, en mayúsculas y apilada con interlineado muy cerrado.
   2. La caligrafía es acento corto, más pequeña que la serif, y se monta sobre su última línea.
   3. Un solo acento de color (Open Water) sobre fondo oscuro, donde el contraste es alto (~8:1).
   4. El texto va sobre color plano, no sobre la foto; la foto sangra al borde y no queda como rectángulo suelto. */
.cover { position: relative; background: var(--midnight); border-bottom: 1px solid var(--border-inverse); }
/* Portada: imagen a sangre con velo plano, titular centrado y pincelada; cabecera transparente que se hace sólida con el scroll. */
.cover3 { --pos: 42% 50%; --pos-m: 50% 50%; --h1: clamp(3.4rem, 7.6vw, 8.4rem); /* encuadre de la ilustración (escritorio / móvil) y titular que no tapa el letrero pintado */ position: relative; height: 100svh; min-height: 600px; padding-top: var(--head); display: grid; place-items: center; text-align: center; overflow: hidden; }
.cover3 .cover-photo { position: absolute; inset: -8% 0 0; min-height: 0; will-change: transform; }  /* margen arriba para la paralaje */
.cover3 .cover-photo img { will-change: transform; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
/* Velo plano (sin degradados, regla del Design System). Opacidad medida: ver nota en AGENTS.md. */
.cover-veil { position: absolute; inset: 0; background: var(--midnight); opacity: var(--veil, .6); pointer-events: none; }
.cover3-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3svh, 30px); padding: 0 var(--gutter); max-width: 1100px; }
.cover3 .eyebrow { color: var(--morning); margin: 0; }
.cover3 h1 { font-size: var(--h1, clamp(3.6rem, 10.2vw, 10.4rem)); line-height: .9; margin: 0; }
.cover3 h1 .h-serif { margin-right: 0; }
/* «en la playa»: −6° como siempre, centrado y subido para montarse sobre la base de «TU HOGAR» */
.cover3 .h-en { display: table; margin: -.44em auto 0; transform-origin: center; letter-spacing: 0; }
/* La pincelada se ancla a la línea base y al centro de la tinta de la letra (x 1,30 em, y −0,10 em); su SVG sube 4,3°, que se compensa para quedar a −6° exactos. */
/* «en la playa»: Allison girada −6°. La pincelada (assets/pincelada.svg) va detrás, plana en Bay Glass, sin sombras ni degradados;
   su SVG ya sube 4,3°, que se compensa (rotate: 4,3°) para que herede solo los −6° del texto. */
.h-en { letter-spacing: 0; position: relative; z-index: 2; font-size: .62em; line-height: .8; text-transform: none; rotate: -6deg; white-space: nowrap; }
.brush { position: absolute; z-index: -1; aspect-ratio: 611 / 149; rotate: 4.3deg; background: url(assets/pincelada.svg) no-repeat center / 100% 100%; pointer-events: none; }
.cover3 .ba { display: inline-block; position: relative; width: 0; height: 0; vertical-align: baseline; }
.cover3 .brush { left: -.5em; top: -.54em; width: 3.6em; }
.cover3-lead { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); color: var(--morning); max-width: 32ch; }
.cover3 .cover-cta { justify-content: center; }
@media (max-width: 899px) {
  .cover3 { height: auto; min-height: 100svh; padding-block: calc(var(--head) + 56px) 72px; }
  .cover3 h1 { font-size: clamp(3.2rem, 17vw, 7rem); }
  .cover3 .cover-photo img { object-position: var(--pos-m, var(--pos, center)); }
}

/* Cabecera transparente sobre la portada. El fondo Midnight aparece de forma continua con el scroll (0 → 96 px, variable --nav-a que pone gallery.js):
   sin salto ni transición, queda sólido mucho antes de salir de la portada y con el menú móvil abierto es opaco al instante.
   Sticky con margen negativo: la portada sube hasta el borde sin cambiar el flujo de la página. */
.masthead { margin-bottom: calc(-1 * (var(--head) + 1px)); background: rgb(12 27 51 / var(--nav-a, 0)); border-bottom-color: rgb(255 255 255 / calc(.08 * var(--nav-a, 0))); }
.masthead.open { background: var(--midnight); border-bottom-color: var(--border-inverse); }
.masthead nav a { color: rgb(255 255 255 / calc(1 - .22 * var(--nav-a, 0))); }  /* blanco pleno sobre la imagen; .78 como siempre ya sobre el fondo sólido */
h1 { color: var(--morning); font-size: min(calc(clamp(5rem, 13.5vw, 14.5rem) * .74), calc((100svh - var(--head) - 280px) / 2.2)); /* Bodoni Moda es más ancha que Ambroise */ line-height: .84; letter-spacing: .04em; font-kerning: normal; text-rendering: optimizeLegibility; }
h1 span { display: block; }
.h-serif { text-transform: uppercase; position: relative; z-index: 1; margin-right: -.04em; }  /* compensa el espacio que el tracking añade tras la última letra */
.cover h1 .script { color: var(--morning); }  /* sobre la pincelada Bay Glass; el texto grande llega a 3:1 */
.photo { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); background: var(--sand); cursor: zoom-in; overflow: hidden; }
.photo img { width: 100%; }

/* ───── Bienvenida ───── */
.welcome {
  display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr);
  gap: clamp(36px, 8vw, 130px); align-items: center; padding-bottom: clamp(88px, 11vw, 170px);
}
.welcome-photo { width: min(100%, 300px); justify-self: end; }
.pride { display: flex; align-items: center; gap: 12px; margin-top: clamp(20px, 2.4vw, 32px); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pride .flag { flex: none; width: 20px; height: 15px; }
.welcome-copy { font-weight: 500; font-size: clamp(2.1rem, 4.1vw, 4.4rem); line-height: 1.1; letter-spacing: -.03em; padding-bottom: .12em; text-wrap: pretty; max-width: 20em; }
.welcome-copy .script { font-size: 1.5em; }

/* ───── Secciones ───── */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 56px); }

/* Piscina */
.dark { background: var(--current); color: var(--morning); }
.dark h2, .dark h3, .dark figcaption { color: var(--morning); }
.pool-inner { padding-block: clamp(56px, 8vw, 130px); }
.pool-spread { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.pool-night { margin-bottom: clamp(0px, 3vw, 44px); }
.pool-night .photo { background: var(--midnight); }

/* Suites: índice de enlaces + Card/Suite abierta (eyebrow, nombre, descripción, pie con capacidad y CTA) */
.suites { position: relative; padding-block: clamp(80px, 11vw, 170px) clamp(24px, 4vw, 60px); }
.suites-head { margin-bottom: clamp(20px, 3vw, 40px); }
.suite-index { inline-size: min(100%, 560px); }
.suite-index li + li { border-top: 1px solid var(--border-strong); }  /* líneas solo entre suites, sin la primera ni la última */
.suite-index a {
  display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 16px; min-height: 56px; padding-block: 4px;
  text-decoration: none; color: var(--midnight);
}
.si-name { font-size: 1.75rem; }
.si-cap { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.suite-index a:hover .si-name, .suite-index a[aria-current="location"] .si-name { text-decoration: underline 2px var(--bay); text-underline-offset: .18em; }

.suite {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  grid-template-areas: "copy main pair";
  gap: 24px clamp(28px, 4.6vw, 80px); align-items: center;
  padding-block: clamp(56px, 8vw, 128px); border-bottom: 1px solid var(--border-strong);
}
.suite:last-child { border-bottom: 0; }
.suite.flip { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); grid-template-areas: "pair main copy"; }
.suite-copy { grid-area: copy; }
.suite-copy .eyebrow { color: var(--muted); margin-bottom: 12px; }
.suite-main { grid-area: main; }
.suite-pair { grid-area: pair; display: grid; gap: clamp(16px, 2.4vw, 36px); }
.suite-pair figure:nth-child(2) { width: 82%; justify-self: end; }
.flip .suite-pair figure:nth-child(2) { justify-self: start; }
.suite-text { margin-top: 14px; max-width: 28ch; color: var(--text); }
.suite-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-strong); }
.capacity { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.capacity strong { font-weight: 600; color: var(--text); }

/* Servicios */
.services { padding-block: clamp(56px, 8vw, 128px) clamp(72px, 10vw, 160px); }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 72px); }
.sv-title { font-size: 1.75rem; line-height: 1.1; padding-bottom: 14px; border-bottom: 2px solid var(--border-strong); }
.sv-group li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--border-strong); }
.sv-group li:last-child { border-bottom: 0; }
.sv-ic { grid-row: span 2; width: 28px; height: 28px; margin-top: 1px; color: var(--midnight); }
.sv-name, .sv-note { grid-column: 2; }
.ic-coffee { --i: url("assets/coffee.svg"); }
.ic-waves { --i: url("assets/waves.svg"); }
.ic-wifi-high { --i: url("assets/wifi-high.svg"); }
.ic-car-simple { --i: url("assets/car-simple.svg"); }
.ic-bed { --i: url("assets/bed.svg"); }
.ic-snowflake { --i: url("assets/snowflake.svg"); }
.ic-television { --i: url("assets/television.svg"); }
.ic-cooking-pot { --i: url("assets/cooking-pot.svg"); }
.ic-armchair { --i: url("assets/armchair.svg"); }
.ic-drop { --i: url("assets/drop.svg"); }
.ic-shield-check { --i: url("assets/shield-check.svg"); }
.ic-bathtub { --i: url("assets/bathtub.svg"); }
.ic-shower { --i: url("assets/shower.svg"); }
.ic-key { --i: url("assets/key.svg"); }
.ic-coat-hanger { --i: url("assets/coat-hanger.svg"); }
.ic-barbell { --i: url("assets/barbell.svg"); }
.ic-fork-knife { --i: url("assets/fork-knife.svg"); }
.ic-hand-waving { --i: url("assets/hand-waving.svg"); }
.sv-name { display: block; font-weight: 600; color: var(--midnight); }
.sv-note { display: block; color: var(--muted); max-width: 36ch; }
@media (max-width: 899px) { .sv-grid { grid-template-columns: 1fr; } }

/* Rincones */
.corners { background: var(--sand); padding-block: clamp(72px, 10vw, 160px); }
.corners-lead { max-width: 34ch; font-size: 1.125rem; margin-bottom: clamp(36px, 5vw, 72px); }  /* Body/Lead 18 px */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px) clamp(14px, 2.4vw, 36px); align-items: start; }
.m1 { grid-column: 1 / 6; }
.m2 { grid-column: 6 / 9; margin-top: clamp(40px, 8vw, 130px); }
.m3 { grid-column: 9 / 13; margin-top: clamp(0px, 2vw, 30px); }
.m4 { grid-column: 2 / 5; }
.m5 { grid-column: 5 / 10; margin-top: clamp(30px, 6vw, 96px); }
.m6 { grid-column: 10 / 13; }
.albums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: clamp(48px, 7vw, 100px); border-top: 1px solid var(--border-strong); }
.albums li { padding-top: 6px; }
.corners .badge { background: var(--morning); }

/* Cierre */
.contact { position: relative; z-index: 1; padding-block: clamp(88px, 12vw, 190px); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: clamp(3rem, 7.4vw, 7.4rem); }
.contact h2 .script { font-size: 1.3em; margin-left: .06em; }
.contact-text { margin-top: 28px; max-width: 30ch; font-size: 1.125rem; }
.contact .btn { margin-top: 34px; }
.hosts { margin-top: 36px; font-size: 2.6rem; }

/* Footer */
.footer { border-top: 1px solid var(--border-inverse); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; padding-block: 28px; }
.footer img { width: 64px; }
.footer-links { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 24px; }
.footer a { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.footer a:hover { color: #fff; }
.footer p { text-align: center; font-size: .8125rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }

/* ───── Visor de fotografías: overlay sobre la página ─────
   Criterios: fondo atenuado con la página visible detrás, panel centrado, cierre con X, Esc o clic fuera,
   foco atrapado y devuelto, flechas, gesto de deslizar, tira de miniaturas, contador y salto entre álbumes. */
body:has(.viewer[open]) { overflow: hidden; }
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--midnight); color: var(--morning); overscroll-behavior: contain;
}
.viewer[open] { display: grid; }
.viewer::backdrop { background: var(--midnight); }
/* Pantalla completa en azul Midnight opaco */
.v-panel {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto; overflow: hidden;
  width: 100%; height: 100%; background: var(--midnight);
}
.v-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px 10px 20px; }
.v-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--morning); }
.v-count { font-size: .9375rem; color: var(--sand); font-variant-numeric: tabular-nums; }
.close, .nav { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--border-inverse-strong); border-radius: var(--radius); background: var(--midnight); color: var(--morning); transition: border-color .2s, background-color .2s; }
.close:hover, .nav:hover { border-color: rgba(255, 255, 255, .8); background: var(--harbor); }
.nav:disabled { opacity: .3; cursor: default; }
/* Salto entre álbumes */
.v-albums { border-block: 1px solid var(--border-inverse); }
.v-albums ul { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.v-albums ul::-webkit-scrollbar, .v-strip::-webkit-scrollbar { display: none; }
.v-albums button {
  flex: none; white-space: nowrap; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72); transition: color .2s;
}
.v-albums button:hover { color: #fff; }
.v-albums button[aria-current="true"] { color: #fff; border-bottom-color: var(--water); }
.v-body { position: relative; overflow: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.v-body::-webkit-scrollbar { width: 6px; }
.v-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 44%), 1fr)); gap: 12px; padding: 16px 20px 24px; align-items: end; }
.thumbs .photo { background: var(--current); }
.thumbs img { max-height: 260px; object-fit: contain; }
.slide { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; height: 100%; padding-inline: 8px; gap: 4px; }
.stage { display: grid; place-items: center; height: 100%; min-height: 0; padding-block: 8px; touch-action: pinch-zoom; }
.enlarged { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
/* Tira de miniaturas */
.v-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; border-top: 1px solid var(--border-inverse); scrollbar-width: none; }
.v-strip button { flex: none; width: 52px; height: 68px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: var(--current); opacity: .55; transition: opacity .2s; }
.v-strip button:hover { opacity: .9; }
.v-strip button[aria-current="true"] { opacity: 1; border-bottom-color: var(--water); }
.v-strip img { width: 100%; height: 100%; object-fit: cover; }
.v-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 16px 8px 20px; border-top: 1px solid var(--border-inverse); }
.photo-status { font-size: 1rem; }
.all-photos { flex: none; min-height: 44px; padding: 0 4px; border: 0; background: none; font-weight: 600; letter-spacing: .08em; text-decoration: underline; text-underline-offset: .35em; }

/* ───── Tableta y móvil ───── */
@media (max-width: 899px) {
  .brand img { width: 52px; }
  .masthead-inner { display: flex; align-items: center; gap: 8px; }
  .masthead-contact { margin-left: auto; padding-inline: 14px; }
  .masthead-contact .wide { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--morning); }
  /* ☰ → ✕: los dos iconos Phosphor van apilados; al abrir, ☰ gira y se desvanece mientras ✕ entra girando (transición CSS; sin movimiento, instantáneo) */
  .menu-toggle .icon { grid-area: 1 / 1; width: 28px; height: 28px; transition: opacity .25s, rotate .4s var(--ease-out); }
  .menu-toggle .icon.x { width: 28px; height: 28px; opacity: 0; rotate: -90deg; }
  .menu-toggle[aria-expanded="true"] .icon.menu { opacity: 0; rotate: 90deg; }
  .menu-toggle[aria-expanded="true"] .icon.x { opacity: 1; rotate: 0deg; }
  /* Panel del menú: pantalla completa, también bajo la cabecera, de modo que el fundido de apertura pinta de blanco todo (logotipo y botón van por encima) */
  .masthead nav {
    display: none; position: fixed; z-index: 19; inset: 0; flex-direction: column; gap: 0; overflow-y: auto;
    padding: calc(var(--head) + 13px) var(--gutter) 0; background: var(--morning); text-align: center; align-items: center;
    /* buganvillas: la esquina va en el fondo del panel (no se desplaza) y la rama en el pie fijo (decorativas) */
    background: url(assets/buganvilla-esquina.webp) right -2px top calc(var(--head) + 7px) / min(66vw, 330px) auto no-repeat, var(--morning);
  }
  /* Con el menú abierto el panel blanco cubre también la cabecera (aparece con un fundido); el logotipo oscuro y el ✕ en Midnight
     se cruzan con los claros a mitad del fundido. El botón de reservar de la cabecera se oculta (el del panel va debajo). */
  .brand, .menu-toggle { position: relative; z-index: 21; }
  .brand { display: grid; }
  .brand img { grid-area: 1 / 1; transition: opacity .25s .05s; }
  .brand .brand-dark { display: block; opacity: 0; }
  .masthead.open:not(.closing) .brand img:not(.brand-dark) { opacity: 0; transition-delay: .1s; }
  .masthead.open:not(.closing) .brand-dark { opacity: 1; transition-delay: .1s; }
  .masthead-contact { transition: opacity .3s, visibility 0s, background-color .2s, transform .16s var(--ease-out); }
  .masthead.open:not(.closing) .masthead-contact { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }   /* se desvanece (y vuelve igual al cerrar) en vez de aparecer de golpe */
  .menu-toggle { transition: color .25s .1s; }
  .masthead.open:not(.closing) .menu-toggle { color: var(--midnight); }
  .masthead.open :focus-visible { outline-color: var(--midnight); }
  .menu-gsap .masthead.open nav, .menu-gsap .masthead.open.closing nav { animation: none; }   /* con GSAP el panel se abre con animations.js */
  .masthead nav { scrollbar-width: none; }   /* sin barra de scroll: al aparecer estrechaba el panel y movía el contenido centrado */
  .masthead nav::-webkit-scrollbar { display: none; }
  .masthead.open nav { display: flex; animation: menu-in .22s ease-out; }
  .masthead.open.closing nav { animation: menu-out .15s ease-out forwards; }
  /* Menú móvil (B2): sin líneas entre filas, el orden lo da el espacio. Títulos 30 px / peso 500; suites 19 px */
  .masthead nav a:not(.btn) {
    min-height: 52px; padding: 0;
    font-family: var(--serif); font-size: 1.875rem; font-weight: 500; font-optical-sizing: none; font-variation-settings: "opsz" 11; letter-spacing: -.01em; text-transform: none; color: var(--midnight);
  }
  .masthead nav { gap: 6px; }
  .masthead nav > :first-child { margin-top: auto; }   /* opciones centradas en vertical entre la cabecera y el pie */
  /* Suites desplegable (cerrado por defecto): enlace + botón + / − (patrón Disclosure Navigation) */
  .masthead nav .nav-group { display: grid; grid-template-columns: 1fr auto 1fr; }
  .masthead nav .nav-group > a { grid-column: 2; }
  .sub-toggle { grid-column: 3; justify-self: start; }
  .sub-toggle { display: grid; place-items: center; min-height: 52px; min-width: 52px; padding: 0; border: 0; background: none; color: var(--midnight); }
  .sub-toggle .icon { width: 24px; height: 24px; }
  .sub-toggle[aria-expanded="true"] .icon { --i: url("assets/minus.svg"); }
  .sub { display: grid; grid-column: 1 / -1; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .25s var(--ease-out), visibility 0s .25s; }
  .sub-toggle[aria-expanded="true"] + .sub { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .25s var(--ease-out), visibility 0s; }
  .sub > ul { min-height: 0; overflow: hidden; }
  .sub li:first-child { padding-top: 2px; }   /* el aire va en los li: un padding en el ul no se pliega con la lista */
  .sub li:last-child { padding-bottom: 14px; }
  .masthead nav .sub a {
    display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 4px 0;
    font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0;
  }
  .masthead nav .sub .si-name { font-size: 1.1875rem; font-weight: 500; color: var(--midnight); --serif-opsz: 11; }
  .masthead nav .sub .si-cap { font-size: .75rem; color: var(--muted); white-space: nowrap; }
  /* El panel plegable recorta (overflow): el foco va por dentro para que no se corte */
  .masthead nav .sub a:focus-visible { outline-offset: -4px; box-shadow: none; }
  /* Pie del panel: botón de reservar abajo del todo y firma */
  /* Suites plegable desactivado: se muestra como enlace simple; para reactivarlo, borrar esta regla */
  .sub-toggle, .sub { display: none; }
  /* El botón va pegado al grupo de opciones (centrado en vertical); la firma, con la rama, queda al pie */
  .masthead nav .nav-end { display: contents; }
  .masthead nav a.nav-cta { margin-top: 36px; }
  .nav-sign { width: calc(100% + 2 * var(--gutter)); margin: auto calc(-1 * var(--gutter)) 0; padding: 24px var(--gutter) 28px; position: sticky; bottom: 0; min-height: calc(min(26vw, 130px) * 1.16); /* alto de la rama: si la caja es más baja, el borde recorta la hoja de arriba */
    background: url(assets/buganvilla-rama.webp) left bottom / min(26vw, 130px) auto no-repeat, var(--morning); }
  .masthead nav a.nav-cta { width: 100%; max-width: 360px; padding-inline: 24px; color: var(--midnight); font-size: .8125rem; letter-spacing: .18em; }
  .masthead nav a.nav-cta::after { display: none; }
  .masthead nav a:not(.btn):hover, .masthead nav a.nav-cta:hover { color: var(--midnight); }
  .nav-sign { display: grid; gap: 10px; }
  .nav-sign .script { font-size: 2.25rem; color: var(--midnight); }
  .nav-place { font-size: .8125rem; letter-spacing: .08em; color: var(--muted); }
  body.menu-open { overflow: hidden; }

    h1 { font-size: clamp(4.6rem, 25vw, 9rem); }
      .welcome { grid-template-columns: 1fr; gap: 28px; padding-bottom: 88px; }
  .welcome-text { order: -1; }
  .welcome-photo { width: 68%; justify-self: start; }

  .pool-spread { grid-template-columns: 1fr; gap: 28px; }
  .pool-night { width: 78%; justify-self: end; margin: 0; }

  .suite-index { inline-size: 100%; }
  .suites-head { flex-direction: column; align-items: stretch; }
  .suite, .suite.flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "main" "pair"; gap: 24px; padding-block: 56px 64px; }
  .suite-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .suite-pair figure:nth-child(2), .flip .suite-pair figure:nth-child(2) { width: 100%; margin-top: 28px; }
  .flip .suite-main { width: 88%; justify-self: end; }

  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .m1, .m5 { grid-column: 1 / -1; }
  .m2, .m3, .m4, .m6 { grid-column: auto; margin-top: 0; }
  .m3, .m6 { margin-top: 28px; }
  .albums { grid-template-columns: 1fr; margin-top: 56px; }
  .btn-lg { padding-inline: 28px; }
  .footer-inner { grid-template-columns: auto 1fr auto; }
  .footer p { text-align: left; letter-spacing: .06em; font-size: .75rem; }
  .v-head { padding-left: 16px; }
  .thumbs { padding-inline: 16px; }
  .slide { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .slide .nav { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; }
  .slide .previous { left: 8px; }
  .slide .next { right: 8px; }
  .v-foot { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  h1 { font-size: 4.4rem; }
  .btn-lg { padding-inline: 20px; letter-spacing: .12em; }
}

/* Crédito discreto del pie: una sola firma, un solo enlace */
.credit { display: flex; justify-content: center; padding-block: 0 12px; border-top: 1px solid var(--border-inverse); }
.credit a {
  display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; letter-spacing: .04em; text-transform: none;
  color: rgba(255, 255, 255, .62); text-decoration: underline 1px rgba(255, 255, 255, .35); text-underline-offset: .3em;
  transition: color .2s, text-decoration-color .2s;
}
.credit a:hover { color: #fff; text-decoration-color: var(--water); }

/* Los títulos con máscara de SplitText necesitan alto de línea para no cortar descendentes (¿, g, p, y) */
.section-head h2, .contact h2, .suite h3 { line-height: 1.14; }

/* Movimiento sutil (solo con «sin preferencia»): visor y fotos */
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] .v-panel { animation: v-in .25s ease-out; }
  @keyframes v-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Enlaces a Airbnb e Instagram */
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; letter-spacing: .08em; color: var(--text);
  text-decoration: underline 1px var(--border-strong); text-underline-offset: .4em; transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: var(--bay); text-decoration-thickness: 2px; }
.text-link .icon { width: 16px; height: 16px; }
.suite-airbnb { flex-basis: 100%; margin-top: -4px; }
.contact-suites { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin-top: 18px; max-width: 34rem; }
.btn .icon { width: 18px; height: 18px; }
.footer-ig { gap: 8px; }
.footer-ig .icon { width: 18px; height: 18px; }

/* Cierre: composición tipográfica como la portada (serif alta en mayúsculas + caligrafía montada en Open Water) */
.contact.dark { background: var(--midnight); }
.contact h2.cuando { display: block; width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; font-size: calc(clamp(5rem, 12vw, 13rem) * .74); line-height: .84; letter-spacing: .04em; font-kerning: normal; text-rendering: optimizeLegibility; }
.contact h2.cuando span { display: block; }
.c-serif { text-transform: uppercase; margin-right: -.04em; }
.contact h2 .c-wrap { position: relative; z-index: 2; width: fit-content; margin: -.34em auto 0; font-size: .8em; }
.contact h2 .c-script { color: var(--morning); letter-spacing: 0; text-transform: none; font-size: 1em; line-height: .8; padding: .08em .1em; rotate: -5deg; transform-origin: center; position: relative; z-index: 1; }
/* Pincelada Bay Glass detrás de «vienes?», como en la portada; centrada y a −5° como el texto (el SVG ya sube 4,3°) */
.contact h2 .c-brush { left: calc(50% - .08em); top: calc(56% + .04em); width: 2.65em; translate: -50% -50%; rotate: -.7deg; z-index: 0; }
.contact .hosts .script { color: var(--sand); }
.dark .text-link { color: var(--morning); text-decoration-color: var(--border-inverse-strong); }
.dark .text-link:hover { text-decoration-color: var(--water); }
.contact-text { margin-top: 56px; }
@media (max-width: 899px) { .contact h2.cuando { font-size: calc(clamp(3.2rem, 16.5vw, 6.5rem) * .74); } .contact h2 .c-wrap { font-size: 1.2em; margin-top: -.18em; } .contact-text { margin-top: 44px; } }

.contact .eyebrow { margin-bottom: clamp(36px, 4vw, 56px); }

/* Tamaños de icono según el sistema: 16–18 px en línea con texto, 20 px en botones, 24 px en controles del visor */
.close .icon, .nav .icon { width: 24px; height: 24px; }
.btn .icon { width: 20px; height: 20px; }
.btn-sm .icon, .album-link .icon, .suite-index .icon { width: 18px; height: 18px; }
.text-link .icon, .footer-ig .icon { width: 18px; height: 18px; }

/* Jerarquía de acciones: Airbnb es lo principal; fotos y navegación son secundarias */
.cover-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.suite-foot .capacity { flex-basis: 100%; }
.suite-foot { gap: 12px 24px; }
button.text-link { background: none; border: 0; padding: 0; }
button.text-link, .album-link { text-decoration: none; }
button.text-link > span:first-child, .album-link > span:first-child {
  padding-bottom: .22em; background: linear-gradient(var(--bay), var(--bay)) left bottom / 0 2px no-repeat; transition: background-size .35s var(--ease-out);
}
button.text-link:hover > span:first-child, button.text-link:focus-visible > span:first-child,
.album-link:hover > span:first-child, .album-link:focus-visible > span:first-child { background-size: 100% 2px; }
button.text-link .badge { margin-left: 2px; }
.masthead-contact .icon { width: 16px; height: 16px; }
.menu { --i: url("assets/list.svg"); }
@media (max-width: 899px) {
  .cover-cta .btn { flex: 1 1 100%; }
  .suite-foot .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: no-preference) { @keyframes menu-in { from { opacity: 0; } to { opacity: 1; } } @keyframes menu-out { from { opacity: 1; } to { opacity: 0; } } }

/* ───── Móvil: orden de lectura, ritmo y portada más fotográfica ───── */
@media (max-width: 899px) {
  /* Valor antes que petición: nombre → foto → descripción y reserva → resto de fotos */
  .suite, .suite.flip { grid-template-areas: "head" "main" "body" "pair"; gap: 20px; padding-block: 44px 52px; }
  .suite-copy { display: contents; }
  .suite-head { grid-area: head; }
  .suite-body { grid-area: body; }
  /* Portada compacta: el título y la acción principal caben y la foto asoma antes */
          .cover-cta { gap: 4px 24px; }
}

/* Respiro entre la portada y la bienvenida */
.welcome { position: relative; padding-top: clamp(72px, 12vw, 160px); }

/* ───── Móvil: collage corto de tres fotos por suite (una grande y dos pequeñas), texto y reserva debajo ───── */
@media (max-width: 899px) {
  .suite, .suite.flip {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-areas: "head head" "main pair" "body body";
    gap: 20px 10px; align-items: start; padding-block: 44px 48px;
  }
  .flip .suite-main { width: 100%; justify-self: stretch; }
  .suite-pair { grid-template-columns: minmax(0, 1fr); gap: 10px; align-self: start; }
  .suite-pair figure:nth-child(2), .flip .suite-pair figure:nth-child(2) { width: 100%; margin-top: 0; }
  .suite-main figcaption, .suite-pair figcaption { display: none; }
}

/* ───── Pie en móvil: columna centrada y ordenada ───── */
@media (max-width: 899px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 20px; padding-block: 40px 20px; }
  .footer img { width: 72px; }
  .footer p { text-align: center; font-size: .8125rem; letter-spacing: .14em; }
  .footer-links { justify-self: center; justify-content: center; gap: 0 28px; }
  .footer a { justify-self: center; }
  .credit { padding-block: 0 20px; }
}

/* Pista de scroll: hilo y flecha finos en blanco, centrados al pie de la portada (escritorio y móvil), sin fondo ni caja.
   El hilo se dibuja hacia abajo como una pluma, aparece la flecha y el hilo se recoge por arriba. Se retira con el primer scroll (gallery.js). */
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 3; translate: -50% 0;
  display: grid; justify-items: center; align-content: start; width: 48px; height: 80px; padding-top: 6px;  /* zona de toque de 48 px */
  color: var(--morning); text-decoration: none; filter: drop-shadow(0 0 6px rgb(0 0 0 / .45)); transition: opacity .4s;
}
.scroll-cue.gone { opacity: 0; pointer-events: none; }
.scroll-cue:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.cue-line { display: block; width: 1px; height: 44px; background: currentColor; transform-origin: top; }
.scroll-cue .icon { width: 16px; height: 16px; rotate: 90deg; margin-top: -6px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes cue-line { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
  @keyframes cue-arrow { 0%, 30% { opacity: 0; translate: 0 -4px; } 45%, 70% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
  .cue-line { animation: cue-line 3s cubic-bezier(.16, 1, .3, 1) infinite; }
  .scroll-cue .icon { animation: cue-arrow 3s ease-in-out infinite; }
}

/* Escritorio: la pista va al borde derecho de la portada, con «SEGUIR» en vertical sobre el hilo y la flecha */
.cue-t { display: none; }
@media (min-width: 900px) {
  .scroll-cue { left: auto; right: var(--gutter); translate: none; width: 40px; height: auto; padding: 6px 0; bottom: 28px; gap: 12px; }
  .cue-t { display: block; writing-mode: vertical-rl; font-size: .6875rem; letter-spacing: .34em; text-transform: uppercase; }
  .cue-line { height: 52px; }
}

/* Móvil: cápsula fina (solo contorno) con un punto que sube, el gesto de deslizar; en lugar del hilo y la flecha */
.cue-pill { display: none; }
@media (max-width: 899px) {
  .cue-line, .scroll-cue .icon { display: none; }
  .scroll-cue { height: 64px; }
  .cue-pill { display: block; position: relative; width: 22px; height: 38px; margin-top: 4px; border: 1px solid currentColor; border-radius: 12px; }
  .cue-pill::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: currentColor; }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  @keyframes cue-dot { 0% { translate: 0 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { translate: 0 -22px; opacity: 0; } }
  .cue-pill::after { animation: cue-dot 2s cubic-bezier(.45, 0, .2, 1) infinite; }
}

/* Móvil en horizontal o pantalla muy baja: no hay sitio sin tapar el contenido */
@media (max-height: 520px) { .scroll-cue { display: none; } }

/* Caligrafía que se escribe (trazo real): el texto sigue en el HTML pero se ve el SVG que lo dibuja (animations.js) */
.trazo-on { color: transparent !important; }
.trazo-anchor { display: inline-block; position: relative; width: 0; height: 0; vertical-align: baseline; }
.trazo-anchor canvas { position: absolute; pointer-events: none; }

/* Foto pulsable: respuesta al pasar el ratón (solo con puntero fino) */
@media (hover: hover) and (pointer: fine) {
  .photo img { transition: scale .5s var(--ease-out); }
  .photo:hover img { scale: 1.03; }
}
/* Suite a la que se acaba de saltar desde el índice: el título se aclara un instante */
@media (prefers-reduced-motion: no-preference) {
  .suite.landed h3 { animation: landed .8s var(--ease-out); }
  @keyframes landed { from { opacity: .3; } to { opacity: 1; } }
}

/* Página de privacidad */
.legal-head { padding-block: 20px; }
.legal-head img { display: block; inline-size: auto; block-size: 64px; }
.legal { padding-block: clamp(24px, 6vw, 72px) clamp(48px, 9vw, 112px); max-inline-size: 72ch; }
.legal h1 { margin: 0 0 8px; color: var(--midnight); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: 0; }
.legal-date { margin: 0 0 32px; color: var(--muted); font-size: .9375rem; }
.legal h2 { margin: 44px 0 10px; font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.2; }
.legal p, .legal li { line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-inline-start: 1.25em; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal a:not(.btn) { color: var(--text); text-underline-offset: .2em; }
.legal :focus-visible, .legal-foot :focus-visible { outline: 2px solid var(--midnight); outline-offset: 3px; }
.legal-summary { position: relative; margin: 8px 0 0; padding: 32px 28px 24px; background: var(--sand); }
.legal-summary::before { content: ""; position: absolute; left: 28px; top: 0; inline-size: 48px; block-size: 2px; background: var(--gold); }
.legal-summary h2 { margin-top: 0; }
.legal-summary ul { margin-bottom: 20px; }
.legal-back { margin-top: 40px; }
.legal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; padding-block: 20px 32px; border-top: 1px solid var(--border-strong); }
.legal-foot a { min-height: 44px; display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text); background: none; border: 0; padding: 0; }

/* Las ramas sobresalen de la sección y se ven sobre la anterior y el pie; el recorte horizontal evita el scroll lateral */
main { overflow-x: clip; }
/* Cierre: ramas de buganvilla en las esquinas (se mecen con el viento) y pétalos que caen; lo anima buganvillas.js */
.contact-inner { position: relative; z-index: 3; }
.bg-layer { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.bg-layer img { display: block; width: 100%; height: auto; }
.bg-layer .fl { position: absolute; inset: 0; transform-origin: inherit; }
.bg-tl { left: -1%; top: -5%; width: clamp(240px, 26vw, 420px); transform-origin: 0 0; }
.bg-br { right: -3%; bottom: -6%; width: clamp(240px, 24vw, 410px); transform-origin: 100% 100%; }
.bg-petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.petal { position: absolute; left: 0; top: 0; width: 23px; opacity: 0; will-change: transform; }
.petal img { display: block; width: 100%; height: auto; }
@media (max-width: 899px) {
  .bg-tl { width: clamp(120px, 34vw, 240px); }
  .bg-br { width: clamp(120px, 34vw, 230px); right: -5%; }
  .petal { width: 17px; }
}
/* Bienvenida: rama que entra por la esquina superior derecha (la de abajo a la derecha del cierre, sin voltear), pegada al borde de la ventana */
.bg-tr { right: calc(50% - 50vw - 1vw); top: -2%; width: clamp(180px, 18vw, 230px); transform-origin: 100% 0; z-index: 2; }
.bg-tr img { transform: scaleY(-1); }
.bg-tr .fl { transform-origin: 100% 0; }
@media (max-width: 899px) { .bg-tr { width: clamp(100px, 24vw, 140px); top: -5vw; } }
/* Suites: rama que entra por la esquina superior izquierda, en el hueco sobre el titular (la del cierre girada 180°) */
.bg-sl { left: calc(50% - 50vw - 1vw); top: 2vw; width: clamp(180px, 17vw, 290px); transform-origin: 0 0; z-index: 2; }
.bg-sl img { transform: scale(-1, -1); }
.bg-sl .fl { transform-origin: 0 0; }
@media (max-width: 899px) { .bg-sl { left: auto; right: calc(50% - 50vw - 1vw); width: clamp(110px, 30vw, 150px); top: 4vw; transform-origin: 100% 0; } .bg-sl img { transform: scaleY(-1); } .bg-sl .fl { transform-origin: 100% 0; } }

/* Ramas de buganvilla estáticas repartidas por la página (decorativas): asoman por el borde de la ventana, por encima de las fotos y sin tocar textos ni iconos.
   Lado, posición, tamaño, margen fuera y giro van en variables del propio elemento (--w, --wm, --off); .o-* orienta la imagen. */
.suite, .services, .corners { position: relative; z-index: 0; }
.rama { position: absolute; z-index: 2; pointer-events: none; width: clamp(110px, calc(var(--w) * 1vw), 300px); }
.rama img { display: block; width: 100%; height: auto; }
.rama img.top { position: absolute; inset: 0; }
.rama-l { left: calc(50% - 50vw - var(--off) * 1vw); }
.rama-r { right: calc(50% - 50vw - var(--off) * 1vw); }
.o-x img { transform: scaleX(-1); } .o-y img { transform: scaleY(-1); } .o-xy img { transform: scale(-1, -1); }
@media (max-width: 899px) {
  .rama.m-hide { display: none; }
  .rama { width: clamp(70px, calc(var(--wm) * 1vw), 150px); }
  /* en pantallas estrechas el texto va alineado a la izquierda: todas pasan al borde derecho, con la orientación invertida */
  .rama-l { left: auto; right: calc(50% - 50vw - var(--off) * 1vw); }
  .rama-l.o-none img { transform: scaleX(-1); } .rama-l.o-x img { transform: none; } .rama-l.o-y img { transform: scale(-1, -1); } .rama-l.o-xy img { transform: scaleY(-1); }
}
