@font-face {
    font-family: 'CaviarDreams';
    src: url(/Fuentes/caviar_dreams/CaviarDreams.ttf);
}
*{
    margin: 0;
    padding: 0;
}
html, body{
    height: 100%;
}
body{
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:    "Header"
                            "Main"
                            "Footer";
    box-sizing: border-box;
    font-family: CaviarDreams;
}
header{
    background-color: #e4f4fd;
    grid-area: Header;
    height: 220px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    min-height: 300px;
    font-weight: bold;
}
header img{
    position: absolute;
    top: 5%;
    height: 17%;
    animation-name: Entrada-img;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
header img:hover{
    cursor: pointer;
}
.Titulo{
    position: absolute;
    left: 13%;
    color: black;
    font-size: 25px;
    animation-name: Entrada-Titulo;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
.Titulo2{
    position: absolute;
    left: 13%;
    color: black;
    font-size: 25px;
    animation-name: Entrada-Titulo2;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
#Listado{
    text-align: center;
    position: absolute;
    width: 24%;
    top: 25%;
    animation-name: Entrada-Lista;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    font-size: 20px;
}
#Listado ul{
    list-style-type: none;
    display: flex;
}
.Header-Botones{
    text-decoration: none;
    color: black;
    padding: 10px;
    border-radius: 20px;
}
.Header-Botones:hover{
    transition-duration: 0.5s;
    font-size: 22px;
    background-color: #9edbff;
}
#BotonFormulario{
    position: absolute;
    top: 95px;
    left: 77%;
    width: 8%;
    height: 8%;
    text-align: center;
    background-color: #c9e9fc;
    border-radius: 20px;
    border: none;
    font-size: 16px;
    animation-name: INICIARSESION;
    animation-duration: 1s;
    cursor: pointer;
    background-color: #9edbff;
}
#BotonFormulario:hover{
    background-color: #95d3f7;
}
#BarraBusqueda{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -20px;
    right: 500px;
    animation-name: Barra;
    animation-duration: 1s;
}
#InputBarra{
    width: 70%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 35px;
}
#BotonBarra{
    padding: 18px 20px;
    margin-left: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
#BotonBarra:hover {
    background-color: #0056b3;
}

main{
    grid-area: Main;
    background-image: linear-gradient(180deg, #e4f4fd, #95d3f7);
}


                                                                                /* Inicio css main */
                                        

                                                                                
main #texto{
                                                                                    text-align: justify;
                                                                                    margin-top: 3%;
                                                                                    margin-bottom: 3%;
                                                                                    margin-left: 3%;
                                                                                    margin-left: 3%;
                                                                                    justify-content: center;
                                                                                    font-size: large;
                                                                                    display: flex;
                                                                                    width: 90%;
                                                                                    gap: 5%;
                                                                                    padding: 2%
                                                                                    
                                                                                }
                                                                                main article {
                                                                                    flex: 3;
                                                                                    background-color: rgb(255, 255, 255);
                                                                                    padding: 3%;
                                                                                    border-radius: 20px;
                                                                                    box-shadow: 0 0 10px rgb(175, 175, 175);
                                                                                    
                                                                                }
                                                                                aside {
                                                                                    border-radius: 20px;
                                                                                    flex: 1;
                                                                                    background-color: rgb(255, 255, 255);
                                                                                    padding: 3%;
                                                                                    box-shadow: 0 0 10px rgb(160, 160, 160);
                                                                                }
                                                                                main h1{
                                                                                    margin-bottom: 1%;
                                                                                }
                                                                                main section{
                                                                                    margin-left: 5%;
                                                                                }
                                                                                
                                                                                                
                                                                                #video-section {
                                                                                    text-align: center;
                                                                                }
                                                                                
                                                                                #animated-video {
                                                                                    margin-right: 100px;
                                                                                    width: 85%;
                                                                                    max-width: 1200px;
                                                                                    height: auto;
                                                                                    border-radius: 20px;
                                                                                    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
                                                                                    opacity: 0;
                                                                                    transform: scale(0.8);
                                                                                    transition: opacity 1s ease, transform 1s ease; 
                                                                                }
                                                                                
                                                                                #animated-video.in-view {
                                                                                    opacity: 1; 
                                                                                    transform: scale(1); 
                                                                                }

                                                                            
                                                                        
footer{
    background-color: #95d3f7;
    grid-area: Footer;
    display: flex;
    justify-content: center;
    font-weight: bold;
}
footer div{
    margin: 3%;
    color: black;
    font-size: 20px;
}
footer div a{
    text-decoration: none;
    color: black;
}
footer div a:hover{
    color: grey;
}
@media (max-width: 600px) {
    header img{
        position: absolute;
        top: 9%;
        width: 20%;
        height: auto;
    }
    .Titulo, .Titulo2{
        position: absolute;
        left: 26%;
    }
    #Listado{
        position: absolute;
        top: 22%;
    }
    #BotonFormulario{
        position: absolute;
        margin-top: 2%;
        width: 20%;
    }
    #BarraBusqueda{
        position: relative;
        right: 100%;
        top: -100px;
        width: 200%;
    }
    @keyframes Barra {
        0%{
            top: -300px;
        }
        100%{
            right: 100%;
            top: -100px;
        }
    }

}
@media (min-width: 600px) and (max-width: 1000px) {
    header img{
        position: absolute;
        top: 9%;
        width: 20%;
        height: auto;
    }
    .Titulo, .Titulo2{
        position: absolute;
        left: 26%;
    }
    #Listado{
        position: absolute;
        top: 28%;
    }
    #BotonFormulario{
        position: absolute;
        margin-top: 2%;
        width: 20%;
    }
    #BarraBusqueda{
        position: relative;
        right: 100%;
        top: -100px;
        width: 200%;
    }
    @keyframes Barra {
        0%{
            top: -300px;
        }
        100%{
            right: 100%;
            top: -100px;
        }
    }
}   
@keyframes Entrada-img {
    0%{
        left: -300px;
    }
    100%{
        left: 4%;
    }
}
@keyframes Entrada-Titulo {
    0%{
        top: -300px;
    }
    100%{
        top: 11%;
    }
}
@keyframes Entrada-Titulo2 {
    0%{
        top: -30px;
    }
    100%{
        top: 15%;
    }
}
@keyframes Entrada-Lista {
    0%{
        left: -300px;
    }
    100%{
        left: 4%;
    }
}
@keyframes INICIARSESION {
    0%{
        top: -300px;
    }
    100%{
        top: 95px;
        left: 77%;
    }
}
@keyframes Barra {
    0%{
        top: -300px;
    }
    100%{
        top: -20px;
    }
}



@media (max-width: 1200px) {
    main #texto {
        flex-direction: column; 
        align-items: center; 
    }

    main article, 
    aside {
        width: 100%; 
        margin-bottom: 20px; 
    }
}