/* =========================================================
   Hotel Niña Bonita · Hoja de estilos (v2)
   Tipografía: Cormorant Garamond (solo títulos) + Jost (todo lo demás)
   Paleta: marfil, arena, tinta cálida y rojo Niña Bonita
   ========================================================= */

:root {
  --ivory: #faf7f2;
  --sand: #f3ede4;
  --sand-2: #e8dfd2;
  --line: #e2d8ca;
  --ink: #2a211d;
  --ink-2: #574b43;
  --muted: #8a7d72;
  --accent: #9e2a2b;
  --accent-dark: #82211f;
  --accent-soft: #f5e6e2;
  --charcoal: #1f1c1a;
  --charcoal-2: #2c2825;
  --on-dark: #efe9e1;
  --on-dark-2: #b9afa5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px -28px rgba(42, 33, 29, .45);
  --shadow-sm: 0 10px 24px -16px rgba(42, 33, 29, .4);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font: 500 .8rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 32em; }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--charcoal); --fg: #fff; --bd: var(--charcoal);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.8em; border: 1px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 .88rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: color .35s var(--ease), border-color .35s, transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--accent); }
.btn--ghost:hover, .btn--light:hover, .btn--outline-light:hover { border-color: var(--bd); }
.btn:active { transform: scale(.98); }
.btn .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost::before { background: var(--charcoal); }
.btn--ghost:hover { color: var(--ivory); }
.btn--light { --bg: var(--ivory); --fg: var(--charcoal); --bd: var(--ivory); }
.btn--light::before { background: var(--accent); }
.btn--light:hover { color: #fff; }
.btn--outline-light { --bg: transparent; --fg: var(--ivory); --bd: rgba(250,247,242,.6); }
.btn--outline-light::before { background: var(--ivory); }
.btn--outline-light:hover { color: var(--charcoal); }
.btn--small { padding: .75em 1.4em; font-size: .78rem; }
.btn--block { width: 100%; }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--ivory); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.round-btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.round-btn .ico { width: 20px; height: 20px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  transition: transform .45s var(--ease), background .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .25s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a:not(.btn):hover, .nav a.is-current { color: var(--ink); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .brand { position: relative; z-index: 2; }
  .brand img { height: 42px; }
  .menu-toggle {
    display: grid; gap: 5px; place-content: center; width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer; padding: 0; position: relative; z-index: 2;
  }
  .menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    background: var(--ivory); padding: 80px 28px 40px;
    clip-path: circle(0 at calc(100% - 38px) 33px); visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s .6s;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 38px) 33px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .nav a:not(.btn) {
    font: 600 2.1rem/1.2 var(--serif); color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 28px; padding: 1.1em; opacity: 0; transition: opacity .4s; }
  .nav.is-open a { opacity: 1; transform: none; }
  .nav.is-open a:nth-child(1) { transition-delay: .15s; }
  .nav.is-open a:nth-child(2) { transition-delay: .2s; }
  .nav.is-open a:nth-child(3) { transition-delay: .25s; }
  .nav.is-open a:nth-child(4) { transition-delay: .3s; }
  .nav.is-open a:nth-child(5) { transition-delay: .35s; }
  .nav.is-open a:nth-child(6) { transition-delay: .4s; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(24px, 5vw, 64px)) 0 clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10vw; top: -10vw; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(closest-side, var(--sand-2), transparent); opacity: .8; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; }
.hero h1 { margin-bottom: .5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Entrada del hero */
.js .hero-in { opacity: 0; transform: translateY(20px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); animation: word 1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .06s); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes word { to { transform: none; } }

.hero-media { position: relative; padding: 0 0 48px 64px; }
.arch {
  position: relative; border-radius: 999px 999px 20px 20px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow); background: var(--sand-2);
}
.js .arch { clip-path: inset(100% 0 0 0 round 999px 999px 20px 20px); animation: unveil 1.4s var(--ease) .2s forwards; }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round 999px 999px 20px 20px); } }
.arch img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 7s linear;
}
.arch img.is-active { opacity: 1; transform: scale(1); }
.hero-small {
  position: absolute; left: 0; bottom: 0; width: 38%; margin: 0;
  border: 8px solid var(--ivory); border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow);
}
.js .hero-small { opacity: 0; animation: rise 1s var(--ease) .9s forwards; }
.hero-small img { width: 100%; height: 100%; object-fit: cover; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: scale(1.06) translateY(-6px); } }

.seal {
  position: absolute; right: -18px; top: 18px; width: 164px; height: 164px;
  background: var(--ivory); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.js .seal { opacity: 0; transform: scale(.6) rotate(-40deg); animation: pop 1s var(--ease) 1.1s forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.seal text { font: 500 9.4px var(--sans); fill: var(--ink); }
.seal-sun { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Barra rápida */
.quickbook {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0;
  background: #fff; border-radius: 999px; padding: 8px; box-shadow: var(--shadow); position: relative;
}
.quickbook label { display: flex; flex-direction: column; padding: 8px 24px; border-right: 1px solid var(--line); min-width: 0; cursor: pointer; }
.quickbook label:nth-child(3) { border-right: 0; }
.quickbook label > span { display: flex; align-items: center; gap: 6px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quickbook label .ico { width: 15px; height: 15px; color: var(--accent); }
.quickbook input, .quickbook select {
  border: 0; background: transparent; font: 400 1rem var(--sans); color: var(--ink); padding: 2px 0; width: 100%;
  -webkit-appearance: none; appearance: none; outline: none; min-height: 28px; cursor: pointer;
}
.quickbook .btn { padding-inline: 2em; }
.quickbook.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.facts { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid var(--accent); }
.facts strong { font: 500 1.45rem/1.3 var(--sans); color: var(--ink); }
.facts li > span { color: var(--muted); font-size: .92rem; }

@media (max-width: 960px) {
  .quickbook { grid-template-columns: 1fr 1fr; border-radius: var(--radius); padding: 12px; gap: 6px; }
  .quickbook label { border-right: 0; padding: 10px 12px; background: var(--sand); border-radius: var(--radius-sm); }
  .quickbook label:nth-child(3) { grid-column: 1 / -1; }
  .quickbook .btn { grid-column: 1 / -1; margin-top: 4px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { padding: 0 0 36px 44px; max-width: 460px; margin-inline: auto; width: 100%; }
  .arch { aspect-ratio: 1 / 1; }
  .seal { width: 132px; height: 132px; right: -8px; top: -18px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .facts strong { font-size: 1.2rem; }
}

/* ---------- Cinta ---------- */
.marquee { background: var(--charcoal); color: var(--on-dark); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 400 .92rem var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee span::after { content: "✦"; font-size: .65rem; color: var(--accent); margin: 0 30px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tint { background: var(--sand); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head p:not(.eyebrow) { color: var(--ink-2); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.section-head--row h2 { margin: 0; }

/* ---------- Animaciones al desplazarse ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.img-reveal { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.img-reveal img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.js .img-reveal { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.3s var(--ease); }
.js .img-reveal img { transform: scale(1.25); transition: transform 1.6s var(--ease); }
.js .img-reveal.is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .img-reveal.is-visible img { transform: scale(1); }
[data-parallax] { will-change: transform; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.about-media > :last-child { margin-top: 72px; }
.about-text p { color: var(--ink-2); }
.room-count { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.room-count li { padding: 16px 8px; text-align: center; font-size: .88rem; color: var(--muted); background: var(--sand); border-radius: var(--radius-sm); transition: background .3s, transform .3s var(--ease); }
.room-count li:hover { background: var(--sand-2); transform: translateY(-3px); }
.room-count strong { display: block; font: 500 1.9rem/1.2 var(--sans); color: var(--ink); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-media > :last-child { margin-top: 40px; } }
@media (max-width: 480px) { .room-count { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Habitaciones ---------- */
.amenities { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.amenities li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--ivory); font-size: .9rem; color: var(--ink-2); }
.amenities .ico { width: 18px; height: 18px; color: var(--accent); }

.room-tabs {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ivory); border-radius: 999px; padding: 6px; margin: 0 auto 28px; max-width: 820px; box-shadow: var(--shadow-sm);
}
.room-tabs button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; border-radius: 999px;
  padding: 12px 10px; font: 500 .98rem/1.2 var(--sans); color: var(--ink-2); transition: color .35s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.room-tabs button small { font-weight: 400; font-size: .8rem; color: var(--muted); transition: color .35s; }
.room-tabs button[aria-selected="true"], .room-tabs button[aria-selected="true"] small { color: #fff; }
.tab-indicator, .seg-indicator {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--charcoal);
  transition: transform .5s var(--ease), width .5s var(--ease);
}

.room {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--ivory); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.room[hidden] { display: none; }
.room.is-entering .room-main img { animation: zoomIn .9s var(--ease); }
.room.is-entering .room-body > * { animation: rise .7s var(--ease) both; opacity: 0; transform: translateY(16px); }
.room.is-entering .room-body > *:nth-child(2) { animation-delay: .05s; }
.room.is-entering .room-body > *:nth-child(3) { animation-delay: .1s; }
.room.is-entering .room-body > *:nth-child(4) { animation-delay: .15s; }
.room.is-entering .room-body > *:nth-child(5) { animation-delay: .2s; }
@keyframes zoomIn { from { transform: scale(1.1); opacity: .3; } to { transform: none; opacity: 1; } }

.room-gallery { display: grid; grid-template-rows: 1fr auto; background: var(--sand-2); }
.room-main { overflow: hidden; position: relative; min-height: 460px; }
.room-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.room-main img.is-fading { opacity: 0; }
.room-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; background: var(--ivory); }
.room-thumbs button { border: 0; padding: 0; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; opacity: .55; transition: opacity .3s, outline-color .3s; outline: 2px solid transparent; outline-offset: -2px; }
.room-thumbs button:hover { opacity: .85; }
.room-thumbs button.is-active { opacity: 1; outline-color: var(--accent); }
.room-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.room-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.room-count-tag { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.room h3 { font-size: clamp(2rem, 3vw, 2.5rem); }
.room-feats { list-style: none; padding: 0; margin: 4px 0 24px; color: var(--ink-2); }
.room-feats li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.room-feats .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.price { margin-top: auto; margin-bottom: 22px; }
.amount { font: 500 2.2rem/1.1 var(--sans); margin: 0 0 6px; }
.amount span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.price-note { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }
.room-body .btn { align-self: flex-start; }

@media (max-width: 860px) {
  .room { grid-template-columns: 1fr; }
  .room-main { min-height: 0; aspect-ratio: 4 / 3.4; }
  .room-body .btn { align-self: stretch; }
}
@media (max-width: 600px) {
  .room-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .room-tabs::-webkit-scrollbar { display: none; }
  .room-tabs button { flex: none; padding: 10px 18px; white-space: nowrap; font-size: .92rem; }
}

/* ---------- Servicios ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.3; box-shadow: var(--shadow); color: #fff; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,33,29,0) 30%, rgba(42,33,29,.88) 100%); }
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1; }
.feature-body .ico { width: 28px; height: 28px; margin-bottom: 10px; }
.feature h3 { font-size: 1.8rem; margin-bottom: 0; }
.feature p { font-size: .92rem; line-height: 1.5; margin: 0; color: rgba(255,255,255,.88); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.feature:hover img { transform: scale(1.08); }
.feature:hover p, .feature:focus-within p { max-height: 9em; opacity: 1; margin-top: 8px; }
@media (hover: none) { .feature p { max-height: none; opacity: 1; margin-top: 6px; } }

.services { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.services li { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--sand); transition: background .35s, transform .35s var(--ease); }
.services li:hover { background: var(--sand-2); transform: translateY(-4px); }
.svc-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--accent); transition: background .35s, color .35s; }
.services li:hover .svc-ico { background: var(--charcoal); color: #fff; }
.services strong { display: block; font-weight: 500; font-size: 1.05rem; }
.services div > span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .features { gap: 12px; }
  .feature-body { padding: 14px; }
  .feature-body .ico { display: none; }
  .feature h3 { font-size: 1.4rem; }
  .feature p { font-size: .8rem; }
  .services { grid-template-columns: 1fr; }
}

/* ---------- Galería (bento) ---------- */
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--on-dark-2); }
.section--dark h2 { color: #fff; }
.section--dark .bento button { background: var(--charcoal-2); }
.section--dark .btn--ghost { --fg: var(--on-dark); --bd: rgba(239,233,225,.45); }
.section--dark .btn--ghost::before { background: var(--ivory); }
.section--dark .btn--ghost:hover { color: var(--charcoal); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.bento button { position: relative; border: 0; padding: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: var(--sand-2); }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bento button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(31,28,26,.75)); opacity: 0; transition: opacity .4s; }
.bento span { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: #fff; font-size: .95rem; letter-spacing: .02em; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); }
.bento button:hover img { transform: scale(1.07); }
.bento button:hover::after, .bento button:hover span { opacity: 1; transform: none; }
.b-1 { grid-column: span 2; grid-row: span 2; }
.b-4 { grid-row: span 2; }
.b-6 { grid-column: span 2; }
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
  .b-4 { grid-row: span 1; }
  .bento span { opacity: 1; transform: none; }
  .bento button::after { opacity: 1; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Tierra Blanca ---------- */
.town { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.town-intro, .weather { border-radius: var(--radius); padding: clamp(26px, 3.5vw, 44px); }
.town-intro { background: var(--sand); }
.town-intro p { color: var(--ink-2); }
.distances { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.distances li { background: var(--ivory); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; }
.distances strong { font: 500 1.4rem/1.2 var(--sans); color: var(--ink); }
.distances span { font-size: .85rem; color: var(--muted); }
.distances strong span { font-size: inherit; color: inherit; }
.weather { background: var(--charcoal); color: var(--on-dark); position: relative; overflow: hidden; }
.weather::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(239,233,225,.12); }
.weather h3 { color: #fff; position: relative; }
.weather p { color: var(--on-dark-2); position: relative; }
.weather-now { display: flex; gap: 18px; align-items: center; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(239,233,225,.14); position: relative; }
.weather-now p { margin: 0; }
.sun-spin { width: 54px; height: 54px; stroke-width: 1.2; color: var(--accent); animation: spin 18s linear infinite; }
.weather-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2) !important; }
.weather-temp { font: 300 3.2rem/1.05 var(--sans); color: #fff !important; }
.weather-meta { font-size: .9rem; color: var(--on-dark) !important; }
@media (max-width: 860px) { .town { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .distances { grid-template-columns: 1fr; } .distances li { flex-direction: row; justify-content: space-between; align-items: baseline; } }

.history { margin-top: 20px; border-radius: var(--radius); background: var(--sand); overflow: hidden; }
.history summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 18px 24px; transition: background .3s; }
.history summary:hover { background: var(--sand-2); }
.history summary::-webkit-details-marker { display: none; }
.history summary img { width: 44px; height: auto; }
.history summary span { flex: 1; display: flex; flex-direction: column; }
.history summary strong { font-weight: 500; font-size: 1.1rem; }
.history summary small { color: var(--muted); font-size: .88rem; }
.history .chev { transition: transform .4s var(--ease); color: var(--accent); }
.history[open] .chev { transform: rotate(90deg); }
.history-body { padding: 8px 24px 20px; columns: 2 340px; column-gap: 40px; color: var(--ink-2); font-size: .96rem; }
.history-body p { break-inside: avoid; }
.history[open] .history-body { animation: rise .6s var(--ease); }

/* Carrusel de sitios y fiestas */
.explore { margin-top: clamp(56px, 7vw, 88px); }
.explore-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; background: var(--sand); border-radius: 999px; padding: 6px; }
.seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 12px 22px; border-radius: 999px; font: 500 .98rem var(--sans); color: var(--ink-2); transition: color .35s; white-space: nowrap; }
.seg button small { font-weight: 400; opacity: .7; margin-left: 4px; }
.seg button[aria-selected="true"] { color: #fff; }
.track-nav { display: flex; gap: 10px; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 12px; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track[hidden] { display: none; }
.track.is-entering .card { animation: slideIn .7s var(--ease) both; }
.track.is-entering .card:nth-child(2) { animation-delay: .06s; }
.track.is-entering .card:nth-child(3) { animation-delay: .12s; }
.track.is-entering .card:nth-child(4) { animation-delay: .18s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.card { scroll-snap-align: start; }
.js .track .card.reveal { opacity: 1; transform: none; }
.card-open {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--sand); transition: transform .45s var(--ease), box-shadow .45s;
}
.card-open:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-open img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform 1s var(--ease); }
.card-open:hover img { transform: scale(1.06); }
.card-tag { display: block; padding: 16px 20px 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card h4 { font: 600 1.4rem/1.2 var(--serif); padding: 6px 20px 22px; margin: 0; }
.track-progress { height: 2px; background: var(--line); border-radius: 2px; margin-top: 16px; overflow: hidden; }
.track-progress span { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: 2px; transition: width .3s; }
@media (max-width: 1000px) { .track { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 700px) {
  .explore-head { flex-direction: column; align-items: stretch; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; }
  .seg button { padding: 12px 8px; font-size: .88rem; }
  .track-nav { display: none; }
  .track { grid-auto-columns: 72%; gap: 14px; }
}

/* ---------- Reservaciones ---------- */
.booking { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.booking-form > p:not(.eyebrow) { color: var(--ink-2); }
#reserva-form { margin-top: 28px; }
.field-row { display: grid; gap: 16px; margin-bottom: 16px; }
.field-row.two { grid-template-columns: 1fr 1fr; }
.field-row.three { grid-template-columns: 1.6fr 1fr 1fr; }
.field span { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--ivory);
  border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 50px;
  transition: border-color .25s, box-shadow .25s, background .25s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23574b43' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sand-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(158,42,43,.1); background: #fff; }
.field input.is-invalid, .field select.is-invalid { border-color: var(--accent); background: #fff6f4; animation: shake .35s; }
.field.is-flash input, .field.is-flash select { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 60% { background: var(--sand-2); border-color: var(--accent); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.estimate { background: var(--ivory); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 16px; font-size: .95rem; animation: rise .5s var(--ease); }
.estimate strong { color: var(--ink); }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1em; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: var(--accent); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
button[disabled] { opacity: .6; cursor: progress; }

.contact { background: var(--ivory); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 16px); }
.contact h3 { margin-bottom: 18px; }
.contact-main { display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--charcoal); color: #fff; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; transition: background .3s, transform .3s var(--ease); }
.contact-main:hover { background: var(--charcoal-2); transform: translateY(-2px); }
.contact-main .svc-ico { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.contact-main span:last-child { display: flex; flex-direction: column; font: 500 1.3rem/1.2 var(--sans); }
.contact-main small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; opacity: .85; }
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.5; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); word-break: break-word; }
.contact-list a:hover { background-size: 100% 1px; }
.map { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); margin-bottom: 14px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } .contact { position: static; } }
@media (max-width: 560px) { .field-row.two, .field-row.three { grid-template-columns: 1fr; } }

/* ---------- Llamado final ---------- */
.cta { position: relative; overflow: hidden; color: var(--on-dark); padding: clamp(72px, 10vw, 128px) 0; background: var(--charcoal); isolation: isolate; }
.cta-bg { position: absolute; inset: -12% 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31,28,26,.94) 0%, rgba(31,28,26,.82) 55%, rgba(31,28,26,.6) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.cta .eyebrow { color: var(--on-dark-2); }
.cta h2 { margin: 0; max-width: 14em; color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Pie ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-2); padding: 64px 0 24px; font-size: .95rem; border-top: 1px solid rgba(239,233,225,.08); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.footer-logo { width: 210px; height: auto; margin-bottom: 14px; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: start; }
.site-footer a { text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-phone { font-weight: 500; font-size: 1.2rem; color: var(--on-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(239,233,225,.1); margin-top: 48px; padding-top: 20px; font-size: .85rem; }
.footer-bottom a:hover { color: var(--accent); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Botón flotante (móvil) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; gap: 8px;
  background: var(--charcoal); color: #fff; text-decoration: none; padding: 14px 20px; border-radius: 999px; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(31,28,26,.6); transition: transform .45s var(--ease), opacity .3s;
}
.fab .ico { width: 20px; height: 20px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid var(--accent); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .6; } to { transform: scale(1.35); opacity: 0; } }
@media (max-width: 760px) { .fab { display: inline-flex; } .fab.is-hidden { transform: translateY(100px); opacity: 0; } }

/* ---------- Visor de galería ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(31, 28, 26, .95); }
dialog[open] { animation: dlgIn .45s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.lightbox { background: transparent; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; color: var(--ivory); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.lb-count { font-size: .9rem; letter-spacing: .08em; opacity: .8; }
.lb-stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 16px; min-height: 0; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; height: 100%; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 230px); border-radius: var(--radius-sm); object-fit: contain; transition: opacity .3s, transform .4s var(--ease); }
.lb-figure img.is-changing { opacity: 0; transform: scale(.97); }
.lb-figure figcaption { font-size: .95rem; text-align: center; opacity: .9; }
.lb-close, .lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(250,247,242,.12); color: #fff; display: grid; place-items: center; transition: background .25s; }
.lb-close:hover, .lb-nav:hover { background: rgba(250,247,242,.25); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 20px; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: none; width: 64px; height: 64px; border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .4; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .3s, outline-color .3s; }
.lb-thumbs button:hover { opacity: .75; }
.lb-thumbs button.is-active { opacity: 1; outline-color: var(--ivory); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .lb-nav { display: none; } .lb-stage { grid-template-columns: 1fr; } }

/* ---------- Ficha ---------- */
.sheet { width: min(900px, 100% - 24px); max-height: calc(100dvh - 24px); overflow: auto; background: var(--ivory); color: var(--ink); border-radius: 20px; }
.sheet .lb-close { position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; z-index: 2; background: rgba(31,28,26,.75); }
.sheet .lb-close:hover { background: var(--charcoal); }
.sheet-media { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--sand-2); }
.sheet-media img { width: 100%; height: min(420px, 50dvh); object-fit: cover; scroll-snap-align: start; }
.sheet-body { padding: 28px clamp(20px, 4vw, 44px) 40px; }
.sheet-body .eyebrow { margin-bottom: .5rem; }
.sheet-body h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.sheet-text p { color: var(--ink-2); }
.sheet-text .how { display: flex; gap: 10px; background: var(--sand); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem; color: var(--ink); }
.sheet-text .how .ico { color: var(--accent); }
@media (max-width: 600px) { .sheet-media { grid-auto-columns: 88%; } .sheet-media:has(img:only-child) { grid-auto-columns: 100%; } }

/* ---------- Movimiento reducido ----------
   Se conservan desvanecimientos y la cinta; se quitan zooms, parallax y desplazamientos grandes. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .8s ease; transition-delay: var(--d, 0s); }
  .js .img-reveal { clip-path: none; opacity: 0; transition: opacity 1s ease; }
  .js .img-reveal.is-visible { opacity: 1; }
  .js .img-reveal img, .arch img { transform: none !important; }
  .split .w > span { transform: none; opacity: 0; animation-name: fadeIn; }
  .hero-small img { animation: none; }
  .marquee-track { animation-duration: 60s; }
}
@keyframes fadeIn { to { opacity: 1; } }
