/* ============================================
   ALMAS DEL SUR - STYLE.CSS
   Vibe: MINIMAL_TYPO (Limpio, Etéreo, Silencioso)
   Version: 2.1
   ============================================ */

/* ============================================
   VARIABLES CSS GLOBALES
   ============================================ */
:root {
  /* ========================================
     PALETA DE COLORES - LIGHT MODE (Base)
     ======================================== */
  /* Colores Principales */
  --primary-color: #8E9775;       /* Sage Green */
  --primary-hover: #6D7756;
  --secondary-color: #E28E8E;     /* Soft Pink */
  --secondary-hover: #D17D7D;
  --accent-color: #AF9164;        /* Gold/Earth */
  --accent-hover: #8F764E;
  
  /* Colores de Fondo */
  --background: #FAF9F6;          /* Off-White */
  --background-alt: #F2F0E9;      /* Beige muy suave */
  
  /* Colores de Texto */
  --text-color: #2D2D2D;          /* Gris muy oscuro (no negro puro) */
  --text-light: #5D5D5D;
  --text-muted: #8D8D8D;
  
  /* Utilitarios */
  --white: #FFFFFF;
  --border-color: #E5E5E5;
  --error-color: #D32F2F;
  --success-color: #388E3C;
  
  /* ========================================
     TIPOGRAFÍA (MINIMAL_TYPO)
     ======================================== */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Pesos */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700; /* Poco uso en este vibe */
  
  /* Escala Tipográfica */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3.5rem;    /* 56px - Hero Mobile */
  --font-size-6xl: 4.5rem;    /* 72px - Hero Desktop */

  /* ========================================
     ESPACIADO Y TAMAÑOS
     ======================================== */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2.5rem;   /* 40px */
  --spacing-xl: 4rem;     /* 64px */
  --spacing-2xl: 6rem;    /* 96px */
  --spacing-3xl: 8.75rem; /* 140px (Según JSON) */
  
  /* Espaciado de Secciones (Base Mobile) */
  --section-padding: 80px 0; 
  /* Nota: En desktop subiremos a 140px */

  --container-padding: 0 20px;
  
  /* ========================================
     BORDES Y RADIOS (Vibe: Minimal/Sharp)
     ======================================== */
  --border-width: 1px;
  
  /* Radios sutiles definidos en JSON */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-cards: 4px;
  --radius-buttons: 2px;
  --radius-inputs: 2px;
  --radius-circle: 50%;
  
  /* ========================================
     SOMBRAS Y EFECTOS (Vibe: MINIMAL_TYPO)
     Minimal Typo usa pocas sombras, prefiere bordes finos o espacio negativo.
     ======================================== */
  --shadow-sm: none; 
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.04); /* Muy sutil para elevar apenas */
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.06);
  
  /* ========================================
     TRANSICIONES
     ======================================== */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  
  /* ========================================
     Z-INDEX LAYERS
     ======================================== */
  --z-back: -1;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-sticky: 1020;
}

/* ============================================
   DARK MODE VARIABLES
   Activado según proyecto-config.json
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    /* Paleta Dark Mode */
    --primary-color: #A7AF8E;     /* Sage más claro para contraste */
    --primary-hover: #8E9775;
    
    --background: #121212;        /* Casi negro */
    --background-alt: #1E1E1E;    /* Gris oscuro */
    
    --text-color: #F5F5F5;        /* Blanco humo */
    --text-light: #B0B0B0;
    --text-muted: #666666;
    
    --white: #FFFFFF;             /* Se mantiene para elementos específicos */
    --border-color: #333333;
    
    /* Sombras Dark Mode (más sutiles aún) */
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    
    /* Ajuste de intensidad de imágenes en dark mode */
    --image-opacity: 0.9;
  }
}

/* Soporte manual para toggle (si se implementara JS luego) */
html[data-theme="dark"] {
    --primary-color: #A7AF8E;
    --background: #121212;
    --background-alt: #1E1E1E;
    --text-color: #F5F5F5;
    --text-light: #B0B0B0;
    --text-muted: #666666;
    --border-color: #333333;
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
}
/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */

/* Reset Universal */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTML y Body */
html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base 1rem = 16px */
}

body {
  font-family: var(--font-body); /* Montserrat */
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-light); /* Peso 300 para elegancia */
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Prevenir scroll cuando mobile menu está abierto */
body.menu-open {
  overflow: hidden;
}

/* Imágenes y Medios */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-color);
}

/* Listas */
ul,
ol {
  list-style: none;
}

/* Botones (Reset base) */
button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-base);
}

/* Inputs y Elementos de Formulario */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-inputs); /* 2px */
  padding: var(--spacing-sm);
  background-color: var(--white);
  color: var(--text-color);
  width: 100%;
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ========================================
   TIPOGRAFÍA (Vibe: MINIMAL_TYPO)
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); /* Cormorant Garamond */
  font-weight: var(--font-weight-medium); /* 500 */
  line-height: 1.1; /* Line-height apretado para estilo editorial */
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

/* Escala Tipográfica */
h1 { font-size: var(--font-size-5xl); } /* 3.5rem (Mobile) */
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--spacing-sm);
  max-width: 70ch; /* Lectura óptima */
}

strong {
  font-weight: var(--font-weight-medium);
  color: var(--primary-color); /* Destacamos negritas con color primario */
}

/* Selección de Texto (Personalización) */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ========================================
   SCROLLBAR PERSONALIZADA (Webkit)
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-circle);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
/* ============================================
   LAYOUT Y CONTENEDORES
   ============================================ */

/* Contenedor Principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding); /* 20px laterales base */
  width: 100%;
}

/* Contenedor Fluido (Para carrusel/mosaico) */
.container-fluid {
  width: 100%;
  padding: 0;
  overflow: hidden; /* Evita scroll horizontal indeseado */
}

/* Secciones Generales */
section {
  padding: var(--section-padding); /* Base mobile (80px) */
  position: relative;
  width: 100%;
}

/* Header de Secciones (Títulos) */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl); /* Espacio grande antes del contenido (96px) */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--font-size-4xl); /* Grande y elegante */
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color); /* Títulos en Sage Green */
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: var(--text-light);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.05em; /* Un poco de aire entre letras */
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

/* ========================================
   SISTEMAS DE GRID (Mobile First)
   Por defecto 1 columna, se expanden en Capa 7
   ======================================== */
.grid-2, 
.grid-3, 
.grid-4,
.servicios-grid,
.testimonios-grid,
.nosotros-grid,
.ubicacion-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 Columna en móvil */
  gap: var(--spacing-lg);     /* Separación de 40px */
}

/* ========================================
   FLEX UTILITIES
   ======================================== */
.flex { display: flex; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* Espaciadores (Helpers) */
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.text-center { text-align: center; }

/* ========================================
   ANIMACIONES BASE (Scroll Reveal)
   ======================================== */
/* Clase base para elementos que aparecerán */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

/* Clase activa (agregada por JS o IntersectionObserver) */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */

/* Header Principal (Sticky & Transparente) */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  background-color: transparent; /* Inicio transparente */
  transition: background-color var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
  padding: var(--spacing-md) 0;
}

/* Estado Scrolled (Vía JS) */
.main-header.scrolled {
  background-color: rgba(250, 249, 246, 0.95); /* Off-white translúcido */
  backdrop-filter: blur(10px); /* Efecto vidrio esmerilado sutil */
  padding: var(--spacing-xs) 0;
  box-shadow: var(--shadow-md);
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo (Tipográfico) */
.logo-link {
  text-decoration: none;
  z-index: var(--z-fixed); /* Por encima del menú móvil */
  position: relative;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem; /* ~28px */
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Navegación Desktop (Oculta en Mobile) */
.main-nav {
  display: none; /* Mobile first: oculto por defecto */
}

/* CTA del Header (Reservar Turno) */
.main-header .btn-primary {
  display: none; /* Oculto en mobile, aparece en desktop */
}

/* ========================================
   MENÚ HAMBURGUESA (Mobile)
   ======================================== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  background: transparent;
  padding: 0;
  z-index: var(--z-sticky);
  margin-left: auto; /* Empuja a la derecha si hace falta */
}

.hamburger-line {
  width: 100%;
  height: 2px; /* Líneas finas para estilo Minimal */
  background-color: var(--text-color);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: 1px;
}

/* Animación Hamburguesa -> X */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

/* ========================================
   MENÚ MÓVIL (Off-Canvas)
   ======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Oculto a la derecha */
  width: 100%;
  max-width: 320px; /* Ancho máximo panel */
  height: 100vh;
  background-color: var(--background);
  padding: 80px var(--spacing-lg) var(--spacing-lg);
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0); /* Easing suave */
  z-index: var(--z-fixed); /* Debajo del botón hamburguesa */
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: left;
}

.mobile-nav-list a {
  font-family: var(--font-heading);
  font-size: 1.5rem; /* Grande para tocar fácil */
  color: var(--text-color);
  border-bottom: 1px solid transparent;
  padding-bottom: 5px;
}

.mobile-nav-list a:hover {
  color: var(--primary-color);
  padding-left: 10px; /* Pequeño desplazamiento al hover */
}
/* ============================================
   HERO SECTION (Video Background)
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh; /* Altura completa del viewport */
  display: flex;
  align-items: center; /* Centrado vertical */
  justify-content: center; /* Centrado horizontal */
  color: var(--white); /* Texto blanco sobre video */
  padding: 0; /* El padding lo maneja el contenido interno */
  overflow: hidden;
  margin-top: 0; /* Reset por si acaso */
}

/* Contenedor del Video */
.video-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Video ajustado (Cover) */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Clave: cubre el área sin deformar */
  object-position: center;
}

/* Overlay opcional para legibilidad */
.video-background-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Oscurecimiento leve (20%) */
  z-index: 1;
}

/* Contenido del Hero */
.hero-content {
  position: relative;
  z-index: 2; /* Sobre el video y overlay */
  text-align: center;
  width: 100%;
  padding: 0 var(--spacing-md);
  margin-top: var(--spacing-xl); /* Compensar visualmente el header */
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5.5rem); /* Responsive fluido */
  font-weight: var(--font-weight-medium);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Sombra sutil para lectura */
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--font-weight-light);
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Botones en Hero */
.hero-ctas {
  display: flex;
  flex-direction: column; /* Mobile: uno abajo del otro */
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
}

/* ============================================
   BOTONES (Componentes)
   Radius: 2px (Minimal)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px; /* Padding generoso */
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em; /* Tracking amplio */
  border-radius: var(--radius-buttons);
  border: 1px solid transparent; /* Borde fino */
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

/* Botón Grande */
.btn-large {
  padding: 16px 40px;
  font-size: var(--font-size-base);
}

/* Botón Primario (Sage Green) */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Botón Secundario (Outline Blanco en Hero) */
.hero-section .btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.hero-section .btn-secondary:hover {
  background-color: var(--white);
  color: var(--text-color);
}

/* Botón Texto (Estilo link con flecha) */
.btn-text {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.btn-text:hover {
  border-bottom-color: var(--primary-color);
}

/* ============================================
   CARDS BASE
   Estilo Minimal: Bordes finos, fondos limpios
   ============================================ */
.card, 
.servicio-card, 
.testimonio-card {
  background-color: var(--white);
  border: 1px solid var(--border-color); /* Borde sutil */
  border-radius: var(--radius-cards); /* 4px */
  padding: var(--spacing-lg);
  transition: var(--transition-base);
  height: 100%; /* Igualar alturas en grid */
  display: flex;
  flex-direction: column;
}

.servicio-card:hover, 
.testimonio-card:hover {
  border-color: var(--primary-color); /* Toque de color al hover */
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Iconos en Cards */
.servicio-icon {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  /* SVG hereda tamaño del contenedor o se define inline */
}

.servicio-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5; /* Líneas finas (Minimal) */
}

/* Títulos de Cards */
.servicio-title {
  font-size: 1.5rem; /* 24px */
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
}

.servicio-description {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* Badges / Etiquetas */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--background-alt);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}
/* ============================================
   SECCIONES ESPECÍFICAS
   ============================================ */

/* ========================================
   SECCIÓN: NOSOTROS (Filosofía)
   ======================================== */
.nosotros-subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.nosotros-text p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  line-height: 1.8; /* Lectura relajada */
}

/* Stats (Números Destacados) */
.nosotros-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-lg);
}

.stat-item {
  flex: 1;
  min-width: 100px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-color);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Imagen Nosotros */
.nosotros-image img {
  border-radius: var(--radius-md);
  aspect-ratio: 4/5; /* Formato retrato elegante */
  object-fit: cover;
  width: 100%;
}

/* ========================================
   SECCIÓN: CARRUSEL EXPERIENCIA (Scroll Snap)
   Sin dependencias JS pesadas
   ======================================== */
.carrusel-section {
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.carousel-snap-track {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* Clave: magnetismo al scroll */
  padding-bottom: var(--spacing-md);
  padding-left: var(--container-padding); /* Espacio inicial */
  padding-right: var(--container-padding);
  -webkit-overflow-scrolling: touch; /* Suavidad en iOS */
  scrollbar-width: none; /* Ocultar scrollbar Firefox */
}

.carousel-snap-track::-webkit-scrollbar {
  display: none; /* Ocultar scrollbar Chrome/Safari */
}

.carousel-item {
  flex: 0 0 80%; /* Mobile: Muestra 80% de la imagen para invitar al scroll */
  scroll-snap-align: center; /* Se centra al soltar */
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 400px; /* Altura fija */
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base);
}

.carousel-indicator {
  text-align: center;
  margin-top: var(--spacing-sm);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-style: italic;
}

/* ========================================
   SECCIÓN: TESTIMONIOS (Grid de 6)
   ======================================== */
.testimonios-section {
  background-color: var(--background-alt); /* Fondo suave para separar */
}

/* Estilos específicos de la card de testimonio */
.testimonio-card {
  border: none; /* Más limpio */
  background-color: var(--background); /* Blanco sobre beige */
  justify-content: space-between;
}

.testimonio-rating {
  color: #D4AF37; /* Dorado metálico */
  margin-bottom: var(--spacing-sm);
  display: flex;
  gap: 2px;
}

.testimonio-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.testimonio-author {
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-sm);
  font-size: var(--font-size-sm);
}

.author-name {
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
}

.author-location {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ========================================
   SECCIÓN: MOSAICO ATMÓSFERA (Masonry CSS)
   ======================================== */
.mosaico-section {
  padding-bottom: 0;
}

.mosaico-header {
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.masonry-grid {
  column-count: 2; /* Mobile: 2 columnas */
  column-gap: var(--spacing-sm);
  padding: 0 var(--spacing-sm);
}

.masonry-item {
  break-inside: avoid; /* Evita que las imágenes se corten entre columnas */
  margin-bottom: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  cursor: zoom-in;
}

.masonry-item:hover img {
  transform: scale(1.05); /* Zoom sutil al hover */
}

/* Modal de Imagen (Dialog) */
.image-modal-dialog {
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  /* Centrado nativo de dialog */
}

.image-modal-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  position: relative;
}

.image-modal-dialog img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  padding: 10px;
}

/* ========================================
   SECCIÓN: UBICACIÓN
   ======================================== */
.ubicacion-info {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-cards);
}

.ubicacion-mapa iframe {
  width: 100%;
  border-radius: var(--radius-cards);
  height: 300px; /* Altura mobile */
  background-color: var(--background-alt);
}

/* ========================================
   FOOTER (Dark Contrast)
   ======================================== */
.main-footer {
  background-color: #1A1A1A; /* Contraste fuerte */
  color: #E5E5E5;
  padding-top: var(--spacing-2xl);
  font-size: var(--font-size-sm);
}

.footer-logo-text {
  color: var(--white);
  font-size: 2rem;
}

.footer-description {
  color: #999;
  margin-top: var(--spacing-sm);
  max-width: 300px;
}

.footer-title {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links li, 
.footer-contact li {
  margin-bottom: 12px;
}

.footer-links a, 
.footer-contact a {
  color: #999;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Redes Sociales (Grid de 6 iconos) */
.social-links {
  display: flex;
  flex-wrap: wrap; /* Permite que bajen si no entran */
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: var(--white);
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-md) 0;
  text-align: center;
  color: #666;
}

.credits a {
  color: #888;
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Brand color */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: var(--z-fixed);
  transition: transform var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}
/* ============================================
   MEDIA QUERIES - RESPONSIVE
   Mobile First: Base es 320px+ (ya definido arriba)
   ============================================ */

/* ========================================
   TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
  
  :root {
    --container-padding: 0 40px; /* Más aire lateral */
  }

  /* Tipografía Escala */
  h1 { font-size: 4rem; }
  
  /* Layout Grids - Pasamos a 2 Columnas */
  .grid-2, 
  .nosotros-grid,
  .ubicacion-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center; /* Centrado vertical imagen/texto */
  }

  /* Servicios: 2 columnas */
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonios: 2 columnas (Ideal para 6 items: 3 filas de 2) */
  .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: 2 columnas (2 arriba, 2 abajo) */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Carrusel: Items más pequeños para ver más a la vez */
  .carousel-item {
    flex: 0 0 45%; /* Muestra 2 completos + un poco del 3ro */
  }
  
  /* Masonry: 3 columnas en Tablet */
  .masonry-grid {
    column-count: 3;
  }
  
  /* Ubicación Mapa */
  .ubicacion-mapa iframe {
    height: 100%; /* Que ocupe toda la altura de la columna */
    min-height: 400px;
  }
}

/* ========================================
   DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  
  :root {
    --section-padding: 140px 0; /* Espaciado "Minimal Typo" completo */
    --container-padding: 0 60px;
  }

  /* Tipografía Hero Desktop */
  .hero-title {
    font-size: var(--font-size-6xl); /* 4.5rem+ */
    margin-bottom: var(--spacing-lg);
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }

  /* ====================================
     HEADER DESKTOP
     ==================================== */
  .hamburger {
    display: none; /* Chau hamburguesa */
  }
  
  /* Mostrar Menú Horizontal */
  .main-nav {
    display: block;
  }
  
  .nav-list {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
  }
  
  .nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 0;
    position: relative;
  }
  
  /* Underline animado al hover */
  .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
  }
  
  .nav-list a:hover::after {
    width: 100%;
  }

  /* Mostrar Botón Header */
  .main-header .btn-primary {
    display: inline-flex;
  }

  /* ====================================
     GRIDS DESKTOP
     ==================================== */
  
  /* 3 Columnas */
  .grid-3,
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Testimonios: 3 columnas (Ideal para 6 items: 2 filas de 3) */
  .testimonios-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer: 4 columnas en línea */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Carrusel: Items más elegantes */
  .carousel-item {
    flex: 0 0 30%; /* Muestra 3 a la vez */
  }

  /* Masonry: 4 columnas en Desktop */
  .masonry-grid {
    column-count: 4;
  }

  /* Efectos Hover Desktop (No en táctil) */
  .carousel-item img:hover {
    transform: scale(1.03);
  }
  
  /* Ajuste Hero CTA */
  .hero-ctas {
    flex-direction: row; /* Uno al lado del otro */
  }
}

/* ========================================
   LARGE DESKTOP (1440px+)
   ======================================== */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 5.5rem; /* Título gigante editorial */
  }
}

/* ========================================
   PRINT (Impresión)
   ======================================== */
@media print {
  .main-header, .whatsapp-float, .hero-section { display: none; }
  body { color: black; background: white; }
  a { text-decoration: underline; color: black; }
}
/* ============================================
   CAPA 8: DARK MODE REFINAMIENTOS & AJUSTES FINALES
   ============================================ */

/* Ajustes Visuales Específicos para Dark Mode */
@media (prefers-color-scheme: dark) {
  
  /* Atenuar imágenes para reducir fatiga visual */
  img, video {
    opacity: 0.9;
    transition: opacity var(--transition-base);
  }
  
  img:hover {
    opacity: 1; /* Vuelven a brillar al pasar el mouse */
  }

  /* Los mapas de Google suelen ser muy brillantes, bajamos intensidad */
  .ubicacion-mapa iframe {
    filter: invert(90%) hue-rotate(180deg); /* Truco para invertir mapa */
    opacity: 0.8;
  }
  
  /* Ajuste de bordes para mayor definición */
  .card, 
  .servicio-card, 
  .testimonio-card,
  .ubicacion-info,
  input, select, textarea {
    border-color: rgba(255, 255, 255, 0.1);
  }

  /* Sombras más sutiles (casi invisibles en dark) */
  .main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    background-color: rgba(18, 18, 18, 0.95);
  }
}

/* Soporte para Toggle Manual (Clase .dark-mode añadida por JS) */
html.dark-mode img, 
html.dark-mode video {
  opacity: 0.9;
}

html.dark-mode .ubicacion-mapa iframe {
  filter: invert(90%) hue-rotate(180deg);
}

/* ============================================
   UTILIDADES FINALES DE ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ============================================
   PATCH V2.1 - CORRECCIONES VISUALES
   ============================================ */

/* 1. FIX MENÚ HOVER EN VIDEO HERO
   Cuando el header es transparente, mantenemos blanco + brillo */
.main-header:not(.scrolled) .nav-list a {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.main-header:not(.scrolled) .nav-list a:hover {
    color: var(--white); /* No cambiar a verde */
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.8); /* Efecto Glow */
}

/* 1b. MENÚ EN HEADER SCROLLED (Fondo claro)
   Aquí sí usamos el verde porque el fondo es blanco */
.main-header.scrolled .nav-list a {
    color: var(--text-color);
    text-shadow: none;
}
.main-header.scrolled .nav-list a:hover {
    color: var(--primary-color);
}

/* 2. FIX BOTÓN FILOSOFÍA (HOVER)
   Forzamos el color de texto oscuro al pasar el mouse */
.hero-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-color) !important; /* !important para asegurar contraste */
    border-color: var(--white);
    font-weight: 500;
}

/* 3 & 4. FIX CONTRASTE EN TARJETAS BLANCAS (Servicios + Mapa)
   El gris muy claro (300) se pierde. Lo subimos a (400) y oscurecemos. */
.servicio-description,
.ubicacion-info p,
.ubicacion-direccion,
.ubicacion-indicaciones p {
    color: #4A4A4A; /* Gris más oscuro que --text-light */
    font-weight: 400; /* Peso normal en lugar de light */
}

.ubicacion-direccion strong {
    color: var(--text-color); /* Negro suave para dirección principal */
    font-weight: 600;
}

/* 5. PREPARACIÓN FOOTER (4 Columnas + Social Horizontal) */

/* Ajuste de Grilla para 4 columnas (cuando GEM3 agregue la columna "Legal") */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: var(--spacing-lg); /* Reducir margen inferior */
    }
}

/* Nueva clase para contenedor de Redes Sociales Centrado (Horizontal) */
.social-centered-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea divisoria sutil */
    padding-bottom: var(--spacing-md);
}

/* Ajuste de iconos para esta nueva disposición */
.social-centered-row a {
    width: 44px; /* Un poco más grandes */
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-centered-row a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ============================================
   PATCH V2.2 - REFUERZO DE JERARQUÍA Y CONTRASTE
   ============================================ */

/* 1. TARJETAS DE TRATAMIENTOS (Títulos)
   "Medicina Estética", "Rituales de Spa", etc.
   Antes: Regular (500) -> Ahora: Bold (700) + Color Sólido */
.servicio-title {
    font-weight: 700 !important;
    color: #111111 !important; /* Negro casi puro */
    letter-spacing: -0.01em; /* Un poco más compacto para títulos bold */
}

/* 2. UBICACIÓN - DIRECCIÓN SUPERIOR
   "Av. Siete Lagos 14450..." (El texto suelto arriba) */
.ubicacion-descripcion {
    font-weight: 600 !important;
    color: #111111 !important;
    font-size: 1.15rem; /* Un pelín más grande */
}

/* 3. UBICACIÓN - TÍTULO CÓMO LLEGAR
   "Cómo llegar" */
.indicaciones-title {
    font-weight: 700 !important;
    color: var(--primary-color) !important; /* Sage Green fuerte */
    text-transform: uppercase; /* Opcional: para que parezca más "label" */
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* 4. UBICACIÓN - DIRECCIÓN DENTRO DEL RECUADRO
   Refuerzo del strong dentro del bloque gris */
.ubicacion-direccion strong {
    font-weight: 700 !important;
    color: #000000 !important;
}

/* ============================================
   PATCH V3 - FIX CRÍTICO DARK MODE
   Resuelve conflicto con Patch V2.2 y fondos de tarjetas
   ============================================ */

@media (prefers-color-scheme: dark) {
    
    /* 1. REVERTIR TEXTOS NEGROS DE PATCH V2.2
       Forzamos a blanco el texto que habíamos forzado a negro */
    .servicio-title,
    .ubicacion-descripcion,
    .ubicacion-direccion strong {
        color: var(--text-color) !important; /* Vuelve a color claro (#F5F5F5) */
    }

    .indicaciones-title {
        color: var(--primary-color) !important; /* Mantiene el Sage Green */
    }

    /* 2. OSCURECER TARJETAS BLANCAS
       Las cards usaban var(--white), aquí las forzamos al color de fondo alternativo */
    .card, 
    .servicio-card, 
    .testimonio-card,
    .ubicacion-info {
        background-color: var(--background-alt); /* Gris oscuro (#1E1E1E) */
        border-color: rgba(255, 255, 255, 0.1); /* Borde sutil */
    }

    /* 3. INPUTS DE FORMULARIO
       Para que no sean cajas blancas brillantes */
    input, textarea, select {
        background-color: var(--background-alt);
        color: var(--white);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* 4. SOPORTE PARA TOGGLE MANUAL (.dark-mode)
   Si usas el botón de cambio de tema */
html.dark-mode .servicio-title,
html.dark-mode .ubicacion-descripcion,
html.dark-mode .ubicacion-direccion strong {
    color: var(--text-color) !important;
}

html.dark-mode .card, 
html.dark-mode .servicio-card, 
html.dark-mode .testimonio-card,
html.dark-mode .ubicacion-info {
    background-color: var(--background-alt);
    border-color: rgba(255, 255, 255, 0.1);
}