/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== VARIABLES (CONFIGURACIÓN PRINCIPAL) ===== */
/* =====================================================================
   ¡HOLA! SI QUIERES CAMBIAR LOS COLORES O TIPOS DE LETRA, ES AQUÍ.
   SOLO DEBES REEMPLAZAR EL CÓDIGO DE COLOR (EJ. #A11630) POR EL NUEVO.
   PUEDES BUSCAR "HTML COLOR PICKER" EN GOOGLE PARA CREAR TUS COLORES.
   EL CÓDIGO ES EL QUE EMPIEZA CON # Y ESTÁ PRESENTE JUNTO AL COLOR.
   ===================================================================== */
:root {
  /* --- COLORES PRINCIPALES --- */
  --color-bg: #FAF7F2; /* Color de fondo general de la página (cremita claro) */
  --color-bg-alt: #F3EDE3; /* Color de fondo alternativo para separar secciones */
  --color-bg-dark: #2C2418; /* Color de fondo oscuro (usado en la sección de Historia) */
  --color-bg-gray: #EAEAEA; /* Color de fondo gris clarito (usado en la sección de Historia) */
  --color-bg-card: #FFFFFF; /* Color de fondo de las cajas blancas de las secciones */
  
  /* --- COLOR PRINCIPAL (Rojos) --- 
     Este es el color que le da la personalidad a la web (botones, iconos, etc) */
  --color-primary: #A11630; /* El rojo principal */
  --color-primary-light: #C93D55; /* Un rojo más claro */
  --color-primary-dark: #7E1026; /* Un rojo más oscuro para el efecto 'al pasar el mouse' por encima */
  --color-accent: #A11630; /* Color de acento (recomendable dejar idéntico al rojo principal) */

  /* --- COLORES DE TEXTO --- */
  --color-text: #2E2E2E; /* Color principal de los textos (casi negro) */
  --color-text-light: #5A5A5A; /* Color para textos secundarios o explicaciones (gris oscuro) */
  --color-text-muted: #8A8A8A; /* Color para textos más chiquitos o notas (gris medio) */
  --color-text-on-dark: #F5F0EB; /* Color de los textos cuando el fondo de atrás es oscuro */
  --color-text-on-dark-muted: #C0B8AE; /* Color de texto secundario sobre un fondo oscuro */
  
  /* --- OTROS COLORES --- */
  --color-border: #E0D8CF; /* Color de las finas líneas y bordes grises */
  --color-white: #FFFFFF; /* Blanco puro */
  
  /* --- DORADOS (Gold) --- */
  --color-gold: #C9A84C; /* Color dorado principal (ej: la línea corta abajo de los títulos) */
  --color-gold-light: #DBBF6E; /* Dorado un poquito más claro */

  /* --- TRANSPARENCIAS (Para oscurecer imágenes o hacer superposición) --- */
  /* El número final "0.55" es qué tan oscuro es. 
     Si pones 0.9 es casi totalmente oscuro, si pones 0.1 es súper transparente */
  --color-overlay: rgba(44, 36, 24, 0.55); /* Capa oscura principal por encima de la primer imagen */
  --color-overlay-light: rgba(44, 36, 24, 0.3); /* Capa oscura mucho más suave */

  /* --- TIPOGRAFÍA (FUENTES / TIPOS DE LETRA) --- 
     Si quieres otra fuente, debes cambiar estos nombres (ej: 'Arial', 'Times New Roman'...) */
  --font-heading: 'Outfit', 'Segoe UI', sans-serif; /* Tipo de letra para los TÍTULOS GRANDES */
  --font-body: 'Nunito', 'Segoe UI', sans-serif; /* Tipo de letra para los TEXTOS NORMALES y PÁRRAFOS */
  --fs-hero-title: clamp(2.5rem, 6vw, 4.5rem);
  --fs-hero-sub: clamp(1rem, 2.5vw, 1.4rem);
  --fs-section-title: clamp(1.8rem, 4vw, 2.8rem);
  --fs-section-sub: clamp(1rem, 2vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-section: clamp(4rem, 8vw, 7rem);

  /* Sizes */
  --max-width: 1200px;
  --nav-height: 70px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 12px rgba(161, 22, 48, 0.08);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-padding {
  padding: var(--space-section) 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-section-title);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--fs-section-sub);
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section-dark .section-title {
  color: var(--color-text-on-dark);
}

.section-dark .section-subtitle {
  color: var(--color-text-on-dark-muted);
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-gray {
  background-color: var(--color-bg-gray);
  color: var(--color-text);
}

.section-gray .section-title {
  color: var(--color-text);
}

.section-gray .section-subtitle {
  color: var(--color-text-light);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.transparent {
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(44, 36, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--color-gold);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-white);
  transition: color var(--transition-base);
  line-height: 1.2;
}

.nav-logo span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.8;
}

.navbar.scrolled .nav-logo {
  color: var(--color-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  position: relative;
  letter-spacing: 0.02em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-light);
  transition: width var(--transition-base);
}

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

.navbar.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--color-gold-light);
}

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

.nav-cta {
  padding: 0.5rem 1.2rem !important;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
  font-weight: 500 !important;
  transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

.navbar.scrolled .nav-cta {
  color: var(--color-white) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.navbar.scrolled .nav-hamburger span {
  background-color: var(--color-white);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 36, 24, 0.3) 0%,
    rgba(44, 36, 24, 0.5) 50%,
    rgba(44, 36, 24, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero-pretitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero-title);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: var(--fs-hero-sub);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-description {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.9rem 2.2rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.1s forwards;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.hero-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(161, 22, 48, 0.35);
  color: var(--color-white);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease infinite;
}

/* ===== LA CASA ===== */
.casa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

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

.casa-image:hover img {
  transform: scale(1.03);
}

.casa-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.casa-text p {
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.casa-text p:last-child {
  margin-bottom: 0;
}

.casa-highlight {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* ===== HISTORIA ===== */
.historia-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  text-align: center;
  color: var(--color-primary); /* Ajustado para mayor contraste en gris claro */
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  position: relative;
  padding: 0 var(--space-lg);
}

.historia-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-primary-light);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: 0;
  font-family: var(--font-heading);
}

.historia-quote::after {
  content: '\201D';
  font-size: 4rem;
  color: var(--color-primary-light);
  opacity: 0.3;
  position: absolute;
  bottom: -3.5rem;
  right: 0;
  font-family: var(--font-heading);
}

.historia-timeline {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.timeline-item {
  text-align: center;
  max-width: 280px;
  position: relative;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary); /* Ajustado para contraste sobre fondo claro */
  margin-bottom: var(--space-xs);
}

.timeline-text {
  font-size: var(--fs-small);
  color: var(--color-text-light); /* Ajustado para asegurar buena lectura en fondo claro */
  line-height: 1.6;
}

.timeline-connector {
  display: none;
}

/* ===== ESPACIOS ===== */
.espacios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.espacio-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
}

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

.espacio-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.espacio-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.espacio-card ul {
  list-style: none;
}

.espacio-card li {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.espacio-card li:last-child {
  border-bottom: none;
}

.espacio-card li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== GALERÍA ===== */
.galeria-section {
  background-color: var(--color-bg);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: var(--space-sm);
}

.galeria-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.galeria-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.galeria-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.galeria-item.tall {
  grid-row: span 2;
}

.galeria-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-fast);
}

.galeria-item:hover .galeria-img {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .galeria-item.featured, .galeria-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 10, 5, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 85%;
  position: relative;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--color-primary-light);
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background-color var(--transition-fast);
  z-index: 2001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--color-primary);
}

.lightbox-prev {
  left: -20px;
}

.lightbox-next {
  right: -20px;
}

@media (max-width: 768px) {
  .lightbox-prev { left: -10px; }
  .lightbox-next { right: -10px; }
}

/* ===== PARQUE ===== */
.parque {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.parque-bg {
  position: absolute;
  inset: 0;
}

.parque-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1);
}

.parque-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 24, 0.35);
}

.parque-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: var(--color-white);
}

.parque-content .section-title {
  color: var(--color-white);
  text-align: left;
}

.parque-content .section-title::after {
  margin: var(--space-sm) 0 0;
}

.parque-content p {
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-top: var(--space-md);
  font-size: 1.05rem;
}

/* ===== UBICACION ===== */
.ubicacion-wrapper {
  text-align: center;
}

.ubicacion-wrapper > p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

/* ===== CONTACTO ===== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contacto-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.contacto-info > p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.contacto-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contacto-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contacto-detail-text {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

.contacto-detail-text strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Form */
.contacto-form {
  background: var(--color-bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.contacto-form h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(161, 22, 48, 0.1);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-error-msg {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 4px;
  display: none;
}

.form-group input.error ~ .form-error-msg,
.form-group textarea.error ~ .form-error-msg {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(161, 22, 48, 0.3);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-lg);
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.form-success h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form-success p {
  color: var(--color-text-light);
  font-size: var(--fs-small);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark-muted);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.footer-brand p {
  font-size: var(--fs-small);
  line-height: 1.6;
}

.footer-links h5 {
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-sm);
}

.footer-links a {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-text-on-dark-muted);
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  font-size: 0.8rem;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    transition: right var(--transition-base);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    padding: var(--space-lg);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text) !important;
    font-size: 1rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .casa-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .casa-image {
    max-height: 400px;
  }

  .historia-timeline {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .espacios-grid {
    grid-template-columns: 1fr;
  }

  .parque {
    min-height: 450px;
  }

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

  .parque-content {
    padding: var(--space-md);
  }

  .map-container iframe {
    height: 300px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
