/* ---------------------------------------------------- */
/* VARIABLES GLOBALES & PALETA (Code Raleem Identity)  */
/* ---------------------------------------------------- */
:root {
    /* Paleta Principal */
    --color-navy: #001f3f;
    /* Fondo profundo */
    --color-cyan: #00a8cc;
    /* Acento eléctrico */
    --color-slate: #0b2d52;
    /* Superficies */
    --color-blanco: #ffffff;
    --color-gris: #cbd5e1;
    /* Gris lectura base */

    /* Paleta Metálica (Titanium Silver) */
    --color-silver: #e2e8f0;
    /* Gris frío luminoso */
    --color-silver-dark: #64748b;
    /* Sombra metálica */

    /* Glassmorphism */
    --glass-bg: rgba(13, 40, 70, 0.7);
    --glass-blur: 20px;

    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ---------------------------------------------------- */
/* RESET & BASES                                       */
/* ---------------------------------------------------- */
body {
    background-color: var(--color-navy);
    color: var(--color-gris);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 0 !important;
    /* Fix para el footer */
}

/* Utilidades de Texto */
.text-muted {
    color: #94a3b8 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-cyan {
    color: var(--color-cyan) !important;
}

.text-silver {
    color: var(--color-silver) !important;
    text-shadow: 0 0 10px rgba(226, 232, 240, 0.3);
}

.text-silver-subtle {
    color: #cbd5e1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-blanco);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Fondo decorativo fijo */
.fondo-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(0, 168, 204, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(11, 45, 82, 0.6), transparent 30%);
    pointer-events: none;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ---------------------------------------------------- */
/* COMPONENTES DEEP GLASS                            */
/* ---------------------------------------------------- */

.card-glass {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));

    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;

    /* Borde Metálico */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top-color: rgba(226, 232, 240, 0.3);
    border-left-color: rgba(226, 232, 240, 0.2);
    border-right-color: rgba(0, 168, 204, 0.1);
    border-bottom-color: rgba(0, 168, 204, 0.1);
}

.card-glass:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 25px rgba(0, 168, 204, 0.2);
}

/* ---------------------------------------------------- */
/* NAVBAR                                              */
/* ---------------------------------------------------- */
.navbar-glass {
    background: rgba(0, 31, 63, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-blanco);
    letter-spacing: -0.5px;
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--color-cyan);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Botón Brillante (Glow) */
.btn-glow {
    background: rgba(0, 168, 204, 0.1);
    color: var(--color-cyan);
    border: 1px solid var(--color-cyan);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 168, 204, 0.2);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background: var(--color-cyan);
    color: var(--color-navy);
    box-shadow: 0 0 30px rgba(0, 168, 204, 0.6);
}

.navbar-toggler {
    border: none;
    color: var(--color-cyan);
    font-size: 2rem;
}

/* ---------------------------------------------------- */
/* FOOTER MAGIC (NUEVO ESTILO)                         */
/* ---------------------------------------------------- */
.footer-magic {
    background-color: #000b14;
    /* Casi negro */
    position: relative;
    padding-top: 6rem;
    /* Espacio para el puente */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Fondo de Grilla Cibernética */
.footer-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 168, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 204, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Luz ambiental en el footer */
.footer-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 168, 204, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 2;
}

/* Indicador de Estado del Sistema */
.system-status {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--color-silver);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    /* Verde */
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        opacity: 1;
        box-shadow: 0 0 5px #2ecc71;
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 0px #2ecc71;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 5px #2ecc71;
    }
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--color-cyan);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 168, 204, 0.4);
}

.social-icon-glass {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-silver);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-right: 10px;
}

.social-icon-glass:hover {
    background: var(--color-cyan);
    color: var(--color-navy);
    border-color: var(--color-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 204, 0.3);
}

/* ---------------------------------------------------- */
/* CTA BRIDGE (El Puente de Transición)                */
/* ---------------------------------------------------- */
.cta-bridge-section {
    position: relative;
    padding: 0;
    margin-top: 4rem;
    margin-bottom: -4rem;
    /* HACE QUE SE SOLAPE CON EL FOOTER */
    z-index: 10;
}

/* ---------------------------------------------------- */
/* PRELOADER: SYSTEM BOOT                              */
/* ---------------------------------------------------- */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000b14;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.terminal-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.terminal-line {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(10px);
}

.cmd-text {
    color: var(--color-silver);
}

.cmd-keyword {
    color: var(--color-cyan);
    font-weight: bold;
}

.cmd-success {
    color: #2ecc71;
}

.cmd-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: var(--color-cyan);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .terminal-line {
        font-size: 0.9rem;
    }

    #boot-screen {
        padding: 1rem;
        padding-top: 30vh;
        align-items: flex-start;
    }

    /* Ajuste de margen para móvil en el puente */
    .cta-bridge-section {
        margin-bottom: -2rem;
    }

    .footer-magic {
        padding-top: 4rem;
    }
}