html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1REM = 10px */
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    line-height: 27px;
}

/* Globales */
h1, 
h2, 
h3 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 2rem 0;
}
h1 {
    font-size: 4rem;
}

@media (min-width: 768px) {
    h1{
        font-size: 5rem;
    }
}

h2 {
    font-size: 3.2rem;
}

@media (min-width: 768px ){
    h2{
        font-size: 4rem;
    }
}
h3 {
    font-size: 2.5rem;
}

@media(min-width: 768px){
    h3{
        font-size: 3rem;
    }
}

a {
    text-decoration: none;
    color: #000;
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    background-color: #8cbc00;
    color: #FFF;
    font-weight: 900;
    padding: 1rem;
    transition: background-color .3s ease-out ;
    text-align: center;
    border: none;
    border-radius: 1rem;
}
.btn:hover {
    background-color: #769c02;
    cursor: pointer;
}

@media (min-width: 768px) {
    .btn{
        width: auto;
    }
}

/* utilidades */

.text-center {
    text-align: center;
}

.error{
    background-color: rgb(220 38 38);
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    margin: 1.6rem 0 0 0;
}

.opacity{
    opacity: 0.5;
}

.success{
    background-color: rgb(34 197 94);
    color: white;
    padding: 1rem;
    margin-top: 4rem;
    font-weight: 700;
    line-height: 2rem; /* 20px */
    text-transform: uppercase;
    text-align: center;
}

/* header y navegación */
.header{
    display: block;
    border-bottom: .1rem solid #e1e1e1;
    margin-top: 3rem;
}

@media (min-width:768px) {
    .header{
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin: 2.5rem 0;
    }
}


.nombre-sitio {
    text-align: center;
}
.nombre-sitio span {
    color: #037bc0;
}

.nav-principal {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.nav-principal a{
    font-size: 2rem;
}

@media(min-width: 768px){
    .nav-principal{
        flex-direction: row;
        gap: 2.5rem;
    }
}



/* productos */
.contenido-principal {
    padding: 5rem 0;
}

.producto{
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content:space-between;
    margin-bottom: 2rem;
}

.producto {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.3);
    transition: 0.3s;
}

/* On mouse-over, add a deeper shadow */
.producto:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.3);
}

.imagen_producto{
    max-width: 80%;
}

.producto-imagen{
    margin: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.producto-imagen img{
    height: 90px;
}

.texto-producto{
    text-align: center;
    padding: 1rem;
    background-color: #037bc0;
}

.texto-producto p{
    margin: 2rem 0;
    color: #FFF;
}

.texto-producto a{
    display: block;
    width: 100%;
}

@media (min-width: 768px){
    .producto{
        margin-bottom: 0;
    }
    .listado-productos{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap:3rem
    }
}

/* Formulario */

.formulario {
    max-width: 60rem;
    margin: 0 auto;
}

.formulario fieldset {
   border: 1px solid black;
   margin-bottom: 2rem;
}
.formulario legend {
    background-color: #037bc0;
    width: 100%;
    text-align: center;
    color: #FFF;
    text-transform: uppercase;
    font-weight: 900;
    padding: 1rem;
    margin-bottom: 4rem;

}

.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.campo input:not([type="radio"]),
.campo textarea,
.campo select  {
    flex: 1;
    border: 1px solid #e1e1e1;
    padding: 1rem;
}


.footer{
    margin-top: 4rem;
    border-top: 1px solid #e1e1e1
}

@media (min-width: 768px) {
    .barra{
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .barra .nombre-sitio{
        margin-top: 0;
    }
    
    .barra .nav-principal{
        display: flex;
        flex-direction: row;
        gap: 2rem;
    
    }
}

/* pagina nosotros*/
.contenido-nosotros {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-columns: repeat(auto-fit, minmax( 25rem, 1fr ) );
    column-gap: 4rem;
}
.informacion-nosotros {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem;
}

@media (min-width: 768px) {
    .informacion-nosotros{
        padding: 0;
    }
}

/**producto**/
.contenido-producto{
    
}

@media (min-width: 1024px) {
    .contenido-producto{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.contenedor-btn{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem;
}

@media (min-width: 768px) {
    .contenedor-btn{
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
    }
}

.info-producto{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.descripcion-producto{
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    width: 80%;
    text-align: center;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .descripcion-producto{
        text-align: left;
    }
}

.contenido_producto{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.frase-producto{
    margin-bottom: 0;
    color: #003a71;
    font-weight: bold;
    font-size: 25px;
    line-height: 27px;
    width: 80%;
    text-align: center;
}

.contenedor-beneficios{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contenedor-beneficios{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contenedor-beneficios{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

.beneficio_heading{
    text-align: center;
    color: #FFF;
    padding-bottom: 3rem;
    line-height: 1.5;
}

.beneficios .beneficio_imagen{
    display: flex;
    justify-content: center;
}

.beneficio{
    background-color: #FFF;
    padding: 2rem;
    border-radius: 1rem;
}

.beneficios{
    background-color: #037bc0;
    margin: 1rem 0;
    padding: 5rem;
}

.beneficio h3, p{
    text-align: center;
}


.contenedor_video_uso{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.video_uso{
    display: flex;
    justify-content: center;
}

iframe#video_uso{
    border-radius: 2rem;
}

@media (min-width: 1024px) {
    .contenedor_video_uso{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.beneficio_nombre{
    font-size: 2.3rem;
    color: #003a71;
}

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

iframe#video_producto{
    border-radius: 2rem;
}

#descripcion_uso{
    width: 80%;
}