/* Importar fuente */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* Reset básico para todo el sitio */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* 🏔️ Estilos del fondo y sección principal (Hero) */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px; 
    
    /* Asegúrate que la imagen fondodespecho.jpg exista en src/ */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('src/fondodespecho.jpg');
    background-size: cover;
    background-position: center;
}

.content-wrapper {
    z-index: 10; 
    max-width: 800px; 
    width: 100%;
}

.hero-section h1 {
    font-size: 3.5rem; 
    margin-bottom: 20px;
    font-weight: 700;
    padding: 0 10px; 
}

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

/* 🔘 Estilos del Botón de Reserva (el rosa grande) */
.btn-reserva {
    background-color: #e93e78; 
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
}

.btn-reserva:hover {
    background-color: #d1376b; 
}

/* 🧭 Estilos del Menú de Navegación */
.navbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    /* Fondo inicial semi-transparente */
    background: rgba(0, 0, 0, 0.1); 
    transition: background-color 0.3s, box-shadow 0.3s; /* Transición para el cambio de color */
    color: white;
    z-index: 20; 
}

.logo img {
    max-height: 40px; 
    width: auto;
    display: block; 
    transition: all 0.3s; /* Para una transición suave del logo, aunque cambie el src */
}

.menu a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.menu a:hover {
    color: #e93e78;
}

/* ➕ Botón "RESERVAR" del menú (el pequeño rosa) */
.menu-btn-mas {
    background-color: #e93e78;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 25px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-btn-mas:hover {
    background-color: #d1376b;
}

/* 🍔 Estilos del Botón de Hamburguesa (Solo Visible en Móvil) */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 30; 
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* ======================================= */
/* ✨ ESTILOS PARA SCROLL (CAMBIO DE COLOR)*/
/* ======================================= */

.navbar.scrolled {
    background-color: white; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
}

.navbar.scrolled a {
    color: #1a1a1a; 
}
.navbar.scrolled .menu-toggle .bar {
    background-color: #1a1a1a; 
}

/* Mantenemos el botón RESERVAR con fondo rosa y texto blanco */
.navbar.scrolled .menu-btn-mas {
    background-color: #e93e78;
    color: white; 
}
.navbar.scrolled .menu-btn-mas:hover {
    background-color: #d1376b;
    color: white; 
}

/* ======================================= */
/* 📸 ESTILOS DEL CARRUSEL Y GALERÍA      */
/* ======================================= */

.carousel-section {
    padding: 80px 20px;
    background-color: #1a1a1a; 
    color: white;
    text-align: center;
}

.carousel-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #e93e78; 
}

.carousel-container {
    display: flex;
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch;
    gap: 20px; 
    margin-bottom: 30px;
    padding-bottom: 10px; 
}

.carousel-slide {
    flex: 0 0 300px; 
    scroll-snap-align: center; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(233, 62, 120, 0.2); 
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
}

/* Botón secundario para la galería */
.btn-secundario {
    display: inline-block;
    color: white;
    background-color: transparent;
    border: 2px solid #e93e78;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-secundario:hover {
    background-color: #e93e78;
    color: #1a1a1a;
}


/* ======================================= */
/* 🦶 ESTILOS DEL FOOTER (PIE DE PÁGINA) */
/* ======================================= */

.main-footer {
    background-color: #000000; 
    color: #cccccc;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; 
}

.footer-content > div {
    flex-basis: 30%; 
    margin: 20px 0;
}

.footer-content h3, .footer-content h4 {
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a, .footer-social a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-social a:hover {
    color: #e93e78; 
}


/* ======================================= */
/* 📱 MEDIA QUERIES (RESPONSIVIDAD)       */
/* ======================================= */

@media (max-width: 768px) {
    /* Muestra y posiciona el botón de hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* Transforma el menú en un panel lateral */
    .menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%; 
        background-color: #1a1a1a; 
        flex-direction: column;
        padding: 80px 30px 20px 30px;
        align-items: flex-start;
        transform: translateX(100%); 
        z-index: 25;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }
    
    /* Estado 'abierto' del menú (controlado por JS) */
    .menu.open {
        transform: translateX(0); 
    }
    
    /* Estilo de los enlaces en el menú deslizable */
    .menu a, .menu-btn-mas {
        margin: 15px 0;
        width: 100%;
        text-align: left;
    }

    /* Animación del ícono de hamburguesa */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Reducción del texto del Hero */
    .hero-section h1 {
        font-size: 2.5rem; 
    }
    .hero-section p {
        font-size: 1rem; 
    }

    /* Media Query para Footer en Móviles */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content > div {
        flex-basis: 100%; 
        margin: 15px 0;
    }

    .footer-links ul {
        display: inline-block;
        text-align: left; 
    }
    .footer-social a {
        display: inline-block;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 0.9rem;
        padding: 0 10px; 
    }

    .btn-reserva {
        padding: 12px 25px; 
        font-size: 0.9rem;
    }
}