:root {
    --fuentePrincipal: 'Staatliches', cursive;
    --primario: #9c27b0;
    --primarioOscuro: #ca78fa5e;
    --secundario: #ffce00;
}

html {
    font-size: 62.5%;
    /*Para usar rem se setea el font-size*/
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    background-image: linear-gradient(to top, #c471f5 0%, #fa71cd 100%);
    background-attachment: fixed;
    font-size: 3rem;
    font-family: var(--fuentePrincipal);
    line-height: 2;
}

h1 {
    color: var(--secundario);
    text-align: center;
    font-size: 4rem;
}

img {
    max-width: 100%;
}

p {
    font-size: 1.8rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #ffffff;
}

.contenedor {
    max-width: 1000px;
    width: 95%;
    margin: 0 auto;
}

.header {
    display: grid;
    justify-content: center;
    padding: 3rem 0;
}

.barra {
    background-color: var(--primarioOscuro);
    padding: 1rem 0;
}

.barra .nav {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, 200px);
    grid-column-gap: 1rem;
}

.barra .nav a {
    text-align: center;
    font-size: 3rem;
    color: #ffffff;
    text-decoration: none;
}


/*LISTA PRODUCTOS*/

.lista-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /*Llena una fraccion*/
    grid-gap: 2rem;
}

@media (min-width: 768px) {
    .lista-productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

.producto {
    background-color: var(--primarioOscuro);
    /*padding: 1rem;*/
}

.contenido-producto p {
    color: #ffffff;
    text-align: center;
    margin: 1rem 0;
    line-height: 1.2;
}

.contenido-producto .titulo {
    font-size: 4rem;
    font-family: var(--fuentePrincipal);
}

.contenido-producto .precio {
    font-size: 2.8rem;
    color: var(--secundario);
    font-family: var(--fuentePrincipal);
}


/*IMAGENES GRANDES EN LISTA PRODUCTOS*/

.grafico {
    min-height: 300px;
    grid-column: 1 / 3;
    /*cover es para que rellene el espacio (estrecha la img)*/
    background-size: cover;
    background-position: center center;
}

.grafico-1 {
    background-image: url(/img/grafico1.jpg);
    grid-row: 2 / 3;
}

.grafico-2 {
    background-image: url(/img/grafico2.jpg);
    grid-row: 8 / 9;
}

@media (min-width: 768px) {
    .grafico-2 {
        grid-column: 2 / 4;
        grid-row: 5 / 6;
    }
}

.footer {
    background-color: var(--primarioOscuro);
    padding: 1rem 0;
    /*Separacion entre contenido y footer*/
    margin-top: 2rem;
}

.copyright {
    font-family: var(--fuentePrincipal);
    color: #ffffff;
    font-size: 2.2rem;
    text-align: center;
}


/*PAGINA NOSOTROS*/


/*Podemos hacerla responsive sin utilizar media queries
mediante la funcion auto-fit*/

.contenedor-informacion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-column-gap: 2rem;
}

.contenedor-informacion img {
    padding-top: 5rem;
}


/*PAGINA PRODUCTO*/

.formulario-pedido {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 6rem);
}

.imagen-producto {
    width: 100%;
}

.campo {
    /*transparent para eliminar el color de fondo por defecto*/
    background-color: transparent;
    border: 5px solid #ffffff;
    font-family: var(--fuentePrincipal);
    font-size: 3rem;
    padding: 1rem;
    width: 100%;
    color: #ffffff;
    text-align: center;
}

.talla {
    /*para eliminar las flechas del combo*/
    grid-column: 1 / 3;
    grid-row-gap: 2rem;
}

.boton {
    background-color: var(--secundario);
    font-size: 2rem;
    font-family: var(--fuentePrincipal);
    border: none;
    transition: background-color .3s ease;
    grid-column: 1 / 4;
}

.boton:hover {
    cursor: pointer;
    background-color: rgb(233, 187, 2);
}