/* Lightbox Modal para galería de imágenes */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 16px;
    flex-direction: column;
    gap: 12px;
}
.lightbox-content {
    margin: 0 auto 12px auto;
    display: block;
    max-width: min(920px, 92vw);
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
    background: rgba(0,0,0,0.45);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover {
    color: #ffb347;
}
.lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 2px 8px #000;
    max-width: min(920px, 90vw);
    padding: 6px 10px;
    line-height: 1.3;
    overflow-wrap: break-word;
}
.cabana-principal {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
}
/* Galería de interiores de cabañas */

.cabana-gallery-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.cabana-carousel-viewport {
    overflow: hidden;
    border-radius: 10px;
}

.cabana-galeria {
    display: flex;
    gap: 0;
    transform: translateX(0);
    transition: transform 0.35s ease;
    width: 100%;
}

.cabana-galeria img {
    width: 100%;
    height: 200px;
    flex: 0 0 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    background: #fafafa;
}

.cabana-galeria img:hover {
    transform: none;
    box-shadow: none;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: var(--transition);
    z-index: 2;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.55);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.gallery-arrow.left { left: 6px; }
.gallery-arrow.right { right: 6px; }
:root {
    --primary-color: #1a1a1a; /* Negro del logo */
    --secondary-color: #f39200; /* Naranja del logo */
    --accent-color: #ffb347; /* Naranja claro para detalles */
    --text-color: #333;
    --bg-light: #fdfcfb;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

/* Se desactiva el bloqueo de scroll para evitar saltos al cerrar el modal */
body.lock-scroll {
    overflow: hidden;
}

.modal-open {
    overflow: hidden;
}

/* Compensa el header sticky al navegar por anclas */
#inicio, #cabanas, #beneficios, #contacto, #resenas {
    scroll-margin-top: 110px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(6px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 68px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 4px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 999px;
    transition: var(--transition);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), 
                url('img/hero.bg.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background-color: var(--accent-color);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 80px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Beneficios */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.beneficio-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.beneficio-card:hover {
    transform: translateY(-10px);
}

.beneficio-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.beneficio-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Cabañas */
.cabanas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.cabana-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.cabana-card:hover {
    transform: scale(1.02);
}

.cabana-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cabana-info {
    padding: 25px;
}

.cabana-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.capacidad {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.descripcion {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #666;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 20px auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    z-index: 10;
}

.close:hover {
    color: var(--text-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(243, 146, 0, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #25d366;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 5px;
}

.btn-submit:hover {
    background-color: #128c7e;
}

/* Reseñas */
.resenas {
    padding-bottom: 80px;
}

.resenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.resena-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.resena-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.autor {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.dev-credit {
    margin-top: 15px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.6;
    text-transform: uppercase;
}

.dev-credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.social-links {
    margin-top: 12px;
    color: #ccc;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    color: #f8f8f8;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.social-link:hover {
    color: var(--accent-color);
}

.social-links .divider {
    color: #666;
    padding: 0 2px;
}

.social-label {
    font-weight: 700;
    color: #f8f8f8;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 18px;
        box-shadow: -6px 0 20px rgba(0,0,0,0.08);
        transition: right 0.3s ease;
        z-index: 950;
    }
    .nav-links.open {
        right: 0;
    }
    header nav {
        gap: 10px;
    }
    .nav-links a {
        font-size: 1rem;
    }
    .btn-nav {
        display: inline-block;
    }
    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .modal-content {
        margin: 10px auto;
        padding: 20px;
        width: 95%;
    }
    .modal-content h2 {
        font-size: 1.5rem;
    }
    input, textarea, .btn-submit {
        font-size: 16px;
    }
    .cabana-galeria img {
        height: 170px;
    }
    .lightbox-content {
        max-height: 72vh;
    }
}
