/* Preloader */
/* Estilos del preloader y su fondo */
.preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-container {
    width: 100px;
    height: 100px;
    position: relative;
}

.preloader-circle {
    width: 100%;
    height: 100%;
    border: 8px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    box-sizing: border-box;
}

.preloader-pie {
    width: 50%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border: 8px solid #000000;
    border-radius: 100% 0 0 100% / 50% 0 0 50%;
    box-sizing: border-box;
    border-right: none;
    transform-origin: right center;
    animation: rotate 2s linear infinite;
}

.preloader-pie-fill {
    display: none;
    position: absolute;
    width: 50%;
    height: 100%;
    left: 50%;
    top: 0;
    border: 8px solid #000000;
    border-radius: 0 100% 100% 0 / 0 50% 50% 0;
    box-sizing: border-box;
    border-left: none;
    transform-origin: left center;
    animation: rotate-fill 2s step-end infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-fill {
    0% { display: none; }
    50% { display: block; transform: rotate(0deg); }
    100% { display: block; transform: rotate(180deg); }
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

/* Estilos generales de secciones */
.seccion {
    padding: 60px 10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-family: "Cinzel Decorative", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

p {
    margin-bottom:10px;
    line-height:1.5;
    text-align:justify;
}

.seccion img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.seccion img:hover {
    filter: grayscale(0%);
}

/* Boton */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn:hover {
    background: #fff;
    color: #000;
}

.acerca-de-mi,.musica {
    z-index: 2;
    overflow: hidden;
}

/* Seccion Acerca de mi */

.acerca-de-mi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.acerca-de-mi .proyecto {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.acerca-de-mi a {
    overflow: hidden;
    border-radius: 10px;
}

/* Seccion Musica */

.musica {
    color:#fff;
    position: relative;
    background-image: url('../img/slide-02.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    text-align: center;
    z-index: 2;
    overflow: hidden;
}

.musica::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    filter: grayscale(100%) brightness(0.3);
    z-index: -1;
}

.musica .container {
    position: relative;
    z-index: 2;
}

.musica-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.musica-grid .proyecto {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.musica-grid h3 {
    font-family: "Cinzel Decorative", serif;
    font-weight: 400;
    margin: 15px 0 10px;
    color: #fff;
    font-size: 1.5em;
}

.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 5px;
    color: #999999;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.platform-btn:hover {
    background-color: #be0e19;
}

/* Responsive Design */
@media (max-width: 768px) {
    .acerca-de-mi-grid, .musica-grid {
        grid-template-columns: 1fr;
    }

    .acerca-de-mi, .musica {
        padding: 60px 10%;
    }
}