/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - MADEROLUM
   Inspirado en una casa de labranza del siglo XVIII en la villa de Maderuelo.
   Paleta: Terracota cálido, Óxido medieval, Tonos tierra y Trigo maduro.
   ========================================================================== */

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

:root {
  /* Paleta "Maderolum" inspirada en tonos tierra, óxido y espigas de trigo */
  --bg-color: #FaF7F2;          /* Crema/Trigo silvestre claro cálido */
  --text-primary: #7D3821;      /* Terracota oscuro / arcilla cocida */
  --text-secondary: #8B7355;    /* Tierra claro / madera antigua */
  --accent-primary: #A24B2C;    /* Terracota cálido principal */
  --accent-secondary: #d4bc8b;  /* Trigo dorado / latón envejecido */
  --color-rust: #B75D3F;        /* Óxido brillante */
  --color-rust-hover: #9c4b31;  /* Óxido oscuro */
  --white: #ffffff;
  --border-color: rgba(139, 115, 85, 0.15);
  
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 0.3s ease-in-out;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-soft: 0 10px 30px rgba(125, 56, 33, 0.05);
  --shadow-medium: 0 15px 40px rgba(125, 56, 33, 0.1);
  --shadow-hover: 0 20px 50px rgba(125, 56, 33, 0.15);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  padding-bottom: 1rem;
}

/* Elegant Underline for Section Titles */
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--accent-secondary);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-secondary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */

button, .btn {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-rust);
  color: var(--white);
  padding: 1.1rem 2.2rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(183, 93, 63, 0.25);
  text-decoration: none;
}

button:hover, .btn:hover {
  background-color: var(--color-rust-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--accent-secondary);
  color: var(--text-primary);
  box-shadow: none;
}

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

/* Premium Header Booking Button */
.btn-header-booking {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  text-decoration: none;
}

.btn-header-booking:hover {
  background-color: var(--white) !important;
  color: var(--text-primary) !important;
  border-color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
}

/* Scrolled Header Booking Button Highlight - Destacado en Blanco sobre Fondo Oscuro */
.site-header.scrolled .btn-header-booking {
  background: var(--white) !important;
  border: 1px solid var(--white) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  font-weight: 700 !important;
}

.site-header.scrolled .btn-header-booking:hover {
  background: var(--accent-secondary) !important;
  border-color: var(--accent-secondary) !important;
  color: var(--text-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.mobile-actions {
  display: none;
}

/* Premium Button Highlight */
.btn-highlight {
  background: linear-gradient(135deg, var(--color-rust) 0%, var(--accent-primary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-highlight::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
  transition: 0.5s;
}

.btn-highlight:hover::after {
  left: 100%;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-4 { margin-top: 4rem; }

/* Section Subtitle */
.section-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   HEADER NAVIGATION (WITH SCROLLED & MOBILE DRAWER)
   ========================================================================== */

.site-header {
  padding: 1.5rem 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.4s ease, padding 0.3s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
}

/* Scrolled Fixed State - Fondo Terracota Oscuro Premium */
.site-header.scrolled {
  position: fixed;
  background-color: rgba(125, 56, 33, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.75rem 0;
  box-shadow: 0 10px 40px rgba(125, 56, 33, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 101;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(125, 56, 33, 0.15);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.site-header.scrolled .logo-img {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 10px rgba(162, 75, 44, 0.15);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 2px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.site-header.scrolled .logo-text {
  color: var(--white);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 0.4rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-secondary);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.site-header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.site-header.scrolled .nav-link:hover {
  color: var(--white);
}

.site-header.scrolled .nav-link::after {
  background-color: var(--accent-secondary);
}

/* Hamburger Trigger icon (Mobile) */
.hamburger-button {
  background: transparent;
  border: none;
  cursor: pointer;
  display: none; /* Hidden on desktop */
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 105;
  box-shadow: none;
  padding: 0;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.35s ease, opacity 0.35s ease, background-color 0.3s ease;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 11px; }
.hamburger-line:nth-child(3) { top: 22px; }

.site-header.scrolled .hamburger-line {
  background-color: var(--white);
}

/* Hamburger Active/Open State */
.hamburger-button.open .hamburger-line {
  background-color: var(--text-primary) !important;
}

.hamburger-button.open .hamburger-line:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-button.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-button.open .hamburger-line:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Drawer Overlay / Backdrop */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(125, 56, 33, 0.4);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation Side Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px; /* Hidden offscreen by default */
  width: 320px;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 6rem 2.5rem 3rem;
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-drawer.open {
  transform: translateX(-320px); /* Slide in from right */
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
  color: var(--color-rust);
  padding-left: 5px;
}

.mobile-nav-link-reservas {
  margin-top: auto;
}

/* ==========================================================================
   HERO / COVER SECTION
   ========================================================================== */

.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--text-primary);
}

/* Parallax Premium Background */
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.4) contrast(1.05); /* Overlay */
  animation: scaleUp 10s ease-out forwards;
}

@keyframes scaleUp {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
  color: var(--white);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  color: var(--bg-color);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0.95;
}

/* ==========================================================================
   ABOUT / HISTORIA SECTION (GRID)
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.about-text-content {
  text-align: left;
}

.about-title {
  margin-bottom: 2rem;
  text-align: left;
}

.about-title::after {
  left: 0;
  transform: none;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-img-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  aspect-ratio: 4/3;
  transition: all 0.5s ease;
}

.about-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about-img-container:hover .about-img {
  transform: scale(1.08);
}

/* ==========================================================================
   ROOMS SECTION (CARDS ROW)
   ========================================================================== */

.rooms-intro {
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.room-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.room-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: var(--text-secondary);
}

.room-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.room-card:hover .room-img {
  transform: scale(1.06);
}

.room-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background-color: rgba(162, 75, 44, 0.9);
  color: var(--white);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.room-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.room-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.room-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.room-specs {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.spec-icon {
  color: var(--accent-primary);
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   SERVICES / AMENITIES (FLEXGRID)
   ========================================================================== */

.services-intro {
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid rgba(139, 115, 85, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-secondary);
}

.service-icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: rgba(162, 75, 44, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  color: var(--accent-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--accent-primary);
  color: var(--white);
}

.service-icon {
  width: 32px;
  height: 32px;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   SURROUNDINGS / ENTORNO SECTION
   ========================================================================== */

.surroundings-intro {
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.surroundings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.surrounding-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  aspect-ratio: 10/11;
  cursor: pointer;
}

.surrounding-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.surrounding-card:hover .surrounding-img {
  transform: scale(1.08);
}

.surrounding-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(125, 56, 33, 0.9) 0%, rgba(125, 56, 33, 0.4) 50%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  text-align: left;
  box-sizing: border-box;
}

.surrounding-title {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.surrounding-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.surrounding-card:hover .surrounding-description {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PHOTO GALLERY
   ========================================================================== */

.gallery-intro {
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-color);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-slow);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.07);
}

/* Gallery Item Hover Overlay */
.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(162, 75, 44, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.zoom-icon {
  color: var(--white);
  width: 32px;
  height: 32px;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .zoom-icon {
  transform: scale(1);
}

/* ==========================================================================
   INTERACTIVE GALLERY LIGHTBOX SYSTEM
   ========================================================================== */

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 10, 8, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrapper {
  position: relative;
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.lightbox-img-container {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

.lightbox-active-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-caption-text {
  color: var(--bg-color);
  font-size: 1.05rem;
  font-family: var(--font-body);
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}

/* Control Buttons */
.lightbox-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  z-index: 1002;
  box-shadow: none;
  padding: 0;
  transition: background var(--transition-normal), transform var(--transition-normal);
}

.lightbox-btn:hover {
  background: var(--accent-primary);
  transform: scale(1.05);
}

.lightbox-close-btn {
  top: -4rem;
  right: 0;
}

.lightbox-prev-btn {
  left: -4rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next-btn {
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev-btn:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next-btn:hover { transform: translateY(-50%) scale(1.05); }

/* ==========================================================================
   CONTACT, MAP, & LOCATION (GRID)
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info-wrapper {
  text-align: left;
}

.contact-title {
  margin-bottom: 2rem;
  text-align: left;
}

.contact-title::after {
  left: 0;
  transform: none;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
}

.contact-icon-wrapper {
  width: 46px;
  height: 46px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.contact-item-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.contact-item-value {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.4;
}

.contact-item-value a:hover {
  color: var(--color-rust);
}

/* Map Card Layout */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  height: 100%;
  min-height: 380px;
  position: relative;
  background-color: var(--white);
}

.map-placeholder-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(125, 56, 33, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  box-sizing: border-box;
}

.map-card-info {
  background-color: var(--white);
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  text-align: center;
  max-width: 440px;
}

.map-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.map-card-address {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.site-footer {
  background-color: var(--text-primary);
  color: var(--bg-color);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.15);
  padding-bottom: 3.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-brand {
  max-width: 500px;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.footer-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(250, 247, 242, 0.8);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 2px;
}

.footer-description {
  color: rgba(250, 247, 242, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--accent-secondary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: rgba(250, 247, 242, 0.8);
  font-size: 0.95rem;
  transition: color var(--transition-normal);
}

.footer-link:hover {
  color: var(--accent-secondary);
  padding-left: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.6);
}

.footer-copyright {
  text-align: left;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link:hover {
  color: var(--white);
}

/* ==========================================================================
   MEDIA QUERY STYLES (MOBILE RESPONSIVE DRAWER & PILL BUTTONS)
   ========================================================================== */

@media (max-width: 1024px) {
  .lightbox-prev-btn {
    left: 1rem;
  }
  
  .lightbox-next-btn {
    right: 1rem;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 5rem 0;
  }

  .about-grid, .about-grid.reverse, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-img-container {
    aspect-ratio: 16/10;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Navigation Mappings for Mobile */
  .desktop-nav {
    display: none; /* Hide top links, fallback to drawer */
  }

  .mobile-actions {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    z-index: 101;
    flex-shrink: 0;
  }

  .mobile-booking-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0;
  }

  .hamburger-button {
    display: block; /* Show hamburger button */
    flex-shrink: 0;
  }

  .logo-wrapper {
    flex-shrink: 0;
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-tagline {
    letter-spacing: 2px;
    font-size: 0.9rem;
  }

  .hero-title {
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    margin-bottom: 2.5rem;
  }

  .lightbox-close-btn {
    top: -3.5rem;
  }

  .lightbox-btn {
    width: 44px;
    height: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }

  .footer-copyright {
    text-align: center;
  }
}

/* ==========================================================================
   DYNAMIC BOOKING MODAL STYLES (PREMIUM GLASSMORPHISM & TERRACOTTA/WHEAT STYLE)
   ========================================================================== */

.booking-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 10, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  padding: 1.5rem;
  box-sizing: border-box;
}

.booking-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.booking-modal-container {
  background-color: var(--bg-color); /* Cream silvestre FaF7F2 */
  border: 1px solid var(--accent-secondary); /* Wheat d4bc8b */
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px; /* Aumentado para el diseño de doble columna */
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 188, 139, 0.1);
  padding: 3rem 2.5rem;
  box-sizing: border-box;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* Custom elegant scrollbar inside modal */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-secondary) transparent;
}

.booking-modal-overlay.active .booking-modal-container {
  transform: translateY(0) scale(1);
}

.booking-modal-container::-webkit-scrollbar {
  width: 6px;
}

.booking-modal-container::-webkit-scrollbar-thumb {
  background-color: var(--accent-secondary);
  border-radius: var(--radius-sm);
}

/* Close Button */
.booking-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(125, 56, 33, 0.05);
  border: 1px solid rgba(125, 56, 33, 0.1);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  padding: 0;
  z-index: 10;
}

.booking-modal-close:hover {
  background-color: var(--accent-primary);
  color: var(--white);
  transform: rotate(90deg);
}

/* Header Styles inside Modal */
.booking-modal-header {
  margin-bottom: 2.5rem;
}

.booking-modal-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.booking-modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.booking-modal-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Grid & Form Control */
.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  font-family: var(--font-body);
  background-color: var(--white);
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(162, 75, 44, 0.12);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Spinner inside CTA button */
.btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Success details card */
.success-details-card {
  background-color: var(--white);
  border: 1px dashed var(--accent-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.success-details-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.success-details-card p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .booking-modal-container {
    padding: 2.5rem 1.5rem;
  }
  
  .booking-form-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .booking-modal-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (PREMIUM CALIDEZ & INTERACTION)
   ========================================================================== */

.whatsapp-float-btn {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  background-color: #25D366;
  color: var(--white) !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
  background-color: #20ba5a;
}

.whatsapp-float-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .whatsapp-float-btn {
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   INTERACTIVE AVAILABILITY CALENDAR & DUAL LAYOUT
   ========================================================================== */

.booking-dual-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  margin-top: 1.5rem;
  align-items: start;
}

.booking-calendar-column {
  background: rgba(255, 255, 255, 0.4);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 188, 139, 0.15);
}

.booking-column-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(212, 188, 139, 0.15);
  padding-bottom: 0.5rem;
}

.calendar-widget {
  display: flex;
  flex-direction: column;
}

.calendar-ctrl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.calendar-ctrl-btn {
  background: none;
  border: 1px solid var(--accent-secondary);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-ctrl-btn:hover {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--white);
  transform: scale(1.05);
}

.calendar-month-year {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 1rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.calendar-day.empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day.past {
  color: rgba(92, 74, 61, 0.25);
  cursor: not-allowed;
}

.calendar-day.available:hover {
  background-color: rgba(162, 75, 44, 0.1);
  color: var(--accent-primary);
}

.calendar-day.occupied {
  color: rgba(92, 74, 61, 0.3);
  background-color: rgba(162, 75, 44, 0.05);
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar-day.selected-start,
.calendar-day.selected-end {
  background-color: var(--accent-primary) !important;
  color: var(--white) !important;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(162, 75, 44, 0.3);
}

.calendar-day.selected-range {
  background-color: rgba(162, 75, 44, 0.15) !important;
  color: var(--accent-primary);
  border-radius: 0;
}

.calendar-day.selected-range-start {
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
}

.calendar-day.selected-range-end {
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(212, 188, 139, 0.15);
  padding-top: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-color.available {
  border: 1px solid var(--text-secondary);
}

.legend-color.occupied {
  background-color: rgba(162, 75, 44, 0.3);
  text-decoration: line-through;
}

.legend-color.selected {
  background-color: var(--accent-primary);
}

/* Media query para móviles - Colapsar doble columna */
@media (max-width: 900px) {
  .booking-modal-container {
    max-width: 580px;
    padding: 2.5rem 1.8rem;
  }
  
  .booking-dual-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .booking-calendar-column {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .booking-modal-container {
    max-height: 95vh;
    padding: 2rem 1.2rem;
  }
  
  .calendar-weekdays, .calendar-day {
    font-size: 0.8rem;
  }
  
  .calendar-legend {
    gap: 0.8rem;
    flex-wrap: wrap;
  }
}
