/* ==========================================
   ESTILOS GENERALES
========================================== */

body {
    background: linear-gradient(to bottom, #000000 0%, #A8598A 100%);
    font-family: "IM Fell DW Pica", serif;
    text-align: center;
    color: #fffafc;
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}


/* ==========================================
   ORNAMENTOS SVG LATERALES
========================================== */

.ornamento {
    position: absolute;
    top: 0;
    width: 120px;
    height: 1000px;
    min-height: 0;
    fill: none;
    stroke: #C36AA0;
    stroke-width: 0.9;
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

.ornamento-izquierdo {
    left: 0;
}

.ornamento-derecho {
    right: 0;
    transform: scaleX(-1);
}


/* ==========================================
   CONTENIDO POR ENCIMA DE LOS ORNAMENTOS
========================================== */

body > *:not(.ornamento) {
    position: relative;
    z-index: 1;
}


/* ==========================================
   DESTELLOS DECORATIVOS
========================================== */

.destello {
    color: #D77CB0;
    font-size: 32px;
    font-weight: 400;
    pointer-events: none;
}

.destello-superior {
    margin-top: 12px;
    margin-bottom: -35px;
}

.destello-inferior {
    margin-top: -8px;
    padding-bottom: 18px;
    font-size: 38px;
}


/* ==========================================
   ENCABEZADO
========================================== */

.encabezado {
    padding: 60px 20px 30px;
}

.encabezado h1 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 10px;
}

.encabezado p {
    font-size: 18px;
    margin-top: 0;
    font-style: italic;
}


/* ==========================================
   PRESENTACIÓN
========================================== */

.presentacion {
    max-width: 650px;
    margin: 20px auto 35px;
    padding: 0 25px;
    line-height: 1.6;
    font-size: 19px;
    font-style: normal;
}


/* ==========================================
   SEPARADORES ORNAMENTALES
========================================== */

.separador {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #D77CB0;
    font-size: 27px;
    margin: 25px auto 30px;
}

.separador span {
    display: block;
    width: 70px;
    height: 1px;
    background-color: #A8598A;
}

.separador-inferior {
    margin-top: 35px;
    margin-bottom: 10px;
}


/* ==========================================
   TÍTULOS DE SECCIÓN
========================================== */

.proyectos h2,
.enlaces h2,
.musica h2 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 35px;
}


/* ==========================================
   SECCIÓN DE PROYECTOS
========================================== */

.proyectos {
    padding: 15px 20px 20px;
}


/* ==========================================
   CUADRÍCULA DE PROYECTOS
========================================== */

.lista-proyectos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 20px;
    max-width: 850px;
    margin: 0 auto;
}


/* ==========================================
   CADA PROYECTO
========================================== */

.proyecto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.proyecto p {
    font-size: 19px;
    margin: 10px 0 0;
}


/* ==========================================
   IMÁGENES DE LOS PROYECTOS
========================================== */

.imagen-proyecto {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border: 1px solid #D77CB0;
    border-radius: 12px;
    background-color: #000000;
    padding: 8px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* EFECTO AL PASAR EL CURSOR SOBRE LA IMAGEN */

.imagen-proyecto:hover {
    transform: scale(1.04);
    box-shadow: 0 0 20px #D77CB055;
}


/* ==========================================
   NUEVO: DESTELLITOS BLANCOS EN LAS IMÁGENES
========================================== */

/* CONTENEDOR DEL ENLACE */

.enlace-imagen {
    position: relative;
    display: block;
    width: 100%;
    max-width: 250px;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
}

/* IMAGEN DENTRO DEL ENLACE */

.enlace-imagen .imagen-proyecto {
    display: block;
    width: 100%;
}

/* CONSERVAR EL BRILLO ROSADO */

.enlace-imagen:hover .imagen-proyecto {
    transform: scale(1.04);
    box-shadow: 0 0 20px #D77CB055;
}

/* DESTELLOS BLANCOS */

.enlace-imagen::before,
.enlace-imagen::after {
    content: "✦";
    position: absolute;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 8px #ffffff;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

/* DESTELLO SUPERIOR DERECHO */

.enlace-imagen::before {
    top: -12px;
    right: 12px;
    font-size: 18px;
    transform: scale(0.5) rotate(-20deg);
}

/* DESTELLO INFERIOR IZQUIERDO */

.enlace-imagen::after {
    content: "✧";
    bottom: -10px;
    left: 15px;
    font-size: 15px;
    transform: scale(0.5) rotate(20deg);
}

/* APARICIÓN SUAVE DE LOS DESTELLOS */

.enlace-imagen:hover::before,
.enlace-imagen:hover::after,
.enlace-imagen:focus-visible::before,
.enlace-imagen:focus-visible::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}


/* ==========================================
   CÍRCULOS NUMERADOS
========================================== */

.icono {
    width: 98px;
    height: 98px;
    box-sizing: border-box;
    border: 1px solid #D77CB0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.icono:hover {
    background-color: #A8598A30;
    transform: scale(1.04);
}


/* ==========================================
   ENLACES GENERALES
========================================== */

a {
    color: #fffafc;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 17px;
}

a:hover {
    color: #F0B9D9;
}


/* ==========================================
   ENLACES DE INTERÉS
========================================== */

.enlaces {
    padding: 35px 20px 25px;
}


/* ==========================================
   BOTONES DE LA WIKI
========================================== */

.botones-wiki {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 650px;
    margin: 0 auto;
}

.boton-wiki {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid #D77CB0;
    border-radius: 12px;
    color: #fffafc;
    background-color: #A8598A18;
    text-decoration: none;
    font-size: 16px;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.boton-wiki:hover {
    background-color: #A8598A55;
    border-color: #F0B9D9;
    color: #fffafc;
    transform: translateY(-2px);
}


/* ==========================================
   MÚSICA
========================================== */

.musica {
    padding: 20px;
    margin-bottom: 25px;
}

.musica p {
    font-size: 17px;
    font-style: italic;
}


/* ==========================================
   REPRODUCTOR DE SPOTIFY
========================================== */

.reproductor-spotify {
    max-width: 420px;
    margin: 25px auto 10px;
    padding: 1px;
    border: 1px solid #D77CB0;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 0 18px #A8598A20;
}

.reproductor-spotify iframe {
    display: block;
    width: 100%;
    border: none;
    border-radius: 12px;
}


/* ==========================================
   PIE DE PÁGINA
========================================== */

.pie {
    padding: 12px 20px;
    font-size: 14px;
}


/* ==========================================
   ADAPTACIÓN PARA PANTALLAS PEQUEÑAS
========================================== */

@media (max-width: 700px) {

    .lista-proyectos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 12px;
    }

    .encabezado h1 {
        font-size: 32px;
    }

    .presentacion {
        font-size: 17px;
    }

    .ornamento {
        width: 38px;
        opacity: 0.4;
    }

    .icono {
        width: 78px;
        height: 78px;
        font-size: 21px;
    }

    .proyectos h2,
    .enlaces h2,
    .musica h2 {
        font-size: 26px;
    }

}


/* ==========================================
   AJUSTES PARA CELULARES
========================================== */

@media (max-width: 500px) {

    .botones-wiki {
        flex-direction: column;
        padding: 0 20px;
    }

    .boton-wiki {
        box-sizing: border-box;
        width: 100%;
        max-width: 280px;
    }

    .reproductor-spotify {
        max-width: 100%;
    }

}
/* ==========================================
   BOTÓN DESTACADO DE LA WIKI
========================================== */

/* CONTENEDOR DEL BOTÓN */

.contenedor-wiki-proyecto {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* BOTÓN PRINCIPAL */

.boton-wiki-proyecto {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    padding: 17px 38px;

    border: 1px solid #F0B9D9;
    border-radius: 15px;

    background-color: #A8598A35;
    color: #fffafc;

    font-family: "IM Fell DW Pica", serif;
    font-size: 20px;

    text-decoration: none;

    box-shadow: 0 0 15px #D77CB055;

    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* BRILLO ROSADO AL PASAR EL CURSOR */

.boton-wiki-proyecto:hover {
    background-color: #A8598A75;
    color: #ffffff;

    box-shadow:
        0 0 15px #F0B9D999,
        0 0 30px #D77CB066;

    transform: translateY(-3px);
}

/* DESTELLITOS BLANCOS */

.estrella-boton {
    color: #ffffff;
    font-size: 22px;
    opacity: 0.5;

    transition:
        opacity 0.3s ease,
        transform 0.4s ease,
        text-shadow 0.3s ease;
}

/* ANIMACIÓN DE LOS DESTELLOS */

.boton-wiki-proyecto:hover .estrella-boton {
    opacity: 1;

    transform: scale(1.3) rotate(20deg);

    text-shadow:
        0 0 8px #ffffff,
        0 0 15px #F0B9D9;
}