/* =========================================================
   NEHUU™ — ESTILOS COMPARTIDOS (se cargan en todas las páginas)
   ========================================================= */

/* PALETA */
:root {
    --lila: rgb(186, 173, 211);
    --azul: rgb(45, 104, 196);
    --azul-oscuro: rgb(20, 40, 90);
    --dorado: rgb(243, 200, 85);
    --fondo: rgb(15, 15, 30);

    --negro-profundo: rgb(8, 8, 20);
    --lila-espiritual: rgb(160, 140, 200);
    --azul-energia: rgb(40, 90, 200);
    --azul-electrico: rgb(80, 140, 255);
    --dorado-luz: rgb(255, 210, 90);
    --gris-niebla: rgba(255, 255, 255, 0.08);
}

/* GENERAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--fondo);
    color: white;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Cambio de página sin recargar (ver energia.js) */
main:focus { outline: none; }

main.entrando { animation: entrada 0.45s ease both; }

@keyframes entrada {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    main.entrando { animation: none; }
}

/* FONDO ANIMADO (canvas de partículas) */
#energia {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* CURSOR PERSONALIZADO (solo se activa con mouse; ver energia.js) */
.cursor {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--azul-electrico);
    box-shadow: 0 0 20px var(--azul-electrico);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-100px, -100px);
}

body.con-cursor { cursor: none; }

body.con-cursor .cursor { display: block; }

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--azul-oscuro);
}

header h1 a {
    color: #ffffff;
    text-decoration: none;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.activo {
    color: var(--dorado-luz);
}

@keyframes float {
    from { transform: translateY(-20px); }
    to   { transform: translateY(20px); }
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    text-align: center;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--dorado-luz);
    color: black;
}

.btn-secondary {
    border: 1px solid var(--azul-electrico);
    color: white;
}

/* BOTÓN DE SONIDO */
.btn-sonido {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    padding: 10px 18px;
    border: 1px solid var(--azul-electrico);
    border-radius: 999px;
    background: rgba(8, 8, 20, 0.85);
    color: white;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-sonido:hover {
    background: rgba(80, 140, 255, 0.2);
    box-shadow: 0 0 20px rgba(80, 140, 255, 0.25);
}

.btn-sonido[aria-pressed="true"] {
    border-color: var(--dorado-luz);
    color: var(--dorado-luz);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: black;
}

/* ---------------------------------------------------------
   RESPONSIVE — CELULAR
   --------------------------------------------------------- */
@media (max-width: 700px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 18px 12px;
    }

    header h1 {
        margin: 0;
        font-size: 1.7rem;
        line-height: 1;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }

    nav a {
        margin-left: 0;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

/* Pequeña etiqueta superior */
.etiqueta {
    color: var(--dorado-luz);
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   VOLVER AL PORTAL
   --------------------------------------------------------- */
.volver {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 30px;
    background:
        radial-gradient(
            circle,
            rgba(80,140,255,0.12),
            transparent 60%
        );
}

.volver p {
    color: var(--lila-espiritual);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* ---------------------------------------------------------
   BOTONES
   --------------------------------------------------------- */
.btn-primary,
.btn-secondary {
    display: inline-block;
    transition: 0.3s ease;
}

.btn-primary:hover {
    box-shadow:
        0 0 25px rgba(255,210,90,0.35);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(80,140,255,0.12);
    box-shadow:
        0 0 20px rgba(80,140,255,0.2);
}
