
@font-face {
    font-family: 'All Round Gothic';
    src: url('../fonts/Fontspring-DEMO-allroundgothic-bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/GOTHICB.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ---------- Variables globales ---------- */
:root {
    --bg: #100E29;
    --bg2: #1B1748;
    --card: #221D57;
    --purple: #8B5CF6;
    --purple-deep: #6D3FE0;
    --pink: #FF5B94;
    --yellow: #FFC857;
    --cyan: #4FD8EB;
    --text: #F3F1FF;
    --text-muted: #ACA5D9;
    --line: rgba(255, 255, 255, 0.08);
    --white: #FFFFFF;
    --danger: #FF5B94;
    --danger-dark: #E23E77;
    --radius: 12px;
    --radius-lg: 16px;
}

/* ---------- Reset básico ---------- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 0;
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
}

/* =========================================================
   FONDO ANIMADO — "blobs" de gradiente flotando.
   Agregar en cada página, justo después de <body>:
   <div class="blob blob1"></div>
   <div class="blob blob2"></div>
   <div class="blob blob3"></div>
   ========================================================= */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: float 16s ease-in-out infinite;
}
.blob1 { width: 420px; height: 420px; background: var(--purple); top: -140px; left: 240px; }
.blob2 { width: 340px; height: 340px; background: var(--pink); bottom: -100px; left: 480px; animation-delay: -6s; }
.blob3 { width: 300px; height: 300px; background: var(--cyan); top: 160px; right: -70px; animation-delay: -11s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -30px) scale(1.06); }
}

/* Ícono giratorio (usado en "Red Nexus" y otros) */
.spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =========================================================
   BARRA DE NAVEGACIÓN IZQUIERDA (glass, sobre fondo oscuro)
   ========================================================= */
nav {
    background: rgba(27, 23, 72, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--line);
    padding: 28px 0;
    width: 224px;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

nav .logo-container {
    padding: 0 24px 26px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

nav .logo-container img {
    width: 140px;
    height: auto;
}

nav ul {
    list-style: none;
    padding: 0 12px;
    margin: 0;
    flex-grow: 1;
}

nav ul li {
    margin-bottom: 3px;
}

nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 500;
    padding: 11px 14px;
    border-radius: 10px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

nav ul li a i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
    transform: translateX(3px);
}

nav .logout-btn {
    padding: 16px 24px 0;
    width: 100%;
    text-align: left;
    border-top: 1px solid var(--line);
    margin-top: 12px;
}

nav .logout-btn a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav .logout-btn a:hover {
    color: var(--pink);
}

/* Contenido principal (cuando hay nav lateral) */
.main-content {
    margin-left: 224px;
    flex-grow: 1;
    padding: 52px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.center-container {
    text-align: center;
}

/* =========================================================
   BOTONES COMUNES
   ========================================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: var(--white);
    padding: 14px 26px;
    font-size: 14.5px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-right: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 30px rgba(139, 92, 246, 0.5);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background-color: transparent;
    color: var(--text-muted);
    text-align: center;
    padding: 24px 0;
    margin-top: auto;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1) opacity(0.75);
}

.footer-logos img {
    width: 260px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logos img:hover {
    transform: scale(1.08);
    opacity: 1;
}

footer p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

/* =========================================================
   RESPONSIVE — páginas con nav lateral
   ========================================================= */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 10px 0;
        border-right: none;
        border-top: 1px solid var(--line);
    }

    nav .logo-container {
        display: none;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        padding: 0;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        flex-direction: column;
        padding: 8px 12px;
        font-size: 11px;
        text-align: center;
    }

    nav ul li a i {
        margin-right: 0;
        margin-bottom: 4px;
        font-size: 1.1em;
    }

    nav ul li a span {
        display: none;
    }

    nav .logout-btn {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 30px;
        margin-bottom: 60px;
    }

    footer {
        padding: 20px;
        font-size: 12px;
    }

    .footer-logos {
        gap: 20px;
    }

    .footer-logos img {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .footer-logos img {
        width: 70px;
    }
}