/* Estructura HTML */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section {
    position: relative;
    margin-bottom: 50px;
}

.container-fluid {
    padding: 0;
}

.grid-contenedor {
    max-width: 1370px;
    position: relative;
    margin: auto;
    text-align: center;
}

.main {
    padding-bottom: 0;
}


.main {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.main h2 {
    font-size: 2.5em;
    font-weight: 500;
    color: #383B3B;
}



/* Colores titulos y fondos */
/* Colores texto */

:root {
    --color--main: #ff6600;
    --color--principal-rojo-oscuro: #DB3C0B;
    --color--neutral--0: #FFFFFF;
}

.color--green--main {
    color: var(--color--main);
}

.color-black {
    color: var(--color--neutral--100);
}

.color-gray {
    color: var(--color--neutral--70);
}

.color-white {
    color: var(--color--neutral--0);
}


/* Banner */
.banner__articulo {
    background-color: #E9FFB7;
    margin-top: 40px;
}

.banner__articulo img {
    position: absolute;
    z-index: 2;
    right: 0;
    height: stretch;
}

.banner__articulo>div {
    display: flex;
}

h1.titulo__articulo {
    text-align: left;
    font-size: 3em;
    width: 50%;
    padding: 70px 0;
    color: #383B3B;
}

/* Barra de navegacion */
.barra {
    position: fixed !important;
    z-index: 3 !important;
    display: flex;
    width: 100%;
    height: 64px;
    background: #383b3b;
    padding: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.barra .container {
    display: flex;
    width: 1170px;
    justify-content: flex-end;
}

.main .button--primary:link {
    color: var(--color--neutral--0);
    background: var(--gradiants-y-linear-gradiant-boton, linear-gradient(0deg, var(--color--principal-rojo-oscuro) 0%, var(--color--main) 100%));
    border: 1px solid var(--color--main);
}

.main .button.button--primary.button--texto {
    position: relative;
    width: fit-content;
    display: flex;
    justify-content: right;
    align-content: center;
    align-items: center;
}

.main .button--texto {
    padding: 12px 32px;
}

.main .button {
    display: inline-block;
    color: var(--neutral-escala-grises-10, #F5F5F5);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0.352px;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    width: auto;
}

/* Miga de pan */
/* Miga de pan */
.miga-pan nav {
    margin-left: 0;
}

.c-breadcrumb {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0 0 20px 0;
    width: fit-content;
}

/* Estilo de los enlaces */
.c-breadcrumb li {
    font-size: 1em;
    margin-right: 10px;
}

.c-breadcrumb li a {
    font-weight: 500;
    text-decoration: none;
    color: #ff6600;
    transition: color 0.3s;
}

.c-breadcrumb li a:hover {
    color: #ff4800;
}

/* Separador */
.c-breadcrumb li::after {
    content: "\f105";
    font-family: FontAwesome;
    margin-left: 10px;
    color: #666666;
}

/* Último elemento no tiene separador */
.c-breadcrumb li:last-child::after {
    content: "";
}

/* Último elemento sin enlace */
.c-breadcrumb li:last-child {
    color: #666666;
    font-weight: normal;
}


/* Artículo */
.grid-articulo {
    display: flex;
    justify-content: space-between;
}

.grid-articulo article {

    width: 65%;
    text-align: left;
}

.grid-articulo article p {
    font-size: 1.3em;
    font-weight: 300;
    line-height: 1.8em;
}

.grid-articulo article img {
    margin: 40px 0;
    width: 100%;
}

.grid-articulo aside {
    width: 30%;
}

.articulo__contenedor {
    margin-bottom: 0;
}

article .articulo__txt__destacado {
    padding: 40px;
    border: 5px solid #C3E671;
    border-radius: 15px;
}

aside h2 {
    text-align: left;
}


aside a {
    text-align: left;
    display: flex;
    padding: 20px;
    margin-top: 20px;
    font-weight: 600;
    background-color: white;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin-bottom: 20px;
    align-items: center;
    cursor: pointer;
    color: black;

}

aside a:hover {
    background-color: #C3E671;
}

aside a:hover span {
    background-color: #82BA01;
}

aside span {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #C3E671;
    color: black;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 50px;
    font-size: 1.5em;
    margin-right: 10px;
}

aside a p {
    color: black;
    margin-bottom: 0;
    width: 80%;
}

/* Artículos destacados */

.contenedor__articulos__destacados {
    background-color: #FFF2D9;
    padding: 60px 0;
}

.contenedor__articulos__destacados h2 {
    text-align: left;
}

.contenedor--item--destacados {
    margin-top: 45px;
    display: flex;
    justify-content: space-between;
}

.contenedor--item--destacados a {
    width: 30%;
    padding: 20px 30px;
    background-color: white;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.contenedor--item--destacados a div {
    display: flex;
    margin-bottom: 5px;
}

.contenedor--item--destacados a span {
    display: block;
    text-align: center;
    background-color: #ff6600;
    color: white;
    font-size: 1.5em;
    font-weight: 800;
    height: 45px;
    width: 45px;
    padding: 8px;
    border-radius: 30px;
}

.contenedor__articulos__destacados a {
    text-align: left;
}

.contenedor--item--destacados a h3 {
    font-size: 1.25em;
    width: 80%;
    margin-left: 20px;
    float: right;
}

.contenedor--item--destacados a p {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0;

}

.contenedor__articulos__destacados {
    margin-bottom: 0;
}

/* Media Queries */
/* Escritorio (xl) */
@media (max-width: 1400px) {

    .grid-contenedor {
        max-width: 1170px;
    }

    .main {
        font-size: 14px;
    }

    /* Display */
    .d-flex-xl {
        display: flex;
        flex-wrap: wrap;
    }

    .d-block-xl {
        display: block;
    }

    .d-inline-xl {
        display: inline;
    }


    /* Width */
    .width-100-xl {
        width: 100%;
    }

    .width-75-xl {
        width: 75%;
    }

    .width-70-xl {
        width: 70%;
    }

    .width-50-xl {
        width: 50%;
    }

    .width-30-xl {
        width: 30%;
    }

    .width-25-xl {
        width: 25%;
    }

    .width-auto-xl {
        width: auto;
    }


    /* Text align */
    .txt-left-xl {
        text-align: left;
    }

    .txt-right-xl {
        text-align: right;
    }

    .txt-center-xl {
        text-align: center;
    }

}

/* Laptop (lg) */
@media (max-width: 1200px) {

    .grid-contenedor {
        max-width: 1024px;
    }


    /* Display */
    .d-flex-lg {
        display: flex;
        flex-wrap: wrap;
    }

    .d-block-lg {
        display: block;
    }

    .d-inline-lg {
        display: inline;
    }


    /* Width */
    .width-100-lg {
        width: 100%;
    }

    .width-75-lg {
        width: 75%;
    }

    .width-70-lg {
        width: 70%;
    }

    .width-50-lg {
        width: 50%;
    }

    .width-30-lg {
        width: 30%;
    }

    .width-25-lg {
        width: 25%;
    }

    .width-auto-lg {
        width: auto;
    }


    /* Text align */
    .txt-left-lg {
        text-align: left;
    }

    .txt-right-lg {
        text-align: right;
    }

    .txt-center-lg {
        text-align: center;
    }

}

/* Laptop small */
@media (max-width: 1024px) {
    .grid-contenedor {
        max-width: 940px;
    }

    .contenedor--item--destacados {
        margin-top: 30px;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .contenedor--item--destacados a {
        width: 47%;
        padding: 20px 15px;
        margin-bottom: 30px;
    }
}


/* Tablet large  (l) */
@media (max-width: 992px) {

    section {
        margin-bottom: 30px;
    }

    .grid-contenedor {
        max-width: 820px;
    }


    /* Display */
    .d-flex-l {
        display: flex;
        flex-wrap: wrap;
    }

    .d-block-l {
        display: block;
    }

    .d-inline-l {
        display: inline;
    }


    /* Width */
    .width-100-l {
        width: 100%;
    }

    .width-75-l {
        width: 75%;
    }

    .width-70-l {
        width: 70%;
    }

    .width-50-l {
        width: 50%;
    }

    .width-30-l {
        width: 30%;
    }

    .width-25-l {
        width: 25%;
    }

    .width-auto-l {
        width: auto;
    }


    /* Text align */
    .txt-left-l {
        text-align: left;
    }

    .txt-right-l {
        text-align: right;
    }

    .txt-center-l {
        text-align: center;
    }

}


/* Tablet small*/
@media (max-width: 768px) {

    .grid-contenedor {
        max-width: 720px;
    }

    .miga-pan {
        display: none;
    }

    .grid-articulo article {
        width: 100%;
        padding: 0 30px;
    }

}

/* Movil (s) */
@media (max-width: 576px) {

    .grid-contenedor {
        max-width: 540px;
        padding: 0 20px;
    }

    .main {
        font-size: 13px;
    }

    /* Display */
    .d-flex-s {
        display: flex;
        flex-wrap: wrap;
    }

    .d-block-s {
        display: block;
    }

    .d-inline-s {
        display: inline;
    }


    /* Width */
    .width-100-s {
        width: 100%;
    }

    .width-75-s {
        width: 75%;
    }

    .width-70-s {
        width: 70%;
    }

    .width-50-s {
        width: 50%;
    }

    .width-30-s {
        width: 30%;
    }

    .width-25-s {
        width: 25%;
    }

    .width-auto-s {
        width: auto;
    }


    /* Text align */
    .txt-left-s {
        text-align: left;
    }

    .txt-right-s {
        text-align: right;
    }

    .txt-center-s {
        text-align: center;
    }

    /*Banner*/
    .banner__articulo>div {
        flex-wrap: wrap;
    }

    h1.titulo__articulo {
        text-align: center;
        width: 100%;
        padding: 20px 0;
    }

    .banner__articulo {
        margin-top: 40px;
    }

    .barra .container {
        justify-content: center;
    }

    .banner__articulo img {
       display: none;
    }

    /*Articulo*/

    .grid-articulo {
        flex-wrap: wrap;
    }

    .grid-articulo article {
        order: 2;
        padding: 0 20px;
    }

    .grid-articulo aside {
        width: 100%;
        padding: 0 20px;
        order: 1;
    }

    article .articulo__txt__destacado {
        padding: 20px;
        border: 5px solid #C3E671;
        border-radius: 15px;
    }

    /*Articulos populares*/
    .contenedor__articulos__destacados {
        padding: 30px 0;
    }

    .contenedor--item--destacados a {
        width: 100%;
    }

    .contenedor--item--destacados a span {
        padding: 12px;
    }

    .main .button.button--primary.button--texto {
        padding-inline: 50px;
        font-size: 14px;
        position: relative;
        width: fit-content;
        display: flex;
        justify-content: right;
    }

    .barra {
        margin-top: 5px;
    }


}