/* ===== Estilos generales ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f172a;
    color: #cbd5e1;
    line-height: 1.8;
}

/* ===== Header ===== */

header {
    background-color: #111827;
    padding: 15px 30px;
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

header nav ul li a {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

header nav ul li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

/* ===== Contenido ===== */

body h1,
body h2,
body p,
body ul {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    text-align: center;

    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: #f8fafc;
}

h2 {

    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #f8fafc;
}

p {
    text-align: justify;
    margin-bottom: 18px;
    font-size: 17px;
}

/* ===== Listas ===== */

ul {
    margin-bottom: 25px;
    padding-left: 40px;
}

ul li {
    margin-bottom: 10px;
    font-size: 17px;
}



/* ===== Responsive ===== */

@media (max-width: 768px) {

    header {
        padding: 10px 15px;
    }

    header nav ul li a {
        padding: 8px 16px;
        font-size: 15px;
    }

    body h1,
    body h2,
    body p,
    body ul {
        width: 90%;
    }

    h1 {
        font-size: 1.8rem;
        margin-top: 25px;
    }

    h2 {
        font-size: 1.3rem;
    }

    p,
    li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    ul {
        padding-left: 25px;
    }
}

/* ===== Efectos compartidos (mismos que index.html) ===== */

/* Barra de progreso de scroll */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6);
    z-index: 1000;
    border-radius: 0 3px 3px 0;
}

/* Lienzo de partículas de fondo */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* El contenido queda por encima del lienzo de partículas */
header,
h1,
h2,
p,
ul {
    position: relative;
    z-index: 1;
}

/* Resplandor que sigue al cursor */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, rgba(96, 165, 250, 0) 60%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== Aparición al hacer scroll ===== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}