/* HERO SECTION */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, rgba(5, 5, 8, 0.9) 70%);
    z-index: -1;
}

.hero h1 {
    font-size: 3rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* CATEGORIAS SECTION */
.categories-section {
    padding: 80px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-family: var(--font-title);
    color: var(--neon-pink);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.categories-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    /* Negative margin will handle overlap */
}

.category-card {
    position: relative;
    width: 200px;
    height: 280px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: transform 0.4s ease, z-index 0.1s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -30px;
    /* Overlapping effect */
    z-index: 1;
}

.category-card:first-child {
    margin-left: 0;
    /* No overlap for first item */
}

.category-card:hover {
    transform: scale(1.25);
    z-index: 10;
    border-color: var(--neon-blue);
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.3);
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
}

.category-card:hover .category-bg {
    opacity: 1;
    transform: scale(1.1);
}

.category-name {
    position: relative;
    z-index: 2;
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: var(--accent-white);
    background: rgba(5, 5, 8, 0.8);
    padding: 8px 15px;
    border: 1px solid var(--neon-blue);
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    text-align: center;
}

/* POPEYE MASCOT */
.popeye-mascot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 120px;
    z-index: 1000;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
    animation: popeye-bob 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s;
}

.popeye-mascot:hover {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 20px rgba(255, 0, 85, 0.5));
}

@keyframes popeye-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .categories-grid {
        flex-direction: column;
        gap: 15px;
    }

    .category-card {
        margin-left: 0;
        width: 90%;
        max-width: 300px;
    }

    .popeye-mascot {
        width: 80px;
        bottom: 100px;
    }
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 1001;
    transition: 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.8);
    color: white;
}

/* MODAL - FIXED AND CENTERED */
#ageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 8, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Above everything */
}

#ageModal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--bg-dark);
    border: 1px solid var(--neon-blue);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

/* LOCATIONS MAP SECTION */
.locations-section {
    padding: 80px 20px;
    border-top: 1px solid var(--glass-border);
}

#mapa-ubicaciones {
    height: 450px;
    width: 100%;
    margin-top: 30px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

/* Marcador neón personalizado */
.marcador-neon {
    background: transparent;
    border: none;
}

.marcador-neon i {
    font-size: 30px;
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.8), 0 0 30px rgba(0, 243, 255, 0.5);
    animation: pulse-marker 2s ease-in-out infinite;
}

@keyframes pulse-marker {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 15px rgba(0, 243, 255, 0.8), 0 0 30px rgba(0, 243, 255, 0.5);
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 25px rgba(0, 243, 255, 1), 0 0 50px rgba(0, 243, 255, 0.8);
    }
}

/* Popup personalizado oscuro */
.leaflet-popup-content-wrapper {
    background: rgba(5, 5, 8, 0.95);
    color: var(--accent-white);
    border: 1px solid var(--neon-blue);
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.leaflet-popup-tip {
    background: rgba(5, 5, 8, 0.95);
    border: 1px solid var(--neon-blue);
    border-top: none;
    border-right: none;
}

.popup-custom {
    font-family: var(--font-main);
    font-size: 0.85rem;
    text-align: center;
    padding: 5px;
}

.popup-custom strong {
    color: var(--neon-blue);
    font-family: var(--font-title);
    font-size: 0.7rem;
}