/* =========================================
   VARIABLES DE COLOR (Paleta Pariseo)
   ========================================= */
:root {
    --verde-oliva: #949c5e;
    --verde-oscuro: #2d3319;
    --crema: #f9f8f0;
    --blanco-sucio: #e9e8e0;
    --texto: #222;
}

/* =========================================
   RESET BÁSICO
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--texto);
    background-color: var(--crema);
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 400; }

.nav-logo-img {
    width: 150px;
    height: 150px;
}

/* =========================================
   NAVEGACIÓN
   ========================================= */
.navbar {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    z-index: 100;
}
.navbar.dark { position: relative; background: transparent; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 24px; color: white; flex: 1; text-align: center; margin-left: 100px; }
.nav-button {
    background: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 50px;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}
.nav-button:hover { background: white; color: black; }

/* Botón Principal */
.btn-primary {
    background-color: transparent;
    color: #d1cc96;
    border: 2px solid #d1cc96;
    border-radius: 50px;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-primary:hover {
    background-color: #d1cc96;
    color: var(--verde-oscuro);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =========================================
   HERO SECTION (Portada)
   ========================================= */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(45, 51, 25, 0.5), rgba(45, 51, 25, 0.5)), 
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 15px; }
.hero-content p { font-size: 1.1rem; max-width: 650px; margin: 0 auto 30px; font-weight: 300; }

/* =========================================
   INTRO & FEATURES
   ========================================= */
.intro { padding: 100px 20px; text-align: center; }
.intro h2 { font-size: 2.2rem; margin-bottom: 20px; }
.intro p { max-width: 750px; margin: 0 auto; color: #555; }

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--verde-oscuro);
    padding: 80px 50px;
    gap: 40px;
    color: white;
}
.feature-item { text-align: center; }
.feature-item img { width: 100%; height: 350px; object-fit: cover; margin-bottom: 25px; }
.feature-item h3 { font-size: 1.6rem; margin-bottom: 15px; }
.feature-item p { font-size: 0.95rem; padding: 0 50px; opacity: 0.9; }

/* Ficha Técnica */
.details-bar {
    background: white;
    padding: 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    border-bottom: 1px solid #ddd;
}
.detail { text-align: center; font-size: 11px; text-transform: uppercase; color: #888; letter-spacing: 1px; }
.detail .icon { display: block; font-size: 24px; margin-bottom: 8px; }

/* Galería */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.gallery img { width: 100%; height: 500px; object-fit: cover; }

/* =========================================
   CARRUSELES
   ========================================= */
.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 25px;
}
.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}
.carousel-slide img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 20px;
    padding: 15px 10px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 2;
}
.prev:hover, .next:hover { background-color: rgba(255, 255, 255, 0.3); opacity: 1; }
.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }

/* =========================================
   FIESTAS
   ========================================= */
.fiestas-container { text-align: left !important; padding-left: 20px; }
.fiestas-grid { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.fiesta-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-left: 3px solid var(--verde-oliva);
    transition: transform 0.3s ease;
}
.fiesta-card:hover { transform: translateX(10px); background: rgba(255, 255, 255, 0.1); }
.fiesta-card .fecha { display: block; font-weight: 600; color: var(--verde-oliva); font-size: 0.85rem; text-transform: uppercase; margin-bottom: 5px; }
.fiesta-card p { padding: 0 !important; font-size: 0.9rem !important; line-height: 1.4; opacity: 1 !important; }

/* =========================================
   TESTIMONIOS Y CONTACTO
   ========================================= */
.testimonials {
    background-color: var(--verde-oliva);
    padding: 100px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: white;
}
.testimonial-card { background: rgba(255, 255, 255, 0.08); padding: 50px; }
.google-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stars { color: #fbbc05; font-size: 1.2rem; }
.testimonial-card p { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-style: italic; margin-bottom: 15px; }
.author { display: block; font-size: 0.9rem; font-weight: 300; }

.contact-section { padding: 100px 50px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px; }
.contact-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 18px; border: none; background: var(--blanco-sucio); font-family: inherit; }
.btn-submit { background: var(--verde-oliva); color: white; border: none; padding: 15px 45px; cursor: pointer; text-transform: uppercase; font-weight: 600; }

/* =========================================
   FOOTER
   ========================================= */
footer { padding: 60px 50px; border-top: 1px solid #d1cc96; display: flex; justify-content: space-between; align-items: center; }
.footer-logo-img { width: 150px; height: 150px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 20px; }
.footer-credit { font-size: 13px; color: #777; }
.social-title { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; color: #949c5e; }
.social-icons { display: flex; justify-content: center; gap: 20px; }
.footer-social img { width: 30px; height: 30px; filter: brightness(0) invert(1); transition: transform 0.3s ease; }
.footer-social a:hover img { transform: translateY(-5px); }

/* =========================================
   PÁGINA DE RESERVAS (CORREGIDA)
   ========================================= */
/* =========================================
   PÁGINA DE RESERVAS (ESTRUCTURA AGRUPADA)
   ========================================= */
.reservas-page { background-color: var(--crema); }

.booking-container { 
    padding: 120px 20px 60px; 
    max-width: 1100px; 
    margin: 0 auto; 
    text-align: center; 
}
.booking-container h1 { font-size: 3rem; margin-bottom: 10px; color: var(--verde-oscuro); }

/* La caja blanca principal */
.booking-container-box {
    margin-top: 40px; 
    background: white; 
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* Contenedor principal que apila top-row y formulario verticalmente */
.booking-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

/* Fila superior: imagen+texto a la izquierda, calendario a la derecha */
.booking-top-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    justify-content: center;
}

/* La caja de la imagen */
.booking-image-box { 
    width: 380px;
    flex-shrink: 0;
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    text-align: left; 
}

/* La imagen con altura máxima para no empujar el calendario */
.booking-side-img { 
    width: 100%; 
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px; 
}

/* El calendario a la derecha */
#inline-calendar { 
    flex-shrink: 0;
    display: flex; 
    justify-content: center; 
}
#inline-calendar .flatpickr-calendar { width: 340px !important; box-shadow: none; border: 1px solid #eee; }
.flatpickr-day { height: 45px !important; line-height: 45px !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--verde-oliva) !important;
    border-color: var(--verde-oliva) !important;
}

/* El formulario abajo del todo */
.booking-form-box {
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: left;
}
.booking-form-box label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #777; }
.booking-form-box input, .booking-form-box select { 
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; background: #fdfdfd; font-family: inherit; border-radius: 4px; 
}

/* RESPONSIVE PARA MÓVILES */
@media (max-width: 850px) {
    /* Rompemos la fila y ponemos uno debajo de otro en móvil */
    .booking-top-row { flex-direction: column; }
    #inline-calendar { flex: 1; width: 100%; }
    #inline-calendar .flatpickr-calendar { width: 100% !important; max-width: 350px; margin: 0 auto; }
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 900px) {
    /* Ajustes generales */
    .features, .testimonials, .contact-section, .gallery { grid-template-columns: 1fr; }
    .nav-logo { margin-left: 0; }
    .contact-section { gap: 40px; }
    footer { flex-direction: column; text-align: center; gap: 30px; }
    
    /* Ajustes de reservas para móvil */
    .booking-grid { grid-template-columns: 1fr; padding: 20px; }
    .booking-side-img { height: 250px; }
    #inline-calendar .flatpickr-calendar { width: 100% !important; max-width: 350px; }
}

@media (max-width: 768px) {
    .prev, .next { opacity: 0.7; }
}