/* --- COMIENZO DEL ARCHIVO css/style.css COMPLETAMENTE CORREGIDO (LOGO CENTRADO EN MÓVIL) --- */

/* --- VARIABLES Y RESET --- */
:root {
    --primary-color: #38761D;    --primary-hover: #2e6417;
    --secondary-color: #8f793b;  --accent-color: #FFC107;
    --text-dark: #333;           --text-light: #666;
    --bg-light: #f9f9f9;         --white: #fff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --success: #4CAF50;          --error: #f44336;
    --info: #2196F3;             --warning: #ff9800;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    /* Ajustado para el nuevo menú más compacto */
    padding-top: 100px; 
}

/* --- UTILIDADES --- */
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

/* --- TIPOGRAFÍA --- */
h1, h2, h3 { font-weight: 700; margin-bottom: 1rem; }

h2 {
    color: var(--primary-color);
    font-size: 2.5rem; margin-bottom: 3rem;
    position: relative; text-align: center;
}

h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--secondary-color); margin: 10px auto 0;
    border-radius: 2px;
}

/* --- COMPONENTES REUTILIZABLES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.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: var(--primary-color); color: var(--white);
}

.primary-btn:hover {
    background: var(--primary-hover); transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.secondary-btn {
    background: transparent; color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color); color: var(--white);
}

.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 transparent; }
    100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

.module {
    padding: 80px 0;
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s ease; will-change: opacity, transform;
}

.module.visible {
    opacity: 1; transform: translateY(0);
}

/* ========== NAVBAR (CORREGIDO) ========== */
#navbar {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    background: rgba(255,255,255,0.98); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    z-index: 1000; 
    padding: 0; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(56, 118, 29, 0.1);
}

#navbar.scrolled-down {
    transform: translateY(-100%);
    box-shadow: none;
}

#navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    padding: 2px 0; /* Más delgado al hacer scroll */
}

#navbar .container {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px; /* Padding reducido para ganar espacio */
}

.logo { 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    height: 100%; 
    gap: 15px; /* Espacio entre logos */
    transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.02); }

#nav-logo {
    height: 100px; /* Altura aumentada ligeramente */
    width: auto; 
    max-width: 280px; /* Más largo para que se vea mejor */
    object-fit: contain; display: block; 
    mix-blend-mode: multiply;
    transition: all 0.3s ease;
}

/* --- ESTILO NUEVO PARA RNT (BADGE/BOTÓN) --- */
.rnt-container {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.rnt-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(56, 118, 29, 0.3);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.rnt-link:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.rnt-label { 
    color: var(--primary-color); 
    font-weight: 700;
    font-size: 0.85rem;
}

.rnt-number { 
    color: var(--text-dark); 
    font-weight: 600;
    font-size: 0.85rem;
}

#navbar.scrolled #nav-logo { height: 85px; }

/* ========== NAV LINKS (BOTONES VERDES) ========== */
.nav-links {
    display: flex; gap: 8px; align-items: center;
    list-style: none;
}

.nav-btn {
    color: var(--white) !important; /* Texto Blanco */
    background: var(--primary-color); /* Fondo Verde */
    font-weight: 600; font-size: 0.95rem;
    padding: 10px 22px; border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
    border: 2px solid var(--primary-color);
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
}

.nav-btn:hover {
    color: var(--white);
    background: var(--primary-hover); /* Verde más oscuro al pasar mouse */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(56, 118, 29, 0.2);
    border-color: var(--primary-hover);
}

.nav-btn::after { display: none; } /* Quitamos la línea inferior antigua */

.nav-btn.active {
    background: var(--secondary-color); /* Color secundario para el activo */
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(143, 121, 59, 0.3);
}

.reserve-main-btn {
    /* Dorado/Amarillo para resaltar sobre los verdes */
    background: linear-gradient(135deg, var(--accent-color), #FF9800);
    color: var(--text-dark) !important;
    padding: 10px 26px; border-radius: 30px;
    font-weight: 700; border: none;
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.3);
    position: relative; overflow: hidden;
    z-index: 1; margin-left: 10px;
}

.reserve-main-btn:hover {
    background: linear-gradient(135deg, #FF9800, var(--accent-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

/* Selector de idiomas */
#language-selector {
    padding: 8px 12px; border: 2px solid rgba(56, 118, 29, 0.2);
    border-radius: 20px; background: white; 
    font-size: 0.9rem; cursor: pointer; outline: none; 
    color: var(--text-dark); font-weight: 500;
    transition: all 0.3s ease; margin-left: 10px;
}

#language-selector:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(56, 118, 29, 0.1);
}

/* ========== SCROLL INDICATOR ========== */
#scroll-indicator {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 3px;
    background: rgba(255,255,255,0.1); z-index: 1001;
}

#scroll-progress {
    height: 100%; 
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%; transition: width 0.15s ease-out;
    border-radius: 0 3px 3px 0;
}

/* --- HERO CON CARRUSEL (UPDATED) --- */
.hero-module {
    height: 100vh; 
    margin-top: -100px; /* Ajustado */
    padding-top: 100px; /* Ajustado */
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    color: var(--white); 
    padding-left: 20px; padding-right: 20px;
    background: #000;
    overflow: hidden;
}

/* Contenedor del Slider */
.hero-slider {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; 
}

/* Cada diapositiva */
.hero-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active { opacity: 1; z-index: 2; }

/* Overlay oscuro integrado en el slide */
.hero-slide::after {
    content: ''; position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
}

/* Flechas del Slider */
.slider-arrow {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white; border: none;
    font-size: 2rem; padding: 10px 20px;
    cursor: pointer; z-index: 10;
    border-radius: 5px; transition: background 0.3s;
    user-select: none;
}

.slider-arrow:hover { background: rgba(255, 152, 0, 0.9); }

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Contenido de texto encima del slider */
.hero-overlay {
    position: relative; 
    z-index: 20; 
    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;
}

/* --- 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;
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s ease; 
    position: relative; will-change: opacity, transform;
}

.cabana-card.active { opacity: 1; transform: translateY(0); }

.cabana-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cabana-card img {
    width: 100%; height: 250px; object-fit: cover;
    transition: transform 0.5s ease;
}

.cabana-card:hover img { transform: scale(1.1); }

.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; display: flex; 
    justify-content: center; gap: 10px;
    position: relative; z-index: 10;
}

.card-actions .btn { padding: 10px 20px; font-size: 0.9rem; }

.cabana-card::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    transition: left 0.5s ease; z-index: 1;
}

.cabana-card:hover::before { left: 100%; }

/* --- 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; cursor: pointer;
}

.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2rem; }

/* --- 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 p { margin: 0; }

/* --- FORMULARIO RESERVA --- */
.reservation-module { background: #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);
}

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);
    min-height: 48px;
}

input:focus, select:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56,118,29,0.1);
}

/* --- STEPPERS --- */
.stepper-container {
    display: flex; align-items: center;
    background: #f8f9fa; border: 1px solid #ddd;
    border-radius: 50px; padding: 5px; width: fit-content;
}

.stepper-container.small { padding: 2px; border-radius: 8px; }

.stepper-input {
    width: 50px !important; text-align: center;
    border: none !important; background: transparent;
    font-weight: bold; font-size: 1.1rem; 
    padding: 0 !important; min-height: auto !important; 
    color: var(--text-dark); appearance: textfield; 
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

.stepper-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--primary-color); 
    background: white; color: var(--primary-color); 
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}

.stepper-btn:hover { background: var(--primary-color); color: white; }
.stepper-btn:active { transform: scale(0.9); }
.stepper-btn:disabled {
    border-color: #ccc; color: #ccc;
    cursor: not-allowed; background: #f1f1f1;
}

/* --- SERVICIOS ADICIONALES --- */
.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;
}

.service-stepper-row {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 15px;
    border-bottom: 1px solid #eee; padding-bottom: 10px;
}

.service-stepper-row label { margin-bottom: 0; font-weight: 500; }

.warning-text {
    font-size: 0.85rem; font-weight: bold; color: #dc3545;
    margin-left: 10px; background: #fff3f3;
    padding: 2px 8px; border-radius: 4px;
}

.service-hint { font-size: 0.85rem; color: #666; margin-left: 10px; }

.service-controls { display: flex; align-items: center; gap: 15px; }

.price-indicator {
    color: var(--primary-color); font-weight: 600;
    min-width: 80px; text-align: right;
}

.free-badge {
    background: #4CAF50; color: white;
    padding: 4px 10px; border-radius: 12px;
    font-size: 0.85rem; font-weight: 600;
    min-width: 80px; text-align: center;
}

/* --- RESUMEN DE COSTOS --- */
.summary-box {
    background: #fff8e1; border-left: 5px solid var(--accent-color);
    padding: 20px; margin: 20px 0; border-radius: 5px;
}

.total-amount { font-weight: bold; font-size: 1.2em; }
.deposit-amount { font-weight: bold; }
.deposit-info { color: #d9534f; }

/* --- MENSAJES Y SUGERENCIAS --- */
.info-message {
    background: #d1ecf1; color: #0c5460;
    padding: 10px; border-radius: 5px;
    margin-bottom: 15px; text-align: center;
}

.error-message {
    background: #f8d7da; color: #721c24;
    padding: 15px; border-radius: 5px; 
    margin-top: 15px; text-align: center; 
    font-weight: 600; border: 1px solid #f5c6cb;
}

#availability-message {
    background-color: #FEF2F2;
    border-left: 5px solid #DC2626;
    color: #991B1B;
    padding: 15px 20px; border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem; margin-bottom: 20px;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease-in-out;
}

#recommendation-box {
    background: var(--white); border: 1px solid #E5E7EB;
    border-radius: 12px; padding: 0;
    margin-top: 15px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: none; overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

.rec-header {
    background: #F0FDF4; padding: 15px 20px;
    border-bottom: 1px solid #DCFCE7;
    display: flex; align-items: center; gap: 10px;
}

.rec-header i { color: #16A34A; font-size: 1.2rem; }
.rec-header h4 { margin: 0; color: #166534; font-size: 1rem; font-weight: 600; }

.rec-body { padding: 20px; }
.rec-text { color: #4B5563; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.5; }

.rec-options { display: flex; flex-direction: column; gap: 10px; }

.rec-option-btn {
    background: #F3F4F6; border: 1px solid #E5E7EB;
    padding: 12px 15px; border-radius: 8px;
    cursor: pointer; text-align: left;
    transition: var(--transition);
    display: flex; justify-content: space-between;
    align-items: center; font-family: 'Poppins', sans-serif;
}

.rec-option-btn:hover {
    background: var(--primary-color); color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(56, 118, 29, 0.2);
}

.rec-date-main { font-weight: 600; font-size: 0.95rem; }
.rec-badge {
    background: var(--white); color: var(--primary-color);
    padding: 2px 8px; border-radius: 12px;
    font-size: 0.75rem; font-weight: bold;
}

@keyframes slideUp { 
    from { transform: translateY(10px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

/* --- WHATSAPP BUTTON --- */
.whatsapp-btn {
    width: 100%; background: #25D366; color: white;
    font-size: 1.1rem; display: flex;
    align-items: center; justify-content: center;
    gap: 10px; border: none;
}

.whatsapp-btn:hover {
    background: #128C7E;
    box-shadow: 0 5px 15px rgba(37,211,102,0.4);
}

.whatsapp-btn:disabled {
    background: #ccc; cursor: not-allowed; box-shadow: none;
}

/* --- PLAN PASADÍA --- */
.plan-pasadia { border: 2px solid #FF9800 !important; background: #fff8e1; }

.plan-badge {
    background: #FF9800; color: white;
    padding: 2px 8px; border-radius: 12px;
    font-size: 0.8em; margin-left: 10px; font-weight: bold;
}

.plan-includes { list-style: none; padding-left: 0; margin: 15px 0; }
.plan-includes li { padding: 5px 0; border-bottom: 1px dashed #ddd; }
.plan-includes li:last-child { border-bottom: none; }
.plan-includes i { color: #FF9800; width: 20px; margin-right: 10px; }

.plan-price {
    background: var(--success); color: white;
    padding: 10px; border-radius: 8px;
    text-align: center; margin: 15px 0;
}

.reservation-type-selector { display: flex; gap: 10px; margin-bottom: 20px; }

.type-option {
    flex: 1; padding: 15px; 
    border: 2px solid #ddd; border-radius: 8px; 
    text-align: center; cursor: pointer;
    transition: all 0.3s ease;
}

.type-option:hover { border-color: var(--success); background: #f1f8e9; }
.type-option.active { border-color: var(--success); background: #e8f5e9; }

.type-option i {
    font-size: 24px; margin-bottom: 8px;
    color: #666; display: block;
}

.type-option.active i { color: var(--success); }
.type-option#type-pasadia.active { border-color: #FF9800; background: #fff8e1; }
.type-option#type-pasadia.active i { color: #FF9800; }

.pasadia-active {
    background: #fff8e1; border-left: 4px solid #FF9800;
    padding: 12px; margin: 15px 0; border-radius: 4px;
}

.pasadia-active strong { color: #FF9800; }

/* --- CHECKBOX PERSONALIZADO --- */
.checkbox-container {
    display: inline-flex; align-items: center;
    cursor: pointer; user-select: none; 
    position: relative; font-size: 0.95rem; gap: 8px;
}

.checkbox-container input { position: absolute; opacity: 0; height: 0; width: 0; margin: 0; }

.checkbox-container .checkmark {
    position: relative; height: 18px; width: 18px;
    background: #fff; border: 2px solid #ddd; 
    border-radius: 4px; display: inline-block; 
    vertical-align: middle;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.03);
}

.checkbox-container input:checked ~ .checkmark { background: #FF9800; border-color: #FF9800; }

.checkbox-container .checkmark::after {
    content: ""; position: absolute; display: none;
    left: 5px; top: 1px; width: 4px; height: 8px;
    border: solid white; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after { display: block; }

.plan-label { margin-left: 6px; font-weight: 600; }
.plan-schedule { margin-left: 6px; }

/* --- CAMPOS BLOQUEADOS --- */
.locked-field {
    opacity: 0.6; pointer-events: none;
    background: #f5f5f5; border-color: #ddd;
}

.lock-indicator {
    display: inline-block; margin-left: 10px;
    color: #666; font-size: 0.9em; font-style: italic;
}

.lock-indicator i { margin-right: 5px; color: #FF9800; }

/* --- SERVICIOS DESHABILITADOS --- */
.service-disabled { opacity: 0.5; pointer-events: none; }
.service-disabled .service-label-group label,
.service-disabled .service-option label { color: #999 !important; }

/* --- ICONOS DE SERVICIOS --- */
.tour-icon { color: #0a78b5; }
.cafe-icon { color: #ad5210; }
.fire-icon { color: #FF6B35; }

/* --- MODALES --- */
.modal {
    display: none; position: fixed; 
    z-index: 10001; left: 0; top: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); 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;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.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;
}

/* Fix para imágenes del modal */
.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); }

/* Clase para lupa en fotos del modal */
.clickable-modal-img {
    cursor: zoom-in; 
    transition: transform 0.3s ease;
}

.clickable-modal-img:hover {
    transform: scale(1.05); 
    filter: brightness(1.1);
}

.modal-actions { margin-top: 20px; }

/* --- MODAL ESPECÍFICO RNT (NUEVO) --- */
.modal-rnt {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 12000; /* Encima de todo */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85); /* Fondo oscuro */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content-rnt {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%; max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.close-rnt {
    position: absolute; top: 10px; right: 15px;
    font-size: 30px; font-weight: bold;
    color: #aaa; cursor: pointer;
    transition: color 0.2s;
}

.close-rnt:hover { color: var(--error); }

.rnt-document-view img {
    width: 100%; height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 15px;
}

/* =========================================================
   --- LIGHTBOX (GALERÍA) - CORREGIDO PARA PC Y MÓVIL ---
   ========================================================= */
.lightbox {
    display: none; position: fixed; 
    top: 0; left: 0;
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95);
    z-index: 11000; padding: 0;
    /* Fix para que no bloquee scroll en celular si no está activo */
    pointer-events: none; 
}

.lightbox.active {
    display: flex; align-items: center;
    justify-content: center;
    pointer-events: all; 
}

/* Contenedor central flexible */
.lightbox-content {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 90%; max-width: 900px;
    max-height: 95vh; margin: auto;
    position: relative;
}

/* Imagen Lightbox */
.lightbox img {
    max-height: 60vh; width: auto;
    max-width: 100%; object-fit: contain;
    border-radius: 8px; margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
    will-change: opacity;
}

/* Botón cerrar movido debajo del texto */
.lightbox-close {
    color: white; font-size: 45px; 
    cursor: pointer; z-index: 11005; 
    transition: color 0.3s, background 0.3s;
    line-height: 0.8;
    padding: 10px; width: 50px; height: 50px;
    background: rgba(0,0,0,0.3); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 20px auto 0 auto;
}

.lightbox-close:hover { color: var(--accent-color); background: rgba(0,0,0,0.5); }

/* Flechas de navegación */
.lightbox-nav button {
    position: absolute; top: 50%; 
    background: rgba(255,255,255,0.2);
    color: white; border: none; padding: 15px; 
    cursor: pointer; font-size: 24px; 
    transform: translateY(-50%);
    border-radius: 50%; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s; z-index: 11001;
}

.lightbox-nav button:hover { background: rgba(255,255,255,0.4); }

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Descripción con scroll si es muy larga */
.lightbox-caption {
    color: #fff; text-align: center;
    font-size: 1.1rem; line-height: 1.5;
    max-width: 800px; max-height: 25vh; 
    overflow-y: auto; padding: 0 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) transparent;
}

/* --- 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; }

/* --- FOOTER --- */
.site-footer {
    background: var(--primary-color); color: var(--white);
    padding: 30px 0; margin-top: 50px;
}

.footer-content {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap;
}

.footer-logo-box { text-align: left; }

.footer-logo-box img {
    width: 300px; height: auto; 
    background: var(--white);
    padding: 15px 25px; border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.footer-logo-box p { font-size: 0.9rem; opacity: 0.9; }
.footer-info { text-align: right; }
.footer-social { margin: 10px 0; font-size: 1.2rem; }

.footer-social a {
    color: white; margin: 0 10px;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px); color: var(--accent-color);
}

/* === BOTÓN "IR ARRIBA" === */
#back-to-top {
    position: fixed; bottom: 30px; left: 30px;
    width: 55px; height: 55px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white; border: none;
    border-radius: 50%; font-size: 1.3rem;
    cursor: pointer; box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
    opacity: 0; visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000; display: flex !important;
    align-items: center; justify-content: center; overflow: hidden;
}

#back-to-top::before {
    content: ''; position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

#back-to-top:hover::before { left: 100%; }

#back-to-top:hover {
    background: linear-gradient(135deg, #388E3C, #1B5E20);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.5);
}

#back-to-top.show {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}

/* --- PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: white; z-index: 9999; 
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
    animation: fadeIn 0.5s ease;
}

.preloader-content { text-align: center; }

.cabin-loader {
    width: 80px; height: 60px;
    position: relative; margin: 0 auto 20px;
}

.cabin-roof {
    width: 0; height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 20px solid var(--secondary-color);
}

.cabin-body {
    width: 80px; height: 40px;
    background: var(--primary-color);
    border-radius: 0 0 5px 5px; position: relative;
}

.cabin-door {
    width: 20px; height: 30px; 
    background: #5a3e1b;
    position: absolute; bottom: 0; left: 30px;
    border-radius: 3px 3px 0 0;
}

.preloader-content p {
    color: var(--primary-color); font-size: 1.2rem;
    margin-top: 20px; font-weight: 500;
}

/* --- TOAST --- */
#toast-container {
    position: fixed; bottom: 30px; right: 30px;
    z-index: 1000; display: flex; 
    flex-direction: column; gap: 15px;
}

.toast {
    background: white; padding: 15px 25px; 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 15px;
    transform: translateX(150%); 
    transition: transform 0.3s ease;
    max-width: 400px; min-width: 300px;
    border-left: 5px solid; will-change: transform;
}

.toast.show { transform: translateX(0); }

.toast.success { border-left-color: var(--success); background: linear-gradient(90deg, #f8fff8, white); }
.toast.error { border-left-color: var(--error); background: linear-gradient(90deg, #fff8f8, white); }
.toast.info { border-left-color: var(--info); background: linear-gradient(90deg, #f8fbff, white); }
.toast.warning { border-left-color: var(--warning); background: linear-gradient(90deg, #fffbf8, white); }

.toast i { font-size: 1.5rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--error); }
.toast.info i { color: var(--info); }
.toast.warning i { color: var(--warning); }

.toast span { font-size: 0.95rem; flex: 1; }

/* --- ANIMACIONES DE ENTRADA --- */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.cabana-card:nth-child(1) { animation-delay: 0.1s; }
.cabana-card:nth-child(2) { animation-delay: 0.2s; }

/* ========== RESPONSIVE DESIGN (CORREGIDO PARA MÓVIL) ========== */
@media (max-width: 768px) {
    body { padding-top: 100px; } /* Menos espacio arriba */
    
    #navbar { padding: 5px 0; }
    
    /* --- CORRECCIÓN APLICADA AQUÍ: CENTRADO DE LOGO EN MÓVIL --- */
    #navbar .container {
        flex-direction: column; /* Apilar elementos verticalmente */
        align-items: center; /* Centrar horizontalmente */
        justify-content: center;
        padding: 10px 15px;
        gap: 10px; /* Espacio entre el logo/RNT y los botones */
    }

    /* Contenedor del Logo + RNT */
    .logo {
        justify-content: center; /* Centra el logo y el RNT en su fila */
        width: 100%;             /* Ocupa todo el ancho */
        margin-bottom: 5px;      /* Espacio antes de los botones */
    }

    #nav-logo {
        height: 80px;  /* Un poco más grande para destacar */
        max-width: 80%; /* Evita desbordes */
        object-fit: contain;
    }
    
    /* Ajuste de RNT en móvil */
    .rnt-container {
        margin-left: 10px;
    }
    .rnt-link {
        padding: 5px 10px;
    }
    .rnt-label, .rnt-number { font-size: 0.8rem; }
    
    .nav-links {
        width: 100%;
        justify-content: center; /* Centra los botones */
        flex-wrap: wrap;
        gap: 8px; /* Un poco más de espacio entre botones */
        margin-top: 0;
    }
    
    .nav-btn {
        font-size: 0.85rem; padding: 8px 16px;
        margin: 2px; border-radius: 20px;
    }
    
    .nav-btn::after { height: 2px; }
    
    .reserve-main-btn {
        padding: 8px 16px; font-size: 0.85rem;
        margin: 5px 0 0 0; order: -1; /* Botón de reserva primero */
    }
    
    #language-selector { margin: 5px 0 0 0; align-self: center; }
    
    .hero-module {
        margin-top: -100px; 
        padding: 0 15px;
        padding-top: 110px; 
    }
    
    .hero-module h1 { font-size: 2rem; line-height: 1.2; }
    .hero-module p { font-size: 1rem; margin-bottom: 25px; }
    
    .module { padding: 50px 0; }
    h2 { font-size: 1.8rem; margin-bottom: 2rem; }
    .container { padding: 0 15px; }
    
    .cabanas-grid { gap: 25px; }
    .cabana-card { width: 100%; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
    .cabana-card img { 
        height: 300px; 
        object-fit: cover; object-position: center; 
    }
    .cabana-card::before { display: none; }
    
    #reservationForm { padding: 25px 20px; }
    .form-row { flex-direction: column; gap: 0; }
    
    .stepper-container { width: 100%; justify-content: center; }
    .stepper-input { width: 60px !important; }
    
    .service-stepper-row {
        flex-direction: column; align-items: flex-start; gap: 10px;
    }
    
    .service-stepper-row .stepper-container { align-self: center; }
    
    .modal-content {
        padding: 25px; width: 95%;
        max-height: 90vh; overflow-y: auto;
    }
    
    .modal-grid { flex-direction: column; align-items: center; }
    .modal-grid img { width: 100% !important; height: 150px !important; margin-bottom: 10px; }
    
    .footer-content {
        flex-direction: column; text-align: center; gap: 20px;
    }
    
    .footer-logo-box, .footer-info { text-align: center; }
    .footer-logo-box img { width: 260px; }
    
    input, select, textarea { font-size: 16px !important; }
    
    /* Ajuste específico para lightbox en móvil */
    .lightbox-content { max-width: 95%; max-height: 85vh; }
    .lightbox img { max-height: 50vh; }
    .lightbox-caption { font-size: 0.95rem; }
    .lightbox-nav button {
        width: 40px; height: 40px;
        padding: 10px; font-size: 18px;
    }
    
    #back-to-top {
        bottom: 20px; left: 20px;
        width: 50px; height: 50px; font-size: 1.1rem;
    }
    
    #toast-container { bottom: 20px; right: 20px; left: 20px; }
    .toast { min-width: auto; max-width: 100%; padding: 12px 20px; }
    
    .cabin-loader { width: 60px; height: 45px; }
    .cabin-roof {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 15px solid var(--secondary-color);
    }
    
    .cabin-body { width: 60px; height: 30px; }
    .cabin-door { width: 15px; height: 20px; left: 22px; }
    .preloader-content p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .module, .cabana-card, .btn,
    .gallery-item img, .lightbox img, .toast,
    #back-to-top, #scroll-progress, .nav-btn,
    .reserve-main-btn {
        transition: none !important; animation: none !important;
    }
}