/* Alisson Hotel & Restaurant — tokens en DESIGN.md */
:root {
  --niebla: #E9EEEC;     /* fondo: la neblina de Monteverde, fría */
  --niebla-2: #DCE3E0;   /* paneles, un paso más densa */
  --bosque: #16261F;     /* texto y secciones oscuras */
  --musgo: #4F6B57;      /* texto secundario, líneas */
  --corteza: #6B3A1E;    /* café del logo */
  --cacao: #3A2214;      /* fondo del restaurante */
  --farol: #FFC928;      /* amarillo de la marca: la luz de adentro */

  --f-display: "Young Serif", "Georgia", serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, "Consolas", monospace;

  --gut: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--niebla);
  color: var(--bosque);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
blockquote { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--farol); outline-offset: 3px; border-radius: 2px; }
.kitchen :focus-visible, .arrive :focus-visible { outline-color: var(--farol); }
.hero :focus-visible, .casa :focus-visible, .rooms :focus-visible, .book :focus-visible { outline-color: var(--corteza); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--bosque); color: var(--niebla); padding: .6rem 1rem; border-radius: var(--r); }
.skip:focus { top: 1rem; }

.eyebrow {
  font: 500 .78rem/1.3 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--musgo);
  margin-bottom: 1rem;
}
.eyebrow--sun { color: var(--farol); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.3rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sun { background: var(--farol); color: var(--bosque); }
.btn--sun:hover { background: #FFD65A; }
.btn--line { border-color: var(--bosque); color: var(--bosque); }
.btn--line:hover { background: var(--bosque); color: var(--niebla); }
.btn--ghost { border-color: rgba(233, 238, 236, .35); color: var(--niebla); }
.btn--ghost:hover { border-color: var(--niebla); }

/* ---------- barra ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: calc(.6rem + env(safe-area-inset-top, 0px)) var(--gut) .6rem;
  background: rgba(233, 238, 236, .86);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.bar.is-scrolled { border-bottom-color: rgba(22, 38, 31, .12); }
.bar__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.bar__brand img { width: 44px; height: auto; }
.bar__brand span { font: 1.3rem/1 var(--f-display); display: flex; flex-direction: column; }
.bar__brand small { font: 500 .66rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--musgo); }
.bar__nav { display: flex; gap: 1.6rem; }
.bar__nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem 0; background: linear-gradient(var(--corteza), var(--corteza)) left 85% / 0 2px no-repeat; transition: background-size .25s var(--ease); }
.bar__nav a:hover { background-size: 100% 2px; }
.bar__cta { min-height: 42px; padding: .55rem 1.05rem; }

/* ---------- hero: la ventana ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gut) clamp(2.5rem, 5vw, 4rem);
  display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
.hero__title { font-size: clamp(2.9rem, 7vw, 6rem); line-height: .98; letter-spacing: -0.015em; margin-bottom: 1.4rem; }
.hero__title em { font-style: normal; color: var(--corteza); }
.hero__lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 34ch; color: #2A3D34; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

.window { margin: 0; }
.window__glass {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: #b9c6c1;
  /* marco de madera oscura, como las ventanas del hotel */
  box-shadow:
    0 0 0 10px var(--cacao),
    0 0 0 11px rgba(0, 0, 0, .25),
    0 30px 60px -20px rgba(22, 38, 31, .45);
  margin: 11px;
  touch-action: pan-y;
  cursor: crosshair;
}
.window__view, .window__fog { position: absolute; inset: 0; width: 100%; height: 100%; }
.window__view { object-fit: cover; }
.window__fog { display: block; }
.window__hint {
  display: flex; align-items: center; gap: .5rem;
  margin: 1.4rem 11px 0; font: 500 .8rem/1.3 var(--f-mono); color: var(--musgo);
  letter-spacing: .03em; transition: opacity .6s;
}
.window__hint svg { width: 1.3rem; height: 1.3rem; }
.window__hint.is-done { opacity: 0; }
.only-coarse { display: none; }
@media (pointer: coarse) { .only-fine { display: none; } .only-coarse { display: inline; } }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 1.12fr; min-height: calc(100svh - 64px); padding-top: 3rem; }
  .window__glass { aspect-ratio: 4 / 4.6; }
}

/* ---------- datos prácticos ---------- */
.facts { border-block: 1px solid rgba(22, 38, 31, .14); background: var(--niebla-2); }
.facts__list {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.facts__list div { padding: 1.1rem .9rem 1.1rem 0; border-bottom: 1px solid rgba(22, 38, 31, .1); }
.facts__list dt { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--musgo); margin-bottom: .3rem; }
.facts__list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .facts__list { grid-template-columns: repeat(6, auto); justify-content: space-between; }
  .facts__list div { border-bottom: 0; padding: 1.3rem 1rem 1.3rem 0; }
}

/* ---------- la casa ---------- */
.casa {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--gut);
  display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.casa__photos { position: relative; padding-bottom: 18%; }
.casa__a { width: 72%; border-radius: var(--r); aspect-ratio: 3 / 4; object-fit: cover; }
.casa__b {
  position: absolute; right: 0; bottom: 0; width: 56%;
  border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover;
  border: 6px solid var(--niebla);
}
.casa__text h2 { margin-bottom: 1.4rem; }
.casa__text > p { max-width: 52ch; }
.casa__text strong { color: var(--corteza); }
.casa__quote {
  margin: 2rem 0; padding-left: 1.2rem; border-left: 3px solid var(--farol);
}
.casa__quote p { font: 1.3rem/1.35 var(--f-display); margin-bottom: .6rem; }
.casa__quote footer, .book footer, .kitchen__quote footer { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--musgo); }
.extras { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.extras li { font-size: .9rem; padding: .35rem .8rem; border: 1px solid rgba(22, 38, 31, .2); border-radius: 999px; }
.extras span { color: var(--musgo); }
@media (min-width: 900px) { .casa { grid-template-columns: 1fr 1.1fr; } }

/* ---------- habitaciones ---------- */
.rooms { padding: 0 0 clamp(4rem, 9vw, 8rem); }
.rooms__head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.rooms__head h2 { max-width: 20ch; margin-bottom: 1.2rem; }
.rooms__head p { max-width: 56ch; }
.rooms__body {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  display: grid; gap: 2.5rem; align-items: start;
}

/* mazo de fotos: postales apiladas, la de arriba se pasa al fondo */
.deck-wrap { padding: 2.5rem 1.4rem 0 .4rem; }
.deck {
  position: relative; aspect-ratio: 4 / 3.55;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  outline-offset: 10px;
}
.card {
  --i: 0; --tilt: 0deg;
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column;
  padding: .55rem .55rem 0;
  background: #FBFCFB;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(22, 38, 31, .1), 0 18px 34px -18px rgba(22, 38, 31, .45);
  transform-origin: 50% 85%;
  transform:
    translate(calc(var(--i) * 12px), calc(var(--i) * -12px))
    rotate(var(--tilt))
    scale(calc(1 - var(--i) * .035));
  z-index: calc(20 - var(--i));
  transition: transform .5s var(--ease), opacity .35s ease;
  cursor: grab;
}
.card:not(:first-child) { cursor: default; }
.card[data-hidden] { opacity: 0; pointer-events: none; }
.card.is-dragging { transition: none; cursor: grabbing; }
.card.is-leaving {
  z-index: 30;
  transform: translate(calc(var(--dir) * 115%), -3%) rotate(calc(var(--dir) * 12deg));
  opacity: 0;
  transition: transform .42s cubic-bezier(.4, 0, .9, .6), opacity .16s ease .26s;
}
.card img {
  flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 2px;
  pointer-events: none; background: var(--niebla-2);
}
.card figcaption {
  font: 500 .76rem/1.3 var(--f-mono); letter-spacing: .02em; color: var(--musgo);
  padding: .65rem .15rem .75rem;
}
.deck__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.6rem; }
.deck__btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--bosque); background: transparent; color: var(--bosque);
  cursor: pointer; transition: background-color .2s, color .2s;
}
.deck__btn svg { width: 22px; height: 22px; }
.deck__btn:hover { background: var(--bosque); color: var(--niebla); }
.deck__count { margin: 0; min-width: 5.5em; text-align: center; font: 500 .85rem/1 var(--f-mono); color: var(--musgo); font-variant-numeric: tabular-nums; }
.deck__count span:first-child { color: var(--bosque); font-size: 1.05rem; }
.deck__hint { text-align: center; font: 500 .72rem/1.4 var(--f-mono); color: var(--musgo); margin: .8rem 0 0; }

@media (min-width: 960px) {
  .rooms__body { grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 5vw, 5rem); margin-top: 1rem; }
  .deck-wrap { position: sticky; top: 5.5rem; }
}

.rooms__list { list-style: none; margin: 0; padding: 0; }
.room {
  display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center;
  padding: 1.2rem 0; border-top: 1px solid rgba(22, 38, 31, .15);
}
.room:last-child { border-bottom: 1px solid rgba(22, 38, 31, .15); }
.room h3 { font-size: 1.45rem; line-height: 1.15; }
.room p { margin: .2rem 0 0; color: var(--musgo); font-size: .95rem; }
.tag { grid-column: 1; justify-self: start; font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; padding: .4rem .65rem; border-radius: 4px; }
.tag--ok { border: 1px solid var(--musgo); color: var(--musgo); }
.tag--share { background: var(--farol); color: var(--bosque); }
.room__ask {
  grid-column: 2; grid-row: 1 / span 2;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem;
  border-radius: 999px; border: 2px solid var(--bosque); font-weight: 600; text-decoration: none; font-size: .95rem; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.room__ask:hover { background: var(--bosque); color: var(--niebla); }
.rooms__note { max-width: var(--max); margin: 1.4rem auto 0; padding: 0 var(--gut); font-size: .9rem; color: var(--musgo); }
@media (min-width: 760px) {
  .room { grid-template-columns: 1.4fr 1fr auto; }
  .tag { grid-column: 2; }
  .room__ask { grid-column: 3; grid-row: auto; }
}

/* ---------- restaurante ---------- */
.kitchen { background: var(--cacao); color: #F3E9DE; }
.kitchen__inner { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--gut); }
.kitchen__head { max-width: 44rem; }
.kitchen h2 { color: #FFF6E6; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; margin-bottom: 1.4rem; }
.kitchen__hours { font: 500 1rem/1.3 var(--f-mono); color: var(--farol); font-variant-numeric: tabular-nums; }
.kitchen__hours span { color: #CDB9A5; margin-right: .5rem; }
.kitchen__head > p:not(.eyebrow):not(.kitchen__hours):not(.kitchen__sign) { color: #E4D6C7; max-width: 52ch; }
.kitchen__sign {
  font: 500 .78rem/2 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: #CDB9A5;
  margin-top: 1.6rem;
}
.kitchen__sign i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--farol); vertical-align: middle; margin: 0 .55rem; }

.menu { display: grid; gap: clamp(2rem, 4vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.menu__photo { position: sticky; top: 72px; z-index: 1; }
@media (max-width: 899px) {
  /* en celular la foto se queda arriba mientras se recorre la lista */
  .menu__photo { padding-bottom: .75rem; background: var(--cacao); }
  .menu .menu__photo img { aspect-ratio: 16 / 10; }
}
.menu__photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r);
  transition: opacity .35s var(--ease);
}
.menu__photo img.is-swapping { opacity: 0; }
.menu__group {
  font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--farol);
  margin: 1.8rem 0 .4rem;
}
.menu__group:first-child { margin-top: 0; }
.menu__board ul { list-style: none; margin: 0; padding: 0; }
.menu__board li { border-bottom: 1px solid rgba(243, 233, 222, .14); }
.menu__board li > * {
  display: flex; align-items: baseline; gap: .6rem; width: 100%;
  padding: .55rem 0; font: 1.35rem/1.25 var(--f-display); color: #FFF6E6; text-align: left;
}
.menu__board small { font: 500 .75rem/1 var(--f-mono); color: #CDB9A5; }
.menu__board button { background: none; border: 0; cursor: pointer; }
.menu__board button::after {
  content: "ver foto"; margin-left: auto; font: 500 .68rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: #CDB9A5; padding: .3rem .5rem; border: 1px solid rgba(243, 233, 222, .25); border-radius: 3px;
  transition: all .2s;
}
.menu__board button:hover::after, .menu__board button[aria-pressed="true"]::after { background: var(--farol); color: var(--cacao); border-color: var(--farol); }
.menu__board button[aria-pressed="true"]::after { content: "en foto"; }
.menu__note { margin-top: 1.4rem; font-size: .9rem; color: #CDB9A5; }
.kitchen__quote { margin: clamp(3rem, 6vw, 5rem) 0 2rem; max-width: 40rem; }
.kitchen__quote p { font: clamp(1.6rem, 3.4vw, 2.5rem)/1.15 var(--f-display); color: var(--farol); margin-bottom: .6rem; }
.kitchen__quote footer { color: #CDB9A5; }
@media (min-width: 900px) {
  .menu { grid-template-columns: 1fr 1fr; }
  .menu__photo { position: sticky; top: 6rem; }
}

/* ---------- libro de visitas ---------- */
.book { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--gut); }
.book__head { margin-bottom: 2.5rem; }
.book__head h2 { margin-bottom: 1rem; }
.book__score { font: 500 .85rem/1.5 var(--f-mono); color: var(--musgo); }
.book__score strong { color: var(--bosque); font-size: 1.05rem; }
.book__list { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 2.5rem; }
.book__list li { break-inside: avoid; padding: 1.4rem 0; border-top: 1px solid rgba(22, 38, 31, .15); }
.book__list p { font-size: 1.08rem; margin-bottom: .7rem; }
@media (min-width: 700px) { .book__list { columns: 2; } }
@media (min-width: 1080px) { .book__list { columns: 3; } }

/* ---------- cómo llegar ---------- */
.arrive {
  background: var(--bosque); color: var(--niebla);
  display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  padding: clamp(4rem, 9vw, 8rem) max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut)));
}
.arrive h2 { margin-bottom: 1.5rem; max-width: 16ch; }
.arrive address { font-size: 1.1rem; line-height: 1.5; color: #C9D4CF; margin-bottom: 2rem; }
.arrive__links { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact { margin: 2.5rem 0 0; display: grid; gap: .9rem; }
.contact dt { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #9FB3A8; }
.contact dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.contact a { text-decoration-color: rgba(255, 201, 40, .6); text-underline-offset: 3px; }
.contact a:hover { color: var(--farol); }
.arrive__photo { margin: 0; }
.arrive__photo img { width: 100%; border-radius: var(--r); aspect-ratio: 631 / 668; object-fit: cover; }
.arrive__photo figcaption { font: 500 .78rem/1.3 var(--f-mono); color: #9FB3A8; margin-top: .8rem; }
@media (min-width: 900px) { .arrive { grid-template-columns: 1.2fr 1fr; } }

/* ---------- pie ---------- */
.foot {
  background: var(--bosque); color: #9FB3A8; text-align: center;
  padding: 3rem var(--gut) calc(3rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(233, 238, 236, .1); font-size: .9rem;
}
.foot img { margin: 0 auto 1rem; width: 72px; filter: drop-shadow(0 0 1px rgba(255,255,255,.4)); }
.foot p { margin: .2rem 0; }
.foot__back { margin-top: 1rem !important; }
.foot__back a { display: inline-flex; align-items: center; min-height: 44px; color: var(--niebla); text-underline-offset: 3px; }
.foot__back a:hover { color: var(--farol); }
.foot__demo { font: 400 .8rem/1.6 var(--f-body); max-width: 56ch; margin: .9rem auto 0 !important; opacity: .85; }

/* ---------- barra de contacto en celular ---------- */
.dock { display: none; }
@media (max-width: 759px) {
  .bar__nav, .bar__cta { display: none; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1.6fr 1fr; gap: .5rem;
    padding: .6rem var(--gut) calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(22, 38, 31, .94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
    border-radius: 999px; font-weight: 600; text-decoration: none;
  }
  .dock svg { width: 1.2rem; height: 1.2rem; }
  .dock__wa { background: var(--farol); color: var(--bosque); }
  .dock__call { border: 2px solid rgba(233, 238, 236, .4); color: var(--niebla); }
  .foot { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
