/*-- GENERAL  --*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Trebuchet MS','Gill Sans','Gill Sans MT','planet kosmos',sans-serif;

}

/*--  FONDO --*/
body {
    background-image: url(img/fondo1.jpg); 
    background-size: cover;
    background-attachment: fixed;
    background-repeat: repeat;
    color: lavender;
    font-style: oblique;
}

/*-- CONTENEDOR --*/
#general {
    width: 95%;
    margin: 20px auto;
    padding: 0;
    border: 2px solid #d3def2;
    background-color: rgba(0,0,0,0.55);
    box-shadow: 0 0 25px #080242, 0 0 40px #6ad0ff inset;
    border-radius: 10px;
    overflow: hidden;
    position: relative;   
    z-index: 1;
}

/*-- HEADER --*/
header {
    width: 100%;
    line-height: 120px;
    background: linear-gradient(#232052, #2e3740);
    text-align: center;
    border-bottom: 3px solid #230065;
}

/*-- TÍTULO -- */
header h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.5rem;

    /* Gradiente mágico */
    background: linear-gradient(90deg,
        #e8b3ff,
        #ffffff,
        #d19bff,
        #ffffff,
        #e8b3ff
    );
    background-size: 300%;

    /* gradiente de texto */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    /* BRILLO NEÓN INTENSO */
    text-shadow:
        0 0 8px  #c77dff,
        0 0 18px #e6b8ff,
        0 0 35px #e9c6ff,
        0 0 60px #ffdeff,
        0 0 90px #ffffff;

    /* Animaciones */
    animation: glitterMove 4s linear infinite, neonGlow 3.5s ease-in-out infinite;
}


/*-- MENÚ --*/
#menu {
    position: relative;
    padding: 0;
    box-shadow: 0 0 25px #7fd8ff, 0 0 45px #c8faff inset;
    border-radius: 20px;
    animation: menuGlow 3.5s ease-in-out infinite;
}

@keyframes menuGlow {
    0% {
        box-shadow: 0 0 15px #6ad0ff, 0 0 25px #9cd8ff inset;
    }
    50% {
        box-shadow: 0 0 35px #b5f7ff, 0 0 55px #c8faff inset;
    }
    100% {
        box-shadow: 0 0 15px #6ad0ff, 0 0 25px #9cd8ff inset;
    }
}

/*-- Estilo menú --*/
#menu ul {
    list-style: none;
    text-align: center;
    background: #1e1e2f;
    border-bottom: 3px solid #230065;
}

#menu ul li {
    display: inline-block;
    padding: 15px 25px;
}

#menu ul li a {
    color: #d6d2ff;
    font-weight: bold;
    text-shadow: 0 0 10px #6ad0ff;
    font-size: 1.2rem;
    display: inline-block;
    transition: 0.3s ease;
}

/*-- EFECTO CRECER + BRILLO  --*/
#menu ul li a:hover {
    transform: scale(1.25);
    text-shadow: 
        0 0 15px #9cd8ff, 
        0 0 30px #80e9ff, 
        0 0 45px #c8faff;
    animation: spark 0.25s ease-out;
}

/* ANIMACIÓN SPARK */
@keyframes spark {
    0% {
        filter: drop-shadow(0 0 0px #a8ffc2);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 12px #c4ffd9);
        transform: scale(1.3);
    }
    100% {
        filter: drop-shadow(0 0 0px #a8ffc2);
        transform: scale(1.25);
    }
}

/*--   CONTENIDO MAIN  --*/
#Contenido {
    padding: 40px 60px;
    text-align: center;
}

/*-- PRIMERO TEXTO, LUEGO IMÁGENES --*/
#texto-principal {
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/*-- GALERÍA --*/
#galeria {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#galeria img {
    width: 18%;
    max-width: 200px;
    border-radius: 20px;
    box-shadow: 0 0 10px #6ad0ff;
}

/*-- FOOTER --*/
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    background: #1d1a2c;
    border-top: 3px solid #230065;
    color: #bdb4ff;
}

/*-- Estrellas Parpadeantes --*/
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;

    background-image:
        radial-gradient(2px 2px at 10% 20%, #ffffff 80%, transparent 100%),
        radial-gradient(2px 2px at 80% 40%, #d4e7ff 80%, transparent 100%),
        radial-gradient(1.5px 1.5px at 30% 70%, #c8faff 80%, transparent 100%),
        radial-gradient(2.5px 2.5px at 50% 10%, #ffffff 80%, transparent 100%),
        radial-gradient(1px 1px at 70% 90%, #d4e7ff 80%, transparent 100%),
        radial-gradient(2px 2px at 20% 50%, #ffffff 80%, transparent 100%),
        radial-gradient(1.2px 1.2px at 90% 80%, #c8faff 80%, transparent 100%),
        radial-gradient(1.8px 1.8px at 40% 30%, #ffffff 80%, transparent 100%);
    
    animation: twinkle 6s ease-in-out infinite alternate;
    opacity: 0.9;
}

@keyframes twinkle {
    0% { opacity: 0.3; filter: brightness(0.7); }
    50% { opacity: 1; filter: brightness(1.4); }
    100% { opacity: 0.5; filter: brightness(1); }
}

#libroslidos {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 60px;
    max-width: 800px;
    margin: 0 auto; /* centra el bloque completo */
    color: aliceblue;
}

#quieroleer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 60px;
    max-width: 800px;
    margin: 0 auto; /* centra el bloque completo */
    color: aliceblue;
}

/* QUITAR AZUL Y MORADO DE LOS LINKS */
a {
    color: #e8b3ff;          /* color normal */
    text-decoration: none;  /* quita el subrayado */
}

/* cuando ya fue visitado */
a:visited {
    color: #e8b3ff;
}

/* cuando pasas el mouse */
a:hover {
    color: #ffffff;
    text-shadow:
        0 0 8px #c77dff,
        0 0 20px #e6b8ff,
        0 0 40px #ffffff;
}

/* cuando haces clic */
a:active {
    color: #ffccff;
}

/* GALERÍA MÁGICA */
#galeria img {
    animation: floatMagic 6s ease-in-out infinite;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover: acercarse + brillo */
#galeria img:hover {
    transform: scale(1.15) rotate(-1deg);
    box-shadow:
        0 0 15px #c8faff,
        0 0 30px #9cd8ff,
        0 0 60px #e8b3ff;
}

/* Animación flotante */
@keyframes floatMagic {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}
#galeria img:nth-child(1) { animation-delay: 0s; }
#galeria img:nth-child(2) { animation-delay: 1.2s; }
#galeria img:nth-child(3) { animation-delay: 2.4s; }
