/* ======== ESTILOS GENERALES Y FUENTES ======== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}
.brand-title, .section-title, .menu-category {
    font-family: 'Playfair Display', serif;
}

/* ======== HEADER Y NAVEGACIÓN ======== */
.nav-link {
    position: relative;
    color: #4a5568; /* gris de tailwind */
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3b9c4f; /* brand-green */
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: #3b9c4f;
}
.nav-link:hover::after {
    width: 100%;
}

/* ======== HERO (PORTADA) ======== */
.hero-bg {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/inicio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ======== TÍTULOS DE SECCIÓN ======== */
.section-title {
    border-bottom: 3px solid #3b9c4f;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* ======== TARJETAS DE SERVICIOS ======== */
.plan-pasadia-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-pasadia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.activity-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .plan-pasadia-card {
        flex-direction: row;
    }
}

/* ======== MENÚ DEL RESTAURANTE (NUEVO DISEÑO) ======== */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.menu-item:hover {
    background-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.menu-item span:first-child {
    font-weight: 600;
    color: #1a202c; /* gris oscuro */
}

/* =========================================== */
/* ===== INICIO NUEVOS ESTILOS DE GALERÍA ===== */
/* =========================================== */

/* Contenedor principal que separa los dos grupos de imágenes */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Espacio entre el grupo 1 y el grupo 2 */
}

/* Estructura de cuadrícula para ambos grupos */
.gallery-group-1,
.gallery-group-2,
.gallery-group-3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 180px);
    /* Altura móvil */
}

/* === Grupo 1: Imagen larga a la izquierda === */
.gallery-group-1 .gallery-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* === Grupo 2: Imagen larga a la derecha === */
.gallery-group-2 .gallery-item:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

/* === Grupo 3: Imagen larga a la izquierda (similar a grupo 1) === */
.gallery-group-3 .gallery-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Ajuste de altura en pantallas grandes */
@media (min-width: 768px) {
    .gallery-group-3 {
        grid-template-rows: repeat(2, 280px);
        /* Igual que grupos 1 y 2 */
    }
}


/* Estilo universal para todas las imágenes */
.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Media Query para pantallas más grandes */
@media (min-width: 768px) {

    .gallery-group-1,
    .gallery-group-2,
    .gallery-group-3 {
        grid-template-rows: repeat(2, 280px);
        /* Mejora visual en pantallas grandes */
    }
}

/* =========================================== */
/* ======= FIN NUEVOS ESTILOS DE GALERÍA ===== */
/* =========================================== */


/* ======== FOOTER Y BOTONES ======== */
.cta-button {
    display: inline-block;
    background-color: #3b9c4f;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background-color: #2f8542; /* un poco más oscuro */
    transform: translateY(-2px);
}
.social-icon {
    color: #d1d5db; /* gris claro */
    font-size: 1.875rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icon:hover {
    color: white;
    transform: scale(1.1);
}

/* ======== MODAL DE IMÁGENES (SIN CAMBIOS) ======== */
.image-modal-container {
    display: none; position: fixed; z-index: 100; padding-top: 60px; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.5s;
}
.image-modal-content {
    margin: auto; display: block; max-width: 85%; max-height: 85%;
    animation: zoom 0.6s;
}
@keyframes zoom { from {transform: scale(0)} to {transform: scale(1)} }
@keyframes fadeIn { from {opacity: 0} to {opacity: 1} }
.image-modal-close {
    position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px;
    font-weight: bold; transition: 0.3s;
}
.image-modal-close:hover, .image-modal-close:focus {
    color: #bbb; text-decoration: none; cursor: pointer;
}

/* ======== BOTÓN "VOLVER ARRIBA" CON TRANSICIÓN ======== */
.back-to-top-button {
    position: fixed; bottom: 20px; right: 20px; z-index: 99; border: none; outline: none;
    background-color: #3b9c4f; color: white; cursor: pointer; padding: 12px 16px;
    border-radius: 50%; font-size: 18px; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    /* Transiciones para fundido suave */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s, visibility 0.5s, transform 0.3s;
}
.back-to-top-button.hide {
    opacity: 0;
    visibility: hidden;
}
.back-to-top-button:hover {
    background-color: #0a5d2a;
    transform: scale(1.1);
}