/* --- VARIABLES Y CONFIGURACIÓN GLOBAL --- */
:root {
    --primary-color: #38761D;    /* Verde Bosque */
    --primary-hover: #2e6417;
    --secondary-color: #8f793b;  /* Marrón Tierra/Madera */
    --accent-color: #FFC107;     /* Amarillo para destacados */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    padding-top: 70px; /* Espacio para el navbar de escritorio */
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BARRA DE NAVEGACIÓN (NAVBAR) --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-btn:hover {
    color: var(--primary-color);
}

.nav-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-btn:hover::after {
    width: 100%;
}

.reserve-main-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.reserve-main-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(56, 118, 29, 0.3);
}

.reserve-main-btn::after {
    display: none;
}

/* --- MÓDULO HERO (INICIO) --- */
.hero-module {
    height: 100vh;
    margin-top: -70px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://placehold.co/1920x1080/2e6417/FFFFFF?text=Paisaje+Venecia') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-overlay {
    max-width: 800px;
}

.hero-module h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-module p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- ANIMACIONES DE BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- MÓDULOS GENERALES --- */
.module {
    padding: 80px 0;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 0;
}

/* --- MÓDULO CABAÑAS --- */
.cabanas-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cabana-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 350px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cabana-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.cabana-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cabana-card h3 {
    padding: 20px 20px 5px;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.cabana-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-actions {
    padding: 0 20px 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.card-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- MÓDULO GALERÍA --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 0 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 220px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- MÓDULO UBICACIÓN --- */
.map-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* --- MÓDULO SERVICIOS --- */
.services-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-accordion {
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-accordion summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    background: var(--white);
    transition: background 0.2s;
}

.service-accordion summary:hover {
    background: #f1f8f1;
}

.service-accordion summary::-webkit-details-marker {
    display: none;
}

.service-accordion summary i {
    width: 25px;
    text-align: center;
}

.accordion-content {
    padding: 20px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    color: var(--text-light);
}

.accordion-content img {
    margin-top: 15px;
    border-radius: 5px;
}

/* --- MÓDULO RESERVA --- */
.reservation-module {
    background-color: #e9ecef;
}

#reservationForm {
    background: var(--white);
    max-width: 650px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* SOPORTE PARA INPUT TEL Y OTROS */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 118, 29, 0.1);
}

.services-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.service-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.service-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.summary-box {
    background: #fff8e1;
    border-left: 5px solid var(--accent-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-message {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #f5c6cb;
}

.recommendation-box {
    background: #fff3cd; 
    color: #856404; 
    padding: 15px; 
    border-radius: 5px; 
    margin-top: 15px; 
    border: 1px solid #ffeeba;
    text-align: center;
}

.whatsapp-btn {
    width: 100%;
    background-color: #25D366;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- VENTANAS MODALES --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px);
    justify-content: center; 
    align-items: center;
}

.modal-content {
    background: var(--white); 
    padding: 40px; 
    border-radius: 15px; 
    width: 90%; 
    max-width: 600px; 
    text-align: center; 
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

.close-modal {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 30px; 
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-grid {
    display: flex; 
    gap: 10px; 
    margin-top: 20px;
    justify-content: center;
}

.modal-grid img { 
    width: 32%; 
    height: 120px; 
    object-fit: cover; 
    border-radius: 8px; 
    transition: transform 0.2s;
}

.modal-grid img:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE DESIGN (SOLUCIÓN PROFESIONAL) --- */
@media (max-width: 768px) {
    body {
        /* Aumentamos padding porque el menú ocupará más espacio */
        padding-top: 130px; 
    }

    #navbar .container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    /* Solución: Menú visible, centrado y apilado */
    .nav-links {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap; /* Permite que los botones bajen si no caben */
        gap: 8px; 
    }
    
    .nav-btn {
        font-size: 0.85rem;
        padding: 6px 10px;
        background: rgba(255,255,255,0.6); /* Fondo suave para legibilidad */
        border-radius: 4px;
    }

    .reserve-main-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .hero-module h1 {
        font-size: 2.2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cabana-card, .services-container, #reservationForm {
        width: 100%;
        padding: 25px;
    }

    h2 {
        font-size: 2rem;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
    }
    
    .modal-grid {
        flex-wrap: wrap;
    }
    
    .modal-grid img {
        width: 100%; 
        height: 150px;
        margin-bottom: 5px;
    }
}