/* --- Paleta de Colores --- */
:root {
    --bg-color: #FFFFFF;
    --text-color: #4A2C2A;
    --primary-color: #C89C4C;
    --nav-bg: #9D7D4C;
    --card-bg: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --footer-bg: #4E340A;
}

/* --- Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.4;
    padding-top: 100px; /* Para el nav fijo */
}

body.menu-open {
    overflow: hidden;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid #F1ECE5;
}

section:last-of-type {
    border-bottom: none;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.15;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Barra de Navegación --- */
.top-nav {
    background-color: #4E340A;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    height: 60px;
    width: auto;
}

/* Menú de Escritorio */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: white;
    font-weight: 400;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #9D7D4C;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 2.2rem;
    padding: 0;
    z-index: 1100;
}

.site-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1020;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Logo/4aves-sierras-fondo.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero h1 {
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.7);
}

.hero-text {
    max-width: 800px;
}

.hero-text p {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.7);
}

.hero .whatsapp-button {
    margin-top: 2rem;
}

/* --- Cabins Section --- */
.cabins-section > p {
    text-align: center;
    max-width: 700px;
    margin: -1.5rem auto 2.5rem auto;
    font-size: 1.1rem;
}

.cabins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.cabin-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid #eee;
}

.cabin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.cabin-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cabin-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 2rem 1rem 1rem;
}

.cabin-card-title h3 {
    color: white;
    margin: 0;
}

.cabin-card.upcoming {
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px;
    background-color: #f9f9f9;
}
.cabin-card.upcoming:hover { transform: none; box-shadow: 0 4px 15px var(--shadow-color); }

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-column {
    text-align: left;
}

.service-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem; /* More space for lists */
    color: #9D7D4C;
}

.service-column ul {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.service-column ul li {
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 20px;
}

.service-column ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px; 
    width: 5px;
    height: 5px;
    background-color: var(--nav-bg);
    border-radius: 50%;
}


/* --- Location Section --- */
.location-section p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--footer-bg);
    padding: 2rem 0;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Add horizontal padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a svg {
    width: 28px;
    height: 28px;
    stroke: white;
    transition: stroke 0.3s ease;
}

.footer-social a:hover svg, .footer-social a.touch-active svg {
    stroke: #9D7D4C;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #9D7D4C;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 400;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.whatsapp-button:hover, .whatsapp-button.touch-active {
    background-color: #8A6D44;
    color: white;
}

.whatsapp-button svg {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: none;
}

.footer-text {
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #6a4a1a;
}

/* --- Modal de Galería --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

#modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
}

.prev-button, .next-button, .close-button {
    cursor: pointer;
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    user-select: none;
    z-index: 2001;
    border: none;
}

.prev-button:hover, .next-button:hover, .close-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-button, .next-button {
    top: 50%;
    transform: translateY(-50%);
}

.prev-button { left: 10px; }
.next-button { right: 10px; }

.close-button {
    top: 15px;
    right: 15px;
}

.prev-button svg, .next-button svg, .close-button svg {
    width: 24px;
    height: 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    .top-nav {
        height: 80px;
    }
    .nav-container {
        padding: 0 1rem;
    }
    .nav-logo {
        height: 50px;
    }

    /* Ocultamos el menú de escritorio y mostramos el de hamburguesa */
    .nav-container .nav-menu {
        display: none; /* Oculto por defecto */
    }
    .hamburger-menu {
        display: block;
        z-index: 1100; /* Asegurar que esté sobre otros elementos */
    }

    /* Estilos del menú desplegable (Pantalla Completa) */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(78, 52, 10, 0.98); /* #4E340A with transparency */
        list-style: none;
        padding: 0;
        margin: 0;
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.active.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu.active a {
        color: white;
        font-size: 1.8rem;
        padding: 1rem 0;
        text-decoration: none;
        border-bottom: none; /* Remove border from previous style */
    }
     .nav-menu.active a:hover, .nav-menu.active a.touch-active {
        border-bottom: none;
        color: #4E340A;
    }


    /* Transformar hamburguesa en X */
    .hamburger-menu {
        position: relative;
        width: 30px;
        height: 22px; /* Adjusted height for better centering */
        transition: all 0.3s ease;
        text-indent: -9999px; /* Ocultar el texto del botón de hamburguesa (&#9776;) */
    }
    .hamburger-menu::before,
    .hamburger-menu::after {
        content: '';
        position: absolute;
        background-color: white;
        width: 100%;
        height: 2px;
        left: 0;
        transition: all 0.3s ease;
    }
    .hamburger-menu::before {
        top: 0;
    }
    .hamburger-menu::after {
        bottom: 0;
    }
    /* Middle line for hamburger */
    .hamburger-menu span {
        position: absolute;
        background-color: white;
        width: 100%;
        height: 2px;
        top: 10px;
        left: 0;
        transition: all 0.1s ease;
    }

    .hamburger-menu.active::before {
        transform: translateY(10px) rotate(45deg);
    }
    .hamburger-menu.active::after {
        transform: translateY(-10px) rotate(-45deg);
    }
    .hamburger-menu.active span {
        opacity: 0;
    }


    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    main { padding: 0 1rem; }

    .footer-container {
        flex-direction: column;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-column {
        text-align: left;
    }
}