/* ==========================================================================
   LOS TIGRES RESIDENCIAL - Luxury Design Refinement (Fixed)
   Style: Minimalist Sophisticated (Deep Jungle Green + Champagne Gold)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Palette - Luxury Nature (New Brown Scheme) */
  --color-primary: #2E2A27;
  /* Negro Carbón - Dark Brown */
  --color-primary-light: #4A4440;
  --color-accent: #F2A928;
  /* Amarillo Dorado */
  --color-accent-hover: #E09815;

  /* Palette - Neutrals */
  --color-bg-body: #F3F3F3;
  /* Background Gris Claro */
  /* Off-White */
  --color-bg-card: #FFFFFF;
  --color-text-heading: #1A1A1A;
  --color-text-body: #4A4A4A;
  --color-text-muted: #888888;
  --color-border: #E5E5E5;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', 'Plus Jakarta Sans', sans-serif;

  /* Spacing system (Base 8px) - Includes Legacy Support */
  --space-1: 0.5rem;
  /* 8px */
  --space-2: 1rem;
  /* 16px */
  --space-3: 1.5rem;
  /* 24px */
  --space-4: 2rem;
  /* 32px */
  --space-6: 3rem;
  /* 48px */
  --space-8: 4rem;
  /* 64px */
  --space-12: 6rem;
  /* 96px */

  /* Legacy Compatibility Variables (Found in HTML) */
  --spacing-lg: var(--space-6);

  /* UI Elements */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;

  /* Luxury Effects */
  --shadow-soft: 0 10px 40px -10px rgba(26, 60, 52, 0.12);
  --shadow-hover: 0 20px 50px -10px rgba(26, 60, 52, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(12px);
  --border-subtle: 1px solid rgba(26, 60, 52, 0.08);

  /* Transitions */
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --trans-fast: 0.2s var(--ease-luxury);
  --trans-med: 0.4s var(--ease-luxury);

  /* Structural */
  --header-height: 80px;
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-bg-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 strong,
h2 strong,
span.highlight,
.section-title span {
  color: var(--color-accent);
  font-weight: 500;
  font-style: italic;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-2);
}

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

/* --------------------------------------------------------------------------
   Layout & Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ========== WHATSAPP TOOLTIP ========== */
.whatsapp-float {
  position: relative;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: var(--color-primary);
  padding: 10px 16px;
  border-radius: 20px 20px 0px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  animation: showTooltip 0.5s ease 5s forwards;
  pointer-events: none;
}

/* Arrow/Triangle for tooltip */
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: auto;
  bottom: 0px;
  right: -10px;
  border-width: 10px 0 0 10px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

@keyframes showTooltip {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(10px);
  }

  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 768px) {
  .whatsapp-tooltip {
    /* Show above on mobile */
    top: auto;
    bottom: calc(100% + 10px);
    right: 50%;
    transform: translateX(50%) translateY(10px) !important;
    /* Start slightly lower for animation */
    /* Reshape border radius since it's above */
    border-radius: 20px 20px 20px 0px;
    white-space: normal;
    max-width: 200px;
    font-size: 0.8rem;
    padding: 8px 12px;
    text-align: center;
    line-height: 1.2;
    animation: showTooltipMobile 0.5s ease 5s forwards;
  }

  /* Triangle pointing DOWN on mobile */
  .whatsapp-tooltip::after {
    top: 100%;
    bottom: auto;
    right: 50%;
    transform: translateX(50%);
    border-width: 10px 10px 0 0;
    border-color: white transparent transparent transparent;
  }
}

@keyframes showTooltipMobile {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateX(50%) translateY(10px);
  }

  100% {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Header (Glassmorphism)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Header (Green Luxury)
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(46, 42, 39, 0.95);
  /* Dark Brown Background */
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--trans-med);
  display: flex;
  align-items: center;
}

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

.logo {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  align-items: center;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  /* White text */
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color var(--trans-fast);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.btn-cta-header {
  padding: 10px 24px;
  border: 1px solid var(--color-accent);
  /* Gold border */
  border-radius: var(--radius-pill);
  color: var(--color-accent) !important;
  transition: all var(--trans-fast);
}

.btn-cta-header:hover {
  background: var(--color-accent);
  color: var(--color-primary) !important;
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
  display: none;
  /* Hidden on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
  padding: 8px;
}

/* Mobile Menu Styles */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
    /* Push to far right */
  }

  .header .container {
    padding: 0 1rem;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    /* White background */
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: var(--space-6) var(--space-4);
    gap: var(--space-4);
    height: calc(100vh - var(--header-height));
    transform: translateX(100%);
    transition: none;
    /* No transition by default */
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    /* Hidden by default */
  }

  .nav-links.menu-ready {
    transition: transform var(--trans-med), visibility var(--trans-med);
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.25rem;
    display: block;
    padding: 12px;
    text-align: center;
    color: var(--color-primary);
    /* Dark green text */
  }

  .nav-links a:hover {
    color: var(--color-accent);
    /* Gold on hover */
  }

  .nav-links .btn-cta-header {
    color: var(--color-primary) !important;
    border-color: var(--color-primary);
  }

  .nav-links .btn-cta-header:hover {
    background: var(--color-primary);
    color: white !important;
  }
}

/* --------------------------------------------------------------------------
   Hero Section (Redesigned)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  /* Align bottom */
  justify-content: flex-start;
  /* Align left */
  padding-top: var(--header-height);
  padding-bottom: var(--space-12);
  /* More space at bottom */
  background-color: var(--color-primary);
  color: white;
  overflow: hidden;
}

/* Background Image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../FOTOPORTADA.webp') center/cover no-repeat;
  opacity: 1;
  /* Full visibility */
  filter: saturate(1.1);
  /* Enhance colors slightly */
  z-index: 0;
}

/* Legibility Gradient Overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Degradado de abajo hacia arriba para legibilidad del texto (Brown) */
  background: linear-gradient(to top, rgba(46, 42, 39, 0.95) 0%, rgba(46, 42, 39, 0.5) 40%, rgba(46, 42, 39, 0.1) 70%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  /* Left alignment */
  max-width: 800px;
  padding: 0 var(--space-3);
  margin-left: 0;
  /* "izquierda inferior" is handled by flex-end/flex-start of parent */
}

.hero h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  margin-bottom: var(--space-3);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: var(--color-accent);
  display: block;
  /* Forzar nueva línea para alineación izquierda */
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-6);
  font-weight: 300;
  max-width: 700px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: transform var(--trans-fast), background-color var(--trans-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 195, 156, 0.4);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Presentation Luxury Section
   -------------------------------------------------------------------------- */
.presentation-luxury {
  padding: var(--space-12) 0;
  background-color: #FAFAFA;
  /* Very light subtle gray */
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}

.presentation-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.presentation-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--trans-med);
}

.presentation-image:hover img {
  transform: scale(1.03);
  /* Subtle zoom */
}

.presentation-content {
  padding-left: var(--space-4);
}

.presentation-subtitle {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: var(--space-2);
}

.presentation-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.presentation-content p {
  color: var(--color-text-body);
  margin-bottom: var(--space-3);
  font-size: 1.05rem;
}

.btn-text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  margin-top: var(--space-2);
  transition: all var(--trans-fast);
  border-bottom: 2px solid transparent;
}

.btn-text-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform var(--trans-fast);
}

.btn-text-arrow:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.btn-text-arrow:hover svg {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .presentation-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .presentation-content {
    padding-left: 0;
    text-align: center;
  }

  .btn-text-arrow {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Ubicación (Luxury Map)
   -------------------------------------------------------------------------- */
.ubicacion {
  padding: var(--space-8) 0;
  background-color: var(--color-bg-body);
}

.ubicacion-intro {
  max-width: 600px;
  margin: 0 auto var(--space-6);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.ubicacion-mapa {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-6);
}

.ubicacion-mapa img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grid debajo del mapa */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  /* Mayor separación para elegancia */
  align-items: center;
}

.ubicacion-lista-wrapper {
  padding-right: var(--space-4);
}

.ubicacion-lista-wrapper>h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--champagne);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

/* Lista Premium (Números Grandes) */
.ubicacion-lista-premium {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ubicacion-lista-premium li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.icon-gold {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1;
  min-width: 60px;
}

.ubicacion-lista-premium .text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-heading);
  line-height: 1.4;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-2);
  width: 100%;
}

.ubicacion-lista-premium li:last-child .text {
  border-bottom: none;
}

.ubicacion-lista-premium strong {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

/* Cuadro Dark Luxury */
.ubicacion-box.dark-luxury {
  background: var(--color-primary);
  /* Dark Brown Background */
  padding: var(--space-6);
  border-radius: var(--radius-md);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(242, 169, 40, 0.3);
  /* Sutil borde dorado */
}

.ubicacion-box.dark-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 50%, rgba(242, 169, 40, 0.1) 100%);
  z-index: 0;
}

.ubicacion-box h4 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.divider-gold {
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.ubicacion-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
  font-weight: 300;
}

.ubicacion-box p strong {
  color: white;
  font-weight: 600;
}

/* Mobile: Box primero, lista después */
@media (max-width: 900px) {
  .ubicacion-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .ubicacion-lista-wrapper {
    padding-right: 0;
  }

  .ubicacion-box {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   Footer Branding & Socials
   -------------------------------------------------------------------------- */
.footer-branding {
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.branding-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.branding-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  /* Iconos grises por defecto */
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: all var(--trans-fast);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Sección Contacto (Layout Dos Columnas)
   -------------------------------------------------------------------------- */
.contacto-section {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
  /* Fondo crema elegante */
  position: relative;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
}

/* Columna del formulario */
.contacto-form-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  font-weight: 700;
}

.contacto-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contacto-form-group {
  display: flex;
  flex-direction: column;
}

.contacto-form-group label {
  font-size: 0.9rem;
  color: var(--color-text-body);
  margin-bottom: 8px;
  font-weight: 600;
}

.contacto-form-group .label-hint {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.contacto-form-group input,
.contacto-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background-color: white;
}

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

.contacto-form-group input:focus,
.contacto-form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(242, 169, 40, 0.15);
}

.contacto-form-group input::placeholder,
.contacto-form-group textarea::placeholder {
  color: #bbb;
}

.btn-contacto {
  padding: 16px 32px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-start;
}

.btn-contacto:hover {
  background: #d48f1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 169, 40, 0.3);
}

/* Columna de imagen */
.contacto-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 500px;
}

.contacto-image {
  width: 100%;
  height: 100%;
}

.contacto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.contacto-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(transparent, rgba(46, 42, 39, 0.9));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.overlay-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  margin: 0;
}

/* Mensajes de confirmación/error */
.cita-mensaje {
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  animation: fadeIn 0.5s ease;
  margin-bottom: var(--space-4);
}

.cita-exito {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

.cita-error {
  background: rgba(198, 40, 40, 0.1);
  color: #c62828;
  border: 1px solid #c62828;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Responsive */
@media (max-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contacto-image-wrapper {
    order: -1;
    /* Imagen arriba en móvil */
    min-height: 300px;
  }

  .contacto-title {
    font-size: 2rem;
  }

  .btn-contacto {
    width: 100%;
  }
}

.amenidades {
  padding: var(--space-12) 0;
  background: var(--color-bg-body);
}

.amenidades p.text-center {
  margin-bottom: var(--space-8) !important;
}

.amenidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.amenidad-card {
  background: white;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid white;
  /* Prevent jump on hover */
  transition: all var(--trans-med);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.amenidad-card:hover {
  border-color: rgba(212, 195, 156, 0.5);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.amenidad-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.amenidad-icon svg {
  width: 40px;
  /* Force consistent size */
  height: 40px;
  fill: currentColor;
}

.amenidad-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
  color: var(--color-primary);
}

.amenidad-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Grid Propiedades
   -------------------------------------------------------------------------- */
.propiedades {
  padding: var(--space-12) 0;
  background: white;
}

/* Filtros por tipo de propiedad */
.filtros-propiedades {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.filtro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  background: white;
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.filtro-btn svg {
  fill: currentColor;
  transition: fill 0.3s ease;
}

.filtro-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(242, 169, 40, 0.15);
}

.filtro-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(46, 42, 39, 0.25);
}

/* Animación de cards al filtrar */
.propiedad-card {
  transition: all var(--trans-med), opacity 0.4s ease, transform 0.4s ease;
}

.propiedad-card.filtro-hidden {
  display: none;
}

/* Mensaje cuando no hay resultados */
.filtro-sin-resultados {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.propiedad-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-subtle);
  transition: all var(--trans-med);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.propiedad-img-container {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0;
}

.propiedad-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-luxury);
}

.propiedad-card:hover .propiedad-img-container img {
  transform: scale(1.08);
  /* Zoom sutil */
}

/* Badge Flotante Minimalista */
.propiedad-precio-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.propiedad-info {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.propiedad-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Features */
.propiedad-features {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.propiedad-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-text-body);
  font-weight: 500;
}

.propiedad-features svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  fill: currentColor;
}

.propiedad-descripcion {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  /* Push button down */
}

.btn-ver-detalles {
  width: 100%;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--trans-fast);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-ver-detalles:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Banner CTA Sólida Inversión (Rediseñado UX/UI)
   -------------------------------------------------------------------------- */
.banner-solida {
  padding: 0 var(--space-4) var(--space-12);
  background: white;
}

.banner-solida-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--space-6);
  gap: 0;
  /* Removematic gap, using specific margins instead */
  background: var(--color-primary);
  background-image: radial-gradient(circle at top center, rgba(242, 169, 40, 0.08), transparent 60%);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(46, 42, 39, 0.25);
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

/* Acento dorado superior en la tarjeta */
.banner-solida-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.banner-solida-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: white;
  margin: 0 0 1.5rem 0;
  /* Specific bottom margin */
  font-weight: 500;
}

.banner-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  /* Larger bottom margin to push button down evenly */
}

.banner-solida-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.banner-solida-btn svg {
  transition: transform 0.3s ease;
  width: 18px;
  height: 18px;
}

.banner-solida-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(242, 169, 40, 0.2);
  transform: translateY(-2px);
}

.banner-solida-btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .banner-solida-inner {
    padding: 3rem var(--space-4);
  }

  .banner-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .banner-text {
    margin-bottom: 1.5rem;
  }

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

/* --------------------------------------------------------------------------
   Modal Luxury (Fixed)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 60, 52, 0.6);
  /* Darker backdrop */
  backdrop-filter: blur(5px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-fast);
}

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

.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.96);
  width: 95%;
  max-width: 1000px;
  max-height: 90vh;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.3);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-med);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active+.modal-container.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal Spinner */
.modal-spinner {
  position: absolute;
  inset: 0;
  background: white;
  z-index: 1070;
  display: none;
  /* Default hidden */
  align-items: center;
  justify-content: center;
}

.modal-spinner.active {
  display: flex;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(26, 60, 52, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  background: white;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-body);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-body);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.modal-close:hover {
  background: #E0E0E0;
  color: var(--color-primary);
}

/* Galería en Modal */
.modal-galeria {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: #1A1A1A;
}

.modal-galeria img {
  width: 100%;
  height: auto;
  /* Natural height based on image ratio */
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-galeria img.active {
  position: relative;
  opacity: 1;
}

.modal-galeria img:not(.active) {
  position: absolute;
  top: 0;
  left: 0;
}

.galeria-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  /* Smaller size */
  height: 36px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--trans-fast);
  color: var(--color-primary);
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.galeria-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.05);
}

.galeria-nav.prev {
  left: 10px;
}

.galeria-nav.next {
  right: 10px;
}

/* Galería Dots */
.galeria-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.galeria-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  /* Prevent shrinking */
  min-height: 10px;
  flex-shrink: 0;
  /* Maintain proportions */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.galeria-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Grid Detalles Modal */
.modal-detalles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.detalle-item {
  background: var(--color-bg-body);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--color-border);
}

.detalle-item .valor {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.detalle-item .etiqueta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Video en Modal */
.modal-video {
  margin-bottom: var(--space-4);
}

.modal-video video {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  background: #000;
}

.modal-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius-md);
}

.modal-footer {
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-precio {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 500;
}

.modal-precio small {
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  margin-left: 4px;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-primary);
  color: white;
  padding: var(--space-12) 0 var(--space-4);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer h4 {
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  font-size: 1.25rem;
}

.footer ul {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-contact svg {
  color: var(--color-accent);
  fill: currentColor;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  margin-top: var(--space-2);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin: 0 10px;
}

.footer-legal a:hover {
  color: white;
}

/* --------------------------------------------------------------------------
   WhatsApp Float
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  border: 2px solid white;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .propiedades-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Mobile Navigation simple */
  /* .nav-links rules removed to support new mobile menu */

  .header {
    justify-content: space-between;
    /* Restore space-between */
  }

  .hero {
    text-align: left;
    padding-bottom: var(--space-6);
    /* Reduced bottom padding */
    min-height: 85vh;
    /* Slightly less than full height */
  }

  .hero-content {
    max-width: 85%;
    /* Constrain width */
    padding: 0 var(--space-2);
  }

  .hero h1 {
    font-size: 1.8rem;
    /* Smaller title */
    margin-bottom: var(--space-2);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--space-4);
    max-width: 100%;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .propiedades-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Mobile Modal */
  .modal-container {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
  }

  .modal-overlay.active+.modal-container.active {
    transform: translateY(0);
  }

  .modal-body {
    padding: var(--space-3) var(--space-4);
  }

  .modal-header {
    padding: var(--space-2) var(--space-4);
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-galeria {
    /* No fixed aspect-ratio - let images define height naturally */
    margin-bottom: var(--space-3);
  }

  .galeria-nav {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .galeria-nav.prev {
    left: 8px;
  }

  .galeria-nav.next {
    right: 8px;
  }

  .modal-footer {
    padding: var(--space-2) var(--space-4);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    flex-direction: column;
    gap: var(--space-2);
  }

  .modal-precio {
    font-size: 1.4rem;
  }
}