:root{  /* PUEDE SER COMO UNA SELECCION DE VARIABLES */ 
    --primario: #9C27B0;
    --primarioO: #89119D;
    --secundario: #FFCE00;
    --secundarioO: #c59e01;
    --blanco: #FFF;
    --negro: #000;
    --violeta: rgb(238,130,238);
    --fuenteP: 'Staatliches', sans-serif;
    --gris: #b4b4b4;

}

html{
    box-sizing: border-box;
    font-size: 62.5%;
}

*,*::before, *::after{
    box-sizing: inherit;
}

/* GLOBALES */ 

body{
    font-size: 1.6rem; /*  1rem = 10px */ 
    background-color: var(--primario);
    line-height: 1.5;  /* INTERLINEADO */ 
}

p {
    font-size: 1.8rem;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--blanco);
}

a { 
    text-decoration: none;
}

img { 
    width: 100%;
}

.contenedor { 
    max-width: 120rem;
    margin: 0 auto;
}

h1, h2, h3{
    text-align: center;
    color: var(--secundario);
    font-family: var(--fuenteP);
}

h1 { 
    font-size: 4rem;

}

h2{
    font-size: 3.2rem;
}

h3{
    font-size: 2.4rem;
}

/* header */

.header { 
    display: flex;
    justify-content: center;

}

.header__logo { 
    margin: 3rem 0;

}

/* Footer */

.footer{
    background-color: var(--primarioO);
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer__texto{
    text-align: center;
    font-family: var(--fuenteP);
    font-size: 2.2rem;
}


.navegacion { 
    background-color: var(--primarioO);
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;  /* Separacion forma nueva */ 

}

.navegacion__enlaces{
    font-family: var(--fuenteP);
    color: var(--blanco);
    font-size: 3rem;

}

/*.navegacion__enlaces:last-of-type{  /* SIEMPRE SELECCIONA EL ULTIMO ENLACE 
    margin-right: 0;  ANTERIOR FORMA
}  */ 
.navegacion__enlaces--activo,
.navegacion__enlaces:hover{
    color: var(--secundario);
}

/*  GRID */
.grid { 
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 2rem;
} 

@media (min-width: 768px) {
    .grid { 
        grid-template-columns:repeat(3, 1fr);
    }
}

/* Producto */ 

.producto { 
    background-color: var(--primarioO);
    padding:1rem ;
}

.producto__nombre{
    font-size: 4rem;
}

.producto__precio{
    font-size: 2.8rem;
    color: var(--secundario);
}

.producto__nombre,
.producto__precio{
    font-family: var(--fuenteP);
    margin: 1rem 0;
    text-align: center;
    line-height: 1.2;
}


/* GRAFICOS  */ 

.grafico{ 
    min-height: 30rem;
    background-size: cover;
    grid-column: 1 / 3;

}

.grafico--camisas{ 
    grid-row: 2 / 3;
    background-image: url(../img/grafico1.jpg);
}

.grafico--node{
    background-image: url(../img/grafico2.jpg);
    grid-row: 8 / 9;
}

@media (min-width: 768px) {
    .grafico--node{ 
        grid-row: 5  / 6;
        grid-column: 2 / 4;
    }
}

/* SECCION NOSOTROS */ 

.nosotros{ 
    display: grid;
    grid-template-rows: repeat(2, auto);
}

@media (min-width: 768px ) {
    .nosotros{

        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

.nosotros__imagen{
    grid-row: 1 / 2;
}

@media (min-width: 768px) {
    .nosotros__imagen{
        grid-column: 2 / 3;
    }
    
}

/* BLOQUES */ 

.bloques{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .bloques{
        grid-template-columns: repeat(4, 1fr);
    }
    
}

.bloques{
    text-align: center;
}

.bloque__titulo{
    margin: 0;
}

/* PAGINA DEL PRODUCTO */ 

@media (min-width: 768px) {
    .camisa{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

.formulario{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    
}

.formulario__campo{
    border: 1rem solid var(--primarioO);
    background-color: transparent;
    color: var(--blanco);
    font-size: 2rem;
    padding: 1rem;
    font-family: Arial, Helvetica, sans-serif;

}

.formulario__opcion{
    color: var(--negro);
}

.formulario__submit{
    background-color: var(--secundario);
    color: var(--negro);
    border: none;
    font-size: 2rem;
    font-family: var(--fuenteP);
    padding: 2rem;
    transition: background-color .3s ease;
    grid-column: 1 / 3;
}

.formulario__submit:hover{
    cursor: pointer;
    background-color: var(--secundarioO);
}



