/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Estilo para el encabezado */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: #055f06; /* Verde cálido */
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 0.5rem 2rem;
    background-color: #025206; /* Verde más oscuro */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 7.5rem;
    margin-right: 1.25rem;
    transition: max-height 0.3s ease;
}

header.scrolled .logo img {
    max-height: 5rem;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

header.scrolled h1 {
    font-size: 1.2rem;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

nav ul li {
    margin-left: 1.25rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #d0f0c0;
}

/* Home Section */
.section-home {
    text-align: center;
    padding: 12.5rem 1.25rem; /* Ajuste de padding */
    background: url('home/fondo-home.jpg') no-repeat top center/cover;
    color: white;
}

.section-home h2 {
    font-size: 4rem;
    margin-bottom: 1.25rem;
}

.section-home p {
    font-size: 1.5rem;
    margin-bottom: 1.875rem;
}

.cta-button {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 1.2rem;
    color: #fff;
    background-color: #028a0f; /* Verde más brillante para CTA */
    border-radius: 0.3125rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #017b00;
}

/* Sección de habitaciones */
.section-rooms {
    padding: 3.125rem 1.25rem;
    text-align: center;
    background-color: #fff;
}

.section-rooms h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.section-rooms p {
    margin-bottom: 1.875rem;
    font-size: 1.2rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo general de la galería */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); /* Ajusta la cantidad de columnas según el tamaño de la pantalla */
    grid-gap: 1rem; /* Espacio entre las imágenes */
    justify-items: center; /* Centrar las imágenes en su celda */
    padding: 0;
    margin: 0 auto;
    max-width: 62.5rem; /* Evitar que la galería se extienda demasiado en pantallas grandes */
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-image {
    width: 100%; /* La imagen ocupa el 100% del ancho de su contenedor */
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Zoom suave en hover */
.gallery-item:hover .gallery-image {
    transform: scale(1.25); /* Zoom al pasar el cursor */
    transition: transform 0.3s ease-in-out;
}

/* Posicionamiento de los botones de navegación */
.gallery-item .prev,
.gallery-item .next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.625rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    border-radius: 50%;
    width: 10%;
}

/* Mostrar botones en hover */
.gallery-item:hover .prev,
.gallery-item:hover .next {
    display: block;
}

.gallery-item .prev {
    left: 1rem;
}

.gallery-item .next {
    right: 1rem;
}

/* Estilos para el título de la imagen */
.gallery-item h3 {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.3125rem;
    z-index: 2;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Título aumenta de tamaño en hover */
.gallery-item:hover h3 {
    font-size: 1.3rem;
}

/* Asegurar que el texto esté por encima de la imagen */
.gallery-item h3 {
    z-index: 10;
}

/* Media Queries para ajustar el diseño en pantallas más pequeñas */
@media (max-width: 768px) {
    .section-rooms h2 {
        font-size: 2rem;
    }
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); /* Reducir el tamaño mínimo de las imágenes en pantallas pequeñas */
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr; /* Mostrar una columna única en pantallas muy pequeñas */
    }

    .gallery-item h3 {
        font-size: 1rem;
    }
}

/* Contact Section */
.section-contact {
    padding: 1.25rem 0.625rem;
    background-color: #f7f7f7;
    color: black;
    text-align: center;
}

.section-contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.section-contact p {
    font-size: 1.2rem;
    margin-bottom: 0.625rem;
}

#map {
    width: 100%;
    height: 25rem; /* Ajustar la altura para pantallas pequeñas */
    margin-top: 1.25rem;
}

.contact-form {
    margin-top: 1.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form label {
    margin: 0.625rem 0 0.3125rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    max-width: 37.5rem;
    padding: 0.625rem;
    margin-bottom: 0.625rem;
    border: 1px solid #ccc;
    border-radius: 0.3125rem;
}

.contact-form button {
    padding: 0.625rem 1.25rem;
    font-size: 1.2rem;
    color: #fff;
    background-color: #028a0f;
    border: none;
    border-radius: 0.3125rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #017b00;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.25rem 0;
}

/* Modal en pantalla completa */
#fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 3.75rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

#fullscreen-modal.active {
    display: block;
}

#fullscreen-modal .modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

#fullscreen-modal .modal-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 0.5rem;
}

#fullscreen-modal .close-btn,
#fullscreen-modal .prev-btn,
#fullscreen-modal .next-btn {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.625rem;
    cursor: pointer;
    border-radius: 50%;
}

#fullscreen-modal .close-btn {
    top: 1.25rem;
    right: 2.1875rem;
    font-size: 3rem;
}

#fullscreen-modal .prev-btn {
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

#fullscreen-modal .next-btn {
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

#fullscreen-modal .close-btn:hover,
#fullscreen-modal .prev-btn:hover,
#fullscreen-modal .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Estilos para el botón de cierre en modo de pantalla completa */
.fullscreen-close {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 2.5rem; /* Ampliar el área clicable */
    height: 2.5rem; /* Ampliar el área clicable */
    background-color: rgba(255, 255, 255, 0.5); /* Fondo oscuro semi-transparente */
    color: white;
    font-size: 1.875rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.fullscreen-close:hover {
    background-color: rgba(255, 255, 255, 1); /* Cambio de color al pasar el ratón */
}

.fullscreen-close:before {
    content: '\00D7'; /* Símbolo "X" */
    font-size: 1.875rem;
    line-height: 1; /* Asegurar que el símbolo esté centrado */
}




