/* -----------------------------------------------------
   FONDO GLOBAL DEL SITIO
------------------------------------------------------ */
.site-background {
    background-image: url('../images/fondo03.webp');
    background-size: cover;       /* Ocupa toda la pantalla */
    background-position: center;  /* Centrada */
    background-repeat: no-repeat;
    background-attachment: fixed; /* 🔥 FONDO FIJO REAL */
    height: 100%;                 /* Asegura que cubra */
}
/* Evita scroll raro y mantiene el contenido encima del fondo */
body {
    min-height: 100vh;
    overflow-y: auto;  /* 🔥 Permite scroll normal del contenido */
}
html {
    height: 100%;
}
/* -----------------------------------------------------
   NAVBAR PERSONALIZADA
------------------------------------------------------ */
.custom-navbar {
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 0, 0.25);
    border-radius: 12px;
    margin: 10px auto;
    width: 95%;
    padding: 10px 20px;
    box-shadow:
        inset 0 0 6px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(0, 255, 0, 0.3);
}

/* -----------------------------------------------------
   TEXTO DE LA NAVBAR
------------------------------------------------------ */
.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
    color: #00ff55 !important;
    font-family: "Courier New", monospace;
    text-shadow: 0 0 4px rgba(0, 255, 100, 0.75);
}

/* -----------------------------------------------------
   ESPACIADOR DE NAVBAR
------------------------------------------------------ */
.navbar-space {
    height: 90px;
}

/* -----------------------------------------------------
   LOGO EN LA NAVBAR
------------------------------------------------------ */
.logo-navbar {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(0, 255, 0, 0.4));
}

/* -----------------------------------------------------
   ICONO DE USUARIO
------------------------------------------------------ */
.user-icon {
    font-size: 1.8rem;
    color: #00ff88;
    cursor: pointer;
    transition: 0.3s;
}

.user-icon:hover {
    color: #00ffaa;
    transform: scale(1.1);
}

/* -----------------------------------------------------
   HERO CENTRAL OPCIONAL
------------------------------------------------------ */
.hero {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* -----------------------------------------------------
   LINKS GLOW NAVBAR
------------------------------------------------------ */
.navbar-nav .nav-link {
    color: #00ff55 !important;
    font-family: "Courier New", monospace;
    text-shadow: 0 0 3px rgba(0, 255, 100, 0.5);
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #00ffaa !important;
    text-shadow:
        0 0 5px #00ffaa,
        0 0 10px #00ffaa,
        0 0 15px #00ffaa;
}

/* -----------------------------------------------------
   OFFCANVAS (MENÚ MÓVIL)
------------------------------------------------------ */
.custom-offcanvas {
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 0, 0.25);
    border-radius: 12px;
    box-shadow:
        inset 0 0 6px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(0, 255, 0, 0.3);
}

.custom-offcanvas .offcanvas-title {
    color: #00ff55;
    font-family: "Courier New", monospace;
    text-shadow: 0 0 4px rgba(0, 255, 100, 0.75);
}

.custom-offcanvas .btn-close {
    filter: invert(62%) sepia(95%) saturate(527%) hue-rotate(90deg) brightness(105%) contrast(95%);
}

.custom-offcanvas .btn-close::before,
.custom-offcanvas .btn-close::after {
    background-color: #00ff55 !important;
    box-shadow: 0 0 4px #00ff55;
}

/* -----------------------------------------------------
   FOOTER CRISTAL VERDE
------------------------------------------------------ */
.footer {
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 0, 0.25);
    border-radius: 12px;
    box-shadow:
        inset 0 0 6px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(0, 255, 0, 0.3);
    padding: 30px 15px;
    color: #00ff55;
    font-family: "Courier New", monospace;
}

.footer h5 {
    color: #00ff55;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-shadow: 0 0 4px rgba(0, 255, 100, 0.75);
}

.footer a.footer-link {
    color: #00ff55;
    text-decoration: none;
    transition: 0.3s;
}

.footer a.footer-link:hover {
    color: #00ffaa;
    text-shadow: 0 0 5px #00ffaa, 0 0 10px #00ffaa;
}

.footer ul {
    padding-left: 0;
    list-style: none;
}

.footer i {
    margin-right: 5px;
}

/* -----------------------------------------------------
   CONTENEDOR TEXTO / MATRIX
------------------------------------------------------ */
.welcome-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    z-index: 1;
    padding-top: 150px;
    padding-bottom: 20px;
}

/* Canvas Matrix detrás del texto */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

/* Contenedor del texto de bienvenida */
.welcome-background {
    background: transparent !important;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
}

.welcome-text {
    color: #00ff55;
    font-family: "Courier New", monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    border-right: 3px solid #00ff55;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 0 0 5px #00ff55, 0 0 10px #00ff55;
    animation: blinkCursor 0.7s steps(1) infinite;
}

@keyframes blinkCursor {
    0%, 50% { border-color: #00ff55; }
    51%, 100% { border-color: transparent; }
}

/* Botón estilo Matrix */
.matrix-button {
    display: none;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 0, 0.25);
    border-radius: 12px;
    color: #00ff55;
    font-family: "Courier New", monospace;
    padding: 10px 25px;
    font-size: 1.2rem;
    cursor: pointer;
    text-shadow: 0 0 5px #00ff55, 0 0 10px #00ff55;
    transition: 0.3s;
    margin-top: 80px;
}

.matrix-button:hover {
    background: rgba(20, 20, 20, 0.7);
    box-shadow: 0 0 10px #00ff55, 0 0 20px #00ff55;
    transform: scale(1.05);
}

/* -----------------------------------------------------
   TEXTO / MATRIX
------------------------------------------------------ */
.matrix-text {
    color: #00ff55;                        /* Verde Matrix */
    font-family: "Courier New", monospace; /* Fuente estilo terminal */
    text-shadow: 0 0 3px #00ff55, 0 0 6px #00ff55; /* Efecto glow */
    line-height: 1.6;                       /* Mejor legibilidad */
}

.matrix-text a {
    color: #00ff55;
    text-decoration: underline;
    text-shadow: 0 0 3px #00ff55, 0 0 6px #00ff55;
}

.matrix-text a:hover {
    color: #00ffaa;
    text-shadow: 0 0 5px #00ffaa, 0 0 10px #00ffaa;
}

/* -----------------------------------------------------
   BOTON SUBIR MATRIX
------------------------------------------------------ */
#scrollBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 0, 0.5);
    background-color: rgba(0,0,0,0.6);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

#scrollBtn:hover {
    background-color: rgba(0,0,0,0.8);
    box-shadow: 0 0 10px #00ff55, 0 0 20px #00ff55;
    transform: scale(1.1);
}

.galon-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px; /* espacio entre los galones */
}

.galon {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid #00ff55; /* color verde Matrix */
}

.logo-home {
    width: 200px;        /* ajusta según lo necesites */
    height: auto;
    margin-bottom: 30px; /* separa el logo del texto */
    display: block;
    margin-left: auto;
    margin-right: auto;
}