@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: 2rem;
    box-sizing: border-box;
}


:root {
    --font: 'Rethink Sans', sans-serif;
    --white: #f1f1f1;
    --black: #1c1a1a;
    --black2: #0f0e0e;
    --orange: #e89338;
}


:root{
    --container-color:#1a1e21;
    --second-color:#fd8f44;
    --text-color:#172317;
    --bg-color:#fff;
}


::selection{
color: var(--bg-color);
background: var(--second-color);

}


a{
    text-decoration: none;
}

li{
    list-style: none;
}

img{
    width: 100%;
}

section{
    padding: 3rem 0 2rem;
}

.container{
    max-width: 1068px;
    margin: auto;
    width: 100%;
}



/*Header*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 80px;
    z-index: 10000;
    background-color: transparent;
    transition: background-color 0.4s;

}


header.scrolled {
  background-color: var(--black); /* Color de fondo al hacer scroll */
}



.logoH {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bolder;
    font-size: 1.5em;
    color: var(--white);
}

.logoH span{
    color: var(--orange);
}

.nav,
.buttons-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.button-menu {
    display: none;
}

.nav__link {
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
    background-image: linear-gradient(var(--orange), var(--orange));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.4s;
}

.nav__link:hover {
    background-size: 100% 2px;
}

.buttons-group__button {
    text-decoration: none;
    font-size: 1.5em;
    color: var(--white);
}

.button-shop {
    background-color: var(--orange);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

@media screen and (max-width: 1200px) {
    .contentH__text {
        margin-left: 80px;
    }

    .contentH__text h1 {
        font-size: 2.5em;
    }

    .contentH__image img {
        width: 450px;
    }
}

/* -- Laptops -- */
@media screen and (max-width: 992px) {
    .nav {
        display: none;
    }

    .nav.active {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        width: 350px;
        height: 100vh;
        padding-right: 80px;
        background-color: var(--black2);
    }

    .nav.active .nav__link {
        font-size: 1.2em;
    }

    .button-menu {
        display: flex;
    }

    .contentH__text h1 {
        font-size: 2em;
    }

    .contentH__image img {
        width: 400px;
    }
}

/* -- Tablets -- */
@media screen and (max-width: 768px) {
    header {
        padding: 30px 40px;
    }

    .contentH {
        width: 80%;
    }

    .contentH__text {
        margin-left: 40px;
    }

    .contentH__text h1 {
        font-size: 1.5em;
    }

    .contentH__image img {
        width: 300px;
    }

    .cardsH {
        flex-direction: column;
        height: 600px;
        padding: 40px;
    }

    .cardsH__card {
        width: 100%;
    }

    .rrss {
        top: 20%;
        margin-left: 40px;
    }
}

/* -- Celulares -- */
@media screen and (max-width: 400px) {
    header {
        padding: 20px;
    }

    .logoH {
        font-size: 1.2em;
    }

    .nav.active {
        width: 100%;
    }

    .buttons-group__button {
        font-size: 1.2em;
    }

    .contentH {
        flex-direction: column-reverse;
        width: 100%;
        height: 600px;
        padding: 0px;
        top: 0px;
    }

    .contentH__text {
        width: 200px;
        text-align: center;
        margin-left: 0px;
    }

    .contentH__text h1 {
        font-size: 1.2em;
    }

    .contentH__image {
        height: 300px;
    }

    .contentH__image img {
        width: 270px;
    }

    .cardsH {
        display: none;
    }

    .rrss {
        top: 40%;
        margin-left: 20px;
    }

    .rrss a {
        font-size: 1.2em;
    }
}



/*Home*/
.home{
    width:100%;
    min-height: 440px;
    background: var(--container-color);
    display: grid;
    justify-content: center;
    align-items: center;
}

.home-text{
    color: var(--bg-color);
    text-align: center;
}

.home-title{
    font-size: 3.5rem;
}

.home-subtitle{
    font-size: 1rem;
    font-weight:400 ;
}


/*Post filter*/

.post-filter{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.3rem;
    margin-top: 2rem !important;
}

.filter-item{
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.active-filter{
    background: var(--second-color);
    padding: 4px 10px;
    border-radius: 4px;
}


/*Posts*/
.post{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    justify-content: center;
    gap: 1.5rem;
}

.post-box{
    background: var(--bg-color);
    box-shadow:0 4px 14px hsl(355deg 25% 15% / 10%) ;
    padding:15px;
    border-radius: 0.5rem;
}
.post-img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
}

.category{
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--second-color);

}

.post-title{
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    /*Para tener el titulo en 2 lineas*/
    display:-webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.post-date{
    display: flex;
    font-size: 0.875rem;
    text-transform:uppercase ;
    font-weight: 400;
    margin-top: 4px;
}

.post-decription{
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin: 5px 0 10px;
    /*Para tener el texto en 3 lineas*/
    display:-webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.profile{
    display: flex;
    align-items: center;
    gap:10px;
}

.profile-img{
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
    object-position: center;
    border: 2px solid var(--second-color);
}

.profile-name{
    font-size: 0.82rem;
    font-weight: 500;
}

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}
.footer p{
    font-size: 0.938rem;
}

.social{
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.social .bx{
    font-size: 1.4rem;
    color: var(--text-color);

}

.social .bx:hover{
    color: var(--second-color);
    transition: 0.3s all linear;

}

/*Post Contenido*/

.post-header{
    width: 100%;
    height:500px;
    background: var(--container-color);
}

.post-container{
    max-width: 800px;
    margin: auto;
    width: 100%;
}

.header-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem !important;
}

.back-home{
    color: var(--second-color);
    font-size: 0.9rem;
}

.header-title{
    width: 90%;
    font-size: 2.6rem;
    color: var(--bg-color);
    text-align: center;
    margin-bottom: 1rem;
}

.header-img{
    width: 100%;
    height:420px;
    object-fit: cover;
    object-position: center;
}

.post-content{
    margin-top: 10rem !important;
}

.sub-heading{
    font-size: 1.2rem;
}

.post-text{
    font-size: 1rem;
    line-height: 1.7rem;
    margin: 1rem 0;
    text-align: justify;
}

.share{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
}

.share-title{
    font-size: 1.1rem;
}

/*Responsive*/
@media(max-width: 1060px){
    .container{
        margin: 0 auto;
        width: 95%;
    }
    .home-text{
        width: 100%;
    }
}

@media(max-width: 800px){
    .nav{
       padding: 14px 0;
    }
    .post-container{
        margin: 0 auto;
        width: 95%;
    }
    
}

@media(max-width: 768px){
    .nav{
       padding: 10px 0;
    }
    section{
        padding: 0.2rem 0;
    }
    .header-content{
      
        margin-top: 3rem !important;
    }
    .home{
        min-height: 380px;
    }

    .home-title{
        font-size: 3rem;
    }
    .header-title{
        font-size: 2rem;
    }.header-img{
        height: 370px;
    }
    .post-header{
        height: 435px;
    }
    .post-content{
        margin-top: 9rem !important;
    }
}


@media(max-width: 570px){
    .post-header{
        height: 395px;
    }
    .header-title{
        width: 100%;
    }
    .header-img{
        height: 340px;
    }
    .footer{
        flex-direction: column;
        row-gap: 1rem;
        padding: 20px 0;
        text-align: center;
    }


}


@media(max-width: 396px){
    .home-title{
        font-size: 2rem;
    }
    .home-subtitle{
        font-size: 0.9rem;
    }
    .home{
        min-height: 300px;
    }
    .post-box{
        padding: 10px;
    }
    .header-title{
        font-size: 1.4rem;
    }
    .header-img{
        height: 240px;
    }
    .post-header{

        height: 335px;
    }
    .post-content{
        margin-top: 5rem !important;
    }
    .post-text{
        font-size: 0.875rem;
        line-height: 1.5rem;
        margin: 10px 0;
    }
}