/* Constantes */
:root {
    --pantalla: 1024px;
    --tablet: 768px;
}

/* Globales */

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

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

body {
    font-size: 16px;
    font-family: "Averia Libre", system-ui;
}

/* Utilidad */

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

/* Encabezado */

header {
    text-align: center;
    padding: 1rem;
}

.logo {
    width: min(700px, 100%);
}

/* Navegacion */

.nav-bg {
    border-style: solid;
    border-color: black;
    border-left: 0;
    border-right: 0;
    border-top-width: 2px;
    border-bottom-width: 2px;
    margin-bottom: 2rem;
}

.navegacion-principal {
    display: flex;
    flex-direction: column;
}

@media (min-width: 480px) {
    .navegacion-principal{
        flex-direction: row;
        justify-content: space-between;
    }
}

.navegacion-principal a{
    display: block;
    text-align: center;
    text-decoration: none;
    color: #5e5e5e;
    font-size: 1.8rem;
    padding: .8rem;
    font-family: "Averia Libre", system-ui;
    font-weight: 700;
}

.navegacion-principal a:hover{
    color: #BD0000;
}

/* Contenido */

main {
    display: grid;
    grid-template-columns: 100%;  
    row-gap: 1.5rem;
    
}

@media (min-width: 768px) {
    main{
        grid-template-columns: 2fr 1fr;
        column-gap: 1.5rem;
        
    }
}

@media (min-width: 1024px) {
    main{
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: repeat(4, 1fr);
        column-gap: 1.5rem;
    }
}

/* Articulos General */

.articulo {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    border-bottom-style: solid ;
    border-bottom-width: 2px;
    text-align: center;
    text-transform: uppercase;
    border-color: grey;
}

/* Articulo Principal */

.principal {
    grid-row: 2 / 3;
    border-style: solid;
    border-color: black ;
}

@media (min-width: 768px) {
    .principal{
        grid-column: 1 / 2;
        grid-row: 1 / 5;
        height: 70rem;
    }
}

@media (min-width: 1024px) {
    .principal{
        grid-column: 2 / 3;
        grid-row: 1 / 5;
        height: 70rem;
    }
}

.principal-img{
    width: 100%;
 }

.principal .articulo-texto {
    font-size: 2rem;
    font-weight: bold;
    padding: 1.8rem 3rem 1.2rem 3rem;
    
}

.principal .articulo-autor {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.principal h1{
    margin-top: 2rem;
    font-size: 2.5rem;
}

@media (min-width: 480px) {
    .principal h1 {
        font-size: 3.7rem;
    }

    .principal .articulo-texto {
        font-size: 3rem;
    }

    .principal .articulo-autor {
        font-size: 2rem;
    }


}



.principal:hover{
    background-color: black;
    color: white;
}

/* Articulos Pequenios */

.articulo-img {
    width: 100%;
    border-style: solid;
    margin: 0;
}

.articulo-titulo {
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #BD0000;
    padding: auto;
    color: white;
}

.articulo-texto {
    margin: 0;
    font-weight: 700;
}
.articulo-autor {
    font-weight: normal;
    font-size: 1.5rem;
    margin: 0;
}

.articulo:hover{
    color: gray;
    cursor: pointer;
}

.art1{
    grid-row: 5 / 6; 
}

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

@media (min-width: 1024px) {
    .art1{
        grid-row: 1 / 3;
        grid-column: 1 / 2;  
    }
}

.art2{
    grid-row: 7 / 8; 
}

@media (min-width: 768px) {
    .art2{
        grid-row: 5 / 7;
        grid-column: 2 / 3;
    }
    
}

@media (min-width: 1024px) {
    .art2{
        grid-row: 3 / 5;
        grid-column: 1 / 2;
    }
}

/* Reproductor y Redes Sociales */

.reproductor {
    padding-bottom: 10px;
    border-bottom: solid;
    border-bottom-width: 2px;
    grid-row: 1 / 2;
    text-align: center;
    color: grey;
}

@media (min-width: 768px) {
    .reproductor {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
}

@media (min-width: 1024px) {
    .reproductor {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }
}

.redes-sociales {
    border-top-style: solid;
    border-top-width: 2px;
 
    padding-top: 1.2rem;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.icon-social:hover{
    cursor: pointer;
    color: #BD0000;
}

/* Flyers */

.flyer{
    grid-row: 6 / 7;
}

@media (min-width: 768px) {
    .flyer {
        grid-row: 5 / 7;
        grid-column: 1 / 2;
    }
}

@media (min-width: 1024px) {
    .flyer {
        grid-row: 2 / 4;
        grid-column: 3 / 4;
    }
}

.flyer-img {
    width: 100%;
}

/* Publicidad */

.publicidad {
    border-top-style: solid;
    border-top-width: 2px;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-color: grey;
    grid-row: 4 / 5;
    
}

@media (min-width: 768px) {
    .publicidad {
        grid-row:  2 / 3;
        grid-column: 2 / 3;
    }
}

@media (min-width: 1024px) {
    .publicidad {
        grid-row: 4 / 5;
        grid-column: 3 / 4;
    }
}

/* Logos establecimientos */

.establecimientos {
    display: flex;
    justify-content: space-evenly;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-color: grey;

    margin-top: 2rem;
    border-top-style: solid;
    border-top-width: 2px;
}

.establecimiento {
    width: 13rem;
    filter: grayscale(1);
    margin: 1.5rem;
}

.establecimiento:hover {
    filter: grayscale(0);
    cursor: pointer;
}

/* Pie de Pagina */

.footer {
    color: grey;
    text-align: center;
}