/* ==================================================================== */
/*                            0. ESTILOS GLOBALES                       */
/* ==================================================================== */

/* Reset y base */
* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img,
picture,
figure,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: Arial, sans-serif;
}

/* Fuentes */
@font-face {
  font-family: 'BauhausCustom';
  src: url('fonts/Bauhaus93.ttf') format('truetype');
}

/* Variables CSS */
:root {
  --nav-height: 48px;
  --nav-background: rgba(31, 116, 50, 0.72);
  --text-color: #f5f5f7;
  --hover-color: #ffffff;
  --border-color: rgba(255, 255, 255, 0.24);
}

/* Estilos de Botones Generales */
.btn {
  display: inline-block;
  background-color: #6dd095;
  color: #fefefe;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(109, 208, 149, 0.5);
}

.btn:hover,
.btn:focus {
  background-color: #95ebde;
  box-shadow: 0 6px 12px rgba(149, 235, 222, 0.7);
}

.btn-card {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  text-align: center;
  padding: 0.6rem 1.2rem;
  background-color: #276738;
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-card:hover {
  background-color: #3c8844;
  color: #ffffff;
  transform: scale(1.05);
}

.btn-card.disabled {
  background-color: #ccc;
  color: #666;
  pointer-events: none;
  cursor: not-allowed;
}

/* ==================================================================== */
/* FIX: ALINEACIÓN VERTICAL DE BOTONES EN TARJETAS  */
/* ==================================================================== */

/* 1. Convierte todas las tarjetas en contenedores flexibles verticales */
.tarjeta-iniciativa,
.tarjeta-tour,
.tarjeta-producto {
  display: flex;
  flex-direction: column;
  width: min(100%, 300px);
  max-width: 100%;
}

/* 2. Haz que el contenido principal de cada tarjeta crezca para empujar el botón hacia abajo */
.tarjeta-iniciativa .contenido-extra,
.tarjeta-tour .contenido-tour,
.tarjeta-producto > p { /* Usamos '>' para seleccionar solo el párrafo que es hijo directo */
  flex-grow: 1;
}

/* Estilos de Títulos de Sección */
.seccion-titulo {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
}

/* ==================================================================== */
/*                            1. HEADER Y NAVEGACIÓN                    */
/* ==================================================================== */

.apple-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: var(--nav-background);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
}

.apple-nav-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.apple-logo img {
  height: 34px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.apple-logo {
  margin-right: 32px;
}

.apple-nav-desktop ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2em;
}

.apple-nav-desktop li a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.85;
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0 0.2em;
  position: relative; /* Clave para posicionar el subrayado */
  transition: color 0.3s ease, opacity 0.3s ease; /* Transición suave */
}

/* El subrayado animado (inicialmente invisible) */
.apple-nav-desktop li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px; /* Distancia del texto al subrayado */
  width: 100%;
  height: 2px;
  background-color: var(--hover-color);
  transform: scaleX(0); /* Empieza con ancho 0 */
  transform-origin: center; /* La animación crece desde el centro */
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* Transición suave */
}

/* Muestra el subrayado al pasar el mouse O cuando el enlace está activo */
.apple-nav-desktop li a:hover,
.apple-nav-desktop li a.active-link {
  color: var(--hover-color);
  opacity: 1;
}

.apple-nav-desktop li a:hover::after,
.apple-nav-desktop li a.active-link::after {
  transform: scaleX(1); /* Anima el subrayado a su ancho completo */
}

.apple-nav-icons {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.apple-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger-line:first-child { top: 7px; }
.hamburger-line:last-child { top: 12px; }

/* Navegación Móvil */
.apple-nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #3c8844;
  z-index: 1100;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.apple-nav-mobile.is-open {
  transform: translateY(0);
}

.apple-nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 18px;
  border-bottom: 1px solid var(--border-color);
}
.apple-nav-mobile-header .apple-logo {
  height: 100%;
  align-items: center;
  display: flex;
}
.close-mobile-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  margin-left: 12px;
}

.apple-nav-mobile ul {
  list-style: none;
  padding: 40px 0 0 0;
  margin: 0;
}

.apple-nav-mobile li {
  border-bottom: 1px solid var(--border-color);
}

.apple-nav-mobile li a {
  display: block;
  padding: 1rem 0;
  color: var(--text-color);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.apple-nav-mobile li a:hover {
  opacity: 1;
}

/* ==================================================================== */
/*                            2. BOTÓN VOLVER ARRIBA                    */
/* ==================================================================== */
#btn-volver-arriba {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1200;
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  box-shadow: 0 4px 8px rgba(31, 116, 50, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#btn-volver-arriba.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==================================================================== */
/*                            3. SECCIÓN INICIO (HERO)                  */
/* ==================================================================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000000;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  background: url('img/fondo/fondo.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.contenido-hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.logo-hero {
  width: 280px;
  height: auto;
  margin-bottom: 25px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.logo-hero:hover {
  transform: scale(1.02);
}

.contenido-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.2rem;
  margin-bottom: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(1, 1, 1, 0.8);
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  padding: 0 1rem;
}

.contenido-hero h1::after {
  content: '';
  width: 120px;
  height: 4px;
  background: #48954c;
  margin: 1rem auto 0;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(72, 149, 76, 0.3);
}

.contenido-hero p {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  font-weight: 500;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  padding: 0 1.5rem;
  position: relative;
}

.hero-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 2rem;
  background-image: url('img/fondo/p4.jpg'); /* Imagen de fondo */
  background-size: cover;
  background-position: center;
}
.hero-glass .contenido-hero {
  max-width: 600px;
}
.tarjeta-glass {
  background: rgba(255, 255, 255, 0.15); /* El fondo de "cristal" */
  backdrop-filter: blur(12px); /* El efecto de desenfoque */
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}
.tarjeta-glass .logo-hero {
  width: 180px;
  margin-bottom: 1rem;
}
.tarjeta-glass h1,
.tarjeta-glass p {
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}


/* ==================================================================== */
/*                            4. SECCIÓN INICIATIVAS                    */
/* ==================================================================== */
#iniciativas {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000000;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  background: url('img/fondo/fondo2.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

#iniciativas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.388);
  z-index: 1;
  pointer-events: none;
}

#iniciativas > .contenido-iniciativas {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
}

#iniciativas h2 {
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  color: #2a2929d1;
}

.tarjetas-iniciativas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: stretch;
}

/* Tarjetas de Iniciativa */
.tarjeta-iniciativa {
  background: #565756d2;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(212, 201, 201, 0.1);
  flex: 1 1 minmax(260px, 300px);
  width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.3s ease;
  text-align: left;
}

.tarjeta-iniciativa:hover {
  transform: translateY(-5px);
}

/* Oculta el botón por defecto en TODAS las tarjetas y prepara la transición */
.tarjeta-iniciativa .btn-card,
.tarjeta-tour .btn-card,
.tarjeta-producto .btn-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Muestra el botón cuando el cursor está sobre CUALQUIER tarjeta */
.tarjeta-iniciativa:hover .btn-card,
.tarjeta-tour:hover .btn-card,
.tarjeta-producto:hover .btn-card {
  opacity: 1;
  transform: translateY(0);
}

.tarjeta-iniciativa h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* Carrusel de Iniciativas */
.carrusel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.carrusel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.carrusel img.activo {
  opacity: 1;
}

/* Contenido extra de Iniciativas */
.contenido-extra {
  display: block; /* Siempre visible por defecto */
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
}

/* ==================================================================== */
/*                            5. SECCIÓN SERVICIOS                      */
/* ==================================================================== */
#servicios {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url('img/fondo/fondo 3.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  position: relative;
  text-align: center;
  padding: 100px 20px;
  min-height: 100vh;
}

#servicios > .contenido-servicio {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

#servicios h2 {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  text-align: center;
}

.subtitulo {
  margin-top: 4rem;
  font-size: 1.8rem;
  color: #276738;
  text-align: center;
}

/* Tarjetas de Tour */
.tarjeta-tour {
  background-color: #ffffff;
  border-left: 5px solid #4CAF50;
  border-radius: 10px;
  padding: 1.2rem;
  flex: 1 1 minmax(260px, 280px);
  width: 100%;
  max-width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1.5rem 0;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tarjeta-tour:hover {
  transform: translateY(-5px);
}

.tarjeta-tour h4 {
  font-family: 'BauhausCustom', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Contenido de Tour */
.contenido-tour {
  display: block !important; /* Siempre visible */
}

/* Carrusel de Tour */
.carrusel-tour {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
  background: #f0f0f0;
}

.carrusel-tour img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.carrusel-tour img.activo {
  opacity: 1;
  z-index: 1;
}

/* Texto de Tour */
.tarjeta-tour p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* Grid de Tours */
.tarjetas-tours {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

/* Sección Destacada: Hostal y Restaurante */
.feature-section-container {
  width: 100%;
  padding: 4rem 2rem;
}

.feature-section {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature-gallery {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.feature-gallery .galeria-carrusel {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}

.feature-content {
  padding: 2rem 2.5rem;
}

.feature-subtitulo {
  color: #276738;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.feature-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #333;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.feature-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.btn-cta-feature {
  display: inline-block;
  background-color: #276738;
  color: #ffffff;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-cta-feature:hover {
  background-color: #3c8844;
  transform: translateY(-3px);
}

/* ==================================================================== */
/*                            6. SECCIÓN PRODUCTOS                      */
/* ==================================================================== */
#productos {
  position: relative; /* Necesario para la superposición */
  background-image: url('img/productos/hongos/h1.jpg'); /* Reemplaza con la ruta de tu imagen */
  background-size: cover; /* La imagen cubre toda la sección */
  background-position: center center; /* La imagen se centra */
  background-attachment: fixed; /* Efecto parallax genial al hacer scroll */
  padding: 100px 20px;
  text-align: center;
  z-index: 1; /* Asegura que el contenido esté sobre la superposición */
}

#productos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(252, 243, 207, 0.45); /* Color de superposición, ajusta la opacidad (0.85) si es necesario */
  z-index: -1; /* Coloca la superposición detrás del contenido */
}

.contenido-productos {
  max-width: 1200px;
  margin: auto;
}

#productos h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.tarjetas-producto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
}

/* Tarjeta de Producto Individual */
.tarjeta-producto {
  background-color: #ffffff;
  border-left: 5px solid #4CAF50;
  border-radius: 10px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
  padding: 1.2rem;
  flex: 1 1 minmax(260px, 280px);
  width: 100%;
  max-width: 100%;
  transition: transform 0.3s ease;
  text-align: center;
}

.tarjeta-producto:hover {
  transform: translateY(-5px);
}

.tarjeta-producto h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.tarjeta-producto p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-top: 1rem;
}

/* Carrusel de Producto */
.carrusel-producto {
  position: relative;
  width: 100%;
  height: 160px;
  margin-top: 1rem;
  border-radius: 5px;
  overflow: hidden;
  background: #f0f0f0;
}

.carrusel-producto img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Añadido */
  transition: opacity 1s ease; /* Añadido */
}

.carrusel-producto img.activo {
  opacity: 1; /* Modificado */
}

/* ==================================================================== */
/*                            7. SECCIÓN NOSOTROS (ACERCA)              */
/* ==================================================================== */
.acerca-moderno {
  padding: 5rem 2rem;
  background-color: #f8f9fa;
}
.acerca-container {
  max-width: 900px;
  margin: 0 auto;
}

.subtitulo-acerca {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: #333;
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

/* Introducción */
.acerca-intro {
  text-align: center;
  margin-bottom: 4rem;
}
.acerca-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* Misión, Visión y Filosofía */
.mvf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 5rem;
}
.mvf-bloque {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}
.mvf-bloque h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #276738;
  text-align: center;
}
.mvf-bloque p {
  color: #555;
  line-height: 1.6;
  font-style: italic;
}
.mvf-filosofia {
  grid-column: 1 / -1;
  text-align: center;
}

/* Línea de Tiempo */
.historia-timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: #e0e0e0;
}
.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2rem;
}
.timeline-dot {
  position: absolute;
  left: 15px;
  top: 5px;
  width: 20px;
  height: 20px;
  background-color: #6dd095;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #6dd095;
}
.timeline-content h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}
.timeline-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Equipo */
.equipo-seccion {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid #e0e0e0;
}
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.perfil-tarjeta {
  text-align: center;
}
.perfil-tarjeta img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 4px solid #fff;
}
.perfil-nombre {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}
.perfil-rol {
  font-size: 1rem;
  color: #276738;
}

/* ==================================================================== */
/*                            8. SECCIÓN UBICACIÓN                      */
/* ==================================================================== */
.ubicacion-seccion {
  padding: 4rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.ubicacion-contenido {
  max-width: 900px;
  margin: 0 auto;
}

.ubicacion-texto {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.mapa-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.08);
}

.mapa-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* ==================================================================== */
/*                            9. SECCIÓN CONTACTO                       */
/* ==================================================================== */
#contactos {
  background-color: #d6eaf8; /* Fondo original */
}

.contacto-moderno {
  padding: 5rem 2rem;
  background-color: #f8f9fa;
}

.contacto-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
}

.contacto-info {
  padding: 3rem 2.5rem;
  background-color: #f0f2f0;
}

.seccion-titulo-izquierda {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #333;
  text-align: left;
  margin-bottom: 1rem;
}

.contacto-subtitulo {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.info-lista {
  list-style: none;
  padding: 0;
}
.info-lista li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.info-icono {
  font-size: 1.8rem;
}
.info-texto {
  display: flex;
  flex-direction: column;
}
.info-texto strong {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.25rem;
}
.info-texto span, .info-texto a {
  font-size: 1rem;
  color: #555;
  text-decoration: none;
}
.info-texto a:hover {
  text-decoration: underline;
}

/* Formulario Moderno */
.contacto-formulario {
  padding: 3rem 2.5rem;
}

.form-grupo {
  margin-bottom: 1.5rem;
}
.form-grupo label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #555;
  font-size: 0.9rem;
}
.form-grupo input,
.form-grupo textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-grupo input:focus,
.form-grupo textarea:focus {
  outline: none;
  border-color: #276738;
  box-shadow: 0 0 0 3px rgba(39, 103, 56, 0.2);
}

.btn-enviar-moderno {
  width: 100%;
  padding: 1rem;
  background-color: #276738;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-enviar-moderno:hover {
  background-color: #3c8844;
}

/* Mensaje de estado del formulario */
#form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  display: none;
}

#form-status.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-status.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ==================================================================== */
/*                            10. FOOTER                                */
/* ==================================================================== */
.footer-inspirado {
  background-color: #2f8747;
  color: #d4efdf;
  padding: 2.5rem 2rem 2rem;
  font-family: Arial, sans-serif;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-columna {
  flex: 1;
  min-width: 220px;
}

#footer-col-info {
  flex-basis: 300px;
}

.footer-logo-img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-descripcion {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-titulo {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #d4efdf;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  color: #d4efdf;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover .social-icon {
  color: #ffffff;
  transform: scale(1.1);
}

.footer-social-icons a[title="WhatsApp"] .social-icon {
  transform: scale(0.88);
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================================================================== */
/*                            11. ESTILOS DE PÁGINAS DE DETALLE         */
/* ==================================================================== */

/* Aplicamos el estilo a AMBAS clases, la antigua y la nueva */
main.pagina-detalle,
pagina-detalle-iniciativa { /* <-- Añadimos la nueva clase aquí */
  padding-top: var(--nav-height);
  background-color: #f8f9fa; /* Color de respaldo */
  background-image: url('img/logo/logoooo2.png'); /* Ruta a tu logo */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 500px; /* Ajusta el tamaño del logo según necesites */
  background-attachment: fixed; /* Mantiene el logo fijo al hacer scroll */
  position: relative; /* Necesario para el overlay */
  z-index: 1;
}

/* También aplicamos la capa semitransparente a AMBAS clases */
main.pagina-detalle::before,
main.pagina-detalle-iniciativa::before { /* <-- Y también aquí */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 249, 250, 0.85); /* Capa de color blanco con 85% de opacidad */
  z-index: -1;
}

.detalle-header {
  min-height: 220px;
  height: 40vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding-top: 60px;
  box-sizing: border-box;
}

.detalle-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.detalle-titulo {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.detalle-titulo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  word-break: break-word;
  padding: 0.5em 0.7em;
  max-width: 95vw;
  margin: 0 auto;
}

.detalle-contenido {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background-color: transparent;
}

.columna-texto, .columna-galeria {
  width: 100%;
}

.detalle-contenido h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #6dd095;
  padding-bottom: 0.5rem;
}

.detalle-contenido p, .detalle-contenido li {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.detalle-contenido ul {
  list-style-position: inside;
  padding-left: 0.5rem;
}

.columna-galeria img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.pie-de-foto {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  font-style: italic;
}

/* Carrusel de Galería (para páginas de detalle) */
.galeria-carrusel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #f0f0f0;
  aspect-ratio: 16 / 9;
}

.carrusel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.carrusel-slide {
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.carrusel-btn:hover { background-color: rgba(0, 0, 0, 0.8); }
.carrusel-btn.prev { left: 10px; }
.carrusel-btn.next { right: 10px; }

/* ==================================================================== */
/*                            12. ESTILOS DE PÁGINA DE HISTORIA         */
/* ==================================================================== */
#historia-contenido {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 20px;
  position: relative;
  background: url('img/fondo/fondo.jpg') no-repeat center center/cover fixed;
}

#historia-contenido::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

#historia-contenido .contenedor-historia {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffffc8;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.contenedor-historia h2 {
  text-align: center;
  font-size: 36px;
  color: #444;
  margin-bottom: 25px;
  font-weight: 600;
}

.contenedor-historia p {
  color: #444;
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.contenedor-historia h3 {
  text-align: center;
  color: #333;
  font-size: 1.3rem;
}

/* ==================================================================== */
/*                            13. ESTILOS DE PÁGINA DE EDUCACIÓN        */
/* ==================================================================== */

/* Título general para secciones */
.seccion-titulo {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
}

/* Sección de Introducción */
.educacion-intro {
  background-color: transparent;
  padding: 4rem 2rem;
  text-align: center;
}

.educacion-intro-contenido {
  max-width: 800px;
  margin: 0 auto;
}

.educacion-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.educacion-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Sección de Cursos */
.cursos-seccion {
  padding: 4rem 2rem;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.curso-tarjeta {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #6dd095;
}

.curso-tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.curso-icono {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.curso-tarjeta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.curso-tarjeta p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.curso-duracion {
  font-weight: bold;
  color: #276738;
}

/* Sección de Instructores */
.instructores-seccion {
  background-color: transparent;
  padding: 4rem 2rem;
}

.instructores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.instructor-perfil {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: #73d8a7a8;
  padding: 1.5rem;
  border-radius: 8px;
}

.instructor-perfil img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.instructor-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.instructor-info span {
  color: #674c4c;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.instructor-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Galería de Educación */
.galeria-educacion-seccion {
  padding: 4rem 2rem;
  background-color: transparent;
}

.galeria-educacion-seccion .galeria-carrusel {
  max-width: 900px;
  margin: 0 auto;
}

/* Sección de Certificación */
.certificacion-seccion {
  background-color: transparent;
  padding: 3rem 2rem;
}

.certificacion-contenido {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-top: 4px solid #6dd095;
}

.certificacion-icono {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.certificacion-texto h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.certificacion-texto p {
  color: #555;
  line-height: 1.6;
}

/* Llamada a la Acción (CTA) */
.cta-seccion {
  background-color: transparent;
  padding: 4rem 2rem;
  text-align: center;
}

.cta-contenido {
  max-width: 700px;
  margin: 0 auto;
  background-color: #2c2c2cdb;
  color: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cta-contenido h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-contenido p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d0d0d0;
  margin-bottom: 2rem;
}

.btn-cta {
  display: inline-block;
  background-color: #6dd095;
  color: #fefffe;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(109, 208, 149, 0.4);
}

.btn-cta:hover {
  background-color: #89e0b1;
  transform: translateY(-3px);
  color: #1f3a24;
}

/* ==================================================================== */
/*                            14. ESTILOS DE PÁGINA DE TOURS            */
/* ==================================================================== */

/* Animaciones de Scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll[data-animation="fade-in-left"].is-visible { animation: slideInLeft 0.6s forwards; }
.animate-on-scroll[data-animation="fade-in-right"].is-visible { animation: slideInRight 0.6s forwards; }
@keyframes slideInLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { to { opacity: 1; transform: translateX(0); } }

/* Encabezado Animado del Tour (Efecto Ken Burns) */
.animated-header {
  animation: kenburns 20s infinite;
}
@keyframes kenburns {
  0% { background-size: 100% 100%; }
  50% { background-size: 110% 110%; }
  100% { background-size: 100% 100%; }
}

/* Encabezado del Tour */
.tour-header {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.tour-header::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}

.tour-header-contenido {
  position: relative;
  z-index: 2;
}

.tour-subtitulo-header {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4efdf;
}

.tour-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin-top: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* Sección de Introducción y Detalles */
.tour-intro {
  background-color: transparent;
  padding: 4rem 2rem;
}

.tour-detalles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tour-descripcion h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.tour-descripcion p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.info-rapida {
  background-color: #91d9c594;
  border-radius: 12px;
  padding: 2rem;
  border-top: 4px solid #6dd095;
  height: fit-content;
}

.info-rapida h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-rapida ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-rapida li {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.info-rapida li strong {
  margin-right: 0.5rem;
  color: #276738;
}

/* Sección de Itinerario */
.itinerario-seccion {
  padding: 4rem 2rem;
  background-color: transparent;
}

.itinerario-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.itinerario-paso {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.itinerario-numero {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: #276738;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.itinerario-texto h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.itinerario-texto p {
  color: #555;
}

/* Itinerario V2 */
.itinerario-seccion-v2 {
  padding: 5rem 2rem;
  background-color: transparent;
}
.itinerario-container { max-width: 800px; margin: 0 auto; }
.itinerario-timeline-v2 {
  position: relative;
  padding-left: 50px;
  border-left: 3px solid #6dd095;
}
.timeline-item-v2 {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-item-v2:last-child { margin-bottom: 0; }

.timeline-icon {
  position: absolute;
  left: -26.5px;
  top: 0;
  width: 50px; height: 50px;
  background-color: #276738;
  color: #fff;
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px #f8f9fa;
}

.timeline-content-v2 {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.timeline-content-v2 span {
  display: inline-block;
  background-color: #eaf6ed;
  color: #276738;
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}
.timeline-content-v2 h4 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.timeline-content-v2 p { color: #555; }

/* Efecto de aparición escalonada para el itinerario */
.timeline-item-v2.is-visible:nth-child(2) { transition-delay: 0.2s; }
.timeline-item-v2.is-visible:nth-child(3) { transition-delay: 0.4s; }
.timeline-item-v2.is-visible:nth-child(4) { transition-delay: 0.6s; }

/* ==================================================================== */
/*                            15. ESTILOS DE PÁGINA DE HOSTAL           */
/* ==================================================================== */

/* Encabezado Hero */
.hostal-header {
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hostal-header::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.hostal-header-contenido {
  position: relative;
  z-index: 2;
}
.hostal-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.hostal-tagline {
  font-size: 1.3rem;
  font-style: italic;
  margin-top: 1rem;
  opacity: 0.9;
}

/* Pestañas (Tabs) */
.tabs-seccion {
  padding: 4rem 2rem;
  background-color: transparent;
}
.tabs-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 3rem;
}
.tab-btn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  color: #888;
  position: relative;
  transition: color 0.3s ease;
}
.tab-btn.active {
  color: #276738;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #276738;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Tarjetas de habitación (con hover) */
.room-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.room-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.room-card img { width: 100%; height: 180px; object-fit: cover; }
.room-card h3 { font-size: 1.3rem; padding: 1rem 1rem 0.5rem 1rem; }
.room-card p { padding: 0 1rem 1rem 1rem; font-size: 0.95rem; }

/* Lista de Amenidades */
.amenities-list {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}
.amenities-list h4 { font-size: 1.3rem; margin-bottom: 1.5rem; text-align: center; }
.amenities-list ul {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.amenities-list li { display: flex; align-items: center; gap: 0.8rem; }

/* Menú del restaurante y horarios */
.menu-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.menu-item { text-align: center; }
.menu-item img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.menu-item h4 { font-size: 1.2rem; }
.menu-item span { color: #777; font-style: italic; }
.restaurant-info {
  margin-top: 3rem;
  padding: 1.5rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}
.restaurant-info h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* Sección de Mapa */
.mapa-seccion {
  padding: 4rem 2rem;
  background-color: transparent;
}
.mapa-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.mapa-container p { font-size: 1.1rem; color: #555; margin-bottom: 2rem; }
.mapa-iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.mapa-iframe-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ==================================================================== */
/*                  16. ESTILOS DE PÁGINA DE CATEGORÍA PRODUCTOS        */
/* ==================================================================== */

/* Encabezado de la Página */
.category-header {
  padding: 5rem 2rem; /* Reducimos el padding para que no sea tan grande */
  text-align: center;
  color: #ffffff; /* Cambiamos el color del texto para que sea legible */
  background-color: transparent; /* Hacemos el fondo transparente */
  background-image:
    linear-gradient(rgba(107, 140, 116, 0.724), rgba(39, 103, 56, 0.696)),
    url('img/iniciativas/horta/asistenia tecnica.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.category-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.7); /* Sombra para legibilidad */
}

.category-header p {
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto; /* Centramos el párrafo */
}

/* Sección de la Cuadrícula de Productos */
.product-grid-section {
  padding: 4rem 2rem;
  background-color: transparent;
}

.product-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Tarjeta de Producto Individual */
.product-card-item {
  background-color: #ffffffc8;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.product-card-description {
  font-family: 'Lato', sans-serif;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-card-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #276738;
  margin-bottom: 1.5rem;
}

main.category-page,
main.product-detail-page {
  background-color: #3f925cb7;
  background-image: url('https://www.transparenttextures.com/patterns/subtle-grunge.png');
}

/* ==================================================================== */
/*                            17. ESTILOS DE PÁGINA DE DETALLE PRODUCTO */
/* ==================================================================== */

.product-detail-page {
  padding: 4rem 2rem;
  background-color: #f8f9fa;
}

.product-content-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background-color: #ffffffba;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.09);
}

/* Galería de Imágenes */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.thumbnail-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
  opacity: 0.7;
}

.thumbnail-item:hover {
  transform: scale(1.05);
  opacity: 1;
}

.thumbnail-item.active {
  border-color: #276738;
  opacity: 1;
}

/* Información del Producto */
.product-info {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #276738;
  margin-bottom: 1.5rem;
}

.product-description {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.product-features-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.product-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-family: 'Lato', sans-serif;
  color: #444;
}

.product-features-list li span {
  font-size: 1.5rem;
}

/* Botón de WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background-color: #25D366;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  margin-top: auto;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==================================================================== */
/*                            18. MEDIA QUERIES                         */
/* ==================================================================== */

/* Dispositivos pequeños (móviles) */
@media (max-width: 768px) {
  /* Header y Navegación */
  .apple-logo {
    margin-right: 0;
  }
  .apple-nav-desktop {
    display: none;
  }
  .apple-nav-toggle {
    display: block;
  }
  .apple-nav-container {
    justify-content: flex-start;
    padding: 0 12px;
    min-height: var(--nav-height);
    position: relative;
  }
  .apple-logo {
    position: static;
    left: auto;
    transform: none;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0;
    margin-right: auto;
  }
  .apple-nav-icons {
    position: absolute;
    right: 12px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
  }

  /* Sección Hero */
  .contenido-hero h1 {
    font-size: 2.8rem;
    padding: 0 0.5rem;
  }
  .contenido-hero h1::after {
    width: 80px;
    margin-top: 0.8rem;
  }
  .contenido-hero p {
    font-size: 1.4rem;
    padding: 0 1rem;
    line-height: 1.5;
  }

  /* Sección Iniciativas */
  .tarjeta-iniciativa {
    width: 90%;
  }

  /* Sección Servicios */
  .tarjetas-tours {
    flex-direction: column;
    align-items: center;
  }
  .tarjeta-tour {
    width: 90%;
  }
  .carrusel-tour {
    height: 180px;
  }
  .feature-section-container {
    padding: 3rem 1rem;
  }
  .feature-section {
    gap: 0;
  }
  .feature-content {
    padding: 2.5rem 1.5rem;
  }
  .feature-content h2 {
    font-size: 2rem;
  }
  .feature-list {
    margin-bottom: 2rem;
  }

  /* Sección Productos */
  .tarjeta-producto {
    width: 90%;
  }
  .carrusel-producto {
    height: 180px;
  }

  /* Sección Acerca */
  .mvf-grid {
    grid-template-columns: 1fr;
  }

  /* Sección Contacto */
  .contacto-container {
    grid-template-columns: 1fr;
  }

  /* Páginas de Detalle */
  .detalle-titulo h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  .detalle-contenido {
    flex-direction: column;
    padding: 1.5rem;
  }
  .columna-texto, .columna-galeria {
    width: 100%;
  }

  /* Páginas de Tour */
  .tour-header {
    height: 40vh;
    min-height: 300px;
  }
  .tour-header h1 {
    font-size: 2.5rem;
  }
  .tour-detalles-grid {
    grid-template-columns: 1fr;
  }
  .tour-intro {
    padding: 2rem 1rem;
  }
  .tour-highlights {
    padding: 2rem 1rem;
  }
  .itinerario-seccion-v2 {
    padding: 3rem 1rem;
  }

  /* Páginas de Hostal */
  .hostal-header h1 {
    font-size: 2.5rem;
  }
  .hostal-tagline {
    font-size: 1.1rem;
  }
  .tabs-seccion {
    padding: 3rem 1rem;
  }
  .tab-btn {
    padding: 1rem;
    font-size: 1.1rem;
  }
  .room-card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .mapa-seccion {
    padding: 3rem 1rem;
  }
  .mapa-container {
    padding: 1.5rem;
  }

  /* Páginas de Categoría de Producto */
  .category-header h1 {
    font-size: 2.5rem;
  }

  /* Páginas de Detalle de Producto */
  /* Ajuste para el slider de productos en móviles */
  .product-content-grid {
    /* Forzamos el layout a una sola columna */
    grid-template-columns: 1fr;
    /* Reducimos el padding para dar más espacio */
    padding: 1.5rem;
  }
  .product-title {
    font-size: 2.5rem;
  }

  /* Optimización de rendimiento para fondos fijos en móviles */
  .hero,
  #iniciativas,
  #servicios,
  #productos {
    background-attachment: scroll;
  }

/* Ajuste para páginas de detalle de producto en móviles */
  .product-content-grid {
    /* Forzamos a que el layout sea de una sola columna */
    grid-template-columns: 1fr;
    /* Reducimos el padding para dar más espacio */
    padding: 1.5rem;
    /* Reducimos el espacio entre la galería y la info */
    gap: 2rem;
  }

  .product-title {
    /* Hacemos el título un poco más pequeño en móviles */
    font-size: 2.5rem;
  }

  /* Ajuste para tarjetas de producto en páginas de categoría (móviles) */
  .product-card-image img {
    /* Usamos aspect-ratio para que la imagen sea responsiva */
    aspect-ratio: 16 / 10;
  }

  .product-card-content {
    /* Reducimos el padding interno de la tarjeta */
    padding: 1.2rem;
  }

  /* Ajuste para las imágenes de las tarjetas de producto en móviles */
  .product-card-image img {
    height: auto; /* Permitimos que la altura se ajuste */
    aspect-ratio: 16 / 10; /* Forzamos una proporción panorámica */
  }

}

/* Dispositivos medianos (tablets y algunos laptops) */
@media (min-width: 769px) {
  /* Páginas de Detalle */
  .detalle-titulo h1 {
    font-size: 3rem;
    max-width: 800px;
    padding: 0.7em 1.2em;
  }
  .detalle-header {
    padding-top: 48px;
  }
  .detalle-contenido {
    flex-direction: row;
    align-items: flex-start;
  }
  .columna-texto {
    flex:4;
  }
  .columna-galeria {
    flex: 4;
  }
  .columna-galeria .galeria-carrusel {
    width: 95%;
    margin-left: auto;
  }
}

/* Dispositivos grandes (desktops) */
@media (min-width: 900px) {
  /* Sección Servicios */
  .feature-section {
    grid-template-columns: 1fr 1fr;
  }

  /* Sección Acerca */
  .mvf-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Sección Contacto */
  .contacto-container {
    grid-template-columns: 1fr 1.2fr;
  }

  /* Páginas de Tour */
  .tour-detalles-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Dispositivos extra grandes (monitores amplios) */
@media (min-width: 1024px) {
  /* Sección Acerca - Equipo */
  .equipo-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Ajustes finos para móviles estrechos */
@media (max-width: 480px) {
  /* Sección Servicios - Hostal */
  .feature-section-container {
    padding: 3rem 0.5rem;
  }
  .feature-content {
    padding: 2rem 1.2rem;
  }
  .feature-content h2 {
    font-size: 1.8rem;
  }
  .feature-content p {
    font-size: 1rem;
  }
  .feature-list li {
    font-size: 1rem;
  }
  .btn-cta-feature {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }

  /* Sección Contacto */
  .contacto-moderno {
    padding: 4rem 1rem;
  }
  .contacto-info,
  .contacto-formulario {
    padding: 2rem 1.2rem;
  }
  .seccion-titulo-izquierda {
    font-size: 2rem;
  }

  /* Ajustes para el Hero "Glassmorphism" en pantallas estrechas */
.tarjeta-glass {
  padding: 2rem 1.5rem; /* Reducimos el padding horizontal y vertical */
}

.tarjeta-glass h1 {
  font-size: 2.2rem; /* Hacemos el título un poco más pequeño */
}

.tarjeta-glass p {
  font-size: 1rem; /* Ajustamos el tamaño del párrafo */
}

/* Ajuste para galerías en móviles estrechos */
  .galeria-grid,
  .tour-gallery-grid,
  .galeria-grid-educacion {
    /* Forzamos a que solo haya una columna */
    grid-template-columns: 1fr;
    /* Reducimos el espacio entre imágenes */
    gap: 0.8rem;
  }

  /* También reducimos el padding lateral de las secciones que contienen las galerías */
  .iniciativa-galeria,
  .tour-gallery-section,
  .educacion-v2-galeria {
    padding-left: 1rem;
    padding-right: 1rem;
  }


  
}

/* ==================================================================== */
/* 21. AJUSTE PARA BOTONES VISIBLES EN MÓVIL             */
/* ==================================================================== */

@media (max-width: 768px) {
  /* Hacemos que los botones dentro de las tarjetas sean siempre visibles en pantallas pequeñas */
  .tarjeta-iniciativa .btn-card,
  .tarjeta-tour .btn-card,
  .tarjeta-producto .btn-card {
    opacity: 1; /* Lo hacemos completamente visible */
    transform: translateY(0); /* Lo dejamos en su posición original */
  }

  .tarjeta-iniciativa,
  .tarjeta-tour,
  .tarjeta-producto {
    width: 100%;
    max-width: 100%;
  }
}

/* ==================================================================== */
/* 19. ANIMACIONES SCROLL                    */
/* ==================================================================== */

/* Estado inicial de los elementos que se animarán */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform; /* Mejora el rendimiento */
}

/* Estado final cuando el elemento es visible */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================================================== */
/* ESTILOS MEJORADOS PARA PÁGINAS DE INICIATIVAS         */
/* ==================================================================== */

/* Contenedor principal de la página */
.pagina-detalle-iniciativa {
  padding-top: var(--nav-height);
  background-color: #f8f9fa; /* Un fondo limpio y suave */
}

/* 1. Header Hero de la Iniciativa */
.iniciativa-header {
  height: 60vh; /* Altura del 60% de la ventana */
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.iniciativa-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Un gradiente sutil para asegurar que el texto sea legible */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.iniciativa-header-content {
  position: relative;
  z-index: 2;
}

.iniciativa-subtitulo-header {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4efdf;
  margin-bottom: 0.5rem;
}

.iniciativa-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; /* Tamaño responsivo */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* 2. Sección de Introducción */
.iniciativa-intro {
  padding: 4rem 2rem;
  text-align: center;
}

.iniciativa-intro-contenido {
  max-width: 800px;
  margin: 0 auto;
}

.iniciativa-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.iniciativa-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

/* 3. Sección de Impacto con Íconos */
.iniciativa-impacto {
  background-color: transparent; /* <- Hazlo transparente */
  padding: 4rem 2rem;
}
.impacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.impacto-item {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.impacto-icono {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.impacto-item h3 {
  font-size: 1.5rem;
  color: #276738;
  margin-bottom: 0.5rem;
}

.impacto-item p {
  color: #555;
  line-height: 1.6;
}

/* 4. Sección de Proceso (Timeline) */
.iniciativa-proceso {
  padding: 5rem 2rem;
}

.proceso-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  /* La línea vertical del timeline */
  border-left: 3px solid #6dd095;
  padding-left: 40px;
}

.proceso-paso {
  position: relative;
  margin-bottom: 3rem;
}

.proceso-paso:last-child {
  margin-bottom: 0;
}

.proceso-numero {
  position: absolute;
  left: -63px; /* Centra el círculo en la línea */
  top: 0;
  width: 40px;
  height: 40px;
  background-color: #276738;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #f8f9fa; /* Crea un borde del color de fondo */
}

.proceso-texto h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.proceso-texto p {
  color: #555;
}

.iniciativa-galeria {
  padding: 4rem 2rem;
  background-color: transparent; /* <- Hazlo transparente también */
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }
  .iniciativa-header h1 {
    font-size: 2.5rem;
  }
  .iniciativa-intro h2 {
    font-size: 2rem;
  }
  .iniciativa-intro p {
    font-size: 1.1rem;
  }
  .proceso-timeline {
    padding-left: 20px;
    border-left-width: 2px;
  }
  .proceso-numero {
    left: -42px;
  }
}


/* ==================================================================== */
/* 3. Efecto de Hover profesional para la Galería                       */
/* ==================================================================== */

.galeria-item {
  position: relative; /* Necesario para posicionar el overlay */
  overflow: hidden; /* Oculta lo que se salga del contenedor */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  /* Aseguramos que la imagen no se salga */
  display: block;
}

/* El overlay oscuro que aparecerá en hover */
.galeria-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(68, 149, 90, 0.473); /* Verde oscuro semitransparente */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* El texto que aparecerá en hover */
.galeria-item::after {
  content: attr(data-title); /* Usamos el texto del 'data-title' */
  position: absolute;
  bottom: 0; /* Lo posicionamos abajo */
  left: 0;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  color: #fff;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transform: translateY(20px); /* Empieza movido hacia abajo */
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

/* La imagen dentro del item */
.galeria-item img {
  transition: transform 0.4s ease; /* Transición suave para el zoom */
}

/* Activación de los efectos al pasar el cursor sobre el item */
.galeria-item:hover::before {
  opacity: 1; /* Muestra el overlay */
}



.galeria-item:hover img {
  transform: scale(1.1); /* Hace un ligero zoom a la imagen */
}

/* ==================================================================== */
/* ESTILOS REESTRUCTURADOS PARA PÁGINA DE EDUCACIÓN      */
/* ==================================================================== */

.pagina-detalle-educacion {
  padding-top: var(--nav-height);
  background-color: #f8f9fa; /* Fondo general limpio */
}

/* 1. Header Hero de Educación */
.educacion-v2-header {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.educacion-v2-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.educacion-v2-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.educacion-v2-subtitulo-header {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4efdf;
  margin-bottom: 0.5rem;
}

.educacion-v2-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* 2. Sección de Introducción */
.educacion-v2-intro {
  padding: 4rem 2rem;
  text-align: center;
}
.educacion-v2-intro-contenido {
  max-width: 800px;
  margin: 0 auto;
}
.educacion-v2-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}
.educacion-v2-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

/* 3. Sección de Puntos Clave (Highlights) */
.educacion-v2-highlights {
  background-color: #eaf6ed;
  padding: 4rem 2rem;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.highlight-item {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}
.highlight-icono {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.highlight-item h3 {
  font-size: 1.5rem;
  color: #276738;
  margin-bottom: 0.5rem;
}
.highlight-item p {
  color: #555;
  line-height: 1.6;
}

/* 4. Sección de Cursos */
.educacion-v2-cursos {
  padding: 5rem 2rem;
}
.curso-grid-v2 {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.curso-tarjeta-v2 {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
.curso-tarjeta-v2-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.curso-tarjeta-v2-texto {
  padding: 2rem;
}
.curso-categoria {
  display: inline-block;
  background-color: #eaf6ed;
  color: #276738;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.curso-tarjeta-v2-texto h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.curso-tarjeta-v2-texto p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.curso-detalle {
  font-weight: bold;
  color: #333;
}

/* 5. Sección de Galería */
.educacion-v2-galeria {
  padding: 4rem 2rem;
}
.galeria-grid-educacion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.galeria-grid-educacion img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.galeria-grid-educacion img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Media query para móviles */
@media (max-width: 768px) {
  .galeria-grid-educacion {
    grid-template-columns: 1fr;
  }
}

/* Media Queries para responsividad */
@media (min-width: 768px) {
  .curso-tarjeta-v2 {
    grid-template-columns: 1fr 1.5fr; /* Lado a lado en pantallas más grandes */
    
    align-items: stretch; /* <-- Con este cambio se igualan las alturas */
  }
  .curso-tarjeta-v2:nth-child(even) {
    grid-template-columns: 1.5fr 1fr; /* Alternar el orden */
  }
  .curso-tarjeta-v2:nth-child(even) .curso-tarjeta-v2-img {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .curso-tarjeta-v2-img img {
  width: 100%;
  height: 350px; /* Fuerza una altura exacta de 350px */
  object-fit: cover;
}
}
@media (max-width: 768px) {
  .educacion-v2-header h1 {
    font-size: 2.5rem;
  }
  .educacion-v2-intro h2 {
    font-size: 2rem;
  }
  .curso-tarjeta-v2 {
    margin-bottom: 2rem;
  }
  .curso-tarjeta-v2-texto {
    padding: 1.5rem;
  }
  .curso-tarjeta-v2-texto h3 {
    font-size: 1.5rem;
  }
  .curso-tarjeta-v2-texto p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .curso-tarjeta-v2-img img {
    height: 200px;
  }
}
@media (max-width: 480px) {
  .educacion-v2-cursos {
    padding: 3rem 1rem;
  }
  .curso-grid-v2 {
    gap: 2rem;
  }
  .curso-tarjeta-v2-texto {
    padding: 1rem;
  }
  .curso-tarjeta-v2-texto h3 {
    font-size: 1.3rem;
  }
  .curso-tarjeta-v2-texto p {
    font-size: 0.85rem;
  }
  .curso-tarjeta-v2-img img {
    height: 180px;
  }
}

/* ==================================================================== */
/* SECCIÓN PUNTOS CLAVE PARA PÁGINA DE TOURS                   */
/* ==================================================================== */

.tour-highlights {
   background-color: transparent; /* <- Hazlo transparente también */
  padding: 4rem 2rem;
}

.highlight-grid-tour {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.highlight-item-tour {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.highlight-item-tour:hover {
    transform: translateY(-5px);
}

.highlight-icon-tour {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight-item-tour h3 {
  font-size: 1.5rem;
  color: #276738;
  margin-bottom: 0.5rem;
}

.highlight-item-tour p {
  color: #555;
  line-height: 1.6;
}

/* ==================================================================== */
/* ESTILOS PARA LA GALERÍA LIGHTBOX DE TOURS                   */
/* ==================================================================== */

/* Cuadrícula de la galería */
.tour-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tour-gallery-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Media query para móviles */
@media (max-width: 768px) {
  .tour-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Estilos del Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
}

.lightbox-image {
  max-width: 90vw; /* 90% del ANCHO de la ventana */
  max-height: 85vh; /* 85% del ALTO de la ventana */
  display: block;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
}

/* ==================================================================== */
/* ESTILOS REESTRUCTURADOS PARA PÁGINA DE HOSTAL Y RESTAURANTE */
/* ==================================================================== */

.pagina-detalle-hostal {
  padding-top: var(--nav-height);
  background-color: transparent; /* Fondo principal transparente */
}

/* 1. Header Hero */
.hostal-v2-header {
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  background-size: cover;
  background-position: center;
  animation: kenburns 30s alternate infinite ease-in-out; /* Animación de zoom */
}
.hostal-v2-header::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}
.hostal-v2-header-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}
.hostal-v2-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.hostal-v2-tagline {
  font-size: 1.3rem;
  font-style: italic;
  margin-top: 1rem;
  opacity: 0.9;
}

/* 2. Pestañas (Tabs) */
.tabs-v2-section {
  padding: 4rem 2rem;
}
.tabs-v2-container {
  max-width: 900px;
  margin: 0 auto;
}
.tabs-v2-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  background-color: #fff;
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.tab-v2-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  color: #555;
  border-radius: 50px;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.tab-v2-btn.active {
  color: #fff;
  background-color: #276738;
}

.tab-v2-panel { 
  display: none; 
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.tab-v2-panel.active { 
  display: block; 
  animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}
.panel-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.panel-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}
.panel-subtitle {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #6dd095;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* 3. Contenido Pestaña Hostal */
.room-card-v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.room-card-v2 {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.room-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.room-card-v2 img { width: 100%; height: 200px; object-fit: cover; }
.room-card-v2-content { padding: 1.5rem; }
.room-card-v2 h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.room-card-v2 p { font-size: 1rem; color: #555; line-height: 1.6; }

.amenities-v2-list { margin-top: 2rem; }
.amenities-v2-list ul {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.amenities-v2-list li { display: flex; align-items: center; gap: 0.8rem; background: #fff; padding: 0.8rem; border-radius: 8px; }

/* 4. Contenido Pestaña Restaurante */
.restaurant-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.restaurant-highlights .highlight-item-tour { /* Reutilizamos el estilo */
  background: none;
  box-shadow: none;
  padding: 1rem;
}
.menu-v2-highlights { text-align: center; }
.menu-v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.menu-v2-item { text-align: center; }
.menu-v2-item img {
  width: 100%;
  aspect-ratio: 4 / 3; /* Proporción más clásica para comida */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.menu-v2-item h4 { font-size: 1.2rem; }
.menu-v2-item span { color: #777; font-style: italic; font-size: 0.9rem; }

.restaurant-v2-info {
  margin-top: 3rem;
  padding: 1.5rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}
.restaurant-v2-info h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* ==================================================================== */
/* 22. AJUSTES RESPONSIVOS PARA PÁGINA DE HOSTAL Y RESTAURANTE  */
/* ==================================================================== */

@media (max-width: 768px) {

  /* Ajustamos el encabezado principal */
  .hostal-v2-header h1 {
    font-size: 2.2rem; /* Hacemos el título más pequeño */
  }
  .hostal-v2-tagline {
    font-size: 1.1rem; /* Ajustamos el subtítulo */
  }

  /* Reducimos el padding general de la sección de pestañas */
  .tabs-v2-section {
    padding: 2rem 1rem;
  }

  /* Hacemos los botones de las pestañas un poco más pequeños */
  .tabs-v2-nav {
    padding: 0.4rem;
  }
  .tab-v2-btn {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  /* Reducimos el padding dentro de cada pestaña */
  .tab-v2-panel {
    padding: 1.5rem;
  }

  /* Ajustamos los títulos y párrafos dentro de las pestañas */
  .panel-intro h2 {
    font-size: 1.8rem;
  }
  .panel-intro p {
    font-size: 1rem;
  }
  .panel-subtitle {
    font-size: 1.5rem;
  }

  /* Aseguramos que las tarjetas de las habitaciones y los highlights del restaurante se vean bien */
  .room-card-v2-grid,
  .restaurant-highlights {
    grid-template-columns: 1fr; /* Forzamos una sola columna */
    gap: 1.5rem;
  }
}

/* ==================================================================== */
/* 23. ESTILOS PARA SLIDER DE PRODUCTOS                       */
/* ==================================================================== */

.product-slider-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--nav-height);
  background-color: #f8f9fa;
}

.product-slider-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  overflow: hidden; /* Oculta las tarjetas que no se están mostrando */
}

.product-slider-track {
  display: flex;
  /* La magia del slider sucede cambiando este 'transform' con JavaScript */
  transition: transform 0.5s ease-in-out;
}

.product-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 4rem; /* Espacio para que las flechas no tapen el contenido */
}

/* Estilos de las flechas */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(39, 103, 56, 0.8);
  color: white;
  border: none;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s ease;
  user-select: none; /* Evita que el texto de la flecha se seleccione */
}

.slider-btn:hover {
  background-color: rgba(39, 103, 56, 1);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .product-slide {
    padding: 0 1rem; /* Menos padding en móviles */
  }
  .slider-btn {
    height: 40px;
    width: 40px;
    font-size: 2rem;
  }
  .slider-btn.prev { left: 5px; }
  .slider-btn.next { right: 5px; }
}

/* ==================================================================== */
/* 24. AJUSTES PARA BOTÓN WHATSAPP EN SLIDER                  */
/* ==================================================================== */

.btn-whatsapp {
  /* Estas propiedades ya las tenías, las mantenemos */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  /* ... resto de estilos del botón ... */
}

/* Ajustamos el tamaño del ícono SVG dentro del botón */
.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor; /* El ícono tomará el color del texto del botón */
}

/* ==================================================================== */
/* 25. ESTILOS PARA OPCIONES DE PRODUCTO (CAFÉ)               */
/* ==================================================================== */

.product-options {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.product-options label {
  display: block;
  font-weight: bold;
  color: #555;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.options-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.option-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #ccc;
  background-color: #f8f9fa;
  color: #555;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.option-btn.active {
  background-color: #276738;
  color: #fff;
  border-color: #276738;
}

.option-btn:not(.active):hover {
  border-color: #888;
}