/* Variables de color extraídas de tu logo */
:root {
    --color-rosa: #E04B98;
    --color-morado: #A05BB7;
    --color-azul: #4C6CBA;
    --gradient-brand: linear-gradient(135deg, var(--color-rosa), var(--color-azul));
    --bg-light: #ffffff;
    --bg-alt: #fafafa;
    --text-dark: #333333;
    --text-light: #666666;
    --sombras: 0 5px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-alt);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =========================================
   1. ESTILOS BASE DEL HEADER (Escritorio)
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: all 0.35s ease;
}

/* Estado flotante (cuando haces scroll) */
.main-header.floating {
    top: 20px;
    width: calc(100% - 60px);
    max-width: 1280px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.main-header:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px; /* Ajustado para no deformar el header */
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Enlaces del menú (Escritorio) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333; /* Cambia esto al color de tu marca */
    font-weight: 500;
    font-family: sans-serif;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #888;
}

/* Botón Hamburguesa (Oculto en escritorio) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001; /* Para que quede por encima del menú desplegado */
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   2. ESTILOS PARA CELULARES (Móvil)
   ========================================= */
@media screen and (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    /* Ajuste del estado flotante en celulares para que no quede muy apretado */
    .main-header.floating {
        top: 15px;
        width: calc(100% - 30px);
        border-radius: 18px;
    }

    .logo-img {
        height: 40px; /* Logo ligeramente más pequeño en móvil */
    }

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: flex;
    }

    /* Esconder el menú de texto y prepararlo para desplegarse */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 15px 25px rgba(0,0,0,0.1);
        
        /* Animación de cortina (oculto por defecto) */
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }

    /* Clase para cuando el menú se abre */
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links li {
        margin: 10px 0;
    }

    /* Animación del botón hamburguesa transformándose en una "X" */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Nav */
nav {
    display: flex;
    align-items: center;
}

nav .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

nav .nav-links li {
    margin: 0;
}

nav .nav-links a {
    position: relative;
    display: inline-block;
    padding: 12px 18px;
    text-decoration: none;
    color: #2f2f2f;
    font-weight: 700;
    font-size: 16px;
    border-radius: 14px;
    transition: all 0.3s ease;
}

nav .nav-links a:hover {
    color: #8d5bcf;
    background: rgba(141, 91, 207, 0.08);
}

/* Línea animada abajo */
nav .nav-links a::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 8px;
    width: 0;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, #8d5bcf, #5f7de8);
    transition: width 0.3s ease;
}

nav .nav-links a:hover::after {
    width: calc(100% - 36px);
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 26px;
    height: 3px;
    border-radius: 10px;
    background: #333;
    transition: 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/bannerneyari.png') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Botones con el degradado del logo */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-brand);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 75, 152, 0.4);
}

/* Servicios */
.services {
    padding: 80px 5%;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-azul);
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: var(--sombras);
    flex: 1;
    min-width: 250px;
    border-top: 5px solid var(--color-morado);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--color-rosa);
    margin-bottom: 15px;
}

/* Eventos NeyAri */
.eventos {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--bg-light);
}

.eventos h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-azul);
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.evento-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombras);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--color-rosa);
    display: flex;
    flex-direction: column;
}

.evento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.evento-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evento-card:hover img {
    transform: scale(1.05);
}

.evento-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.evento-info h3 {
    color: var(--color-morado);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.evento-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.eventos-acciones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: var(--color-azul);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid var(--color-azul);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--color-azul);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 108, 186, 0.3);
}

/* =========================================
   NUEVA SECCIÓN: Galería NeyAri
   ========================================= */
.galeria {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--bg-alt);
}

.galeria h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-azul);
}

/* Grid moderno de la galería */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Ítem de la galería y efecto hover */
.galeria-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombras);
    cursor: pointer;
    aspect-ratio: 1; /* Hace los ítems cuadrados */
}

.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover .galeria-img {
    transform: scale(1.1); /* Efecto de zoom */
}

/* Botones de acción de la galería */
.galeria-acciones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   Estilos del Lightbox (Ventana emergente)
   ========================================= */
.lightbox {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Por encima de todo */
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); /* Fondo negro con opacidad */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.mostrar {
    display: block;
    opacity: 1;
}

.lightbox-contenido {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(255,255,255,0.2);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.lightbox.mostrar .lightbox-contenido {
    transform: scale(1);
}

/* Botón de cerrar */
.cerrar-lightbox {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.cerrar-lightbox:hover {
    color: var(--color-rosa);
}

/* Texto de descripción de la imagen */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.1rem;
}

/* Contacto */
.contact {
    padding: 80px 5%;
    background-color: var(--bg-light);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-azul);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form input, #contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

#contact-form input:focus, #contact-form textarea:focus {
    border-color: var(--color-morado);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: var(--text-dark);
    color: white;
}

/* Responsivo para celulares (Siempre debe ir al final) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 4px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: white;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    nav .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .lightbox-contenido {
        width: 95%;
    }
}

/* =========================================
   Sección Reserva en 3 Pasos
   ========================================= */
.reserva-pasos {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--bg-alt); /* Color de fondo ligero para diferenciar secciones */
}

.reserva-pasos h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--color-azul);
}

.pasos-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto 60px;
    position: relative; /* Necesario para la línea conectora */
}

/* Línea horizontal que conecta los pasos (solo escritorio) */
.pasos-container::before {
    content: '';
    position: absolute;
    top: 25px; /* Alineado al centro del círculo del número */
    left: 15%;
    right: 15%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.paso {
    flex: 1;
    position: relative;
    z-index: 2; /* Por encima de la línea */
    padding: 0 15px;
}

.paso-header {
    margin-bottom: 20px;
}

.paso-numero {
    width: 50px;
    height: 50px;
    background: var(--gradient-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 600;
    font-size: 1.2rem;
    border: 5px solid var(--bg-alt); /* Crea un hueco en la línea conectora */
}

.paso-icono {
    font-size: 4rem;
    margin-bottom: 10px;
}

.paso h3 {
    color: var(--color-morado);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.paso p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

.reserva-acciones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .pasos-container {
        flex-direction: column;
        gap: 50px;
    }

    .pasos-container::before {
        display: none; /* Quitamos la línea en vertical */
    }

    .paso p {
        max-width: 100%;
    }
}

/* =========================================
   Sección Amenidades NeyAri
   ========================================= */
.amenidades {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--bg-light);
}

.amenidades h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-azul);
}

.amenidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.amenidad-card {
    background: white;
    padding: 35px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.amenidad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(160, 91, 183, 0.15); /* Sombra con tono morado */
    border-color: var(--color-morado);
}

.amenidad-icono {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.amenidad-card h3 {
    color: var(--color-rosa);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.amenidad-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.amenidades-acciones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Nota: Usamos las clases btn-primary y btn-outline que ya definimos arriba */
/* --- Galería Multi-ítem --- */
.galeria-multi {
    padding: 80px 5%;
    background-color: var(--bg-alt);
    overflow: hidden;
    text-align: center;
}

.galeria-multi h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-azul);
}


.multi-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.multi-slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 15px; /* Espacio entre fotos */
}

.multi-slide {
    /* Cálculo: 4 fotos visibles restando el espacio del gap */
    flex: 0 0 calc(25% - 12px); 
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.multi-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.multi-slide:hover img {
    transform: scale(1.05);
}

/* Botones de navegación */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
    color: var(--color-morado);
    font-size: 1.2rem;
}

.slider-nav.prev { left: -20px; }
.slider-nav.next { right: -20px; }

/* Responsivo */
@media (max-width: 1024px) {
    .multi-slide { flex: 0 0 calc(50% - 10px); } /* 2 fotos en tablet */
}

@media (max-width: 600px) {
    .multi-slide { flex: 0 0 100%; } /* 1 foto en celular */
    .slider-nav { display: none; } /* Ocultar flechas en móvil para usar touch */
}

.galeria-multi { padding: 80px 5%; overflow: hidden; background: #fff; text-align: center; }
.multi-slider-wrapper { position: relative; max-width: 1200px; margin: 0 auto; }
.multi-slider-container { display: flex; transition: transform 0.5s ease; gap: 15px; }
.multi-slide { flex: 0 0 calc(25% - 12px); aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; }
.multi-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* Flechas */
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.prev { left: -20px; } .next { right: -20px; }

/* Lightbox */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 2000; }
.lightbox.mostrar { display: flex; }
.lightbox img { max-width: 90%; max-height: 80%; border-radius: 5px; }
.cerrar-lightbox { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }

@media (max-width: 1024px) { .multi-slide { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 600px) { .multi-slide { flex: 0 0 100%; } }

/* --- SECCIÓN AMENIDADES --- */
.amenidades {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--bg-light);
}

.amenidades h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-azul);
}

.amenidades-grid {
    display: flex;
    flex-wrap: wrap;       /* Permite que los bloques bajen a la siguiente fila */
    justify-content: center; /* CENTRA los bloques de la última fila si sobran */
    gap: 25px;             /* Espacio entre tarjetas */
    max-width: 1200px;
    margin: 0 auto 50px;   /* Centra el contenedor en la página */
}

.amenidad-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    
    /* Control de tamaño: */
    flex: 0 1 calc(23% - 20px); /* Intenta poner 4 por fila en pantallas grandes */
    min-width: 250px;           /* No permite que se hagan muy flacas */
    
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--color-rosa);
}

.amenidad-card:hover {
    transform: translateY(-5px);
}

.amenidad-icono {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.amenidad-card h3 {
    color: var(--color-morado);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.amenidad-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Acciones inferiores */
.amenidades-acciones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .amenidad-card {
        flex: 0 1 calc(45% - 20px); /* 2 por fila en tablet */
    }
}

@media (max-width: 480px) {
    .amenidad-card {
        flex: 0 1 100%; /* 1 por fila en celular */
    }
}
