/* =============================================
   Alojamientos Estrella — styles.css
   Archetype: Editorial Light Cream (adapted forest green)
   ============================================= */

/* ----- TOKENS ----- */
:root {
  --bg:           #F5F0E8;
  --bg-2:         #EDE5D6;
  --bg-3:         #E4D9C7;
  --paper:        #FDFAF5;
  --ink:          #1E1A16;
  --ink-soft:     #3A3228;
  --ink-mute:     #6B6058;
  --ink-faint:    #9E9087;
  --accent:       #2D5A27;
  --accent-2:     #4A7C3F;
  --accent-light: #EBF2E8;
  --accent-line:  rgba(45,90,39,0.18);
  --gold:         #8B6914;
  --line:         rgba(30,26,22,0.12);
  --line-strong:  rgba(30,26,22,0.22);
  --shadow-sm:    0 2px 12px rgba(30,26,22,0.08);
  --shadow-md:    0 8px 32px rgba(30,26,22,0.12);
  --shadow-lg:    0 24px 64px rgba(30,26,22,0.16);
  --radius:       12px;
  --radius-lg:    20px;
  --nav-h:        72px;
  --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.1;
  font-weight: 500;
  color: var(--ink);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
}

p { max-width: 68ch; }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 60ch;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* ----- LAYOUT ----- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45,90,39,0.3);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 8px 24px rgba(45,90,39,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(253,250,245,0.5);
}

.btn-ghost:hover {
  background: rgba(253,250,245,0.12);
  border-color: rgba(253,250,245,0.8);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ----- NAV ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav.is-solid {
  background: rgba(245,240,232,0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-logo img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-mute);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 1rem; padding: 0.55rem 1.25rem; font-size: 0.85rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(245,240,232,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 2rem;
  transform: translateY(-110%);
  transition: transform 0.35s var(--ease-out);
  border-bottom: 1px solid var(--line);
}

.nav-mobile.is-open { transform: translateY(0); }

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.nav-mobile li:last-child a {
  border-bottom: none;
  margin-top: 0.5rem;
  text-align: center;
}

/* ----- HERO ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #080c08;
}

/* Foto y vídeo como slides con crossfade */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  z-index: 1;
}

.hero-slide--photo { object-position: center 40%; }

.hero-slide.is-active { opacity: 1; }

/* Overlay encima de los slides */
.hero-video-wrap .hero-overlay { z-index: 2; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(10,8,6,0.72) 0%,
      rgba(10,8,6,0.55) 45%,
      rgba(10,8,6,0.20) 100%),
    linear-gradient(180deg,
      rgba(10,8,6,0.55) 0%,
      rgba(10,8,6,0.18) 35%,
      rgba(10,8,6,0.45) 70%,
      rgba(10,8,6,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  padding-top: var(--nav-h);
  padding-bottom: 4rem;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253,250,245,0.95);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.2s var(--ease-out) forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  max-width: 14ch;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 0.4s var(--ease-out) forwards;
}

.hero-title em {
  font-style: italic;
  color: #fff;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: #fff;
  max-width: 48ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.6s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.8s var(--ease-out) forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(253,250,245,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 0.8s 1.2s var(--ease-out) forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(253,250,245,0.4);
  display: block;
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(253,250,245,0.9);
  animation: scrollLine 2s 1.5s ease-in-out infinite;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ----- TAB BAR ----- */
.tab-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(30,26,22,0.06);
}

.tab-bar-inner {
  display: flex;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.tab-bar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-mute);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  margin-bottom: -1px;
}

.tab-bar-btn:hover { color: var(--ink); }
.tab-bar-btn.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-bar-btn svg { flex-shrink: 0; }

/* Nav tab buttons */
.nav-tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-mute);
  transition: color 0.2s;
  padding: 0;
  position: relative;
}

.nav-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-tab-btn:hover { color: var(--ink); }
.nav-tab-btn:hover::after { transform: scaleX(1); }
.nav-tab-btn.is-active { color: var(--accent); }
.nav-tab-btn.is-active::after { transform: scaleX(1); }

/* Tab panels */
.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: tabFadeIn 0.3s var(--ease-out);
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tab intro */
.tab-intro {
  padding: 2rem 0 0;
  background: var(--bg);
}

.tab-intro-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.tab-intro-logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.tab-intro-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 100%;
  line-height: 1.6;
}

.highlights-row {
  display: flex;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  gap: 0;
  flex-wrap: wrap;
}

/* Logo + descripción encima de apartamentos */
.apt-brand-header {
  padding: 3rem 0 0;
  text-align: center;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.apt-brand-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  display: block;
  box-shadow: 0 4px 20px rgba(45,90,39,0.15);
  border: 3px solid var(--accent-light);
}

.apt-brand-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.apt-brand-desc {
  font-size: 1rem;
  color: var(--ink-mute);
  max-width: 52ch;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Apartment sub-selector */
.apt-selector-bar {
  background: var(--bg-2);
  border-bottom: 2px solid var(--line);
  padding: 1.25rem 0 0;
}

.apt-selector-bar .container {
  display: flex;
  gap: 1rem;
}

.apt-selector-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-mute);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  margin-bottom: -2px;
  white-space: nowrap;
}

.apt-selector-btn:hover {
  color: var(--ink);
  background: rgba(45,90,39,0.04);
}

.apt-selector-btn.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.apt-selector-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
}

.apt-selector-btn.is-active .apt-selector-num {
  background: var(--accent);
  color: white;
}

/* Apartment sub-panels */
.apt-panel { display: none; }
.apt-panel.is-active { display: block; }

/* ----- REVEAL ANIMATIONS ----- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safety: reveal[data-split] never gets hidden */
.reveal[data-split] { opacity: 1; transform: none; }

/* ----- INTRO ----- */
.intro {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: 4rem;
}

.intro-logo-wrap {
  width: 120px;
  flex-shrink: 0;
}

.intro-logo {
  width: 100%;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.intro-text-col h2 {
  margin-bottom: 1.5rem;
}

.intro-text-col .lead {
  margin-bottom: 1rem;
}

.intro-highlights {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 2.5rem;
}

.highlights-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem clamp(2rem, 4vw, 4rem);
  text-align: center;
}

.highlight-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.highlight-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.highlight-divider {
  width: 1px;
  height: 48px;
  background: var(--line-strong);
}

/* ----- APARTAMENTOS ----- */
.apartamentos {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.apartamentos > .container {
  margin-bottom: 3rem;
  text-align: center;
}

.apt-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1180px;
  margin-inline: auto;
  margin-bottom: 4rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.apt-card--reverse { direction: rtl; }
.apt-card--reverse > * { direction: ltr; }

.apt-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
}

.apt-gallery-main {
  position: relative;
  overflow: hidden;
  height: 460px;
  flex-shrink: 0;
}

.apt-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s var(--ease-out);
}

.apt-gallery-main:hover .apt-main-img { transform: scale(1.04); }

.apt-expand-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: rgba(30,26,22,0.6);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.apt-gallery-main:hover .apt-expand-btn { opacity: 1; }

.apt-thumbs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
}

.apt-thumb {
  flex: 1;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  transition: border-color 0.2s;
}

.apt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.apt-thumb:hover img { transform: scale(1.08); }
.apt-thumb.is-active { border-color: var(--accent); }

.apt-info {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
}

.apt-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.apt-info h3 {
  margin-bottom: 1rem;
}

.apt-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.apt-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex: 1;
}

.apt-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.apt-features li svg {
  flex-shrink: 0;
  color: var(--accent-2);
}

.apt-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.apt-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-from {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.price-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.price-per {
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.apt-min {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ----- SERVICIOS ----- */
.servicios {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--bg-2);
}

.servicios > .container > h2 {
  margin-bottom: 3rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.servicio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--paper);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  border: 1px solid var(--line);
}

.servicio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.servicio-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* ----- MODAL RESERVAR ----- */
.reservar-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

.reservar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,16,12,0.72);
  backdrop-filter: blur(4px);
  animation: modalFadeIn 0.25s ease;
}

.reservar-modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 94vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
  animation: modalSlideUp 0.3s var(--ease-out);
}

.reservar-modal-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem 0 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  flex-shrink: 0;
}

.reservar-modal-close:hover { background: var(--bg-3); }

.reservar-modal-inner {
  padding: 1rem 1.5rem 1.5rem;
  clear: both;
}

/* Dentro del modal: formulario más compacto */
.reservar-modal-inner .booking-wrapper {
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.reservar-modal-inner .booking-calendar-col {
  padding: 1.25rem;
}

.reservar-modal-inner .booking-form {
  padding: 1.25rem;
}

.reservar-modal-inner .booking-form h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.reservar-modal-inner .form-group {
  margin-bottom: 0.65rem;
}

.reservar-modal-inner .form-group input,
.reservar-modal-inner .form-group select,
.reservar-modal-inner .form-group textarea {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.reservar-modal-inner .form-group textarea {
  rows: 2;
  min-height: 56px;
}

.reservar-modal-inner .form-group label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.reservar-modal-inner .booking-calendar-header h3 {
  font-size: 1rem;
}

.reservar-modal-inner .cal-day {
  font-size: 0.78rem;
}

.reservar-modal-inner #submitBtn {
  margin-top: 0.5rem;
  padding: 0.75rem;
  font-size: 0.9rem;
}

/* En móvil: una columna */
@media (max-width: 640px) {
  .reservar-modal-inner .booking-wrapper {
    grid-template-columns: 1fr;
  }
  .reservar-modal { padding: 0; align-items: flex-end; }
  .reservar-modal-box {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh;
    animation: modalSlideUpMobile 0.3s var(--ease-out);
  }
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideUpMobile {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ----- RESERVAR ----- */
.reservar {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.reservar-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45,90,39,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(45,90,39,0.04) 0%, transparent 50%),
    var(--bg);
  z-index: 0;
}

.reservar > .container { position: relative; z-index: 1; }

.reservar h2 { margin-bottom: 1rem; }
.reservar .lead { margin-bottom: 3rem; }

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Calendar */
.booking-calendar-col {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.booking-calendar-header h3 {
  font-size: 1.1rem;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-nav-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  font-size: 1.2rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.cal-nav-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

.cal-month-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 140px;
  text-align: center;
  text-transform: capitalize;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day-name {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding: 0.4rem 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  color: var(--ink-soft);
  border: none;
  background: none;
}

.cal-day:hover:not(.cal-day--disabled):not(.cal-day--empty) {
  background: var(--accent-light);
  color: var(--accent);
}

.cal-day--today { font-weight: 700; color: var(--ink); }
.cal-day--disabled { color: var(--ink-faint); cursor: default; pointer-events: none; }
.cal-day--empty { pointer-events: none; }

.cal-day--start,
.cal-day--end {
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.cal-day--range {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 0;
}

.cal-day--start { border-radius: 8px 0 0 8px; }
.cal-day--end   { border-radius: 0 8px 8px 0; }
.cal-day--start.cal-day--end { border-radius: 8px; }

.cal-legend {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--ink-mute);
}

.cal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-dot--start, .cal-dot--end { background: var(--accent); }
.cal-dot--range { background: var(--accent-light); border: 1px solid var(--accent-line); }

/* Pricing table */
.pricing-table {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.pricing-table h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.pricing-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.pricing-row span:first-child { flex: 0 0 auto; font-weight: 500; color: var(--ink-soft); }
.pricing-row span:nth-child(2) { flex: 1; color: var(--ink-faint); }
.pricing-row strong { flex: 0 0 auto; color: var(--accent); font-weight: 700; }
.pricing-row--high strong { color: var(--gold); }

.pricing-note {
  font-size: 0.73rem;
  color: var(--ink-faint);
  margin-top: 0.75rem;
  line-height: 1.5;
  max-width: 100%;
}

/* Booking form */
.booking-form {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.booking-form h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%236B6058' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,90,39,0.12);
}

.form-group input.is-error,
.form-group select.is-error {
  border-color: #d32f2f;
}

.form-group textarea { resize: vertical; min-height: 80px; }

.price-estimate {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--accent-light);
  border-radius: 10px;
  border: 1px solid var(--accent-line);
}

.estimate-inner {
  font-size: 0.88rem;
  color: var(--accent);
}

.estimate-inner em {
  color: var(--ink-mute);
  font-style: normal;
}

.estimate-inner strong { color: var(--accent); font-weight: 700; }

#submitBtn {
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

.form-success {
  text-align: center;
  padding: 2rem;
  color: var(--accent);
}

.form-success p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 100%;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  max-width: 100%;
  line-height: 1.5;
}

.form-note svg { flex-shrink: 0; margin-top: 2px; }
.form-note a { color: var(--accent); text-decoration: underline; }

/* ----- ZONA ----- */
.zona {
  background: var(--bg-2);
}

/* Hero de la zona */
.zona-hero {
  position: relative;
  height: clamp(320px, 50vw, 520px);
  overflow: hidden;
}

.zona-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.zona-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0.15) 0%, rgba(10,8,6,0.65) 100%);
}

.zona-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 3rem);
  max-width: 1180px;
  margin-inline: auto;
  width: 100%;
}

.zona-hero-content h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
}

.zona-hero-content h2 em {
  color: rgba(255,255,255,0.88);
  font-style: italic;
}

.zona-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

.zona-stat {
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1rem, 3vw, 2.5rem) 0 0;
}

.zona-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}

.zona-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  max-width: 16ch;
  line-height: 1.4;
}

.zona-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  margin: 0 clamp(1rem, 3vw, 2.5rem) 0 0;
  flex-shrink: 0;
}

/* Galería 4 fotos */
.zona-grid4 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  grid-template-rows: 280px;
  gap: 4px;
}

.zona-grid4-item {
  position: relative;
  overflow: hidden;
}

.zona-grid4-item--tall {
  grid-row: span 1;
}

.zona-grid4-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.zona-grid4-item:hover img { transform: scale(1.06); }

.zona-grid4-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(10,8,6,0.6);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
}

/* Actividades */
.zona-actividades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 3rem;
}

.zona-actividad {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.zona-actividad:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.zona-actividad-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.zona-actividad h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.zona-actividad p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 100%;
}

.zona-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.zona-card {
  padding: 1.75rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.zona-card-icon {
  width: 56px; height: 56px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.zona-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.zona-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 100%;
}

/* ----- CONTACTO ----- */
.contacto {
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

.contacto h2 { margin-bottom: 1rem; }
.contacto .lead { margin-bottom: 3rem; }

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.contacto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}

.contacto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-line);
}

.contacto-card--whatsapp:hover { border-color: rgba(37,211,102,0.4); }

.contacto-card-icon {
  width: 56px; height: 56px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contacto-card--whatsapp .contacto-card-icon { background: rgba(37,211,102,0.1); color: #25D366; }

.contacto-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contacto-card-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ----- FOOTER ----- */
.footer {
  background: var(--ink);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.95;
  display: block;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--bg);
  font-weight: 400;
}

.footer-info {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.7;
}

.footer-info a {
  color: rgba(245,240,232,0.7);
  transition: color 0.2s;
}

.footer-info a:hover { color: var(--bg); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.3);
  margin-top: 0.5rem;
  max-width: 100%;
}

/* ----- WHATSAPP FAB ----- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  background: #25D366;
  color: white;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

.whatsapp-fab svg { flex-shrink: 0; }

/* ----- LIGHTBOX ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,16,12,0.92);
  backdrop-filter: blur(4px);
}

.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  transition: opacity 0.25s;
}

.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  width: 44px; height: 44px;
  background: rgba(245,240,232,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245,240,232,0.2);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(245,240,232,0.25); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px;
  background: rgba(245,240,232,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245,240,232,0.2);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(245,240,232,0.3); }

.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.82rem;
  color: rgba(245,240,232,0.6);
  white-space: nowrap;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1023px) {
  .zona-grid4 { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
  .zona-actividades { grid-template-columns: 1fr 1fr; }
  .apt-card {
    grid-template-columns: 1fr;
  }
  .apt-card--reverse { direction: ltr; }
  .apt-gallery-main { height: 320px; }
  .booking-wrapper { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: repeat(2, 1fr); }
  .zona-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --nav-h: 60px; }

  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Servicios: 2 columnas en móvil */
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .servicio-item { padding: 1.1rem 0.75rem; font-size: 0.82rem; }
  .servicio-icon-wrap { width: 44px; height: 44px; }

  /* Contacto: 2×2 */
  .contacto-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .contacto-card { padding: 1.25rem 0.75rem; }

  /* Form */
  .form-row-2 { grid-template-columns: 1fr; }

  /* Apt thumbnails */
  .apt-thumbs { gap: 3px; padding: 3px; }
  .apt-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); }

  /* Zona stats: reorganizar en móvil */
  .zona-stats { flex-direction: column; gap: 0.75rem; }
  .zona-stat-div { width: 40px; height: 1px; margin: 0; }
  .zona-stat { padding: 0; }
  .zona-stat-num { font-size: 1.4rem; }

  /* Zona grid: 2 columnas */
  .zona-grid4 { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px; }

  /* Actividades: 1 columna en móvil pequeño */
  .zona-actividades { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .zona-actividad { padding: 1rem; }

  /* WhatsApp fab: solo icono */
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 0.9rem; border-radius: 50%; bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 479px) {
  .contacto-grid { grid-template-columns: 1fr 1fr; }
  .zona-actividades { grid-template-columns: 1fr; }
}

/* ----- ACCESSIBILITY ----- */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line::after { animation: none; }
}
