/* ============================= */
/* BLOQUE: HEADER PRINCIPAL */
/* ============================= */
.header {
    display: flex; /* convierte el header en un contenedor flex para alinear hijos en fila */
    flex-wrap: wrap; /* permite que los elementos bajen a la siguiente línea si no caben */
    justify-content: space-around;  /* separa los elementos horizontalmente a los extremos */
    align-items: center; /* centra verticalmente todos los elementos dentro del header */
    padding: 1rem 2rem; /* espacio interno arriba/abajo y lateral */
    color: #fff; /* color de texto blanco por defecto */
    position: relative; /* necesario para dropdowns y elementos absolutos dentro */
    font-family: "Orbitron", sans-serif; /* fuente futurista/monoespaciada */
    background: linear-gradient(90deg, #121417, #1e2128); /* fondo degradado horizontal oscuro */
}

/* ============================= */
/* BLOQUE: LOGO */
/* ============================= */
.header__logo img {
    height: 150px; /* altura del logo */
    animation: logo-pulse 2s ease-in-out infinite; /* animación suave de pulsación */
}

@keyframes logo-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============================= */
/* BLOQUE: TITULO PRINCIPAL CABECERA */
/* ============================= */
.header__title {
    font-family: "Orbitron", sans-serif;
    font-size: 3rem; /* aumenta el tamaño para ocupar espacio */
    font-weight: bold;
    text-align: center;
    color: #fff;
    position: relative;
    display: inline-block;
    padding: 0.2rem 1rem;

    /* efecto de gradiente aurora boreal */
    background: linear-gradient(270deg, #00ff80, #00ffff, #6a0dad, #8b00ff, #00ff80);
    background-size: 1000% 100%; /* muy ancho para animar */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: auroraGradient 6s ease infinite;
    letter-spacing: 1px;
    text-shadow:
        0 0 5px rgba(0, 255, 128, 0.6),
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 15px rgba(107, 0, 255, 0.5),
        0 0 20px rgba(139, 0, 255, 0.4);
}

/* Animación del gradiente */
@keyframes auroraGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animación del gradiente tipo aurora */
@keyframes aurora-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ============================= */
/* BLOQUE: SUBTÍTULO DEL HEADER */
/* ============================= */
.header__subtitle {
    font-family: "Orbitron", sans-serif;
    font-size: 1.2rem; /* un poco más pequeño que el h1 */
    text-align: center;
    margin-top: 0.3rem;
    background: linear-gradient(90deg, #00ffcc, #9900ff, #00ffcc); /* aurora verde a morado */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: auroraGradient 5s ease-in-out infinite alternate;
}

/* Animación suave del gradiente para efecto aurora */
@keyframes auroraGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ============================= */
/* BLOQUE: NAVEGACIÓN */
/* ============================= */
.header__nav .nav__list {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__item a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    transition: 0.3s;
}

.nav__item a:hover {
    background-color: #333;
    border-radius: 4px;
}

/* ============================= */
/* BLOQUE: ESTADO / RELOJ */
/* ============================= */
.header__status {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    gap: 0.5rem;
}

.status__clock {
    display: inline-block;
    width: 100px; /* más ancho para que no se corte */
    text-align: center;
    font-family: "Orbitron", monospace;
    font-size: 1.5rem; /* aumentamos el tamaño de la fuente */
    color: #0f0;
    padding: 0.3rem 0; /* más espacio vertical */
}
