/* ==========================================================
   Adia Hotel — base: tokens, reset, tipografía, cabecera, menú
   ========================================================== */
:root {
  --ink: #0b141c;
  --ink-2: #111c26;
  --ink-3: #070e14;
  --cream: #f1ebdf;
  --cream-2: #e6dece;
  --paper: #faf7f0;
  --gold: #d2a53b;
  --gold-2: #e8c76a;
  --sea: #3a9fbd;
  --text: #15202a;
  --text-soft: #5b6670;
  --cream-soft: rgba(241, 235, 223, .62);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

/* Grano sutil sobre toda la página */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía reutilizable ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .72;
}
.brand-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7.4vw, 112px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.brand-title em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
  font-size: .92em;
  margin-left: .05em;
}
.brand-title.center { text-align: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase;
  padding-bottom: 8px;
  position: relative;
}
.arrow-link svg { width: 26px; height: 13px; transition: transform .5s var(--ease-out); }
.arrow-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; opacity: .5;
  transform-origin: left; transition: transform .6s var(--ease-out);
}
.arrow-link:hover svg { transform: translateX(6px); }
.arrow-link:hover::after { transform: scaleX(.3); }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 40px;
  background: var(--gold); color: var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  transition: background .3s, transform .5s var(--ease-out);
}
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }

/* Iconos ornamentales */
.ornament-row { display: flex; justify-content: center; gap: 28px; color: var(--gold); }
.ornament-row svg { width: 26px; height: 26px; }
.ornament-row.divider { gap: clamp(28px, 8vw, 120px); position: relative; }
.ornament-row.divider::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241,235,223,.25) 20%, rgba(241,235,223,.25) 80%, transparent);
  z-index: -1;
}
.ornament-row.divider svg { background: var(--ink); padding: 0 10px; width: 46px; }

/* Reveal al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-soft), transform 1.2s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cabecera fija ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 84px;
  display: flex; align-items: stretch;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
/* Fondo sólido: solo aparece cuando la cabecera ya no está sobre el hero (.solid, ver main.js) */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  border-bottom: 1px solid rgba(241,235,223,.08);
  opacity: 0; transform: translateY(-100%);
  transition: opacity .45s var(--ease-soft), transform .6s var(--ease-out);
  pointer-events: none;
}
.site-header.solid::before { opacity: 1; transform: none; }
.site-header.solid .header-blend { mix-blend-mode: normal; color: var(--cream); }
/* La pestaña "Reservar" va fuera del grid para que el centro del grid sea el centro real de la pantalla */
.header-blend {
  flex: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
}
.menu-btn {
  justify-self: start;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
}
/* Icono hamburguesa: dos líneas apiladas, mismo ancho, centradas sobre la línea media del texto */
.menu-icon { position: relative; display: block; width: 26px; height: 8px; }
.menu-icon span {
  position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  transition: transform .4s var(--ease-out);
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { bottom: 0; }
.menu-btn em { font-style: normal; font-size: 11px; line-height: 1; letter-spacing: .3em; text-transform: uppercase; }
.menu-btn:hover .menu-icon span:first-child { transform: translateY(-2px); }
.menu-btn:hover .menu-icon span:last-child { transform: translateY(2px); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-wave { width: 44px; height: 10px; color: var(--gold); mix-blend-mode: normal; }
/* letter-spacing deja un hueco al final: margin-right negativo lo compensa para centrar el texto óptico */
.brand span { font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: .3em; text-transform: uppercase; margin-right: -.3em; }
.header-tel { justify-self: end; font-size: 12px; letter-spacing: .14em; font-weight: 400; margin-right: calc(128px + 28px); }

/* Pestaña "Reservar" colgando (banderín, nota a Kimpton) */
.book-tab {
  position: absolute; top: 0; right: var(--gutter);
  display: flex; align-items: flex-start; justify-content: center;
  width: 128px; height: 100px; padding-top: 32px;
  background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  transition: background .3s, transform .5s var(--ease-out);
}
.book-tab:hover { background: var(--gold-2); transform: translateY(4px); }

/* ---------- Menú a pantalla completa ---------- */
.site-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink-3); color: var(--cream);
  padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-out);
  visibility: hidden;
}
.site-menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-close { position: absolute; top: 34px; right: var(--gutter); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.menu-list { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px clamp(40px, 10vw, 160px); }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--serif); font-size: clamp(38px, 6vw, 72px); line-height: 1.1;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s, transform .8s var(--ease-out), color .3s;
}
.menu-list a:hover { color: var(--gold); }
.menu-list small { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; opacity: .5; }
.site-menu.open .menu-list a { opacity: 1; transform: none; }
.site-menu.open .menu-list li:nth-child(n) a { transition-delay: calc(.25s + var(--i, 0) * .06s); }
.menu-foot { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; opacity: .7; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { height: 68px; }
  .header-tel, .menu-btn em { display: none; }
  /* Sin teléfono, el banderín queda a la derecha y el menú a la izquierda: el wordmark sigue centrado en pantalla */
  .brand span { font-size: 18px; }
  .book-tab { width: 96px; height: 80px; padding-top: 26px; font-size: 10px; }
  .menu-list { grid-template-columns: 1fr; }
  .menu-foot { flex-direction: column; gap: 6px; }
}
