:root {
    /* Variables para facilitar cambios de color futuros */
    --color-primary: #11311d;      /* Verde oscuro */
    --color-secondary: #aa9658;    /* Dorado fondo */
    --color-accent: #d18731;       /* Naranja botones */
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
    --font-main: Arial, sans-serif;
    --font-hand: 'Comic Sans MS', 'Comic Sans', cursive; /* Nombre corregido */
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-secondary); /* Color de fondo general */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height); /* Espacio para el header fijo */
}

/* --- CABECERA --- */
.main-header {
    background-color: var(--color-primary);
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

#logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}
#logo:hover { transform: scale(1.05); }

.nav-menu {
    display: flex;
    gap: 1rem;
}

/* Estilo de botones del menú */
.nav-btn {
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    font-family: var(--font-main);
}

.nav-btn:hover {
    background-color: #fff;
    color: var(--color-primary);
}

.nav-btn.large-btn {
    font-size: 1.5rem;
}

.hamburguesa {
    display: none; /* Oculto en PC */
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* --- COMPONENTES GLOBALES --- */

/* Hero Section (Portada con imagen de fondo) */
.hero {
    height: 90vh; /* Altura adaptable */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-family: var(--font-hand);
    position: relative;
    padding: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem); /* Texto responsive moderno */
    margin-bottom: 1rem;
}

.hero h2, .hero h4 {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
}

.fondo-texto {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.2em 0.6em;
    border-radius: 8px;
    display: inline-block;
}

/* Contenedor general para limitar el ancho del contenido */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Títulos de sección */
.section-title {
    text-align: center;
    font-family: var(--font-hand);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 4px black;
}

/* --- GRID GALERÍA (Index) --- */
.gallery-grid {
    display: grid;
    /* Esto crea columnas automáticas. No más media queries para columnas */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
}

.card {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    border: 3px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card:hover {
    transform: translateY(-5px);
    border-color: #fff;
}

.card span {
    font-family: var(--font-hand);
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: background 0.3s;
}

.card:hover span {
    background: rgba(0, 0, 0, 0.8);
}

/* --- PÁGINA DE INFORMACIÓN / NORMAS --- */
.info-container {
    background-color: white; /* Contenedor blanco para leer mejor */
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    color: #333;
}

.info-block {
    margin-bottom: 2.5rem;
    font-family: var(--font-main);
}

.info-block h2 {
    color: var(--color-primary);
    font-family: var(--font-hand);
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.info-block p, .info-block li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-list i {
    color: var(--color-primary);
    margin-top: 5px; /* Alinear icono con la primera línea de texto */
}

/* --- CONTACTO --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
}
.form-container {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--color-primary);
    color: white;
    margin-top: auto; /* Empuja el footer abajo */
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hamburguesa { display: block; }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        right: 0;
        background-color: var(--color-primary);
        width: 100%;
        padding: 1rem;
        text-align: center;
    }
    
    .nav-menu.mostrar { display: flex; }
    
    .nav-btn { display: block; width: 100%; margin: 0.5rem 0; }
    
    .contact-layout { grid-template-columns: 1fr; }
}

/* --- SUBMENÚ DE GALERÍAS --- */
.gallery-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.gallery-link {
    text-decoration: none;
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.gallery-link:hover, .gallery-link.active {
    background-color: var(--color-primary);
    color: white;
}

/* Ajuste para imágenes de galería en grid */
.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* --- LIGHTBOX --- */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

/* --- SECTION TITLE SIN SOMBRA (para galerías) --- */
.section-title.no-shadow {
    color: var(--color-primary);
    text-shadow: none;
}

/* --- FORMULARIO --- */
.formulario input[type="text"],
.formulario input[type="email"],
.formulario input[type="tel"],
.formulario input[type="date"],
.formulario textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
}

.formulario .nav-btn {
    border: none;
    cursor: pointer;
    width: 100%;
}

/* --- INFORMACIÓN (normas) --- */
.info-container img {
    width: 100%;
    border-radius: 10px;
}

.info-section-spacing {
    margin: 2rem 0;
}

/* --- ESTILOS DEL CARRUSEL (Añadir al final) --- */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    overflow: hidden; /* Para contener las flechas */
}

.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Ocultar scrollbar en Firefox */
    padding: 10px 5px;
    scroll-snap-type: x mandatory; /* Efecto imán al deslizar */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Ocultar scrollbar en Chrome/Safari */
}

.carousel-track img {
    height: 400px; /* Altura fija para uniformidad */
    width: auto;   /* El ancho se adapta a la imagen */
    max-width: 90vw; /* Que no supere el ancho de pantalla en móvil */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 auto; /* Evita que las imágenes se aplasten */
    scroll-snap-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.carousel-track img:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(17, 49, 29, 0.7); /* Tu color verde semitransparente */
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s;
    user-select: none;
}

.carousel-btn:hover {
    background-color: var(--color-accent); /* Tu color naranja */
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Ajuste para móviles */
@media (max-width: 768px) {
    .carousel-track img {
        height: 250px; /* Imágenes más bajas en móvil */
    }
    .carousel-btn {
        padding: 0.5rem;
        font-size: 1.2rem;
    }
}


/* =========================================
   NUEVO: PÁGINA DE CONFIRMACIÓN / MENSAJE
   ========================================= */

.success-section {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Calcula la altura total menos la cabecera para centrarlo perfecto */
    min-height: calc(100vh - var(--header-height)); 
    padding: 2rem 1rem;
}

.success-card {
    background: white;
    width: 100%;
    max-width: 1000px; /* Ancho máximo para PC */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.success-card:hover {
    transform: translateY(-5px);
}

/* Contenedor de la imagen */
.success-image {
    width: 100%;
    height: 250px;
    background-color: #ddd; /* Color de carga */
}

.success-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CLAVE: Recorta la foto para que encaje sin deformarse */
}

/* Contenido de texto */
.success-content {
    padding: 2rem;
}

.success-content h1 {
    color: var(--color-primary); /* Tu verde oscuro */
    font-family: var(--font-hand); /* Tu fuente 'Comic Sans' */
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--color-text-dark);
    font-family: var(--font-main);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Botón de volver */
.btn-volver {
    display: inline-block;
    background-color: var(--color-accent); /* Tu naranja */
    color: var(--color-primary); /* Texto verde oscuro */
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    border: 2px solid transparent;
}

.btn-volver:hover {
    background-color: white;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Ajuste Responsive para móviles pequeños */
@media (max-width: 480px) {
    .success-image {
        height: 180px; /* Foto más pequeña en móvil */
    }
    .success-content h1 {
        font-size: 1.5rem;
    }
}

/* --- Calendario de disponibilidad --- */
#calendar {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Arial, sans-serif;
}
/* Título del mes */
.fc-toolbar-title {
    font-size: 1.4em !important;
    color: #2c3e50;
    text-transform: capitalize;
    font-weight: 600;
}
/* Botones de navegación */
.fc-button-primary {
    background-color: #f8f9fa !important;
    border-color: #ddd !important;
    color: #2c3e50 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: all 0.2s;
}
.fc-button-primary:hover {
    background-color: #e9ecef !important;
}
/* Días del calendario */
.fc-daygrid-day-number {
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    padding: 8px !important;
}
.fc-day-today {
    background-color: #f0f7ff !important; /* Azul muy suave para el día actual */
}
/* Días pasados en gris */
.fc-day-past {
    background-color: #fbfbfb !important;
    opacity: 0.6;
}
/* Fechas disponibles con cursor de mano */
.fc-daygrid-day:not(.fc-day-past) {
    cursor: pointer;
    transition: background-color 0.2s;
}
.fc-daygrid-day:hover:not(.fc-day-past) {
    background-color: #f0fdf4; /* Verde muy clarito al pasar el ratón */
}
/* Eventos bloqueados (Airbnb) */
.fc-event-background {
    opacity: 0.85 !important;
    border-radius: 4px;
}

/* --- Estilos para los días seleccionados en el Calendario --- */
.fc-daygrid-day-frame:has(.seleccion-extremo) .fc-daygrid-day-number {
    color: #ffffff !important;
    font-weight: bold;
    position: relative;
    z-index: 5;
}

/* Quitar la transparencia (filtro pálido) por defecto de FullCalendar */
.seleccion-extremo, 
.seleccion-medio {
    opacity: 1 !important;
}