:root {
    --bg: #050a30;
    --bg-soft: #0b1248;
    --card: rgba(15, 27, 99, 0.85);
    --line: #23339b;

    --primary: #7C3AED;
    --primary-soft: #A855F7;

    --cyan: #22D3EE;
    --green: #4ADE80;

    --text: #F8FAFC;
    --muted: #94A3B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at top left,
            rgba(36, 56, 184, 0.18) 0%,
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(124, 58, 237, 0.18) 0%,
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #050a30 0%,
            #070d38 100%
        );
}

/* ==========================
   LUZ DE FONDO
========================== */

.glow-bg {
    position: fixed;
    width: 350px;
    height: 350px;
    background: rgba(124, 58, 237, 0.2);
    filter: blur(120px);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    z-index: 0;
    pointer-events: none;
}

/* ==========================
   CONTENEDOR
========================== */

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* ==========================
   HEADER / NAVBAR
========================== */

.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    padding: 24px;

    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;

    backdrop-filter: blur(24px);
    margin-bottom: 40px;
}

/* ==========================
   BRAND CUADRADO
========================== */

.square-brand {
    width: 70px;
    height: 70px;
    margin: 0;

    border-radius: 12px;
    background: #050a30cc;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);

    flex-shrink: 0;
    text-decoration: none;
}

.square-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    display: block;
}

/* ==========================
   NAV LINKS
========================== */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan);
}

/* ==========================
   HERO MINI
========================== */

.hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;

    background: linear-gradient(
        90deg,
        #fff,
        var(--muted)
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================
   GALERÍA DE VÍDEOS
========================== */

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title span {
    color: var(--cyan);
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.video-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;

    overflow: hidden;
    backdrop-filter: blur(24px);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.4);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.video-info p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================
   ACCESOS A OTRAS VISTAS
========================== */

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

.view-card {
    background: #ffffff08;
    border: 1px solid #ffffff10;
    border-radius: 20px;
    padding: 24px;

    text-decoration: none;
    color: var(--text);

    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.view-card:hover {
    background: #ffffff12;
    border-color: var(--primary-soft);
    transform: translateY(-3px);
}

.view-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.view-card p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.view-link-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);

    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================
   FOOTER
========================== */

.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 14px;
}

/* ==========================
   RESPONSIVO
========================== */

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 18px;
    }

    .square-brand {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .nav-link {
        font-size: 13px;
    }

    .hero {
        padding: 30px 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .video-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 18px 12px;
    }

    .square-brand {
        width: 64px;
        height: 64px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }
}