/* MOBILE FIRST */


/* Estilos de los inputs */


input[type=text],input[type=email], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
}



input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
  
  
input[type=submit]:hover {
    background-color: #45a049;
}

body {
    margin: 0;
    background-color: rgb(251, 252, 232);
}




/* Estilo de navbar */

.navbar { 
    display: flex;
    background-color: rgb(43, 43, 43);
    width: 100%;
    height: 70px;
    align-items: center;
}

.navbar label {
    color: white;
    font: 40px sans-serif;
    margin-right: 10px;
    margin-left: 10px;
}

.navbar img {
    width: 150px;
    height: auto;
    margin: 10px 0px;
}

.navbar input {
    margin-left: auto;
    margin-right: 20px;

}

.navbar a {
    display: none;
}


.topbanner {
    display: flex;
    align-items: center;
    justify-content: center;
}

#topimg {
    width: 500px;
    padding-bottom: 100px;
}

#textbanner {
    position: absolute;
    font: bold 30px sans-serif;
    color: white;
    text-shadow:0 0 10px black;
    z-index: 2;
    margin-top: 150px;
    

}

#diapositiva { 
    display: flex;
    justify-content: center;
    margin-bottom: 300px ;

}
    
#diapositiva img { 
    width: 100vw;
    height: 300px;
    object-fit: cover;
    filter: blur(5px);
}

#diapositiva > div { 
    position: absolute; 
    
}


/* Div del medio */

.middle { 
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr 0.1fr 1fr;
}

/* Div del producto */

.productos {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    border-radius: 10px;
    grid-row: 3/4;
    margin: 5%;
    background-image: url(img/backgroundproducto.jpg) ;
    background-size: cover;
    box-shadow: 5px 5px 5px rgb(75, 124, 75);
    transition: all .2s ease-in-out;


}

.productos:hover {
    transform: scale(1.1);
    z-index: 2;
}


/* Animaciones de aparecer */

#producto div {
    opacity: 0;
}

@keyframes animation {
    100% {
      opacity: 1;
    }
}

#producto.animate div {
    animation: animation 3.5s forwards;
}

#testimonio div {
    opacity: 0;
}

#testimonio.animate div {
    animation: animation 1.5s forwards;
}




#producto0 {
    display: flex;
    grid-row: 1/2;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid black ;

}

#producto1 {
    display: flex;
    grid-row: 2/3;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid black ;
    
}

#producto2 {
    display: flex;
    grid-row: 3/4;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
}

#fotosproductos {
    max-width: auto;
    max-height: auto;
    object-fit: cover;
    width: 150px;
    height: 150px;
    border-radius: 20px;
    cursor: pointer;
    
}

#nombreProductos {
    order: 2;
    color:  #4CAF50;
    font: bold 20px sans-serif;
    cursor: pointer;
}

#precioProductos {
    color:  white;
    font: bold 20px sans-serif;
    order: 3;
    cursor: pointer;
    background-color: darkgreen;
    padding: 10px;
    border-radius: 20px;
    
}

.informacion {
    grid-row: 1/2;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin: 10%;
    padding: 0 5%;
    padding-bottom: 3%;
    border-radius: 20px;
    box-shadow: 5px 5px 5px rgb(75, 124, 75);
    font: 15px sans-serif;
    background-image: url(img/backgroundinfo.jpg) ;
    background-size: cover;
    line-height: 2.5;
    font-size: large;
    
    
}



.informacion h2 {
    color:  #4CAF50;
    font: bold 32px sans-serif;
    text-shadow:0 0 10px white;
    
}


.formulario {
    margin: 5%;
    grid-row: 6/7;
    
    color:  #4CAF50;
    font: bold 14px sans-serif;
    text-shadow:0 0 10px white;
}

#labelformulario {
    text-align: center;
}

/* Div de los testimonios */

#testimonio {
    display: grid;
    flex-direction: row;
    text-align: center;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    margin: 5%;
    grid-row: 4/5;
    color:  #4CAF50;
    font: bold 20px sans-serif;
    text-shadow:0 0 10px white;
    background-color: white;
    box-shadow: 5px 5px 5px rgb(75, 124, 75);
    background-image: url(img/backgroundtestimonio.jpg) ;

}

.testimoniofila {
    display: flex;
    flex-direction: row;
}

#testimonio0 {
    background-color: rgb(255,255,255, 0.7);
    padding: 10px 0px;
    border-radius: 20px;
    transition: all .2s ease-in-out;

}

#testimonio1 {
    background-color: rgb(255,255,255, 0.7);
    padding: 10px 0px;
    border-radius: 20px;
    transition: all .2s ease-in-out;

}

#testimonio2 {
    background-color: rgb(255,255,255, 0.7);
    padding: 10px 0px;
    border-radius: 20px;
    transition: all .2s ease-in-out;

}

#testimonio0:hover {
    transform: scale(1.1);
    z-index: 2;
}

#testimonio1:hover {
    transform: scale(1.1);
    z-index: 2;
}

#testimonio2:hover {
    transform: scale(1.1);
    z-index: 2;
}

.testimonio #fecha0 {
    margin-top: 20px;
    color: black;
}

.testimonio #fecha1 {
    margin-top: 20px;
    color: black;
}

.testimonio #fecha2 {
    margin-top: 20px;
    color: black;
}

.testimonio label {
    color: grey;
    font: bold 30px sans-serif;

}

.testimonio p {
    margin: 0 5px;
    
}

#divCambiar {
    display: flex;
    justify-content: center;
    align-content: center;
    grid-row: 5/6;
}



/* Div de los videos */

.conceptvideo {
    display: flex;
    flex-direction: column;
    grid-row: 2/3;
    text-align: center;
    justify-content: space-evenly;
}

.conceptvideo label {
    color:  #4CAF50;
    font: bold 20px sans-serif;
    text-shadow:0 0 10px white;

}

.conceptvideo video {
    margin: 0 auto;
    width: 90%; 
    height: auto;
    border-radius: 20px;
}


/* Botón para subir arriba */

#gotopdiv {
    display: flex;
    flex-direction: column-reverse;
    position:fixed;
    right:0;
    bottom:0;
    z-index: 99;
    padding: 0;
    cursor: pointer;
}

#gotopdiv img {
    width: 16vw;
    padding: 0;
    object-fit: contain;
}

footer .footerinfo {
    position: relative;
    text-align: center;
    color: black;
    font: 16px sans-serif;
    margin: 100px 50px;
    z-index: 98;
    background-color: rgba(232, 232, 232, 0.8);
    border-radius: 10px;
    padding: 2px 0px;
    text-shadow:0 0 10px white;
}

footer label {
    font: bold 20px sans-serif;

}

.olas {
    position: relative;
}

svg {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    
}


/* Vista de tablet */

@media screen and (min-width: 568px) and (max-width: 768px) {

   .middle {
   display: grid;
   grid-template-columns: 1fr 1fr;
   grid-template-rows:  1fr 1fr 1fr 0.1fr 1fr;
   }

   footer .footerinfo {
    position: relative;
    text-align: center;
    color: black;
    font: 16px sans-serif;
    margin: 100px 100px;
    margin-top: 200px;
    z-index: 98;
    background-color: rgba(232, 232, 232, 0.8);
    border-radius: 10px;
    padding: 2px 0px;
    text-shadow:0 0 10px white;
}

#divCambiar {
    grid-row: 4/5;
    grid-column: 2/3;

}

   .informacion {
       grid-row: 1/2;
       grid-column: 1/3;
       margin: 10px;
   }

   .navbar a {
    display: none;
    }

   #diapositiva {
    
    margin-bottom: 40vh ;

   }

   #diapositiva img { 
    height: 35vh;
   }

   .conceptvideo {
        grid-row: 2/3;
        grid-column: 1/3;

   }

    #testimonio {
        grid-row: 3/4;
        grid-column: 2/3;
   }

   .testimonio p {
       margin: 0 5px;
   }

    .productos {
        grid-row: 3/4;
        grid-column: 1/2;
    }


   .formulario {
       grid-row: 5/6;
       grid-column: 1/3;
   }
}


/* Vista de escritorio */

@media screen and (min-width: 769px) {
    
    /* Div del medio */

.middle { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows:  1fr 1fr 0.1fr 1fr;
}

footer .footerinfo {
    position: relative;
    text-align: center;
    color: black;
    font: 16px sans-serif;
    margin: 100px 5%;
    margin-top: 200px;
    z-index: 98;
    background-color: rgba(232, 232, 232, 0.8);
    border-radius: 10px;
    padding: 2px 0px;
    text-shadow:0 0 10px white;
}

.navbar a {
    display: block;
    color: white;
    font: 16px sans-serif;
    margin: auto;
}

#diapositiva {
    
    margin-bottom: 40vh ;

}

#diapositiva img { 
    height: 40vh;
}

.informacion {
    grid-column: 1/3;
    grid-row: 1/2 ;
    margin: 5% 20%;
}

#divCambiar {
    grid-row: 3/4;
    grid-column: 1/2;

}

.formulario {
    align-self: center;
    grid-column: 2/3;
    grid-row: 4/5;

}

.productos {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    justify-self: center;
    max-width: 80%;
    width: 80%;
    
}

#testimonio {
    display: grid;
    grid-column: 1/2;
    grid-row: 2/3;
    text-align: center;
    border-radius: 10px;
    margin: 20px;
}


.conceptvideo {
    grid-column: 1/2;
    grid-row: 4/5;

}


.productos {
    margin: 0;
    grid-row: 2/3;
    grid-column: 2/3;
}

#gotopdiv img {
    width: 100px;
    padding: 0;
    object-fit: contain;
}

}
