/* Google Fonts: Playfair Display & Lato & Roboto (Black North Quiet Luxury System Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Roboto:wght@300;400;500&display=swap');

:root {
  /* Restored original brand colors (Ocean & Earth tones) */
  --md-sys-color-primary: #304254; /* Azul pizarra (Mar - Primary actions/buttons) */
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #e6ebf0;
  --md-sys-color-on-primary-container: #1b2631;
  
  --md-sys-color-secondary: #727b51; /* Verde Oliva/Sage (Tierra - Secondary actions/badges) */
  --md-sys-color-on-secondary: #ffffff;
  
  --md-sys-color-tertiary: #b9a766; /* Dorado cálido (Sol - Highlights) */
  
  --md-sys-color-surface: #f4f1ec; /* Warm sand/light beige background */
  --md-sys-color-on-surface: #574e35; /* Dark olive-brown for primary text */
  --md-sys-color-surface-variant: #e1e1d6; /* Washed sand */
  --md-sys-color-on-surface-variant: #726741; /* Muted olive-brown */
  
  --md-sys-color-outline: rgba(114, 103, 65, 0.15);
  
  /* Brand tokens mapped to original brand aesthetics */
  --bg-primary: var(--md-sys-color-surface);
  --bg-secondary: var(--md-sys-color-surface-variant);
  --bg-card: #ffffff;
  --text-main: var(--md-sys-color-on-surface);
  --text-muted: var(--md-sys-color-on-surface-variant);
  --accent-blue: var(--md-sys-color-primary);
  --accent-earth: var(--md-sys-color-on-surface-variant);
  --accent-olive: var(--md-sys-color-secondary);
  --accent-gold: var(--md-sys-color-tertiary);
  --accent-soft-natural: var(--md-sys-color-primary);
  --border-color: var(--md-sys-color-outline);

  /* Typography Scale matching Black North style */
  --font-title: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;

  /* Quiet Luxury rounded corners (Black North curves) */
  --radius-sm: 5px;    /* Buttons and inputs */
  --radius-md: 8px;    /* Badges/small components */
  --radius-lg: 10px;   /* Cards and modal container */
  --radius-pill: 50px; /* Circular icons and labels */

  /* Fine and elegant borders & shadows */
  --shadow-sm: 0 2px 10px rgba(48, 66, 84, 0.03);
  --shadow-md: 0 6px 24px rgba(48, 66, 84, 0.04);
  --shadow-lg: 0 16px 40px rgba(48, 66, 84, 0.06);
  
  --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: inherit !important;
}

/* Blindaje contra desbordamientos horizontales */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* Escalado de imágenes y videos responsivos */
img, video, iframe {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Textos fluidos sin cortes abruptos */
h1, h2, h3, h4, h5, h6, p, span, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
  padding-top: 80px; /* Fixed header compensation */
}

@media (max-width: 768px) {
  body {
    padding-top: 66px; /* Mobile header compensation */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 300;
  color: var(--text-main);
  text-transform: none; /* Keep natural case for elegant serif look, or uppercase where required */
  letter-spacing: normal;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(48, 66, 84, 0.95) !important; /* Original Slate Blue brand header color */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
  padding: 0.2rem 0; /* Shrinks container vertical size */
  background: rgba(27, 38, 49, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.4s ease;
}

header.scrolled .nav-container {
  padding: 0.9rem 3rem;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1.1rem 1.5rem;
  }
  header.scrolled .nav-container {
    padding: 0.8rem 1.5rem;
  }
}

.logo-group {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #fbfdf1; /* Light cream/pearl */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-main span {
  color: var(--md-sys-color-tertiary); /* Warm gold */
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  text-transform: uppercase;
  color: rgba(251, 253, 241, 0.7);
  letter-spacing: 2px;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  text-decoration: none;
  color: rgba(251, 253, 241, 0.85); /* Light cream */
  font-weight: 300;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--md-sys-color-tertiary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: #ffffff;
}

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

/* Custom CSS overrides to properly display active links on dark header background */
.nav-links a[style*="var(--accent-blue)"],
.nav-links a.active {
  color: var(--md-sys-color-tertiary) !important;
  font-weight: 400 !important;
}

/* Hero Section (Extends seamlessly to top under header) */
.hero,
.finca-hero,
.subpage-hero {
  position: relative;
  margin-top: -80px !important;
  padding-top: calc(80px + 5.5rem) !important;
  padding-bottom: 7.5rem !important;
  background-size: cover !important;
  background-position: center 35% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 76vh !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .hero,
  .finca-hero,
  .subpage-hero {
    margin-top: -66px !important;
    padding-top: calc(66px + 4rem) !important;
    padding-bottom: 4.5rem !important;
    min-height: 52vh !important;
  }
}

.hero {
  background-image: url('assets/home_hero_bg.jpg') !important;
}

.hero::before,
.subpage-hero:not(.valle-bg)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 27, 40, 0.65) 0%, rgba(15, 27, 40, 0.40) 50%, rgba(15, 27, 40, 0.70) 100%) !important;
  z-index: 1;
  pointer-events: none;
}

.subpage-hero.valle-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(58, 49, 31, 0.28) 0%, rgba(66, 56, 37, 0.10) 50%, rgba(44, 36, 23, 0.28) 100%) !important;
  z-index: 1;
  pointer-events: none;
}

.finca-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 27, 40, 0.30) 0%, rgba(15, 27, 40, 0.10) 50%, rgba(15, 27, 40, 0.30) 100%) !important;
  z-index: 1;
  pointer-events: none;
}

.hero > *,
.finca-hero > *,
.subpage-hero > * {
  position: relative;
  z-index: 2;
}

.hero-subtitle,
.finca-subtitle,
.subpage-subtitle,
.hero-tagline-top {
  font-family: var(--font-body, 'Lato', sans-serif) !important;
  font-style: italic !important;
  font-size: 1.1rem !important;
  letter-spacing: 1.5px !important;
  color: #f4f1ec !important;
  margin-bottom: 0.6rem !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

/* Hero Banner Typography for Pages with Photo Background (Home, Ensenada, Valle de Guadalupe) */
.hero h1,
.finca-hero h1,
.finca-hero-content h1,
.subpage-hero.has-bg h1 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(2.4rem, 4.8vw, 3.4rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  color: #ffffff !important; /* Blanco radiante sobre imagen de fondo */
  max-width: 950px !important;
  margin: 0 auto 1.2rem auto !important;
  text-shadow: 0 3px 16px rgba(15, 27, 40, 0.85), 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.hero p,
.hero-desc,
.hero-tagline,
.finca-hero p,
.finca-hero-content p,
.subpage-hero.has-bg p {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #ffffff !important; /* Blanco legible sobre imagen de fondo */
  max-width: 780px !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-shadow: 0 2px 10px rgba(15, 27, 40, 0.8), 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  opacity: 0.98 !important;
}

/* Direct Booking Banner (Transparent background) */
.direct-booking-banner {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.4rem 0 !important;
}

.direct-booking-banner,
.direct-booking-banner span {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #574e35 !important; /* Color café del footer por defecto */
  text-shadow: none !important;
}

/* Direct Booking Banner color #f4f1ec for Ensenada and Valle de Guadalupe */
.subpage-hero.has-bg .direct-booking-banner,
.subpage-hero.has-bg .direct-booking-banner span,
.hero .direct-booking-banner,
.hero .direct-booking-banner span {
  color: #f4f1ec !important; /* Color arena #f4f1ec */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

/* Luxury Breathing Room Spacing */
.finca-intro,
.descriptive-section,
.hero-intro,
.section-descriptive {
  padding: 4.5rem 1.5rem !important;
}

/* Subpage Intro Header (Light Sand Intro Style for Eventos, Contacto, Experiencias, etc.) */
.subpage-hero:not(.has-bg),
.experiences-hero {
  margin-top: 0 !important;
  padding: 4.5rem 1.5rem 2.5rem 1.5rem !important;
  background: var(--bg-primary) !important;
  min-height: auto !important;
  height: auto !important;
  border-bottom: none !important;
  box-shadow: none !important;
  text-align: center !important;
}

.subpage-hero:not(.has-bg)::before,
.experiences-hero::before {
  display: none !important;
}

.subpage-hero:not(.has-bg) h1,
.experiences-hero h1 {
  font-family: var(--font-title, 'Playfair Display', serif) !important;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important;
  font-weight: 400 !important;
  color: var(--accent-blue) !important; /* #304254 Slate Blue */
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 auto 1.2rem auto !important;
  text-shadow: none !important;
}

.subpage-hero:not(.has-bg) p,
.experiences-hero p {
  font-family: var(--font-serif, 'Playfair Display', serif) !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: var(--text-muted) !important; /* #726741 Olive Brown */
  max-width: 780px !important;
  margin: 0 auto !important;
  text-shadow: none !important;
  opacity: 1 !important;
}


/* Trust Factors Section (Exclusive / Boutique concierge style) */
.trust-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 2rem;
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-title {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-blue);
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

#trust-concierge {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
}

.concierge-card-content {
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.concierge-card-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  overflow: hidden;
}

.concierge-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center !important;
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  #trust-concierge {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .concierge-card-content {
    padding: 2rem;
  }
  .concierge-card-image {
    height: 360px;
  }
  .concierge-card-image img {
    object-position: center center !important;
  }
}

.trust-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg); /* M3 Expressive card */
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-olive);
  opacity: 0;
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-card:hover::before {
  opacity: 1;
}

.trust-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.trust-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: none;
  letter-spacing: 0;
}

.trust-card p {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 400;
}

.concierge-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.8rem 0 !important;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.concierge-bullets li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}


/* Property Listings Section */
.properties-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.section-header-left h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header-left p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
}

/* Property Card */
.property-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg); /* Rounded quiet luxury edges */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(48, 66, 84, 0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg); /* Soft deep shadow on hover */
  border-color: rgba(48, 66, 84, 0.12);
}

.property-image-container {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #ffffff;
}

.property-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.property-card:hover .property-image-container img {
  transform: scale(1.05); /* Soft premium image scale zoom */
}

.badge-overlay {
  display: none !important;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm); /* Soft rounded badge */
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge.whatsapp {
  background: rgba(114, 123, 81, 0.08); /* Olive green tint */
  color: var(--md-sys-color-secondary);
  border: 1px solid rgba(114, 123, 81, 0.2);
}

.badge.official {
  background: rgba(48, 66, 84, 0.06); /* Slate blue tint */
  color: var(--md-sys-color-primary);
  border: 1px solid rgba(48, 66, 84, 0.15);
}

.property-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #ffffff;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.property-location {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.property-price {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--md-sys-color-primary);
}

.property-price span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  text-transform: lowercase;
}

.property-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-main);
}

.property-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.property-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn-text-mobile {
  display: none;
}

.intro-rest-text {
  /* Display normally on desktop */
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  border-radius: var(--radius-sm); /* Black North rounded corner */
  font-family: var(--font-body);
  font-size: 0.72rem; /* Clean tiny luxury size */
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 5px; /* Black North wide letter-spacing */
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 0.6rem;
  min-height: 48px;
  box-sizing: border-box;
}

.btn-primary {
  flex-grow: 1;
  background-color: var(--md-sys-color-primary); /* Slate Blue */
  color: #ffffff;
  border: 1px solid var(--md-sys-color-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(48, 66, 84, 0.15);
}

.btn-whatsapp {
  background-color: var(--md-sys-color-secondary); /* Olive/Sage Green */
  color: #FFFFFF;
  border: 1px solid var(--md-sys-color-secondary);
}

.btn-whatsapp:hover {
  background-color: transparent;
  color: var(--md-sys-color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(114, 123, 81, 0.15);
}

.btn-official {
  background-color: var(--md-sys-color-primary); /* Slate Blue */
  color: #FFFFFF;
  border: 1px solid var(--md-sys-color-primary);
}

.btn-official:hover {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(48, 66, 84, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-primary);
}

.btn-secondary:hover {
  background-color: var(--md-sys-color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(48, 66, 84, 0.15);
}

/* Modal Styling (Safe Area & Top Clipping Prevention) */
.modal-overlay,
.modal-backdrop,
.popup-wrapper,
.details-modal-overlay,
.finca-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(17, 19, 15, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: env(safe-area-inset-top, 20px) 1rem env(safe-area-inset-bottom, 20px) 1rem !important;
  padding: max(20px, env(safe-area-inset-top)) 1rem max(20px, env(safe-area-inset-bottom)) 1rem !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

.modal-overlay:not(.active),
.details-modal-overlay:not(.active),
.finca-modal-overlay:not(.active),
.popup-wrapper:not(.active) {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.modal-overlay.active,
.details-modal-overlay.active,
.finca-modal-overlay.active,
.popup-wrapper.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.modal-container,
.modal-content,
.popup-box,
.signature-card,
.details-modal-container,
.finca-modal-container,
.experience-modal-container {
  position: relative !important;
  max-height: calc(100vh - 40px) !important;
  max-height: calc(100dvh - 40px) !important; /* Altura dinámica para navegadores móviles */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 2.5rem 1.5rem 2rem 1.5rem !important; /* Espacio superior generoso para que el título respire */
  margin: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
  width: 92% !important;
  max-width: 580px !important;
  background: var(--bg-card, #ffffff) !important;
  border-radius: var(--radius-lg, 12px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
}

.details-modal-container {
  max-width: 800px !important;
}

.modal-close,
.modal-close-btn,
.close-btn,
.details-modal-close-btn,
.finca-modal-close-btn,
.experience-modal-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 100 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  border: none !important;
  color: var(--text-main, #333) !important;
  font-size: 1.4rem !important;
  line-height: 1 !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.modal-close:hover,
.modal-close-btn:hover,
.close-btn:hover,
.details-modal-close-btn:hover,
.finca-modal-close-btn:hover,
.experience-modal-close:hover {
  background: rgba(0, 0, 0, 0.12) !important;
  transform: scale(1.05) !important;
}

.modal-content h2,
.modal-content h3,
.modal-container h2,
.modal-container h3,
.modal-header h2,
.modal-header h3,
.details-modal-header h2,
.details-modal-header h3,
.finca-modal-header h2,
.finca-modal-header h3,
.signature-title {
  margin-top: 0.5rem !important;
  padding-top: 0 !important;
  line-height: 1.25 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: 70vh;
}

.modal-property-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-property-img {
  width: 100px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.modal-property-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.modal-property-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-desc-box {
  margin-bottom: 1.5rem;
}

.modal-desc-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.message-preview-container {
  margin-bottom: 1.5rem;
}

.preview-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.message-preview {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-olive);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-main);
  word-break: break-word;
}

.tracking-info-box {
  background: #ECEFF1;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px dashed #B0BEC5;
}

.tracking-list {
  list-style: none;
  font-size: 0.8rem;
  font-family: monospace;
}

.tracking-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
}

.tracking-list li span:first-child {
  color: var(--text-muted);
}

.tracking-list li span:last-child {
  color: var(--accent-blue);
  font-weight: bold;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: var(--bg-secondary);
}

/* Tracking Log Console (The Developer Simulator Panel) */
.tracking-console-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 900;
  transform: translateY(calc(100% - 48px));
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tracking-console-wrapper.expanded {
  transform: translateY(0);
}

.console-header {
  background: #1E1A17;
  color: #E8E2D9;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-top: 1px solid var(--accent-blue);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
}

.console-title-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.console-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #4CAF50;
  box-shadow: 0 0 8px #4CAF50;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.console-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.console-toggle-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.tracking-console-wrapper.expanded .console-toggle-icon {
  transform: rotate(180deg);
}

.console-body {
  height: 250px;
  background: #14110F;
  color: #C5BDB6;
  padding: 1.5rem 2rem;
  overflow-y: auto;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  border-top: 1px solid #2A2421;
}

.console-instructions {
  color: #8C8075;
  margin-bottom: 1rem;
  border-bottom: 1px dashed #2A2421;
  padding-bottom: 0.5rem;
  font-style: italic;
}

.log-entry {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1E1A17;
  animation: slideIn 0.3s ease-out;
}

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

.log-time {
  color: #C08A3E;
  margin-right: 0.8rem;
}

.log-type {
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-right: 0.8rem;
  text-transform: uppercase;
}

.log-type.click {
  background-color: #1A365D;
  color: #90CDF4;
}

.log-type.whatsapp {
  background-color: #1A4731;
  color: #9AE6B4;
}

.log-type.redirect {
  background-color: #744210;
  color: #FEEBC8;
}

.log-type.ga4 {
  background-color: #2B6CB0;
  color: #EBF8FF;
  border: 1px solid #4299E1;
}

.log-payload {
  margin-top: 0.4rem;
  display: block;
  white-space: pre-wrap;
  color: #E2E8F0;
  background: #1E1A17;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid #2A2421;
}

/* Footer Section */
footer {
  background: #574e35;
  color: #f4f4f2;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(165, 167, 135, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .logo-main {
  color: #ffffff;
}

.footer-brand .logo-main span {
  color: rgba(244, 244, 242, 0.75);
}

.footer-brand .logo-sub {
  color: rgba(244, 244, 242, 0.75);
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(244, 244, 242, 0.7);
}

/* Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Animations for Hamburger to X transform */
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero {
    padding: 5.5rem 2rem 4.5rem 2rem;
  }
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.28;
  }
  .hero-desc {
    font-size: 1.12rem;
    line-height: 1.6;
    max-width: 750px;
  }
  .split-pane {
    height: 360px;
  }
  .pane-content h2 {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .logo-main {
    font-size: 1.05rem !important;
    letter-spacing: 0.5px !important;
    gap: 5px !important;
  }
  .logo-img {
    height: 24px !important;
    margin-right: 4px !important;
  }
  .logo-sub {
    font-size: 0.62rem !important;
    letter-spacing: 1.2px !important;
  }
  .direct-booking-banner-container {
    display: block !important;
    padding: 0.85rem 1rem !important;
  }
  .direct-booking-banner {
    display: flex !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }
  .ensenada-bg .intro-rest-text {
    display: none !important;
  }
  .hero {
    padding: 4.25rem 1.25rem 3.5rem 1.25rem;
  }
  .hero h1 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.8rem !important;
    letter-spacing: 0.3px !important;
  }
  .pane-content h2 {
    font-size: 1.3rem !important;
    letter-spacing: 0.15em !important;
    padding: 0 0.5rem !important;
  }
  .hero-desc {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    max-width: 95% !important;
    margin-bottom: 0 !important;
  }
  .hero-tagline {
    font-size: 1.05rem !important;
  }
  .subpage-hero h1 {
    font-size: 1.4rem !important;
  }
  .subpage-hero p {
    font-size: 0.92rem !important;
    line-height: 1.5;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(244, 244, 242, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    color: var(--text-main) !important;
  }
  .nav-links a:hover,
  .nav-links a:active {
    color: var(--accent-blue) !important;
  }
  .btn-text-desktop {
    display: none !important;
  }
  .btn-text-mobile {
    display: inline !important;
  }
  .properties-section {
    padding: 0 1rem !important;
    margin: 2rem auto !important;
  }
  .planner-section {
    padding: 0 1rem !important;
    margin: 2rem auto !important;
  }
  .planner-card {
    padding: 2rem 1.25rem !important;
  }
  .contact-info-panel {
    padding: 2rem 1.25rem !important;
  }
  .event-slider {
    height: 240px !important;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .properties-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }
  .property-card {
    border-radius: var(--radius-md) !important;
  }
  .property-content {
    padding: 1rem !important;
  }
  .property-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.2rem !important;
    margin-bottom: 0.5rem !important;
  }
  .property-location {
    font-size: 0.7rem !important;
  }
  .property-price {
    font-size: 0.85rem !important;
  }
  .property-price span {
    font-size: 0.75rem !important;
  }
  .property-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
  }
  .property-desc {
    display: none !important;
  }
  .property-footer {
    padding-top: 0.8rem !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    margin-top: auto;
  }
  .property-footer .btn {
    width: 100% !important;
    font-size: 0.75rem !important;
    padding: 0.5rem 0.3rem !important;
    margin: 0 !important;
  }
  .badge {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.65rem !important;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.85rem 1rem !important;
  }
  .logo-main {
    font-size: 0.95rem !important;
    letter-spacing: 0.3px !important;
  }
  .logo-img {
    height: 22px !important;
    margin-right: 3px !important;
  }
  .logo-sub {
    font-size: 0.58rem !important;
    letter-spacing: 1px !important;
  }
  .hero h1 {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }
  .pane-content h2 {
    font-size: 1.15rem !important;
    letter-spacing: 0.12em !important;
  }
}

/* Destination Split Screen Layout (M3 Expressive) */
/* Destination Split Screen Layout (M3 Expressive) - Unified across index.html & valle.html */
.destination-split-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.split-pane {
  position: relative !important;
  flex: 1 1 50% !important;
  width: 50% !important;
  min-width: 0 !important;
  height: clamp(540px, 68vh, 780px) !important; /* Enlarged cinematic panel height touching hero banner and footer seamlessly */
  overflow: hidden !important;
  display: block !important;
  text-decoration: none !important;
  cursor: pointer !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.pane-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1 !important;
}

.pane-ensenada .pane-bg {
  background-position: center 20% !important; /* Centered vertically to show the sea at the top */
}

.pane-hacienda .pane-bg,
.pane-finca .pane-bg {
  background-position: center !important;
}

.pane-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.3) !important; /* Premium dimming for readability */
  transition: background-color 0.4s ease !important;
  z-index: 2 !important;
}

.pane-content {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem !important;
  box-sizing: border-box !important;
  z-index: 3 !important;
}

.pane-content h2 {
  font-family: var(--font-title), serif !important;
  font-size: clamp(1.1rem, 4.2vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
  padding: 0.5rem !important;
  text-align: center !important;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  line-height: 1.25 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: manual !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Hover / Active / Focus States */
.split-pane:hover .pane-bg,
.split-pane:active .pane-bg,
.split-pane:focus .pane-bg {
  transform: scale(1.06);
}

.split-pane:hover .pane-overlay,
.split-pane:active .pane-overlay,
.split-pane:focus .pane-overlay {
  background: rgba(0, 0, 0, 0.15); /* Lightens up for details to pop */
}

/* Travel Planning Form Section */
.planner-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.planner-card {
  background: #3f6990; /* Ensenada button color */
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.planner-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.planner-header h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.planner-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.planner-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

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

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

.form-group label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85); /* kept for high readability on dark form container */
  letter-spacing: 1.5px;
  text-transform: uppercase;
  min-height: 38px;
  display: flex;
  align-items: flex-end;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm); /* Rounded edges */
  border: 1px solid rgba(48, 66, 84, 0.15);
  background: var(--bg-primary);
  color: var(--text-main);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(48, 66, 84, 0.05);
}

/* Experiences Checklist Cards */
.exp-checkbox-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.8rem;
  display: block;
}

.exp-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: center;
}

.exp-checkbox-grid input[type="checkbox"] {
  display: none; /* Hide default checkboxes */
}

@keyframes hover-blink {
  0% { opacity: 1; }
  50% { opacity: 0.65; }
  100% { opacity: 1; }
}

/* Keyframes Animación Fade-In Up Luxury */
@keyframes fadeInUpLuxury {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicar la animación a las tarjetas del contenedor de características */
.features-grid .feature-card,
.finca-features .feature-card,
.finca-features .finca-feature-item,
.amenities-preview-grid .feature-card {
  opacity: 0;
  animation: fadeInUpLuxury 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* Retraso escalonado (stagger) para entrada fluida y elegante */
.features-grid .feature-card:nth-child(1),
.finca-features .feature-card:nth-child(1),
.finca-features .finca-feature-item:nth-child(1),
.amenities-preview-grid .feature-card:nth-child(1) {
  animation-delay: 0.15s;
}

.features-grid .feature-card:nth-child(2),
.finca-features .feature-card:nth-child(2),
.finca-features .finca-feature-item:nth-child(2),
.amenities-preview-grid .feature-card:nth-child(2) {
  animation-delay: 0.3s;
}

.features-grid .feature-card:nth-child(3),
.finca-features .feature-card:nth-child(3),
.finca-features .finca-feature-item:nth-child(3),
.amenities-preview-grid .feature-card:nth-child(3) {
  animation-delay: 0.45s;
}

.features-grid .feature-card:nth-child(4),
.finca-features .feature-card:nth-child(4),
.finca-features .finca-feature-item:nth-child(4),
.amenities-preview-grid .feature-card:nth-child(4) {
  animation-delay: 0.6s;
}

/* Microinteracción Hover (Sutil y Editorial) */
.features-grid .feature-card:hover,
.finca-features .feature-card:hover,
.finca-features .finca-feature-item:hover,
.amenities-preview-grid .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(48, 66, 84, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.exp-card {
  background: #ffffff;
  border: 1px solid rgba(44, 53, 36, 0.15);
  padding: 0.85rem 1.4rem;
  border-radius: 0px; /* Flat edges */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  user-select: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main) !important;
  box-sizing: border-box;
}

.exp-card::before {
  content: '○';
  font-size: 1.1rem;
  color: rgba(44, 53, 36, 0.4);
  font-family: Arial, sans-serif;
  transition: color 0.3s;
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

.exp-card:hover {
  animation: hover-blink 0.35s ease-in-out;
  border-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-primary) !important;
  background: var(--bg-primary);
}

/* JS-triggered checked classes */
.exp-card.checked {
  border-color: var(--md-sys-color-primary) !important;
  background-color: var(--md-sys-color-primary) !important;
  color: #ffffff !important;
  box-shadow: none;
}

.exp-card.checked::before {
  content: '✓';
  color: #ffffff !important;
  font-weight: bold;
}

/* Sub-page Specific Styles */
.subpage-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
  box-sizing: border-box;
}

.subpage-hero h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem; /* Display Large scale */
  color: var(--accent-blue);
  text-transform: none;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.subpage-hero p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

/* Background-based Subpage Heroes */
.subpage-hero.has-bg {
  position: relative !important;
  margin-top: -80px !important;
  padding-top: calc(80px + 5.5rem) !important;
  padding-bottom: 7.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 76vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.subpage-hero.ensenada-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)), url('assets/ensenada_hero_bg.jpg') no-repeat center center !important;
  background-size: cover !important;
}

.subpage-hero.valle-bg {
  background: linear-gradient(rgba(58, 49, 31, 0.12), rgba(44, 36, 23, 0.18)), url('assets/valle_hero_bg.jpg') no-repeat center center !important;
  background-size: cover !important;
}

.subpage-hero.has-bg h1 {
  font-family: var(--font-serif);
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-size: 3.5rem; /* Display Large scale */
  max-width: 900px;
  text-transform: none;
  letter-spacing: -0.5px;
}

.subpage-hero.has-bg p {
  font-family: var(--font-serif);
  color: #ffffff !important;
  max-width: 800px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-size: 1.25rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .subpage-hero.has-bg {
    margin-top: -66px !important;
    padding-top: calc(66px + 4rem) !important;
    padding-bottom: 4.5rem !important;
    min-height: 52vh !important;
  }
  .subpage-hero.has-bg h1 {
    font-size: 1.6rem !important;
  }
  .subpage-hero.has-bg p {
    font-family: var(--font-serif);
    font-size: 0.95rem !important;
    line-height: 1.55;
  }
}


/* Experiences page content */
.experiences-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto 6rem auto;
  padding: 0 2rem;
}

.experience-item-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.experience-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.experience-item-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.experience-item-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.experience-item-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.experience-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Events layout */
.events-section-intro {
  max-width: 800px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 2rem;
}

.events-section-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.events-showcase {
  max-width: 1100px;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 0 2rem;
}

.event-block {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.event-block:nth-child(even) {
  flex-direction: row-reverse;
}

.event-block-img {
  flex: 1;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  image-rendering: -webkit-optimize-contrast;
}

.event-slider img {
  image-rendering: -webkit-optimize-contrast;
}

.event-block-content {
  flex: 1;
}

.event-block-content h3 {
  font-size: 1.8rem;
  font-family: var(--font-title);
  margin-bottom: 1rem;
  color: var(--text-main);
}

.event-block-content p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Contact page layout (2-Column Desktop Grid) */
.contact-wrapper-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  max-width: 1240px;
  margin: 3rem auto 6rem auto;
  padding: 0 2rem;
  align-items: start;
}

.contact-left-col,
.contact-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.contact-social-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-social-block .contact-social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0;
}

.contact-social-block .contact-social-link {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-method-icon {
  font-size: 1.5rem;
  color: var(--accent-blue);
  background: #ffffff;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-method-detail h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.contact-method-detail p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-method-detail a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.contact-social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-social-link {
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.contact-social-link:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

/* ==========================================
   PREMIUM PROPERTY DETAILS MODAL
   ========================================== */
.details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(42, 36, 33, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.details-modal-container {
  background: var(--bg-card);
  max-width: 800px;
  width: 90%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.details-modal-overlay.active .details-modal-container {
  transform: scale(1);
}

.details-modal-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
}

.details-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-main);
  text-transform: none;
  letter-spacing: 0;
}

.details-modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.details-modal-close-btn:hover {
  color: var(--accent-blue);
  transform: rotate(90deg);
}

.details-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

/* Photo Gallery Carousel */
.details-carousel,
.details-static-image {
  position: relative !important;
  width: 100% !important;
  height: 320px !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  background-color: transparent !important;
  background: transparent !important;
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
}

.details-carousel-track {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  overflow: hidden !important;
}

.details-carousel-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
  overflow: hidden !important;
}

.details-carousel-slide.active {
  opacity: 1 !important;
  z-index: 2 !important;
}

.details-carousel-slide img,
.details-static-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.details-carousel-prev,
.details-carousel-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(244, 244, 242, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: var(--text-main) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  z-index: 10 !important;
  transition: var(--transition) !important;
  user-select: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

.details-carousel-prev:hover,
.details-carousel-next:hover {
  background: rgba(244, 244, 242, 0.95) !important;
  color: var(--accent-blue) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.details-carousel-prev {
  left: 15px !important;
}

.details-carousel-next {
  right: 15px !important;
}

.details-carousel-dots,
.details-carousel-dot,
.finca-dots,
.finca-dot,
.slider-dots,
.carousel-dots,
.dots,
.dot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Info Details */
.details-info-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.details-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.details-location {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.details-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: var(--font-body);
}

.details-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.details-description {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* Specs Grid */
.details-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin: 0.5rem 0;
}

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

.details-spec-item .spec-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.details-spec-item .spec-val {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.3;
}

.details-spec-item .spec-val strong {
  font-weight: 700;
  color: var(--accent-blue);
}

/* Golf & Surroundings Box */
.details-surroundings-box {
  background: rgba(40, 97, 129, 0.05);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin: 0.5rem 0;
}

.details-surroundings-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
}

.details-surroundings-header h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.details-surroundings-header .surroundings-icon {
  font-size: 1.3rem;
}

.details-surroundings-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Amenities */
.details-amenities-section {
  margin-top: 0.5rem;
}

.details-amenities-section h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.details-amenities-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}

.details-amenities-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.details-amenities-list li .amenity-check {
  color: var(--accent-olive);
  font-weight: bold;
}

.details-modal-footer-box {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

@media (max-width: 1024px) {
  /* Grids Homologation for Tablet */
  .rooms-grid,
  .finca-rooms-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
  }
}

@media (max-width: 768px) {
  /* Step 1: Split Screen Mobile Rules (2 Columns side-by-side) */
  .destination-split-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .split-pane {
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    height: 360px !important;
    min-height: 45vh !important;
  }

  .pane-content h2 {
    font-size: clamp(0.95rem, 4.2vw, 1.6rem) !important;
    letter-spacing: 1px !important;
    padding: 0.5rem !important;
    text-align: center !important;
    line-height: 1.25 !important;
    word-break: normal !important;
    hyphens: manual !important;
    overflow-wrap: break-word !important;
  }

  /* Step 2.1: Navbar and Global Hero Scaling */
  .hero h1,
  .subpage-hero h1,
  header h1,
  h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    line-height: 1.25 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .hero,
  .subpage-hero {
    padding: 3.5rem 1.2rem !important;
  }

  /* Step 2.2: Safe Reading Padding & Containers */
  .container,
  main,
  section,
  .planner-section,
  .features-section,
  .amenities-section,
  .rooms-section,
  .eventos-section,
  .contact-wrapper-grid {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* Step 2.3: Mobile Grids (1 Column for Rooms) */
  .rooms-grid,
  .finca-rooms-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .room-card,
  .finca-room-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .room-card img,
  .finca-room-card img,
  .room-card-img {
    width: 100% !important;
    height: auto !important;
    max-height: 280px !important;
    object-fit: cover !important;
  }

  .features-grid,
  .amenities-grid,
  .finca-amenities-grid,
  .finca-packages-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  /* Step 2.4: Events Section on Mobile */
  .finca-events-package-card,
  .finca-events-rules,
  .events-package-box,
  .events-rules-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.8rem 1.2rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .btn-event-cta,
  .btn-package-cta,
  .btn-contact-submit,
  .btn-review-submit {
    width: 100% !important;
    max-width: 320px !important;
    margin: 1rem auto 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
  }

  /* Original Layout Rules */
  .planner-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrapper-grid {
    grid-template-columns: 1fr;
  }
  .event-block {
    flex-direction: column !important;
    gap: 1.5rem;
  }

  /* Details Modal Mobile Rules */
  .details-modal-container {
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    width: 100%;
  }

  .details-modal-body {
    padding: 1.5rem;
  }

  .details-carousel,
  .details-static-image {
    height: 240px !important;
    max-height: 240px !important;
    aspect-ratio: 16 / 10 !important;
    background-color: transparent !important;
    background: transparent !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .details-carousel-slide img,
  .details-static-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .details-carousel-prev,
  .details-carousel-next {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .details-carousel-prev {
    left: 8px !important;
  }

  .details-carousel-next {
    right: 8px !important;
  }

  .details-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 1rem;
  }

  .details-amenities-list {
    grid-template-columns: 1fr;
  }

  .details-modal-footer-box {
    flex-direction: column-reverse;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    gap: 1rem;
  }

  .details-modal-footer-box .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 1.2rem 3rem 1.2rem !important;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 5.8vw, 2.2rem) !important;
    line-height: 1.25 !important;
  }
  .hero-desc {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }
  .destination-split-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }
  .split-pane {
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    height: 360px !important;
    min-height: 340px !important;
  }
  .pane-content h2 {
    font-size: clamp(0.9rem, 4.5vw, 1.4rem) !important;
    letter-spacing: 1px !important;
    padding: 0.3rem !important;
    line-height: 1.22 !important;
  }
  .planner-section {
    padding: 1.5rem 0.75rem;
  }
  .planner-card {
    padding: 1.5rem 1rem;
  }
  .trust-card {
    padding: 1.8rem 1.2rem;
  }
}

/* Specific overrides removed for M3 split-pane layout compat */

/* ==========================================
   PREMIUM TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
  background: var(--bg-card);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-header h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
}

.testimonials-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-family: var(--font-serif);
  margin-bottom: 3.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.testimonial-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg); /* M3 Expressive card */
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  transition: var(--transition);
}

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

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-quote::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(185, 167, 102, 0.15);
  position: absolute;
  top: -2.5rem;
  left: -0.5rem;
  z-index: -1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-blue);
  border: 1px solid var(--border-color);
}

.testimonial-author-info h4 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

.testimonial-author-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  font-family: var(--font-body);
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Details Modal Button Wrapper and Micro-copy */
.modal-btn-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 250px;
  width: 100%;
}

.btn-microcopy {
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  max-width: 230px;
  display: block;
}

@media (max-width: 768px) {
  .modal-btn-wrapper {
    max-width: 100%;
  }
  .btn-microcopy {
    max-width: 290px;
    margin-bottom: 0.5rem;
  }
}

/* Responsive visibility utilities */
.mobile-only {
  display: none !important;
}
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .mobile-only-inline {
    display: inline-block !important;
  }
  .mobile-only-flex {
    display: flex !important;
  }
}

/* ==========================================
   LANGUAGE SELECTOR DROPDOWN (Quiet Luxury)
   ========================================== */
.lang-selector-li {
  position: relative;
  list-style: none;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropbtn {
  font-family: var(--font-body);
  background: transparent;
  color: rgba(251, 253, 241, 0.85); /* Light cream */
  border: none;
  font-size: 0.82rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  outline: none;
  transition: color 0.3s ease;
}

.lang-dropbtn:hover {
  color: var(--accent-gold);
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: rgba(244, 244, 242, 0.98); /* Sand light bg */
  min-width: 130px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  z-index: 105;
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: langFadeIn 0.2s ease-out;
}

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

.lang-dropdown-content a {
  color: var(--text-main) !important;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  font-size: 0.82rem;
  font-family: var(--font-body);
  text-align: left;
  letter-spacing: 1px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-dropdown-content a:hover {
  background-color: rgba(48, 66, 84, 0.08);
  color: var(--accent-blue) !important;
}

/* Show dropdown content on hover or active click */
.lang-dropdown:hover .lang-dropdown-content,
.lang-dropdown.open .lang-dropdown-content {
  display: block;
}

/* Mobile responsive selector adjustments */
@media (max-width: 768px) {
  .lang-selector-li {
    width: 100%;
    text-align: center;
  }
  .lang-dropdown {
    width: 100%;
  }
  .lang-dropbtn {
    width: 100%;
    justify-content: center;
    font-size: 1.2rem; /* Matches mobile links size */
    padding: 0.5rem 0;
    color: var(--text-main) !important;
  }
  .lang-dropdown-content {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
  }
  .lang-dropdown.open .lang-dropdown-content {
    display: block;
  }
  .lang-dropdown-content a {
    text-align: center;
    font-size: 1.05rem;
    padding: 0.6rem 0;
    background: transparent !important;
  }
}

/* ==========================================
   BLACK NORTH PHYSICAL ENVELOPE MODAL (Pearl White / Marfil Luxury)
   ========================================== */

.bn-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  box-sizing: border-box;
}

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

.bn-envelope-canvas {
  position: relative;
  background: transparent;
  border-radius: 0;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: auto;
  box-sizing: border-box;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bn-overlay.active .bn-envelope-canvas {
  transform: scale(1) translateY(0);
}

.bn-close-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.06);
  border: 1px solid rgba(26, 26, 26, 0.12);
  color: #1A1A1A;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  outline: none;
}

.bn-close-btn:hover {
  background: #1A1A1A;
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* FASE 1: VISTA EXTERIOR DEL SOBRE FÍSICO */
.bn-envelope-phase-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bn-envelope-canvas.opened .bn-envelope-phase-1 {
  display: none;
}

.bn-envelope-header-text {
  margin-bottom: 1rem;
  text-align: center;
}

.bn-header-tag {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: #666666;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.bn-header-script {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 2.3rem;
  font-weight: 400;
  font-style: italic;
  color: #1A1A1A;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.bn-header-script span {
  display: inline-block;
}

.bn-physical-envelope {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 260px;
  background: #F4F0EA;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s ease;
  padding: 1.5rem;
}

.bn-physical-envelope:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
}

.bn-envelope-svg-folds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bn-envelope-logo-img {
  position: relative;
  z-index: 2;
  height: 110px;
  max-height: 130px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  margin-bottom: 1.2rem;
  margin-top: -0.5rem;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

.bn-seal-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.6rem;
}

.bn-botanical-flowers {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.bn-gold-wax-seal {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F0D078 0%, #C5A059 50%, #8C7B42 100%);
  border: 2px solid #FFF5D6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.bn-wax-seal-icon {
  color: #332B10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bn-physical-envelope:hover .bn-gold-wax-seal {
  transform: scale(1.1) rotate(6deg);
}

.bn-envelope-brand-tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8C7B42;
  text-transform: uppercase;
}

.bn-envelope-footer-instruction {
  margin-top: 1.25rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #666666;
  text-transform: uppercase;
  animation: bnFadeOpacity 2s infinite ease-in-out;
}

@keyframes bnFadeOpacity {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* FASE 2: CARTA INTERNA REVELADA */
.bn-envelope-phase-2 {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  background: #FDFBF7;
  border-radius: 28px;
  border: 1px solid rgba(185, 167, 102, 0.3);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25);
  padding: 2.25rem 2rem 2rem 2rem;
  box-sizing: border-box;
  transition: opacity 0.5s ease 0.1s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.bn-envelope-canvas.opened .bn-envelope-phase-2 {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.bn-card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.5rem;
  margin-bottom: 0.6rem;
  width: 100%;
}

.bn-card-logo {
  height: 65px;
  max-height: 80px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
}

.bn-invitation-badge {
  text-align: center;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: #B9A766;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.bn-invitation-body {
  text-align: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(26, 26, 26, 0.15);
  padding-bottom: 1.1rem;
}

.bn-event-title-main {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.bn-event-date-pill {
  display: inline-block;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1A1A1A;
  background: rgba(185, 167, 102, 0.15);
  border: 1px solid rgba(185, 167, 102, 0.4);
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}

.bn-event-detail-desc {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.9rem;
  color: #4A4A4A;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

.bn-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bn-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.86rem;
  color: #2C2C2C;
  line-height: 1.35;
}

.bn-benefits-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.bn-access-message-box {
  background: #FFFFFF;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.bn-access-message-text {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.88rem;
  color: #2D2D2D;
  line-height: 1.5;
  margin: 0;
}

/* CAJA DE CÓDIGO PROMINENTE LALOO */
.bn-code-box-wrapper {
  background: #FFFFFF;
  border: 1.5px dashed rgba(185, 167, 102, 0.5);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.3rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.bn-code-box-wrapper:hover {
  border-color: #1A1A1A;
}

.bn-code-text-label {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.82rem;
  color: #4A4A4A;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.bn-code-flex-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.bn-code-display-value {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #1A1A1A;
  background: rgba(185, 167, 102, 0.15);
  padding: 0.35rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(185, 167, 102, 0.4);
  user-select: all;
}

.bn-code-copy-btn {
  background: #1A1A1A;
  color: #FFFFFF;
  border: none;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  outline: none;
}

.bn-code-copy-btn:hover {
  background: #B9A766;
  color: #1A1A1A;
  transform: translateY(-1px);
}

.bn-code-copy-btn.copied {
  background: #276749 !important;
  color: #FFFFFF !important;
}

/* BOTONES DE ACCIÓN (DOUBLE CTA) */
.bn-cta-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bn-btn-primary-dark {
  background: #1A1A1A;
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 1.1rem 1.5rem;
  border-radius: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.bn-btn-primary-dark:hover {
  background: #B9A766;
  color: #1A1A1A !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(185, 167, 102, 0.4);
}

.bn-btn-secondary-outlined {
  background: transparent;
  color: #1A1A1A !important;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(26, 26, 26, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.bn-btn-secondary-outlined:hover {
  border-color: #1A1A1A;
  background: rgba(26, 26, 26, 0.05);
}

@media (max-width: 768px) {
  .bn-overlay {
    padding: calc(env(safe-area-inset-top, 0px) + 3.2rem) 1rem 2rem 1rem !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .bn-envelope-canvas {
    max-width: 94vw !important;
    width: 100% !important;
    margin: 0 auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .bn-envelope-phase-2 {
    padding: 3.2rem 1.4rem 1.8rem 1.4rem !important;
    margin-top: 0.5rem !important;
    border-radius: 24px !important;
    overflow: visible !important;
  }

  .bn-invitation-badge {
    display: block !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    letter-spacing: 2.5px !important;
    color: #B9A766 !important;
    text-transform: uppercase !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.8rem !important;
    font-weight: 700 !important;
    padding: 0 0.5rem !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .bn-physical-envelope {
    max-width: 100%;
    min-height: 220px;
  }

  .bn-header-script {
    font-size: 1.85rem;
  }

  .bn-envelope-logo-img {
    height: 95px;
    max-height: 110px;
  }

  .bn-card-logo {
    height: 55px;
    max-height: 70px;
    max-width: 220px;
  }

  .bn-event-title-main {
    font-size: 1.45rem;
    margin-top: 0.2rem;
  }

  .bn-code-display-value {
    font-size: 1.35rem;
    padding: 0.3rem 0.9rem;
  }

  .bn-close-btn {
    width: 40px !important;
    height: 40px !important;
    top: calc(env(safe-area-inset-top, 0px) + 0.8rem) !important;
    right: 0.8rem !important;
    background: rgba(253, 251, 247, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(185, 167, 102, 0.4) !important;
    z-index: 10001 !important;
  }
}

/* ==========================================
   UNIFIED CONTACT & REVIEWS DESIGN SYSTEM
   ========================================== */

/* Cards Container Standardization */
.contact-wrapper-grid .planner-card,
.contact-wrapper-grid .reviews-card-wrapper {
  border-radius: 16px;
  padding: 2.5rem 2.2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-sizing: border-box;
}

.contact-wrapper-grid .planner-card {
  background: #727b51; /* Brand Olive/Sage */
  border-color: rgba(114, 123, 81, 0.4);
}

.contact-wrapper-grid .reviews-card-wrapper {
  background: var(--bg-card); /* Warm White */
}

/* Titles (H2) Standardization */
.contact-wrapper-grid .form-card-title,
.contact-wrapper-grid .planner-card h2,
.contact-wrapper-grid .planner-card h3,
.contact-wrapper-grid .reviews-header h2 {
  font-family: var(--font-title);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.contact-wrapper-grid .planner-card .form-card-title,
.contact-wrapper-grid .planner-card h2,
.contact-wrapper-grid .planner-card h3 {
  color: #ffffff;
}

.contact-wrapper-grid .reviews-header .form-card-title,
.contact-wrapper-grid .reviews-header h2 {
  color: var(--text-main); /* #574e35 (Café) */
  margin-bottom: 0.5rem;
}

.contact-wrapper-grid .reviews-header {
  text-align: left;
  margin-bottom: 1.8rem;
}

.contact-wrapper-grid .reviews-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Form Wrappers & Field Spacing */
#contact-page-form,
#review-submission-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-wrapper-grid .form-fields-wrapper,
.contact-wrapper-grid .review-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 100%;
}

.contact-wrapper-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0;
}

/* Labels Standardization (Uppercase & Typography) */
.contact-wrapper-grid .form-group label,
.contact-wrapper-grid .rating-form-group label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  line-height: 1.2;
}

.contact-wrapper-grid .planner-card .form-group label {
  color: rgba(255, 255, 255, 0.92);
}

.contact-wrapper-grid .reviews-card-wrapper .form-group label,
.contact-wrapper-grid .reviews-card-wrapper .rating-form-group label {
  color: var(--text-main); /* #574e35 (Café) */
}

/* Inputs, Textareas, and Selects Standardization */
.contact-wrapper-grid .form-input,
.contact-wrapper-grid .form-select,
.contact-wrapper-grid textarea.form-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 48px;
}

.contact-wrapper-grid textarea.form-input {
  min-height: 115px;
  resize: vertical;
  line-height: 1.5;
}

.contact-wrapper-grid .form-input:focus,
.contact-wrapper-grid .form-select:focus,
.contact-wrapper-grid textarea.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(48, 66, 84, 0.12);
}

.contact-wrapper-grid .planner-card .form-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Submit Buttons Consistency */
.btn-contact-submit {
  background: var(--accent-blue) !important;
  color: #ffffff !important;
  padding: 1.1rem 1.5rem !important;
  width: 100% !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 14px rgba(48, 66, 84, 0.15) !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  margin-top: 0.5rem !important;
}

.btn-contact-submit:hover {
  background: #233140 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(48, 66, 84, 0.25) !important;
/* Planning Form Dates & Guests Row Layout */
.form-row-dates-guests {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 768px) {
  .form-row-dates-guests {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .form-row-dates-guests .form-group {
    width: 100% !important;
    margin-bottom: 0;
  }
}

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

@media (max-width: 900px) {
  .contact-wrapper-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem auto 4rem auto;
    padding: 0 1.2rem;
  }

  .contact-wrapper-grid .planner-card,
  .contact-wrapper-grid .reviews-card-wrapper {
    padding: 2rem 1.5rem;
  }

  .form-grid-two {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.required-asterisk {
  color: #c85a5a;
  font-weight: 700;
  margin-left: 2px;
}

.optional-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23727b51' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Star Rating Widget */
.rating-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.star-rating-widget {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #e1e1d6; /* Inactive star color */
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.star-btn:hover,
.star-btn:focus-visible {
  transform: scale(1.2);
}

.star-btn.active,
.star-btn.hovered {
  color: #D4AF37; /* Golden star color */
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.rating-value-display {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

/* Checkbox sutil */
.checkbox-form-group {
  margin-top: 0.5rem;
}

.custom-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main); /* Color café idéntico al título del encabezado */
  user-select: none;
  line-height: 1.5;
  font-weight: 500;
}

.custom-checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox-container .checkmark {
  width: 20px;
  height: 20px;
  background-color: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox-container input[type="checkbox"]:checked ~ .checkmark {
  background-color: var(--accent-olive);
  border-color: var(--accent-olive);
}

.custom-checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.custom-checkbox-container:hover .checkmark {
  border-color: var(--accent-olive);
}

/* Submit Button */
.btn-review-submit {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  padding: 1.1rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px rgba(48, 66, 84, 0.15);
}

.btn-review-submit:hover {
  background: #233140;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(48, 66, 84, 0.25);
}

/* Success Card */
.review-success-card {
  background: #f1f6ec;
  border: 1px solid #c8e0bc;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  animation: fadeInReviewSuccess 0.5s ease forwards;
}

.review-success-card .success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.review-success-card h4 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: #3b5e28;
  margin-bottom: 0.4rem;
}

.review-success-card p {
  color: #557741;
  font-size: 0.95rem;
}

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

/* ==========================================================================
   MOBILE & TABLET LAYOUT FIXES (ROOM HEADERS & EVENT PACKAGES CENTERING)
   ========================================================================== */
@media (max-width: 768px) {
  /* Room Card Header Reorganization */
  .finca-unit-meta,
  .room-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 0.8rem !important;
  }

  .finca-unit-title,
  .room-title {
    display: block !important;
    font-family: var(--font-title, 'Playfair Display', serif) !important;
    font-size: clamp(1.05rem, 4.5vw, 1.25rem) !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin: 0 !important;
  }

  .finca-unit-capacity,
  .room-badge,
  .badge {
    display: inline-block !important;
    font-size: 0.78rem !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 4px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    margin: 0 !important;
  }

  /* Event Package Cards Symmetrical Centering */
  .event-package-list,
  .package-items,
  .finca-events-package-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 0.5rem !important;
    box-sizing: border-box !important;
  }

  .package-card,
  .event-item-card,
  .finca-package-item-card {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 1rem auto !important;
    padding: 1.2rem 1.4rem !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    text-align: left !important;
  }

  .finca-events-package-title,
  .event-package-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ==========================================================================
   MOBILE & TABLET EXCLUSIVE ANIMATIONS & LAYOUT FIXES (PASOS 1, 2, 3)
   ========================================================================== */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-45px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(45px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  /* PASO 1: Entradas laterales alternadas para las 4 tarjetas destacadas */
  .hacienda-features .feature-card:nth-child(odd),
  .features-grid .feature-card:nth-child(odd),
  .finca-features-grid .finca-feature-item:nth-child(odd),
  .finca-feature-grid .finca-feature-item:nth-child(odd) {
    opacity: 0;
    animation: slideInFromLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hacienda-features .feature-card:nth-child(even),
  .features-grid .feature-card:nth-child(even),
  .finca-features-grid .finca-feature-item:nth-child(even),
  .finca-feature-grid .finca-feature-item:nth-child(even) {
    opacity: 0;
    animation: slideInFromRight 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hacienda-features .feature-card:nth-child(1),
  .features-grid .feature-card:nth-child(1),
  .finca-features-grid .finca-feature-item:nth-child(1),
  .finca-feature-grid .finca-feature-item:nth-child(1) { animation-delay: 0.15s; }

  .hacienda-features .feature-card:nth-child(2),
  .features-grid .feature-card:nth-child(2),
  .finca-features-grid .finca-feature-item:nth-child(2),
  .finca-feature-grid .finca-feature-item:nth-child(2) { animation-delay: 0.35s; }

  .hacienda-features .feature-card:nth-child(3),
  .features-grid .feature-card:nth-child(3),
  .finca-features-grid .finca-feature-item:nth-child(3),
  .finca-feature-grid .finca-feature-item:nth-child(3) { animation-delay: 0.55s; }

  .hacienda-features .feature-card:nth-child(4),
  .features-grid .feature-card:nth-child(4),
  .finca-features-grid .finca-feature-item:nth-child(4),
  .finca-feature-grid .finca-feature-item:nth-child(4) { animation-delay: 0.75s; }

  /* PASO 2: Encuadre total de fotografías (eliminar franjas grises en galerías) */
  .finca-unit-gallery-squared,
  .finca-gallery-rect,
  .room-image-container,
  .card-gallery,
  .finca-unit-card .finca-slider {
    height: 260px !important;
    max-height: 260px !important;
    width: 100% !important;
    background-color: transparent !important;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .finca-unit-gallery-squared img,
  .finca-gallery-rect img,
  .room-image-container img,
  .card-gallery img,
  .finca-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* PASO 3: Balance, centrado y alineación del modal 'Consultar Disponibilidad' */
  .booking-modal .modal-header,
  .reservation-modal-header,
  .finca-modal-header,
  #finca-booking-modal .finca-modal-header,
  #wa-booking-modal .modal-header {
    text-align: center !important;
    padding: 1.5rem 1rem 1rem 1rem !important;
    background: #f7f4ed !important;
    border-radius: 12px 12px 0 0 !important;
    position: relative !important;
  }

  .booking-modal h3,
  .reservation-modal-header h3,
  .finca-modal-header h3,
  #finca-modal-title,
  #wa-booking-modal h3 {
    font-family: var(--font-title, 'Playfair Display', serif) !important;
    font-size: 1.35rem !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .direct-booking-tag,
  .booking-modal .badge-notice,
  .finca-direct-tag,
  .finca-modal-body > div:first-child {
    text-align: center !important;
    border-left: none !important;
    background: #fdfbf7 !important;
    border: 1px solid #e8e2d5 !important;
    border-radius: 6px !important;
    padding: 0.6rem 1rem !important;
    margin: 1rem auto !important;
    width: 100% !important;
    max-width: 320px !important;
    box-sizing: border-box !important;
  }

  .finca-direct-tag p,
  .finca-modal-body > div:first-child p {
    text-align: center !important;
  }

  .booking-modal .form-group,
  .finca-form-group,
  #wa-booking-modal .form-group {
    margin-bottom: 1rem !important;
    text-align: left !important;
  }

  .booking-modal label,
  .finca-form-group label,
  #wa-booking-modal label {
    display: block !important;
    font-family: var(--font-accent, 'Raleway', sans-serif) !important;
    font-size: 0.78rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #5c6358 !important;
    margin-bottom: 0.4rem !important;
  }

  .booking-modal input,
  .booking-modal select,
  .finca-form-control,
  #wa-booking-modal input,
  #wa-booking-modal select {
    width: 100% !important;
    height: 46px !important;
    border: 1px solid #e2ddd3 !important;
    background-color: #fbf9f5 !important;
    border-radius: 6px !important;
    padding: 0 0.85rem !important;
    font-family: var(--font-body, 'Lato', sans-serif) !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
  }

  .form-row-split,
  .booking-modal .two-cols,
  .finca-form-split-row,
  .finca-form-row,
  .event-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    align-items: start !important;
    margin-bottom: 1.2rem !important;
  }

  .form-row-split .form-group,
  .finca-form-split-row .finca-form-group,
  .finca-form-row .finca-form-group,
  .event-form-row .event-form-group {
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .form-row-split label,
  .finca-form-split-row label,
  .finca-form-row label,
  .event-form-row label {
    min-height: 2.3rem !important;
    display: flex !important;
    align-items: flex-end !important;
    margin-bottom: 0.4rem !important;
  }

  .form-row-split input,
  .form-row-split select,
  .finca-form-split-row input,
  .finca-form-split-row select,
  .finca-form-row input,
  .finca-form-row select,
  .event-form-row input,
  .event-form-row select {
    height: 46px !important;
  }

  @media (max-width: 600px) {
    .form-row-split,
    .booking-modal .two-cols,
    .finca-form-split-row,
    .finca-form-row,
    .event-form-row {
      grid-template-columns: 1fr !important;
      gap: 0 !important;
      margin-bottom: 0 !important;
    }

    .form-row-split label,
    .finca-form-split-row label,
    .finca-form-row label,
    .event-form-row label {
      min-height: auto !important;
      display: block !important;
      margin-bottom: 0.35rem !important;
    }

    .form-row-split .form-group,
    .finca-form-split-row .finca-form-group,
    .finca-form-row .finca-form-group,
    .event-form-row .event-form-group {
      margin-bottom: 1rem !important;
    }

    .finca-modal-container,
    .event-modal-container {
      width: 95% !important;
      margin: 0.5rem auto !important;
      border-radius: 12px !important;
    }

    .finca-modal-body,
    .event-modal-body {
      padding: 1.2rem 1rem !important;
    }

    .finca-form-control,
    .event-form-control {
      height: 44px !important;
      font-size: 0.88rem !important;
    }
  }

  .booking-modal .btn-submit,
  .booking-modal button[type="submit"],
  .finca-modal-container button[type="submit"],
  .finca-btn-reserve-submit {
    width: 100% !important;
    max-width: 320px !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 48px !important;
    margin: 1rem auto 0 auto !important;
    display: block !important;
    background-color: #304254 !important;
    color: #ffffff !important;
    border-radius: 24px !important;
    font-family: var(--font-accent, 'Raleway', sans-serif) !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
  }
}

/* ==========================================================================
   CORRECCIÓN DEFINITIVA DE CONTENCIÓN MÓVIL EN EVENTOS Y HACIENDA TRES FLORES
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Ajuste del contenedor principal de la página */
  .finca-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. Tarjetas principales de eventos */
  .events-section .events-card,
  .events-card,
  .event-intro-card,
  .events-wrapper,
  .finca-events-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 2rem 0 !important;
    padding: 1.5rem 1.25rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 20px !important;
  }

  /* 3. Elementos interiores (grids y columnas) */
  .finca-events-intro-grid,
  .finca-events-grid,
  .finca-events-text-col,
  .finca-events-gallery-col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* 4. Título de eventos */
  .events-section h2,
  .events-card h2,
  .event-intro-card h2,
  .finca-events-section h2,
  .finca-events-section .finca-section-title,
  .finca-section-title,
  .finca-events-package-title,
  .finca-events-package-card h3,
  .finca-events-header h2 {
    font-family: var(--font-title, 'Playfair Display', serif) !important;
    font-size: clamp(1.2rem, 4.8vw, 1.8rem) !important;
    line-height: 1.35 !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1.25rem 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  /* 5. Párrafos descriptivos de eventos */
  .events-section p,
  .events-card p,
  .event-intro-card p,
  .finca-events-section p,
  .finca-events-text-col p {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1.25rem 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* 6. Carrusel/Imagen dentro de la tarjeta */
  .events-card img,
  .events-card .carousel,
  .event-intro-card .carousel,
  .finca-events-section img,
  .finca-events-gallery-col {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 7. Grid items anti-overflow */
  .finca-events-package-grid,
  .finca-events-package-card ul {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .finca-package-item-card,
  .finca-events-package-card ul li {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
}

/* ==========================================================================
   CORRECCIÓN DEFINITIVA DE IMÁGENES Y ESPACIOS GRISES EN TARJETAS DE PROPIEDADES
   ========================================================================== */
.property-card {
  background-color: #ffffff !important;
  border-radius: var(--radius-lg, 16px) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid rgba(48, 66, 84, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.property-image-container,
.card-image,
.property-card-image,
.room-card-image-container {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  height: 240px !important;
  max-height: 240px !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-radius: 16px 16px 0 0 !important;
  padding-top: 0 !important;
  margin: 0 !important;
}

.property-image-container img,
.card-image img,
.property-card-image img,
.room-card-image-container img,
.property-card img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.property-content {
  background-color: #ffffff !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  border-top: none !important;
  box-sizing: border-box !important;
}

.property-desktop-info,
.property-mobile-info {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

/* Consistent title height leveling */
.property-title,
.property-mobile-title {
  min-height: 3.2rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 0.8rem !important;
  line-height: 1.35 !important;
}

.property-desc,
.property-mobile-specs {
  flex-grow: 1 !important;
  margin-bottom: 1.5rem !important;
}

/* Anchored bottom footer buttons */
.property-footer,
.card-buttons {
  margin-top: auto !important;
  border-top: 1px solid var(--border-color, rgba(48, 66, 84, 0.1)) !important;
  padding-top: 1.2rem !important;
  display: flex !important;
  gap: 0.8rem !important;
  align-items: center !important;
}

@media (max-width: 768px) {
  .property-image-container,
  .card-image,
  .property-card-image {
    height: 220px !important;
    aspect-ratio: 16 / 10 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
  }
}




