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

body {
    background: #efc417; /* Color general por defecto (amarillo/mostaza) */
    overflow-x: hidden;
}


/* Aplicamos estilos a los nav, EXCEPTO al de la galería */
nav:not(.menu-galeria):not(.nav-galeria-mobile) {
    width: 92%;
    height: 80px;
    background: #23175C;
    margin: 20px auto;
    border-radius: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

/* El header es quien hace sticky en index, historia, puntos de venta */
body:not(.pagina-galeria):not(.pagina-party) header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav:not(.menu-galeria):not(.nav-galeria-mobile) ul:not(.nav-links) {
    display: flex;
    gap: 25px;
    list-style: none;
}

/* Sin puntos en el menú */
.nav-links {
    list-style: none;
}

/* En desktop, el nav-links sí debe mostrarse siempre */
@media (min-width: 901px) {
    nav:not(.menu-galeria):not(.nav-galeria-mobile) .nav-links {
        display: flex !important;
    }
}

nav:not(.menu-galeria):not(.nav-galeria-mobile) a {
    text-decoration: none;
    color: #E8B33D;
    font-size: 1.1rem;
    padding: 10px 18px;
    border-radius: 15px;
    transition: .3s;
}

nav:not(.menu-galeria):not(.nav-galeria-mobile) a:hover {
    background: rgba(255, 255, 255, .1);
}

.logo img {
    height: 50px;
}

nav ul:not(.nav-links) {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #E8B33D;
    font-size: 1.1rem;
    padding: 10px 18px;
    border-radius: 15px;
    transition: .3s;
}

nav a:hover {
    background: rgba(255, 255, 255, .1);
}

.active {
    background: #D8D1E4;
    color: #23175C;
}


/* Busca esta sección y agrégale el :not(.menu-galeria) */
@media(max-width: 900px) {
    nav:not(.menu-galeria):not(.nav-galeria-mobile) {
        width: 90% !important;        
        margin: 10px auto !important; 
        left: auto !important;
        transform: none !important;
        background: rgba(35, 23, 92, .90); 
    }
}


.hero {
    position: relative;
    height: 100vh;
    background-image: url("img/hero2.2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -100px;
    padding-top: 120px;
    background-attachment: fixed;
}

@media(max-width: 900px) {
    .hero {
        background-attachment: scroll;
    }
}


.intro {
    background: #23175C;
    padding: 120px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.imagen {
    width: 45%;
}

.imagen img {
    width: 100%;
    border-radius: 35px;
    display: block;
}

.texto {
    width: 45%;
    color: white;
}

.texto h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.texto p {
    line-height: 1.8;
    font-size: 1.1rem;
}

@media(max-width: 900px) {
    .intro {
        flex-direction: column;
    }
    .imagen, .texto {
        width: 100%;
    }
}

/* =========================================
5. GALERÍA
   ========================================= */
body.pagina-galeria {
    background: #23175C !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.menu-galeria {
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr 1fr;
    align-items: center;
    width: 100%;
    margin: 0;
    height: auto;
    background: transparent;
    padding: 12px 0;
}

body.pagina-galeria header,
body.pagina-party header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.pagina-galeria header {
    background: rgba(35, 23, 92, 0.45);
}

body.pagina-party header {
    background: rgba(224, 85, 82, 0.45);
}

body.pagina-galeria main,
body.pagina-party main {
    margin-top: -80px;
}

.menu-galeria a {
    text-decoration: none;
    color: #E8B33D;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
}

.logo-central {
    display: flex;
    justify-content: center;
}

.logo-central img {
    width: 100px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.titulo-galeria {
    display: flex;
    justify-content: center;
    margin-top: 150px;
}

.titulo-galeria h1 {
    color: #E8B33D;
    font-size: 4rem;
    font-weight: 300;
}

.carousel-container {
    width: 100%;
    padding: 5px 0 60px 0;
    display: flex;
    justify-content: center;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 90%;
    margin-top: 30px;
}

.slide {
    transition: transform .6s ease, opacity .6s ease;
}

.slide.active {
    transform: scale(1);
    opacity: 1;
    border-radius: 30px;
}

.slide.active img {
    max-height: 500px; /* Ajusta según lo que necesites */
    width: 100%;
    object-fit: contain; /* Esto evita que se estiren */
    border-radius: 30px;
}

.preview {
    width: 220px;
    height: 220px;
    overflow: hidden;
    border-radius: 30px;
    opacity: .7;
    transform: scale(.85);
    cursor: pointer;
}

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

.preview:hover {
    opacity: 1;
    transform: scale(.9);
}

.carousel-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 10px 25px;
    background: #efc417;
    color: #23175C;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 16px auto;
}

@media(max-width: 900px) {
    .preview { width: 150px; height: 150px; }
    .slide.active img { max-height: 350px; }
}

@media(max-width: 600px) {
    .carousel { gap: 10px; }
    .preview { width: 90px; height: 90px; }
    .slide.active img { max-height: 250px; }
}

/* =========================================
   6. HISTORIA (Línea de tiempo)
   ========================================= */
.historia {
    background: #efc417;
    padding: 190px 10%;
}

.historia h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: #23175C;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    z-index: 1;
}

/* Línea base (gris/morada suave) centrada y acotada */
.timeline::before {
    content: "";
    position: absolute;
    top: 60px; /* Centrado exacto con los botones de 120px */
    left: 10%;
    width: 80%; /* Frenamos la línea exactamente en el centro del último cuadro */
    height: 5px;
    background: rgba(35, 23, 92, .25);
    z-index: 0;
}

/* La línea de progreso con la nueva fórmula matemática acotada al 80% */
.timeline::after {
    content: "";
    position: absolute;
    top: 60px;
    left: 10%;
    height: 5px;
    /* Calcula el porcentaje basándose en el 80% total del ancho */
    width: calc(80% * (var(--progress, 0) / 100)); 
    background: #23175C;
    transition: width .6s ease;
    z-index: 1;
}

/* ¡AQUÍ ESTÁ LA MAGIA DEL FONDO! 
   Cambiamos el nombre de ".active" a ".step-active" para que no choque con tu Nav 
*/
.step.step-active .step-content {
    max-height: 300px;
    padding: 15px;
}
.step {
    flex: 1;
    position: relative;
    text-align: center;
    min-width: 0;
}

/* botón (card clickable) de tamaño uniforme */
.step-btn {
    background: #23175C;
    color: #D8D1E4; /* <--- Color solicitado para el texto */
    border: none;
    padding: 20px; 
    border-radius: 25px;
    width: 100%;
    min-height: 120px; /* <--- Hace que todos los cuadros midan exactamente lo mismo */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: .3s;
    position: relative;
    z-index: 2;
}

.step-btn:hover {
    transform: translateY(-5px);
    background: #2e1c75;
}

/* contenido oculto */
.step-content {
    max-height: 0;
    overflow: hidden;
    transition: .4s ease;
    background: #23175C; /* Cambiado a oscuro para que el texto claro se lea bien */
    color: #D8D1E4; /* <--- El mismo color para el texto desplegable */
    border-radius: 15px;
    margin-top: 10px;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* activo — abre el contenido */
.step.active .step-content {
    max-height: 300px;
    padding: 15px;
}

@media(max-width: 900px) {
    .timeline { flex-direction: column; }
    .timeline::before { display: none; }
}

body.pagina-historia {
    background: #efc417 !important;
}

body.pagina-historia header {
    background: #efc417;
}

body.pagina-historia nav {
    background: rgba(35, 23, 92, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}

/* =========================================
   7. PUNTOS DE VENTA (Base general del mapa)
   ========================================= */
.localizaciones-container {
    --minimal-card-bg: #e6e0f0;  
    --minimal-text-dark: #1f103b;
    --minimal-icon-bg: #9a8bb6;

    max-width: 1200px;
    margin: 60px auto; 
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
    color: var(--minimal-text-dark);
}

.puntos-top-section {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center; 
}

.puntos-info-column {
    flex: 1;
}

.puntos-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ffffff; 
}

.puntos-title-punto {
    color: #23175C !important;
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.puntos-description {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
    color: #e6e0f0; 
}

.puntos-map-column {
    flex: 1.5; 
}

#mapa-interactivo {
    width: 100%;
    height: 380px; 
    border-radius: 12px;
    background-color: #c0b4d6; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1; 
}

/* Carrusel de Tiendas */
.carrusel-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    width: 100%;
}

.ventana-carrusel {
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
    padding: 10px 0; 
}

.cuadricula-tiendas {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out; 
}

.tienda-card-btn {
    flex: 0 0 calc((100% - 40px) / 3); 
    background-color: var(--minimal-card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tienda-card-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: #ffffff;
}

.tienda-card-btn .card-icon {
    background-color: var(--minimal-icon-bg);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tienda-card-btn .card-info {
    flex: 1;
}

.tienda-card-btn .card-info h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
}

.tienda-card-btn .card-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #4a3f66;
    font-weight: 300;
    line-height: 1.4;
}

.tienda-card-btn .card-arrow {
    font-size: 1.5rem;
    color: var(--minimal-text-dark);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.tienda-card-btn:hover .card-arrow {
    transform: translateX(5px);
}

.flecha-slider {
    background-color: var(--minimal-icon-bg);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.flecha-slider:hover {
    background-color: #7a6a96;
    transform: scale(1.1);
}

/* --- CORRECCIÓN UNIFICADA PARA MÓVIL --- */
@media (max-width: 900px) {
    /* 1. El header es sticky, el nav solo ajusta márgenes */
    nav { 
        margin: 10px auto !important; 
    }

    /* 2. Reordenar: Info arriba (1), Mapa abajo (2) */
    .puntos-top-section { 
        flex-direction: column !important; 
    }
    .puntos-info-column { order: 1 !important; }
    .puntos-map-column { order: 2 !important; width: 100% !important; }

    /* 3. Tamaño del mapa */
    #mapa-interactivo { 
        height: 250px !important; 
        width: 100% !important; 
    }

    /* 4. Carrusel: una tarjeta por fila */
    .tienda-card-btn { 
        flex: 0 0 100% !important; 
    }
}

/* =========================================
   8. FOOTER GENERAL
   ========================================= */
.footer-minimal {
    background: #23175C;
    color: white;
    padding: 80px 10% 30px 10%;
    margin-top: 120px;
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-box {
    flex: 1;
    min-width: 220px;
}

.footer-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #efc417;
}

.footer-box h4 {
    margin-bottom: 15px;
    color: #E8B33D;
    font-weight: 400;
}

.footer-box p {
    line-height: 1.6;
    opacity: .9;
}

.footer-box a {
    display: block;
    text-decoration: none;
    color: white;
    margin-bottom: 8px;
    transition: .3s;
    width: fit-content;
}

.footer-box a:hover {
    color: #efc417;
    transform: translateX(6px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 179, 61, .3);
    text-align: center;
    font-size: .9rem;
    opacity: .8;
}

/* =========================================
   9. ESTILOS EXCLUSIVOS: PÁGINA PUNTOS DE VENTA 
   ========================================= */
body.pagina-puntos-venta {
    background: #D8D1E4 !important;
}

body.pagina-puntos-venta .intro {
    background-color: #D8D1E4; 
}

body.pagina-puntos-venta .texto {
    color: #23175C;
}

/* --- Menú Hamburguesa --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #E8B33D;
    border-radius: 2px;
}

/* Nav hamburguesa galeria/party: oculto por defecto, solo visible en móvil */
.nav-galeria-mobile {
    display: none;
}

/* El menú desplegable siempre oculto hasta que tenga clase .open */
/* --- Ajustes Responsive --- */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100px;
        left: 5%;
        width: 90%;
        background: #23175C;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        border-radius: 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .nav-links.open { 
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    /* Ocultar el nav de 5 columnas en móvil */
    .menu-galeria {
        display: none;
    }

    /* Mostrar el nav hamburguesa de galeria/party en móvil */
    .nav-galeria-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90%;
        margin: 10px auto;
        padding: 0 20px;
        height: 70px;
        position: relative;
    }

    .nav-galeria-mobile .nav-links {
        top: 80px;
    }
}

/* En PC, ocultar el nav móvil de galeria/party */
@media (min-width: 901px) {
    .nav-galeria-mobile {
        display: none;
    }
}

/* --- AJUSTES DE RESPONSIVIDAD PARA PUNTOS DE VENTA --- */

/* Escenario PC (Más de 900px) */
@media (min-width: 901px) {
    .puntos-top-section {
        display: flex;
        flex-direction: row; /* Texto e info lado a lado */
        gap: 40px;
        align-items: center;
    }
    .puntos-info-column, .puntos-map-column {
        flex: 1; /* Reparto equitativo */
    }
}

/* Escenario Celular (Menos de 900px) */
@media (max-width: 900px) {
    .puntos-top-section {
        display: flex;
        flex-direction: column; /* Apilar elementos verticalmente */
        gap: 20px;
    }
    
    .puntos-map-column {
        width: 100%;
        order: 1; /* El mapa se pone arriba */
    }
    
    .puntos-info-column {
        width: 100%;
        order: 2; /* El texto se pone abajo */
    }

    #mapa-interactivo {
        height: 250px !important; /* Altura más manejable en cel */
        width: 100% !important;
    }
}

/* ===== MINIMAL PARTY ===== */

body.pagina-party{

background:#e05552 !important;

}

/* links */

body.pagina-party .menu-galeria a{

color:#2e1c75;

}

/* página activa */

body.pagina-party .active-galeria{

background:#D8D1E4;

color:#e05552 !important;

}

/* contador */

body.pagina-party .carousel-counter{

background:#23175C;

color:#e05552;

}

/* Espacio y centrado del contenedor */
.carousel-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
    padding-top: 80px;
}

.carousel-counter {
    margin: 0 auto 12px auto;
    background: #efc417;
    padding: 5px 15px;
    border-radius: 20px;
}

/* Asegurar que el carrusel principal esté centrado */
.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

/* Ajuste de márgenes para la página party */
body.pagina-party .carousel-container {
    margin-top: 80px; /* Más espacio en la página de party */
}



/* =========================================
   MINIMAL PARTY — SECCIÓN ABOUT
   ========================================= */
.party-about {
    background: #2e1c75;
    margin: 60px 12% 0 12%;
    border-radius: 40px;
    padding: 60px 8%;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos de fondo */
.party-about::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(224, 85, 82, 0.15);
    border-radius: 50%;
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.party-about::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(244, 179, 0, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: 5%;
    pointer-events: none;
}

.party-about-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.party-about-tag {
    display: inline-block;
    color: #e05552;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: none;
    margin-bottom: 28px;
}

.party-about-text {
    color: #D8D1E4;
    font-size: 1.1rem;
    line-height: 1.9;
    font-weight: 300;
}

.party-about-divider {
    width: 50px;
    height: 3px;
    background: #e05552;
    border-radius: 2px;
    margin: 28px auto;
}
