/* Google Fonts*/
@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: smooth;
    scroll-padding-top: 2rem;
    box-sizing: border-box;
}

/* Variables*/
:root {
    --container-color: #1a1e21;
    --second-color: #fd8f44;
    --text-color: #172317;
    --bg-color: #fff;
}

::selection{
    color: var(--bg-color);
    background-color: var(--second-color);
}

a{
    text-decoration: none;   
}

li{
    list-style: none;
}

.logo img{
    width: 100px;
}


section{
    padding: 3rem 0 2rem;
}

.container{
    max-width: 1068px;
    margin: auto;
    width: 100%;
}

/* header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200; /* Ajusta el valor según sea necesario */
}

header.shadow{
    background: var(--bg-color);
    box-shadow: 0 1px 4px hsl(0 4% 14% / 10%);
    transform: 0.4s;
}

header.shadow .logo{
    color: var(--text-color);
}

.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-color);
}

.logo span{
    color: var(--second-color);
}

.login{
    padding: 8px 14px;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 4px;
    background: var(--second-color);
    color: var(--bg-color);
}


.login:hover{
    background: hsl(24, 98%, 58%);
    transition: 0.3s;
}

.home{
    width: 100%;
    min-height: 350px;
    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.5rem;
    margin-top: 2rem !important;
    margin-bottom: 2rem; /* Agrega un espacio entre el encabezado y el contenido */
}

.filer-item{
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.active-filter{
    background: var(--second-color);
    color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Post */
.post{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,auto));
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0px; /* Agrega un espacio entre los post-box y el footer */
}

.post-box{
    background: var(--bg-color);
    box-shadow: 0 4px 14px hsl(355deg 25% 15%);
    padding: 15px;
    border-radius: 0.5rem;
    margin: 0;
    margin-bottom: 20px; /* Agrega un espacio entre el encabezado y el contenido */

}

.post-img{
    width: 300px;
    height: auto;
    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);
    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-description{
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin: 5px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile{
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--second-color);
}

.profile-name{
    font-size: 0.82rem;
    font-weight: 500;
}

main {
    min-height: calc(100vh - 100px); /* Ajusta según la altura de la barra de navegación y el footer */
    padding-bottom: 0; /* Ajusta según la altura del footer */
}
footer {
    position: relative; /* Cambiado a position: absolute */
    bottom: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    margin-top: 2rem; /* Agrega un espacio entre el contenido y el footer */
    background-image: url("../img/bg.jpg");
}

footer img{
	width: 100px;
}

.social{
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.social .bx{
    font-size: 1.4rem;
    color: var(--bg-color);
}

.social .bx:hover{
    color: var(--second-color);
    transition: 0.3s all linear;
}

.copyright {
    color: #FFFFFF;
    font-size: 13px;
	margin: 0;
	padding: 0;
}


/*Post content*/
.article-page main {
    margin-top: 125px; /* Ajusta según la altura del header */
}
.article-page header {
    z-index: 100; /* Ajusta según sea necesario */
}

.article-page .back-home {
    color: var(--second-color); /* Cambia el color del texto del botón "Home" */
}

.article-page header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200; /* Ajusta el valor según sea necesario */
    background: var(--container-color);
}

.article-page header.shadow{
    background: var(--bg-color);
    box-shadow: 0 1px 4px hsl(0 4% 14% / 10%);
    transform: 0.4s;
}

.article-page header.shadow .logo{
    color: var(--text-color);
}
.post-header{
    width: 100%;
    height: 450px;
    background-color: 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{
    padding: 1.2rem;
    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;
    font-weight: bold;
    text-align: center;
}

.post-text{
    font-size: 1rem;
    line-height: 1.7rem;
    margin: 1rem 0;
    text-align: justify;
}

.post-text-sub{
    font-size: 1rem;
    line-height: 1.7rem;
    margin: 1rem 0;
    font-weight: bold;
}

.post-text-italic{
    font-size: 1rem;
    line-height: 1.7rem;
    margin: 1rem 0;
    font-style: italic;
    font-weight: bold;
}

.caracteristicas{
    font-size: 1rem;
    line-height: 1.7rem;
    margin: 1rem 0;
    text-align: justify;
    font-weight: bold;
}

.caracteristicas-content{
    font-weight: normal;
}

.caracteristicas li:not(.no-star)::before {
    content: "👍";
    margin-right: 5px; /* Ajusta el espaciado según sea necesario */
}

.post-img-content{
    width: 500px;
    height: auto;
    text-align: center;
    margin: auto; /* Agregado para centrar la imagen */
}

/*Share*/
.share{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1.1rem;
}

.share .social .bx{
    font-size: 1.4rem;
    color: var(--text-color);
}

.share .social .bx:hover{
    color: var(--second-color);
    transition: 0.3s all linear;
}
.share-title{
    font-size: 1.1rem;
}

/*Responsive*/
@media (max-width: 1060px){
    .container{
        margin: 0 auto;
        width: 100%;
    }
    .home-text{
        width: 100%;
    }
}

@media (max-width: 800px){
    .logo img{
        display: none;
    }
    .nav{
        padding: 14px 0;
    }
    .post-container{
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px){
    .logo img{
        display: none;
    }
    .nav{
        padding: 18px 0;
    }
    .article-page .nav{
        padding: 50px 0;
    }
    section{
        padding: 2rem 0;
    }
    .header-content{
        margin-top: 3rem !important;
    }
    .home{
        min-height: 380px;
    }
    .home-title{
        font-size: 3rem;
    }
    .header-img, .post-img-content{
        width: 200px;
        height: auto;
    }
    .post-header{
        height: 150px;
    }
    .post-content{
        margin-top: 6rem !important;
    }
}

@media (max-width: 570px){
    .logo img{
        display: none;
    }
    .post-header{
        height: 150px;
    }
    .header-title{
        width: 100%;
    }
    .header-img, .post-img-content{
        height: auto;
    }
}

@media (max-width: 396px){
    .logo img{
        display: none;
    }
    .home-title{
        font-size: 2rem;
    }
    .home-subtitle{
        font-size: 0.9rem;
    }
    .home{
        min-height: 215px;
    }
    .post-box{
        padding: 10px;
    }
    .header-title{
        font-size: 1.4rem;
    }
    .header-img, .post-img-content{
        width: 200px;
        height: auto;
    }
}
