﻿:root {
    --c1: #00e1ff;
    --c2: #7b2cff;
    --c3: #ff0080;
    --dark: #0e0f14;
    --text: #e9ecf1;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: grid;
    place-items: center;
    color: var(--text);
    overflow: hidden;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(123,44,255,.25), transparent 60%), radial-gradient(1000px 600px at 90% 90%, rgba(0,225,255,.25), transparent 60%), linear-gradient(120deg, #0b0c12 0%, #121528 60%, #0b0c12 100%), url('/img/hero1.jpg') center/cover no-repeat;
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(60% 60% at 50% 50%, transparent, rgba(0,0,0,.45));
    }

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
}

.badge-neo {
    display: inline-block;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    font-weight: 600;
    letter-spacing: .4px;
}

.title-gradient {
    font-size: clamp(2.2rem, 3.8vw + 1rem, 4.2rem);
    line-height: 1.05;
    margin: .6rem 0 1rem;
    background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0,225,255,.15);
}

.subtitle {
    color: #cfd5e3;
    font-size: clamp(1rem, 1.2vw + .6rem, 1.2rem);
}

.hero .btn {
    margin: .4rem .3rem;
    padding: .9rem 1.2rem;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.btn-ghost {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    color: #fff !important;
}

    .btn-ghost:hover {
        background: rgba(255,255,255,.2) !important;
    }

/* ===== STATS ===== */
.stats {
    background: #0a0b10;
    color: #cfd5e3;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.stat-card {
    padding: 1.2rem 0;
    text-align: center;
}

    .stat-card h3 {
        color: #fff;
        font-weight: 900;
        margin: 0;
    }

    .stat-card p {
        margin: 0;
        opacity: .8;
    }

/* ===== SECCIONES ===== */
.section {
    padding: clamp(2rem, 6vw, 4.5rem) 0;
    background: #0f111a;
    color: #dfe5f2;
    border-radius: 20px;
}

    .section.alt {
        background: #0b0c12;
    }

    .section h2 {
        font-weight: 900;
        margin-bottom: 1.2rem;
        color: #fff;
    }

.lead {
    color: #bcc4d6;
    max-width: 900px;
}

/* ===== CARD ===== */
.card-glass {
    height: 100%;
    color: #dfe5f2;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

    .card-glass:hover {
        transform: translateY(-6px);
        border-color: rgba(123,44,255,.35);
        box-shadow: 0 20px 50px rgba(123,44,255,.2);
    }

    .card-glass .card-body {
        padding: 1.3rem;
    }

    .card-glass img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        background: rgba(255,255,255,.02);
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

.chip {
    display: inline-block;
    font-size: .8rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: rgba(0,225,255,.12);
    color: #a8f7ff;
    border: 1px solid rgba(0,225,255,.25);
}

/* ===== FONDO GLOBAL ===== */
html, body {
    background: #0b0c12;
}

.hero {
    min-height: calc(100vh - 84px);
}

/* Fondo global detrás de todo */
#page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: center center / cover no-repeat fixed;
    background-color: #000;
    transition: background-image .6s ease, opacity .6s ease, transform .6s ease;
    opacity: 0.45;
    overflow: hidden;
}

    #page-bg::after {
        content: "";
        position: absolute;
        inset: -20px;
        background: inherit;
        filter: blur(40px) brightness(0.7);
        transform: scale(1.1);
        z-index: 1;
    }

    /* Distintas imágenes según scroll (puedes cambiarlas después) */
    #page-bg.bg-1 {
        background-image: url('/Content/img/eventos/Portaa3.png');
    }

    #page-bg.bg-2 {
        background-image: url('/Content/img/eventos/Portaa3.png');
    }

    #page-bg.bg-3 {
        background-image: url('/Content/img/eventos/Portaa3.png');
    }

.scrolled #page-bg {
    transform: scale(1.03) translateY(-6px);
}

/* ===== SLIDER NP INDEPENDIENTE ===== */
.np-slider {
    position: relative;
    margin: 30px 0 10px;
}

.np-track {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 460px;
}

.np-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .5s ease, transform .5s ease;
}

    .np-slide.is-active {
        opacity: 1;
        transform: scale(1);
        z-index: 1;
    }

    .np-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 16px;
    }

.np-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
}

    .np-caption h3 {
        margin: 0 0 4px;
        font-weight: 800;
    }

    .np-caption p {
        margin: 0;
        color: #e6ebff;
    }

/* Controles */
.np-prev,
.np-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 24px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.np-prev {
    left: 10px;
}

.np-next {
    right: 10px;
}

    .np-prev:hover,
    .np-next:hover {
        background: rgba(0,0,0,.6);
        transform: translateY(-50%) scale(1.06);
    }

/* Dots */
.np-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

    .np-dots button {
        pointer-events: auto;
        width: 10px;
        height: 10px;
        border-radius: 999px;
        border: 0;
        background: rgba(255,255,255,.35);
    }

        .np-dots button.is-active {
            background: #fff;
        }

/* Responsive */
@media (max-width: 768px) {
    .np-track {
        height: 320px;
    }

    .np-caption {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }
}
