/* --- Variables CSS --- */
:root {
    --primary-color: #A38C6F; /* Tono terroso, elegante */
    --secondary-color: #6C757D; /* Gris suave para contraste */
    --accent-color: #C8A37E; /* Un dorado suave o bronce */
    --text-dark: #343A40;
    --text-light: #F8F9FA;
    --background-light: #F8F9FA;
    --background-dark: #212529;
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;

    --max-width-container: 1200px;
    --spacing-unit: 10px;
}

/* --- Reset Básico y Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2); /* 20px de padding en los lados */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }

p {
    margin-bottom: var(--spacing-unit);
}

.section-padding {
    padding: calc(var(--spacing-unit) * 8) 0; /* 80px arriba y abajo */
}

.section-description {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 5);
    color: var(--secondary-color);
}

.text-center {
    text-align: center;
}

.mt-30 { margin-top: calc(var(--spacing-unit) * 3); }
.mt-40 { margin-top: calc(var(--spacing-unit) * 4); }
.bg-light-gray { background-color: #F4F4F4; }
.bg-dark { background-color: var(--background-dark); color: var(--text-light); }
.bg-dark h2, .bg-dark h3 { color: var(--text-light); }
.bg-dark .section-description { color: #CED4DA; }

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3); /* 15px 30px */
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--background-dark);
}

/* --- Header --- */
.main-header {
    background-color: var(--white);
    padding: calc(var(--spacing-unit) * 2) 0; /* 20px arriba/abajo */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transición para el scroll */
}

/* Estilo para el header cuando se desplaza */
.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95); /* Ligeramente transparente */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo a {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap; /* Evitar que el logo se rompa en varias líneas */
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    margin-left: calc(var(--spacing-unit) * 3); /* 30px entre elementos */
}

.main-nav .nav-list a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    padding: var(--spacing-unit) 0;
    position: relative;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2); /* Espacio entre acciones */
}

.lang-switcher select {
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 1.5);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
}

.menu-toggle {
    display: none; /* Ocultar por defecto en desktop */
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav {
    display: none; /* Ocultar por defecto */
    background-color: var(--white);
    padding: var(--spacing-unit);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%; /* Justo debajo del header */
    transform: translateY(-100%); /* Ocultar fuera de vista */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.mobile-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    padding: calc(var(--spacing-unit) * 1.5) 0;
    border-bottom: 1px solid #EEE;
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a, .btn-booking-mobile {
    display: block;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 500;
}

.btn-booking-mobile {
    width: 100%;
    margin-top: var(--spacing-unit);
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 90vh; /* Ajusta la altura de la sección principal */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden; /* Para asegurar que el video no se desborde */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Asegura que el video cubra el contenedor sin distorsión */
    object-position: center; /* Centra el video */
    filter: brightness(0.7); /* Oscurecer el video para mejor contraste */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Capa de oscuridad sobre el video */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: var(--spacing-unit);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.video-control-btn {
    margin-bottom: calc(var(--spacing-unit) * 2);
    /* Añadir estilos para que se vea bien sobre el video */
    font-size: 1rem;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
}

.booking-widget-placeholder {
    background: rgba(255, 255, 255, 0.95);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: inline-block; /* Para que el fondo solo abarque el contenido */
    margin-top: calc(var(--spacing-unit) * 3);
}

.simple-booking-form {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    gap: var(--spacing-unit);
    justify-content: center;
    align-items: center;
}

.simple-booking-form input,
.simple-booking-form select {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    border: 1px solid #CCC;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    flex: 1; /* Permitir que los inputs crezcan */
    min-width: 150px; /* Ancho mínimo para los inputs */
}

.simple-booking-form button {
    flex-shrink: 0; /* Evita que el botón se encoja */
}

.direct-booking-message {
    margin-top: calc(var(--spacing-unit) * 2);
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Room Grid & Cards --- */
.room-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4); /* 40px entre tarjetas */
}

.room-card, .service-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover, .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.room-card img, .service-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.room-card h3, .service-item h3 {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2) 0;
    margin-bottom: var(--spacing-unit);
    color: var(--primary-color);
    font-size: 1.8rem;
}

.room-card p, .service-item p {
    padding: 0 calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    color: var(--secondary-color);
}

.room-card ul {
    list-style: none;
    padding: 0 calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-dark);
}

.room-card ul li {
    padding: calc(var(--spacing-unit) * 0.5) 0;
    display: flex;
    align-items: center;
}

.room-card ul li .icon {
    margin-right: var(--spacing-unit);
    color: var(--accent-color);
    font-size: 1.2rem;
}

.room-card .btn-outline {
    display: block;
    width: calc(100% - var(--spacing-unit) * 4); /* Ocupa el ancho con padding */
    margin: var(--spacing-unit) auto calc(var(--spacing-unit) * 2) auto; /* Centrar y margen inferior */
    text-align: center;
}

/* --- Services Grid --- */
.service-item {
    text-align: center;
}

.service-item img {
    height: 200px; /* Altura un poco menor para servicios */
}

.service-item h3 {
    font-size: 1.6rem;
}

.service-item p {
    padding-bottom: calc(var(--spacing-unit) * 2);
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Contact Section --- */
.contact-info {
    margin-top: calc(var(--spacing-unit) * 3);
    font-size: 1.2rem;
    line-height: 1.8;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1);
}

.contact-info p a {
    color: var(--white);
}

.contact-info p a:hover {
    color: var(--accent-color);
}

.contact-info .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links {
    margin-top: calc(var(--spacing-unit) * 2);
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
}

.social-links a {
    font-size: 2rem;
    color: var(--white);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}


/* --- Footer --- */
.main-footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: calc(var(--spacing-unit) * 5) 0 calc(var(--spacing-unit) * 2) 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 1.4rem;
}

.footer-col p {
    color: #CED4DA;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.footer-col ul li a {
    color: #CED4DA;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: calc(var(--spacing-unit) * 1.5);
}

.newsletter-form input {
    flex-grow: 1;
    padding: calc(var(--spacing-unit) * 1.2);
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: calc(var(--spacing-unit) * 1.2) calc(var(--spacing-unit) * 2);
}

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: calc(var(--spacing-unit) * 3);
    color: #CED4DA;
}

/* --- Lightbox Styles (Para la galería) --- */
.lightbox-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000; /* Asegura que esté por encima de todo */
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.is-open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh; /* Para que la imagen no sea demasiado grande */
    display: block;
    margin: 0 auto;
}

.lightbox-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 2001; /* Por encima de la imagen */
}

/* --- Media Queries for Responsiveness (Mobile-First approach) --- */

/* Tablet y pantallas más grandes (ancho mínimo de 768px) */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    .main-nav {
        display: none; /* Ocultar menú principal en tablets */
    }
    .btn-booking {
        display: none; /* Ocultar botón de reserva de desktop */
    }
    .menu-toggle {
        display: block; /* Mostrar toggle de menú móvil */
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .simple-booking-form {
        flex-direction: column;
        width: 80%;
        margin: 0 auto;
    }
    .simple-booking-form input, .simple-booking-form select, .simple-booking-form button {
        width: 100%;
        min-width: unset;
    }

    .room-grid, .services-grid, .gallery-grid {
        gap: calc(var(--spacing-unit) * 3);
    }
}

/* Teléfonos móviles (ancho máximo de 767px) */
@media (max-width: 767px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    .section-description {
        font-size: 1rem;
        margin-bottom: calc(var(--spacing-unit) * 3);
    }

    .main-header .logo a {
        font-size: 1.8rem;
    }

    .header-actions {
        gap: var(--spacing-unit);
    }
    .lang-switcher {
        display: none; /* Ocultar selector de idioma en móviles muy pequeños */
    }

    .hero-section {
        height: 80vh;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .booking-widget-placeholder {
        padding: calc(var(--spacing-unit) * 2);
    }
    .simple-booking-form {
        width: 100%;
    }

    .room-card h3, .service-item h3 {
        font-size: 1.5rem;
    }

    .contact-info p, .social-links {
        font-size: 1rem;
    }
    .contact-info .icon {
        font-size: 1.2rem;
    }
    .social-links a {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Una columna en móviles */
        text-align: center;
    }
    .footer-col h3 {
        margin-top: calc(var(--spacing-unit) * 3);
    }
    .footer-col ul {
        padding: 0;
    }
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    .newsletter-form input {
        width: 80%;
        margin-bottom: var(--spacing-unit);
        border-radius: 4px;
        text-align: center;
    }
    .newsletter-form button {
        width: 80%;
        border-radius: 4px;
    }
}