/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f6f0e4;
  --bg-2: #ece2d0;
  --paper: #fffdf9;
  --ink: #241f18;
  --ink-soft: #3a3226;
  --ink-mute: #7a7061;
  --accent: #a6704a;
  --accent-2: #52664f;
  --line: rgba(36,31,24,0.14);
  --dark-bg: #241f18;
  --dark-ink: #f6f0e4;

  --display: "Fraunces", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; font-family: var(--display); font-weight: 600; }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Demo ribbon
   ============================================================= */
.demo-ribbon { display: flex; align-items: center; justify-content: center; gap: .5rem; background: var(--ink); color: rgba(246,240,228,.75); font-size: .78rem; padding: .5rem 1rem; text-align: center; flex-wrap: wrap; }
.demo-ribbon a { color: #fff; font-weight: 600; }
.demo-ribbon a:hover { text-decoration: underline; }

/* =============================================================
   4. Nav
   ============================================================= */
.nav-wrap { position: sticky; top: 0; z-index: 100; }
.nav { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.4rem; transition: background .3s, padding .3s, box-shadow .3s; }
.nav-wrap.is-scrolled .nav { background: rgba(246,240,228,0.9); backdrop-filter: blur(14px); padding: .9rem 1.4rem; box-shadow: 0 1px 0 var(--line); }
.nav-logo { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.3rem; }
.nav-links { display: none; gap: 2rem; font-size: .9rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 4px; font-weight: 600; font-size: .92rem; transition: transform .3s var(--ease-out), background .3s, color .3s, border-color .3s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost-light { color: var(--paper); border-bottom: 1.5px solid rgba(255,255,255,0.5); border-radius: 0; padding: .8rem 0; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { padding: .6rem 1.1rem; font-size: .82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* =============================================================
   6. Hero + shutter window
   ============================================================= */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: clip; }
.shutter-window { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.shutter-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #f7ead9 0%, #f0d3ad 32%, #dfa679 62%, #a6704a 100%);
}
.shutter-sky img { width: 100%; height: 100%; object-fit: cover; }
.shutter-sky::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,24,0.15), rgba(36,31,24,0.5) 65%, rgba(36,31,24,0.78));
}
.shutter-slats { position: absolute; inset: 0; display: flex; flex-direction: column; }
.shutter-slats span { flex: 1; background: var(--bg); border-bottom: 2px solid rgba(36,31,24,0.06); transform: scaleY(1); transform-origin: top; animation: openSlat 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + .2s); }
.shutter-slats span:nth-child(1) { --i: 1; } .shutter-slats span:nth-child(2) { --i: 2; }
.shutter-slats span:nth-child(3) { --i: 3; } .shutter-slats span:nth-child(4) { --i: 4; }
.shutter-slats span:nth-child(5) { --i: 5; } .shutter-slats span:nth-child(6) { --i: 6; }
.shutter-slats span:nth-child(7) { --i: 7; } .shutter-slats span:nth-child(8) { --i: 8; }
@keyframes openSlat { to { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .shutter-slats span { animation-duration: .01s; } }

.hero-inner { position: relative; max-width: 780px; margin: 0 auto; padding: 3rem 1.4rem 5rem; text-align: center; color: var(--paper); }
.hero-inner .eyebrow { color: rgba(255,255,255,0.85); font-size: .85rem; letter-spacing: .03em; margin-bottom: 1rem; font-weight: 600; }
.hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-style: italic; text-shadow: 0 4px 24px rgba(0,0,0,0.45); }
.hero-title em { color: #f6dfb8; }
.hero-sub { margin: 1.3rem auto 0; max-width: 46ch; font-size: 1.05rem; color: rgba(255,255,255,0.92); }
.hero-actions { margin-top: 2rem; display: flex; gap: 1.3rem; justify-content: center; flex-wrap: wrap; }

/* =============================================================
   7. Manifiesto
   ============================================================= */
.manifiesto { max-width: 1100px; }
.manifiesto-top { display: grid; gap: 1.5rem; align-items: start; max-width: 900px; margin-bottom: 2.5rem; }
@media (min-width: 760px) { .manifiesto-top { grid-template-columns: 120px 1fr; } }
.manifiesto-num { font-family: var(--display); font-style: italic; font-size: 3rem; color: var(--accent); opacity: .5; }
.manifiesto-text { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.manifiesto-figure { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 640px) { .manifiesto-figure { grid-template-columns: 1fr 1fr; } }
.manifiesto-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; }

.experiencia-figure { margin-bottom: 2.5rem; border-radius: 6px; overflow: hidden; position: relative; }
.experiencia-figure img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; }
.experiencia-figure figcaption { position: absolute; left: 1.2rem; bottom: 1rem; color: #fff; font-size: .85rem; font-style: italic; font-family: var(--display); text-shadow: 0 2px 12px rgba(0,0,0,0.5); }

/* =============================================================
   8. Sections
   ============================================================= */
.section { max-width: 1100px; margin: 0 auto; padding: 4.5rem 1.4rem; }
.section-head { max-width: 620px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-dark { max-width: none; background: var(--dark-bg); color: var(--dark-ink); padding: 5rem 1.4rem; }
.section-dark em { color: #d9a06c; }

/* =============================================================
   9. Rooms
   ============================================================= */
.rooms-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.room-card { border-radius: 6px; overflow: hidden; background: var(--paper); box-shadow: 0 1px 0 var(--line); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.room-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(36,31,24,0.14); }
.room-visual { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.room-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.room-card:hover .room-visual img { transform: scale(1.06); }
.room-info { padding: 1.2rem 1.3rem 1.4rem; }
.room-info h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.room-info p { font-size: .88rem; color: var(--ink-mute); margin-bottom: .8rem; }
.room-price { font-size: .82rem; font-weight: 600; color: var(--accent); }

/* =============================================================
   10. Pillars
   ============================================================= */
.pillars-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pillar-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(166,112,74,0.12); color: var(--accent); margin-bottom: 1rem; }
.pillar h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.pillar p { color: var(--ink-mute); font-size: .92rem; }

/* =============================================================
   11. Testimonials
   ============================================================= */
.testi-split { display: grid; gap: 2rem; }
@media (min-width: 760px) { .testi-split { grid-template-columns: 1fr 1fr; } }
.testi-split blockquote p { font-size: 1.15rem; font-style: italic; font-family: var(--display); font-weight: 500; margin-bottom: 1rem; }
.testi-split footer { font-size: .85rem; opacity: .7; }

/* =============================================================
   12. Reservas
   ============================================================= */
.reservas-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .reservas-grid { grid-template-columns: 1.1fr .9fr; } }
.reservas-list li { display: flex; justify-content: space-between; padding: .8rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.reservas-list li:first-child { border-top: 0; }
.reservas-cta-card { background: var(--paper); border-radius: 10px; padding: 2rem; text-align: center; box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; gap: 1.2rem; align-items: center; justify-content: center; }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { text-align: center; padding: 3rem 1.4rem; color: var(--ink-mute); font-size: .85rem; }
.footer-brand { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ink); margin-bottom: .3rem; }
.footer-demo { margin-top: .6rem; }
.footer-demo a { text-decoration: underline; }

/* =============================================================
   14. Floating WhatsApp button
   ============================================================= */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #1a1509; box-shadow: 0 10px 28px rgba(36,31,24,0.3); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px rgba(36,31,24,0.38); }
.whatsapp-float-ring { position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: .55; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float-ring { animation: none; display: none; } }
@media (max-width: 540px) { .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* =============================================================
   15. Reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
