/*
    ----------------------------------------------------------------------------------
    ----------  /udemy.antonydev.tech/  ----------------------------------------------
    ----------  /desarrollo-web-completo-con-html5-css3-js-ajax-php-mysql/  ----------
    ----------  /frontend-store/  ----------------------------------------------------
    ----------  /css/styles.css  -----------------------------------------------------
    ----------------------------------------------------------------------------------
*/


/*  ------------------------------  */
/*  -----  Estilos Globales  -----  */
/*  ------------------------------  */

:root {
    --primario: #9C27B0;
    --primarioOscuro: #89119D;
    --secundario: #FFCE00;
    --secundarioOscuro: rgb(233, 187, 2);
    --blanco: #FFF;
    --negro: #000;
    --fuentePrincipal: 'Staatliches', cursive;
}


html {
    font-size: 62.5%;
    box-sizing: border-box;
    /* scroll-snap-type: y mandatory;  */

}

*, *:before, *:after {
    box-sizing: inherit;
}


body {
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--primario);
}

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;
}


/*  ------------------------  */
/*  -----  Tipografia  -----  */
/*  ------------------------  */

h1,
h2,
h3 {
    text-align: center;
    color: var(--secundario);
    font-family: var(--fuentePrincipal);
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}


/*  -------------------------------  */
/*  -----  Estilos Generales  -----  */
/*  -------------------------------  */



/*  --------------------  */
/*  -----  Header  -----  */
/*  --------------------  */

.header {
    display: flex;
    justify-content: center;
}

.header__logo {
    margin: 3rem 0;
}


/*  ------------------------  */
/*  -----  Navegación  -----  */
/*  ------------------------  */

.navegacion {
    background-color: var(--primarioOscuro);
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navegacion__enlace {
    font-family: var(--fuentePrincipal);
    color: var(--blanco);
    font-size: 3rem;
}

.navegacion__enlace--activo,
.navegacion__enlace:hover {
    color: var(--secundario);
}


/*  ------------------  */
/*  -----  Grid  -----  */
/*  ------------------  */

.grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Por defecto: una columna */
    gap: 3rem;
}

@media (min-width: 401px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        /* Dos columnas desde 401px */
    }
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tres columnas desde 768px */
    }
}


/*  ------------------------  */
/*  -----  Productos  -----  */
/*  ------------------------  */

.producto {
    background-color: var(--primarioOscuro);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.producto__nombre {
    font-size: 4rem;
}

.producto__precio {
    font-size: 2.8rem;
    color: var(--secundario);
}

.producto__nombre,
.producto__precio {
    font-family: var(--fuentePrincipal);
    margin: 1rem 0;
    text-align: center;
    line-height: 1.2;
}


/*  ----------------------  */
/*  -----  Graficos  -----  */
/*  ----------------------  */

.grafico {
    min-height: 30rem;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 401px) {

    .grafico {
        grid-column: 1 / 3;
    }
}

.grafico--camisas {
    grid-row: 2 / 3;
    background-image: url('../img/grafico1.jpg');
}

.grafico--node {
    grid-row: 8 / 9;
    background-image: url('../img/grafico2.jpg');

}

@media (min-width: 768px) {

    .grafico--node {
        grid-row: 5 / 6;
        grid-column: 2 / 4;
    }
}


/*  -------------------------------  */
/*  -----  Página - 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;
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {

    .nosotros__imagen {
        grid-column: 2 / 3;
    }
}


/*  -------------------------------  */
/*  -----  Comprar y Bloques  -----  */
/*  -------------------------------  */

.bloques {
    display: grid;
    grid-template-columns: 1;
    gap: 2rem;
    padding: 2rem;
}

@media (min-width: 465px) {

    .bloques {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 2rem;
    }
}


@media (min-width: 768px) {
    .bloques {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bloque {
    text-align: center;
}

.bloque__titulo {
    margin: 0;
}


/*  -------------------------------  */
/*  -----  Página - Producto  -----  */
/*  -------------------------------  */

.camisa {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    padding: 2rem;
    margin: 2rem 0;
}

.camisa__imagen {
    width: 90%;
    height: auto;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    
    .camisa {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

.formulario {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.formulario__campo {
   border: 1rem solid var(--primarioOscuro);
   background-color: var(--secundarioOscuro);
   color: var(--blanco);
   font-size: 2rem;
   font-family: Arial, Helvetica, sans-serif;
   padding: 1rem;
   appearance: none;
}

.formulario__submit {
    color: var(--blanco);
    background-color: var(--secundario);
    border: none;
    font-size: 3rem;
    font-family: var(--fuentePrincipal);
    padding: 2rem;
    transition: background-color .3s ease;
    grid-column: 1 / 3;
    border-radius: 5px;
}

.formulario__submit:hover {
    cursor: pointer;
    background-color: var(--secundarioOscuro);
}


/*  --------------------  */
/*  -----  Footer  -----  */
/*  --------------------  */

.footer {
    background-color: var(--primarioOscuro);
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer__texto {
    font-family: var(--fuentePrincipal);
    text-align: center;
    font-size: 2.2rem;
}


/*  ------------------------  */
/*  -----  Utilidades  -----  */
/*  ------------------------  */


/*  ------------------------  */
/*  -----  NAVEGACIÓN  -----  */
/*  ------------------------  */



/*  ------------------  */
/*  -----  HERO  -----  */
/*  ------------------  */