/* ============================================================
   AGUAESCONDIDA · APART HOTEL
   Sistema visual basado en la identidad de marca
   - Paleta: verde oliva, azul lago, marrón tierra, beige nieve
   - Display: Cinzel (Trajan-like)
   - Body:    Jost (geometric sans)
   Accent intercambiable por [data-accent="azul|verde|marron"]
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Jost:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@1,300;1,400&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; padding: 0; }
p { margin: 0; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (de manual oficial) */
  --olive:        #666720;   /* verde oliva — texto display principal */
  --olive-deep:   #4d4e18;
  --lake:         #6eafe0;   /* azul lago */
  --lake-light:   #a0bfe5;   /* azul cielo — fondo de iconos */
  --tobacco:      #8a6236;   /* marrón tierra */
  --tobacco-deep: #6a4a26;
  --snow:         #eee6e5;   /* beige nieve */
  --bone:         #f3ebe8;   /* crema base */
  --cream:        #f9f3ef;   /* crema clara */
  --paper:        #fdf8f4;
  --ink:          #2a2618;   /* casi-negro con verde */
  --ink-soft:     #6e6a5a;
  --line:         #d8cfc6;

  /* Default accent = verde oliva (logo principal) */
  --accent:       var(--olive);
  --accent-deep:  var(--olive-deep);
  --accent-tint:  rgba(110, 122, 44, 0.08);

  /* Type */
  --font-display: "Cinzel", "Trajan Pro", "EB Garamond", Georgia, serif;
  --font-body:    "Jost", system-ui, sans-serif;
  --font-italic:  "Cormorant Garamond", Georgia, serif;

  /* Background */
  --bg: var(--bone);
  --surface: var(--paper);
}

[data-accent="azul"] {
  --accent: var(--lake);
  --accent-deep: #5594c0;
  --accent-tint: rgba(110, 175, 224, 0.10);
}
[data-accent="verde"] {
  --accent: var(--olive);
  --accent-deep: var(--olive-deep);
  --accent-tint: rgba(102, 103, 32, 0.10);
}
[data-accent="marron"] {
  --accent: var(--tobacco);
  --accent-deep: var(--tobacco-deep);
  --accent-tint: rgba(138, 98, 54, 0.10);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--accent);
}
h1 em, h2 em, h3 em, h4 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.display-xl {
  font-size: clamp(44px, 6.6vw, 112px);
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.display-l {
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
/* keep the uppercase first line as a single row */
.display-l > span:first-child { white-space: nowrap; }
.display-m {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.display-m > span:first-child { white-space: nowrap; }
.display-s {
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lede {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
}
.small { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: none;
}
.eyebrow-light { color: rgba(255,255,255,.8); }
.eyebrow-light::before { background: rgba(255,255,255,.6); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: clamp(80px, 8vw, 130px) 0; }
.section-tight { padding: clamp(56px, 6vw, 90px) 0; }
.section-divider { border-top: 1px solid var(--line); }

/* ---------- Fondos alternados entre secciones (sutil pero claro) ---------- */
.intro        { background: var(--bone); }
.cabanas-prev { background: var(--paper); }
.servicios    { background: var(--bone); }
.quincho      { background: var(--paper); }
.galeria      { background: var(--bone); }
.que-hacer    { background: var(--bone); }
.testim       { background: var(--paper); }
.ubic         { background: var(--bone); }

.sect-head {
  display: grid;
  /* min max-content: que el título en nowrap nunca invada la columna del texto */
  grid-template-columns: minmax(max-content, 1fr) 1.4fr;
  gap: 80px;
  margin-bottom: 72px;
  align-items: start;
}
.sect-head .label { display: flex; flex-direction: column; gap: 18px; }
.sect-head h2 { max-width: 18ch; }
.sect-head .meta { color: var(--ink-soft); max-width: 48ch; font-size: 16px; line-height: 1.7; }
.sect-right { display: flex; flex-direction: column; gap: 16px; }
.sect-right .eyebrow { margin: 0; }
@media (max-width: 900px) {
  .sect-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-outline-light {
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.btn-outline-light:hover { background: rgba(255,255,255,.95); color: var(--ink); }
.btn-ghost {
  color: var(--accent);
  padding: 12px 0;
  border-bottom: 1px solid var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-ghost:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.btn-arrow::after {
  content: "→";
  margin-left: 4px;
  transition: transform .25s ease;
  font-family: var(--font-body);
}
.btn-arrow:hover::after { transform: translateX(5px); }

/* ---------- Hairlines + tags ---------- */
.hr { height: 1px; background: var(--line); width: 100%; }
.tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.tag-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Image utility ---------- */
.img-wrap { position: relative; overflow: hidden; background: var(--snow); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.img-wrap:hover img { transform: scale(1.04); }
.img-cap {
  position: absolute;
  bottom: 14px;
  left: 16px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: padding .35s ease, box-shadow .35s ease;
  color: var(--ink);
  background: rgba(251, 247, 236, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 8px 30px -18px rgba(20,22,15,.45);
}
.site-header .nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.site-header .logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  color: var(--olive);
  transition: color .35s;
}
.site-header.scrolled .logo-link { color: var(--olive); }
.site-header .logo-iso { height: 40px; width: auto; }
.site-header.scrolled .logo-iso { height: 34px; }
.site-header .logo-word {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.site-header .logo-word-main {
  font-family: var(--font-display);
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header .logo-word-sub {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.8;
}
.site-header.scrolled { padding: 12px 0; }
.site-header.scrolled .logo-word-main { font-size: 14px; }
.site-header.scrolled .logo-word-sub { font-size: 7.5px; }

.site-header nav.main-nav {
  display: flex;
  gap: 32px;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-header nav.main-nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header nav.main-nav a:hover { border-bottom-color: currentColor; }

.site-header .nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

.lang-toggle {
  display: inline-flex;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lang-toggle button { padding: 2px 4px; color: currentColor; opacity: .6; }
.lang-toggle button:hover { opacity: 1; }
.lang-toggle button.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang-toggle .sep { opacity: .35; }

/* Menú apretado en anchos medios para que entre todo (900–1280px) */
@media (max-width: 1280px) {
  .site-header .nav-wrap { gap: 20px; }
  .site-header nav.main-nav { gap: 18px; font-size: 11px; letter-spacing: 0.14em; }
  .site-header .logo-word-main { font-size: 14px; }
  .site-header .nav-right { gap: 12px; }
  .nav-reserve { padding: 9px 14px; letter-spacing: 0.16em; }
}

/* Header compacto donde no hay menú (≤1100px): logo + idiomas + reservar entran siempre */
@media (max-width: 1100px) {
  .site-header .nav-wrap { display: flex; justify-content: space-between; gap: 12px; }
  .site-header .logo-link { gap: 8px; height: 40px; }
  .site-header .logo-iso, .site-header.scrolled .logo-iso { height: 30px; }
  .site-header .logo-word-main, .site-header.scrolled .logo-word-main { font-size: 12px; letter-spacing: 0.06em; }
  .site-header .logo-word-sub, .site-header.scrolled .logo-word-sub { font-size: 6.5px; letter-spacing: 0.26em; }
  .site-header .nav-right { gap: 10px; }
  .nav-reserve { padding: 8px 11px; font-size: 10px; letter-spacing: 0.14em; }
  .lang-toggle { font-size: 10px; gap: 3px; letter-spacing: 0.12em; }
}

.accent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 10px;
  border: 1px solid currentColor;
  border-color: rgba(255,255,255,.4);
  border-radius: 100px;
}
.site-header.scrolled .accent-toggle { border-color: var(--line); }
.accent-toggle .at-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: .65;
  margin-right: 4px;
}
.accent-toggle button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: transparent;
  transition: all .2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.accent-toggle button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}
.accent-toggle button[data-acc="azul"]   { color: var(--lake); }
.accent-toggle button[data-acc="verde"]  { color: var(--olive); }
.accent-toggle button[data-acc="marron"] { color: var(--tobacco); }
.accent-toggle button.active { border-color: currentColor; }

.nav-reserve {
  padding: 11px 18px;
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all .2s;
}
.nav-reserve:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  font-weight: 400;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 90px; }

/* ---------- Animations ---------- */
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: .5; }
}
.nudge { animation: nudge 2.4s ease-in-out infinite; }

@keyframes fadeUp {
  from { transform: translateY(24px); }
  to { transform: translateY(0); }
}
.fade-in { animation: fadeUp .9s ease-out both; }
.fade-in.d1 { animation-delay: .15s; }
.fade-in.d2 { animation-delay: .3s; }
.fade-in.d3 { animation-delay: .45s; }
.fade-in.d4 { animation-delay: .6s; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--snow);
  padding: 56px 0 36px;
}
.site-footer a { color: var(--snow); opacity: .82; transition: opacity .2s, color .2s; }
.site-footer a:hover { opacity: 1; color: var(--lake-light); }
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot-logo { height: 84px; width: auto; margin-bottom: 26px; opacity: 0.97; }
.foot-tag { color: rgba(221, 215, 206, 0.65); max-width: 38ch; }
.foot-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: rgba(221, 215, 206, 0.55);
}
.foot-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(221, 215, 206, 0.45);
}
.foot-iso { height: 44px; opacity: 0.6; }
@media (max-width: 1100px) {
  .site-header nav.main-nav { display: none; }
}
@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  /* palabras largas sin espacios (ej. @aguaescondidasma) no deben desbordar la columna */
  .foot-top a { overflow-wrap: anywhere; }
}

/* ---------- Lightbox de galería ---------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 18, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lb-overlay.open { opacity: 1; pointer-events: auto; }
.lb-frame { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lb-frame img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.lb-cap {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  z-index: 201;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }
.lb-close { top: 16px; right: 18px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-close, .lb-prev, .lb-next { font-size: 32px; padding: 10px 12px; }
}

/* ---------- Acceso fijo: Reservar (lateral) + WhatsApp (flotante) ---------- */
.reserve-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  background: var(--accent);
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 20px 11px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border-radius: 6px 0 0 6px;
  box-shadow: -6px 0 24px -10px rgba(20,22,15,.5);
  transition: background .2s ease, padding .2s ease;
}
.reserve-tab:hover { background: var(--accent-deep); padding-right: 15px; }

.fab-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(20,22,15,.5);
  transition: transform .2s ease;
}
.fab-wa:hover { transform: scale(1.07); }
.fab-wa svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 600px) {
  /* botones largos no deben desbordar los 326px útiles del viewport */
  .btn, .btn-outline-light { padding: 13px 18px; font-size: 11px; letter-spacing: 0.14em; }
  .btn-ghost { font-size: 10.5px; letter-spacing: 0.16em; }
  /* en pantallas chicas los títulos pueden partirse en dos líneas */
  .display-l > span:first-child, .display-m > span:first-child { white-space: normal; }
  .reserve-tab { padding: 16px 9px; font-size: 10px; letter-spacing: 0.2em; }
  .fab-wa { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .fab-wa svg { width: 27px; height: 27px; }
}
