﻿html{scroll-behavior: smooth;}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    min-height: 100vh;
	max-height: 100vh;
    background-image: url(../img/fondos/index.jpg);
	background-position: center;
    background-repeat:no-repeat;
	background-size: cover;
    background-attachment: fixed;
}

.body-interno{
    background-image: none;
}


/**********FLECHA ABAJO***************/

.flecha{
    position: absolute;
    bottom: 30px;
    width: 100%;
    height: 50px;
    text-align:center;
    animation: fade infinite 1s;
    filter: invert(60%);
}

.flecha img{
    width: 50px;
}

/**************SECCIONES********************/

.secciones{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 60px 0;
    z-index: 2;

}

.secciones-home {
    position: absolute;
    width: 100%;
    grid-template-columns: repeat(6, 1fr);
    padding-top:0;
    z-index: 3;
    animation: home-sube 1s forwards;
    animation-delay: 2s;
}


/**************SUBCONTENEDOR********************/

.subcontenedor{
    height:fit-content;
    min-height: 400px;
    width:100%;
    padding: 20p;
    background: whitesmoke;
    border: solid 1px rgb(203, 203, 203);
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: transform .1s ease-in;
    cursor:pointer;
    border-radius: 6px;

}

.subcontenedor:hover{
    transform: translateY(-10px);
}

.foto-tapa{
    filter: drop-shadow(7px 4px 7px #555);
}

.subcontenedor img{
    width: 100%;
}

.titulo-tapa{
    max-width: 300px;
    margin: auto;
    margin-top: 6px;
}


.btn{
    display: block;
    text-align: center;
    margin: auto;
    padding: 6px;
    margin-top: 15px;
    cursor: pointer;
    background: #f0efef;
    border-radius: 10px;
    width: 100%;
    max-width: 100px;
    text-decoration: none;
    transition: all .2s;
}

.btn:hover{
    background: rgb(96, 149, 16);
}

.subcontenedor a{
    color:rgb(75, 75, 75);
}

.subcontenedor a:hover{
    color: whitesmoke;
}


/*******************************/

.textos{
    max-width: 1200px;
    margin: auto;
    margin-bottom: 50px;
    font-size: 14px;
    padding: 10px;
    line-height: 22px;
    color: #484848;
    text-align: left;
}

.textos img{
    display: block;
    width: 100%;
    max-width: 200px;
    margin-bottom: 15px;
}

/*********NATIVOS**********************/

.body-nativos{
    position: relative;
    background-image: url(../img/fondo_nativos3.jpg);
	background-position: left;
    background-repeat:no-repeat;
	background-size: cover;
    background-attachment: fixed;
}

.contenedor-texto-nativo{
    position: fixed;
    bottom: 8%;
    width: 100%;
    z-index: 1;
}

.txt{  
    max-width: 1000px;
    padding: 20px;
    margin: auto;
    color: rgb(20, 94, 43);
    font-size: 1rem;
    border-bottom: 1px solid rgb(117, 117, 117);
    background: white;
}

.nativos-home{
    min-height:100vh;
    z-index: 1;
}

/***********MENU NATIVOS*/

.menu-texto{
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    background: whitesmoke;
    z-index: 5;
    text-align: center;
}

.menu-texto p{
    display: block;
    padding: 10px 5px 0px 5px;
    font-size: 10px;
    color: green;
}

.contenedor-menu{
    position: relative;
    width: 100%;
    background: whitesmoke;
    z-index: 6;
}

.menu-cuentos-nativos{
    position: relative;
    display: flex;
    justify-content: left;
    left: 0;
    margin: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    width: 100%;
    max-width: 1000px;
    height: auto;
    box-sizing: border-box;
    padding: 15px 0; 
    background: whitesmoke;
    animation: fade2 forwards 2s;
    z-index: 2;
}


.item-nativo{
    display: flex;
    justify-content:center;
    align-items:center;
    flex: 0 0 20px;
    scroll-snap-align: start;
    width: 200px;  
}

.item-nativo img{
    width: 200px;
    transition: transform .2s;
}

.item-nativo img:hover{
    transform: translateY(-5px);
}



/****************************/

.nativos-libros{
    position: relative;
    width: 100%;
    height: fit-content;
    background: whitesmoke;
    z-index: 2;
    padding-top: 2%;
    border: rgb(220, 220, 220) solid 1px;
}

.img-libros{
    position: relative;
    display: flex;
    justify-content: left;
    left: 0;
    margin: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin-bottom: 30px;
    box-sizing: border-box;
    border-bottom: 1px solid #bfbfbf; 
    padding: 20px 0; 
    animation: fade2 forwards 2s;
    background: whitesmoke;
    z-index: 2;
}
/* Agregado*/
.puntitos{
    position:relative;
    display:flex;
    justify-content: center;
    bottom: 0;
    width:100%;
    height:10px;
    margin-bottom: 30px;
    z-index:3;
}

.punto{
    height: 6px;
    width: 6px;
    border-radius: 4px;
    background: #5565;
    margin: 0 3px;
}

/* Agregado*/

.item-libro{
    display: flex;
    justify-content:center;
    align-items:center;
    flex: 0 0 20px;
    scroll-snap-align: start;
    width: 400px;
}

.item-libro img{
    width: 400px;
    filter: drop-shadow(7px 4px 7px #555);
}

 /******AGREGADOOO*/
.item-libro2{
    display: flex;
    justify-content:center;
    align-items:center;
    flex: 0 0 20px;
    scroll-snap-align: start;
    width: 600px;
    
    margin:auto;
}

.item-libro2 img{
    max-height: 600px;
    width: auto;
}

 /******AGREGADOOO*/

/*******************************************/

.txt-abajo{
    max-width: 800px;
    text-align: justify;
    
}

.texto{
    padding-top: 15px;
}


/*logos nativos***********************/

.logos-nativos{
    margin:auto;
    max-width: 1000px;
    text-align: center;
    font-size: 10px;
    margin-bottom: 20px;
}

.logos-nativos ul{
    display: flex;
    justify-content: center;
    align-items: center;
}

.logos-nativos li{
    list-style: none;
    padding: 10px;
}

.logos-nativos img{
    width: 100%;
    max-width: 60px;
}

/*FOOTER******************************/

footer{
    position: fixed;
    opacity: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;   
    z-index: 4;
    animation: fade2 1s forwards;
    animation-delay: 4s;

}

footer .item-logos{
    padding: 5px 10px;
    max-width: 80px;  
}

footer a{
    color: black;
}

footer img{
    width: 100%;
    transition: transform .1s ease-in;
}

footer img:hover{
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.851);
    border-radius: 3px;
}

/********* ANIMACIÓN****************/

@keyframes fade {
    0%{opacity: 0;}
    50%{opacity: 1;}
    100%{opacity: 0;}
}

@keyframes fade2 {
    0%{opacity: 0;}
    100%{opacity: 1;}
}

@keyframes home-sube {
    0%{top: 100%;}
    90%{top: -3%}
    100%{top: 0;}
} 

@keyframes home-movil {
    0%{top: 100%;}
    100%{top: 70px;}
} 


/*RESPONSIVE********************************/

@media screen and (min-width:780px){

    .puntitos{
        display:none;
    }
}

@media screen and (max-width:780px){

    .secciones-home{
        animation: home-movil 1s forwards;
        grid-template-columns: repeat(3, 1fr);
    }

    .subcontenedor{
        border-radius: 0;
    }

    .img-libros{
        margin-bottom: 5px;
    }

    .titulo{
        text-align: center;
    }
    .titulo p{
        padding: 10px 20px;
    }

    .textos{
        text-align: center;
    }

    .texto{
        text-align: center;
    }

    .txt{
        text-align: center;
    }

    .textos img{
        margin: auto;
        margin-bottom: 10px;

    }
    .titulo-menu{
        justify-content: center;
        align-items: center;
    }
    .txt-abajo{
        padding: 10px 20px;
    }
    footer{
        background:white;
    }
}



@media screen and (max-width:550px){
    .secciones-home{
        grid-template-columns: repeat(2, 1fr);
    }

    .img-libros{
        border-bottom: none;
    }

    .body-nativos{
        background-image: url(../img/movil_nativos3.jpg);
       /* -webkit-appearance: none;
        -moz-appearance: none;*/
        background-size: contain;
        background-position: left top;
        background-attachment: fixed;
      
    }

 /******AGREGADOOO*/
    .item-libro2{
        width: 90wv;
    }

    .item-libro2 img{
        width: 90vw;
    }
    /******AGREGADOOO*/
   
}

@media screen and (max-width:400px){
    .secciones-home{
        grid-template-columns: repeat(1, 1fr);
    }

    footer{
        margin: 0;
        background: white;
    }
}

