/* --------------------------- */
/*      ESTILOS GENERALES      */
/* --------------------------- */

html,
body {
    background-color: #28283B;
    height: 100%;
    margin-top: 0.5rem;
    margin-bottom: 4rem;
    margin-left: 4rem;
    margin-right: 4rem;
}

/* Fondo animado con paleta del álbum */
main {
    background: linear-gradient(-45deg,
            #ff92ff,
            #D3EDEA,
            #f4a3b4,
            #0BD5F4,
            #89d1c2,
            #F5276F);

    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
}

/* Animación del degradado */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --------------------------- */
/*           MAIN              */
/* --------------------------- */

main {

    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centra verticalmente */
    align-items: center;
    /* centra horizontalmente */
    align-items: center;
    min-height: 60vh;
    width: 100%;

}

/* Wrapper para que el iframe sea responsive */

header {
    margin-top: 0rem;
}

.video-container iframe {

    margin-top: 6rem;
    margin-bottom: 3rem;
    /* dale el aire que quieras */
    box-sizing: border-box;

    width: 500px;
    height: 888.89px;
    border: 0px;

    /* mantiene proporciones cubriendo todo */


}

/* Título */
h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #89d1c2;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-stretch: 50%;


}


.marquee {
    opacity: 0.9;
    font-family: Arial, Helvetica, sans-serif;
    color: #EAF2C7;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 3rem;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    font-size: 2.9rem;
    animation: marquee 100s linear infinite;
}

.marquee span:hover {
    animation-play-state: paused;
}

/* Animación del texto */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.embedbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* dos columnas iguales */
    gap: 6rem;
    /* espacio entre embeds */
    width: 90%;
    max-width: 1100px;
    margin: 3rem;


    /* alinea verticalmente arriba */
}

/* Contenedor del embed */
#arboles2-listening {

    width: 90%;
    max-width: 600px;
}

/* Asegurar que el embed quede centrado */
#arboles-listening {
    border: none;
    border-radius: 12px;
    width: 100%;
    align-items: center;
    height: 380px;
    -moz-box-align: center;
    box-sizing: border-box;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.picture {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    margin-top: 4.5rem;
    margin-bottom: 8rem;
}

/* --------------------------- */
/*          FOOTER             */
/* --------------------------- */

footer {

    padding: 2rem 0;
    width: 100%;
    text-align: center;
    align-content: center;
    font-family: Arial, Helvetica, sans-serif;
    backdrop-filter: blur(5px);

}


ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
}


.links {
    gap: 3rem;
    color: beige;
    font-size: 0.9rem;
    opacity: 0.9;
}

a {
    color: beige;
    text-decoration: none;

}

a:visited {
    color: beige;
}

#GrillaFooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
}

.logo img {
    width: 70px;
    opacity: .85;
}

.creditos {
    font-size: 0.9rem;
    opacity: 0.9;
    color: beige;
}

/* --------------------------- */
/*      MÓVILES / RESPONSIVE   */
/* --------------------------- */

@media (max-width: 1150px) {
    h1 {
        position: relative;
        font-size: 2.3rem;
        width: 30%;
        padding: 2rem;
        transform: translate(30%, -0%);
    }


    body {
        margin: 2rem;
    }

    .embedbox {
        position: relative;
        width: 50%;

        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        /* dos columnas iguales */
        gap: 3rem;
        /* espacio entre embeds */
        max-width: 400px;
        /* alinea verticalmente arriba */
    }


    .video-container iframe {

        margin-top: 3rem;
        margin-bottom: 3rem;
        /* dale el aire que quieras */
        box-sizing: border-box;

        width: 168.75px;
        height: 300px;
        border: 0px;

        /* mantiene proporciones cubriendo todo */


    }


    iframe {
        height: 100px;
    }

    .links {
        font-size: 1rem;
    }

    .creditos {
        font-size: 1rem;
    }
}