/*Roboto Slaf 400, 700
  Roboto 400 500 700 900
  Roboto Mono 400 500 700
*/

@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&family=Roboto+Slab:wght@400;700&family=Roboto:wght@400;500;700;900&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto Mono", sans-serif;
    font-family: 400;
    background-color: #e6e9ed;
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
}

/* HEADER 
Social*/

.header {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    background-color: #2e2e2e;
    align-items: center;
}

.social {
    background-color: #2e2e2e;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.home a {
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    padding-left: 10px;
}

.social-icons {
    width: 250px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-self: end;
    margin-right: 50px;
}

.social-icons a {
    color: #fff;
    font-size: 28px;
}

.social-icons a:hover,
.home a:hover {
    color: #616161;
}

/*HEADER 
Menu de Navegación*/
.nav {
    height: auto;
}

.nav-logo {
    margin-left: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 50px;
}

.nav-link a {
    text-decoration: none;
    color: #dbdbdb;
}

/* MAIN DE HOME*/
.home-main {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    height: 100%;

    background-image: url("../../img/blog/cover.31ba3eccd58e.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.main-container {
    display: grid;
    grid-column: 2;
    justify-items: center;
    height: 350px;
    margin-top: 80px;
}

.main-container__text {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 10px;
    color: #fff;
}

.main-container__link {
    background-color: #2b343f;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    height: 45px;
}

.main-container__link:hover {
    background-color: #eb253c;
}

/* PAGINA DE BLOGS*/

.news {
    background-color: #f1ead3;
}

.news-content {
    padding: 10px 80px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 2fr;
}

.news-content img {
    grid-column: 1;
    width: 85%;
    display: inline-block;
    margin: 10px 0;
}

.news-info {
    grid-column: 2;
}

.news-info h2 {
    margin-top: 20px;
}
.news-info p {
    margin: 30px 0;
}

/*BOTON DE BLOGS
=============================*/
.blogs-btn {
    text-decoration: none;
    color: #000;
    border: 1px solid #2e2e2e;
    padding: 10px 15px;
    font-size: 14px;
}

/*POST
==========================*/
.posts {
    padding: 10px 80px 40px;
}

.posts h3 {
    border-bottom: 1px solid #cdd2da;
    padding: 20px 0;
}

.posts-blog {
    display: inline-block;
    padding: 10px;
    max-width: 32%;
    margin-bottom: 20px;
    height: 450px; /* Altura fija para todas las tarjetas */
    overflow: hidden;
    position: relative;
    vertical-align: top;
}

.posts-blog img {
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes */
    object-fit: cover; /* Mantiene las proporciones de la imagen */
}

.posts-blog h4 {
    margin: 20px 0;
    height: 50px; /* Altura fija para los títulos */
    overflow: hidden;
    display: -webkit-box;
    box-orient: vertical; /* Add this line for compatibility */
    display: box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis; /* Muestra puntos suspensivos al final del texto cortado */
    white-space: normal; /* Permite saltos de línea automáticos */
}

.posts-blog p {
    margin-bottom: 35px;
    height: 80px; /* Altura fija para la descripción */
    overflow: hidden;
}

.posts-blog .blogs-btn {
    position: absolute;
    bottom: 20px;
    left: 10px;
}

/* Estilos para la paginación 
============================= */
.pagination {
    width: 100%;
    margin: 30px 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.pagination .step-links {
    display: flex;
    align-items: center;
}

.pagination .blogs-btn {
    margin: 0 5px;
}

.pagination .current-page {
    margin: 0 15px;
    font-weight: bold;
}

/*FOOTER 
==================================*/
footer {
    width: 100%;
    height: 50px;
    padding: 10px;
    background-color: #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer p {
    color: #fff;
    text-align: center;
}
/* footer a {
  text-decoration: none;
  color: #fff;
} */
/*BLOG 
========================================*/

.blogs-main {
    padding: 0 80px 40 px;
}

.blogs-main__content img {
    display: inline-block;
    padding: 0 10px 40px;
    width: 100%;
}

.blog-content__article {
    padding: 0 80px 40px;
}

.blog-content__article h4 {
    border-bottom: 1px solid #cdd2da;
    padding: 20px 0;
}

.blog-content__article h1 {
    margin: 20px 0;
    font-size: 35px;
}

/* nopost */
.nopost {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 43vh;
}

/*SECCION DE CONTACTO 
=====================================*/

.section-contact {
    width: 100%;
    background-color: #9cc4f8;
    display: flex;
    justify-content: space-between;
    padding: 10px 60px 10px;
}

.contact {
    display: flex;
    margin: 0px 0px;
}

.contact img {
    width: 80px;
    display: inline-block;
    padding: 1px;
}

.contact-info {
    padding: 5px 0;
    width: 250px;
}

.contact-info a {
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}
.contact-info p {
    margin-top: 10px;
}

/* PERFIL 
=================================*/
.profile {
    padding: 40px 80px;
    background-color: #e6e9ed;
    margin-bottom: 5px;
    display: flex;
}

.profile img {
    width: 320px;
    margin-right: 30px;
    border-radius: 50px;
}

.project-container {
    padding: 0 80px 40px;
}

.project-container h3 {
    border-bottom: 1px solid #cdd2da;
    padding: 20px 0;
    text-align: center;
}

.project {
    display: inline-block;
    padding: 15px;
    max-width: 32%;
    margin-bottom: 50px;
}

.project h4 {
    margin: 20px 0;
}

.project p {
    margin-bottom: 35px;
}

.backrow {
    color: #2e2e2e;
    font-size: 20px;
    margin: 10px;
}

/* Estilos para la página individual de post 
====================================== */
.main-blog__content {
    max-width: 100%;
    overflow: hidden;
}

.imgpost {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.imgpost img {
    max-width: 100%;
    height: auto;
    max-height: 80vh; /* Limita la altura al 80% de la altura de la ventana */
    object-fit: contain; /* Mantiene las proporciones sin recortar */
}
