
/* Fondo animado */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(120deg, #1e1e2f, #3c3c64);
    background-size: 400% 400%;
    animation: fondoAnimado 20s ease infinite;
    color: #ffffff;
}

@keyframes fondoAnimado {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Encabezado */
header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #ff6f61;
}

header h1 {
    font-size: 2rem;
    margin: 0;
    color: #ffcc00;
}

/* Navegación */
nav {
    margin-top: 0.5rem;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    transition: border 0.3s, color 0.3s;
}

nav a:hover, nav a:focus {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
}

/* Secciones */
main {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.7rem;
    color: #ffcc00;
    margin-bottom: 0.8rem;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Reproductor de audio */
audio {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #cccccc;
    border-top: 2px solid #ff6f61;
}

/* Enlaces accesibles */
a {
    color: #00c2ff;
}

a:focus {
    outline: 3px dashed #ffcc00;
    outline-offset: 4px;
}

/* Diseño responsive */
@media (max-width: 600px) {
    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 1.1rem;
    }
}
