/* FUENTES Y VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Open+Sans:wght@400;700&display=swap');

:root {
    --blue-darkest: #020024; --blue-dark: #0a1a35; --blue-medium: #004e92;
    --blue-bright: #00d2ff; --white: #ffffff; --nav-height: 70px;
}

/* ESTRUCTURA BASE */
body, html {
    height: 100%; margin: 0; padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: radial-gradient(circle at center, var(--blue-medium) 0%, var(--blue-dark) 60%, var(--blue-darkest) 100%);
    color: var(--white);
    display: flex; flex-direction: column; min-height: 100vh;
}

/* ANIMACIÓN DE FONDO (Común) */
@keyframes bgPulse {
    0% { background-size: 100% 100%; } 50% { background-size: 115% 115%; } 100% { background-size: 100% 100%; }
}
body { animation: bgPulse 15s ease-in-out infinite alternate; }

/* TIPOGRAFÍA */
h1, h2, h3, .nav-name, .btn-primary { font-family: 'Russo One', sans-serif; }
a { text-decoration: none; }

/* NAVBAR (Idéntico para todos) */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    background: rgba(2, 0, 36, 0.95); backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--blue-medium); z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; box-sizing: border-box;
}
.nav-brand { display: flex; align-items: center; gap: 10px; z-index: 1001; }
.nav-logo-small { height: 40px; width: auto; filter: drop-shadow(0 0 5px var(--blue-bright)); }
.nav-name { font-size: 1.5rem; color: var(--white); text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 5px var(--blue-bright); }

.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 2rem; transition: 0.3s; }
.nav-link { color: rgba(255,255,255,0.7); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; transition: 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--blue-bright); text-shadow: 0 0 10px var(--blue-bright); }

.nav-icons { display: flex; align-items: center; gap: 15px; z-index: 1001; }
.nav-icon-btn { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; transition: 0.2s; padding:5px; }
.nav-icon-btn:hover { color: var(--blue-bright); transform: scale(1.1); text-shadow: 0 0 5px var(--blue-bright); }

/* FOOTER (Idéntico para todos) */
.credits-footer {
    width: 100%; padding: 15px 0; margin-top: auto;
    background: rgba(2, 0, 36, 0.95); border-top: 1px solid var(--blue-medium);
    font-size: 0.75rem; text-align: center; color: rgba(255,255,255,0.6); letter-spacing: 1px;
}
.highlight-cyan { color: var(--blue-bright); font-weight: bold; }

/* CONTENIDO PRINCIPAL (Layout básico) */
.main-content {
    flex: 1; width: 100%; max-width: 1200px;
    margin: var(--nav-height) auto 0; padding: 20px;
    box-sizing: border-box;
}

/* MÓVIL (Hamburguesa) */
.hamburger { display: none; cursor: pointer; z-index: 1002; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: 0.3s; background-color: white; }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu { position: fixed; left: -100%; top: var(--nav-height); flex-direction: column; background: rgba(2, 0, 36, 0.98); width: 100%; height: calc(100vh - var(--nav-height)); align-items: center; justify-content: center; gap: 40px; border-top: 1px solid var(--blue-medium); }
    .nav-menu.active { left: 0; }
    .nav-link { font-size: 1.5rem; font-weight: bold; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-name { display: none; } /* Ocultar nombre en móvil si quieres espacio */
}