
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: 2;
}

/* Globales */

h1, h2, h3 {
   font-family: 'Playfair Display', serif; 
   margin: 0 0 2rem 0;
}

h1 {
    font-size: 4rem;
}

h2{
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}

a {
    text-decoration: none;
    color: #000;
}

/* tip */
img {
    max-width: 100%;
    display: block;
}

/* Utilidades */

.text-center{
    text-align: center;
}

.contenedor{
    max-width: 120rem;
    margin: 0 auto;
}

.btn {
    background-color: #8cbc00;
    display: block;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    padding: 1rem;
    transition: background-color .3s ease-out;
    border: none;
    width: 100%;
}


.btn:hover {
    background-color: #769c02;
    cursor: pointer;
}

.send-form {
    padding: 0 1rem 0 1rem;
}



/* Header y Navegacion */
.nombre-sitio {
    margin-top: 5rem;
    text-align: center;
}

.nombre-sitio span {
    color: #037bc0;
}

.contenedor-navegacion {
    border-top: .1rem solid #e1e1e1;
}

.nav-principal {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    background-image: url('../img/principal.jpg');
    height: 25rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Categorías */

.categorias {
    padding: 5rem 0;

}

.categorias img{
    width:100%

}

.categorias h2 {
    text-align: center;
}

.categoria {
    margin-bottom: 2rem;
}

.categoria a {
    display: block;
    text-align: center;
    padding: 2rem;
    font-size: 2rem;
    border-bottom-right-radius: 1rem;
}

.categoria a:hover {
    background-color: #037bc0;
    color: #fff;
}


/* Bloque Nosotros*/



.sobre-nosotros-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
}

.texto-nosotros {
    color: #fff;
    grid-row: 2 / 3;
    padding: 5rem;
    
}


/* Footer */

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid #e1e1e1;
    text-align: center;
}



.site-footer h3 {
    margin-bottom: .5rem;
}

.grid-footer div nav {
    display: flex;
    flex-direction: column;
}

.copyright{
    padding-top: 1.5rem;
    font-style: italic;
}



/* Nosotros */

.sobre-nosotros {
    background-image: linear-gradient(to bottom, transparent 50%, #037bc0 50%, #037bc0 100% ), url(../img/nosotros.jpg);
    margin-top: 5rem;
    background-repeat: no-repeat;
    background-position: center, top left;
    background-size: 100%, 70rem;
}

.contenido-nosotros {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    column-gap: 4rem;
}

.informacion-nosotros {
    padding: 5rem;
}

/* Listado Productos */

.producto {
    background-color: #037bc0;
    margin-bottom: 2rem
}

.producto:last-of-type {
    margin-bottom: 0;
}

.texto-producto {
    text-align: center;
    color: #fff;
    padding: 2rem;
}

/* Blog */

.contenedor-blog {
    padding: 2rem;
}


.entrada {
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.entrada:last-of-type {
    border: none;
}

.entrada-meta p {
    font-weight: 700;
}

.entrada-meta  span {
    color: #037bc0;
}

.contenido-entrada-blog {
    max-width: 60rem;
    margin: 0 auto;
    padding: 2rem
}



/* Galería */

.galeria {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem;
}

.galeria img {
    height: 40rem;
    width: 40rem;
    object-fit: cover;
}


/* Formulario */

.formulario {
    max-width: 60rem;
    margin: 0 auto;
}

.formulario fieldset {
    border: 1px solid black;
    margin-bottom: 2rem;
}

.formulario legend {
    background-color: #005485;
    width: 100%;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    padding: 1rem;
    margin-bottom: 4rem;
}

.campo {
    display: flex;
    margin-bottom: 2rem;
}

.campo label {
    flex-basis: 10rem;
}

.campo input:not([type="radio"]),
.campo select,
.campo textarea {
    flex: 1;
    border: 1px solid #e1e1e1;
    padding: 1rem;
}


/* Media Querys */

@media (min-width: 768px ) {

    /* Globales */
     h1 {
        font-size: 5rem;
     }

     h2 {
        font-size: 4rem;
     }

     h3 {
        font-size: 3rem;
    }

    /* Nav */
    .nav-principal {
        padding: 2rem 0;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .hero {
        height: 55rem;
    }

    /* Categorias de Producto */
    .listado-categorias {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .categoria {
        margin-bottom: 0;
    }

    /* Sobre Nosotros */
    .sobre-nosotros {
        background-image: linear-gradient(to right, transparent 50%, #037bc0 50%, #037bc0 100% ), url(../img/nosotros.jpg);
        padding: 10rem 0;
        background-position: left center;
        background-size: 100%, 160rem;
    }

    .sobre-nosotros-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
        column-gap: 10rem;
    }
    
    .texto-nosotros {
        
        grid-column: 2 / 3;
    }

    /* Listado Productos */

    .contenido-principal {
        padding-top: 5rem;
    }

    .listado-productos {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
    }  

    .producto:nth-child(1) {
        grid-column: 1 / 7;
        display: grid;
        grid-template-columns: 3fr 1fr;
    }

    .producto:nth-child(1) img {
        height: 48rem;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .producto:nth-child(2) {
        grid-column: 1 / 4;
    }

    .producto:nth-child(2) img, 
    .producto:nth-child(3) img {
        height: 35rem;
        width: 100%;
        object-fit: cover;
    } 

    .producto:nth-child(3) {
        grid-column: 4 / 7;
    }

    .producto:nth-child(4) {
        grid-column: 1 / 3;
    }

    .producto:nth-child(5) {
        grid-column: 3 / 5;
    }

    .producto:nth-child(6) {
        grid-column: 5 / 7;
    }

    .producto {
        background-color: #037bc0;
        margin-bottom: 0;
    }

    .texto-producto {
        text-align: center;
        color: #fff;
        padding: 2rem;
    }

    .texto-producto h3 {
        margin: 0;
    }

    .texto-producto p {
        margin: 0 0 .5rem 0;
    }

    .texto-producto .precio {
        font-size: 2.8rem ;
        font-weight: 900;
    }

    /* Footer */

    .site-footer {
        margin-top: 5rem;
        padding: 5rem;
        border-top: 1px solid #e1e1e1;
        text-align: left;
    }
    
    .grid-footer {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        
    }
    
    .site-footer h3 {
        margin-bottom: .5rem;
        font-size: 2.8rem;
        
    }
    
    .grid-footer div nav {
        display: flex;
        flex-direction: column;
    }
    
    .copyright{
        padding-top: 1.5rem;
        font-style: italic;
    }

    /* Nosotros */

    .informacion-nosotros {
        padding: 0
    }

    .imagen {
        padding: 2.1rem;
    }

    /* Blog */

    .contenedor-blog {
        display: grid;
        grid-template-columns:  2fr 1fr;
        column-gap: 4rem;
        
    }

    .entrada-meta {
        display:flex;
        justify-content: space-between;
    }

    /* Entrada */

     .contenido-entrada-blog {
        padding: 0rem;
    }


    /* Galería */

    .galeria {
        grid-template-columns: repeat(3, 1fr);    
    }

    /* Formulario */

    .send-form {
        padding: 0 ;
    }
    
   
}