/* =====================================================================
   Bohemia Suites & Spa · Base de marca para landings de campaña
   Tipografía de la casa: GT Super Display (titulares), Montserrat
   (etiquetas y botones), PT Sans (texto) y Hall of Fun Clean (manuscrita).
   Secciones claras y oscuras que se alternan.
   ===================================================================== */

@font-face {
  font-family: "GT Super";
  src: url("/shared/fonts/GT-Super-Display-Light.woff2") format("woff2"),
       url("/shared/fonts/GT-Super-Display-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GT Super";
  src: url("/shared/fonts/GT-Super-Display-Light-Italic.woff2") format("woff2"),
       url("/shared/fonts/GT-Super-Display-Light-Italic.woff") format("woff");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hall of Fun";
  src: url("/shared/fonts/HallOfFunClean.woff2") format("woff2"),
       url("/shared/fonts/HallOfFunClean.woff") format("woff"),
       url("/shared/fonts/HallOfFunClean.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --font-display: "GT Super", "Times New Roman", Georgia, serif;
  --font-label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Hall of Fun", "Caveat", cursive;

  --ink: #1b1d1e;
  --ink-2: #242729;
  --ink-3: #2e3235;
  /* Paleta de Bohemia: blanco y pastel planos */
  --white: #ffffff;
  --salmon: #f09e78;
  --cream: #fcf2d9;
  --blue: #c8ddec;
  --lilac: #d8d2e4;
  --sage: #c8dab0;
  --grey: #777777;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 10vw, 150px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-drawer: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-open: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Temas de sección */
.s-dark {
  --bg: var(--ink);
  --panel: var(--ink-2);
  --text: #efe9dc;
  --muted: #a9a59b;
  --line: rgba(239, 233, 220, 0.16);
  --accent: var(--salmon);
  background: var(--bg);
  color: var(--text);
}
.s-light {
  --bg: var(--white);
  --panel: var(--cream);
  --text: var(--ink);
  --muted: #6b6b6b;
  --line: rgba(27, 29, 30, 0.14);
  --accent: var(--grey);
  background: var(--bg);
  color: var(--text);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #efe9dc;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
::selection { background: var(--salmon); color: #1b1d1e; }

/* Grano fino sobre toda la página */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 998; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* ---------- Layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--narrow { --container: 960px; }
.section { position: relative; padding-block: var(--section-y); }

/* ---------- Tipografía ---------- */
.t-display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.012em;
}
.t-display em, h1 em, h2 em, h3 em { font-style: italic; }
.t-xxl { font-size: clamp(3.1rem, 8.2vw, 8.2rem); line-height: 0.96; }
.t-xl  { font-size: clamp(2.5rem, 5.4vw, 5.4rem); line-height: 0.98; }
.t-lg  { font-size: clamp(1.9rem, 3.4vw, 3.3rem); line-height: 1.04; }
.t-md  { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; }
.t-italic { font-style: italic; }

.label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label--muted { color: var(--muted); }
.label--accent { color: var(--accent); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
.body--lg { font-size: 1.2rem; line-height: 1.55; }
.muted { color: var(--muted); }
.measure { max-width: 58ch; }

/* ---------- Botones (contorno, como en la web del hotel) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8em;
  padding: 1.05em 1.8em;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn--fill { background: var(--text); color: var(--bg); }
.btn--fill:hover { background: transparent; color: var(--text); }

.link {
  display: inline-flex; align-items: center; gap: 0.8em;
  font-family: var(--font-label); font-weight: 600; font-size: 0.6875rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link:hover { border-color: currentColor; gap: 1.1em; }
.link--arrow::after { content: "→"; font-weight: 400; letter-spacing: 0; }
.link--plus::after { content: "+"; font-weight: 400; letter-spacing: 0; font-size: 1.2em; line-height: 0.8; }

/* ---------- Efectos de aparición ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

.wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out); }
.wipe.is-in { clip-path: inset(0 0 0 0); }
.wipe img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.wipe.is-in img { transform: scale(1); }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .wipe { opacity: 1; transform: none; clip-path: none; transition: none; }
  .wipe img { transform: none; }
}

.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; }
button { text-transform: inherit; letter-spacing: inherit; }

/* Con Lenis el scroll lo gestiona el script */
html.lenis { scroll-behavior: auto; }
