* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    --primary-color: #e9e9e9;
    --secondary-color: #333333;
    --red-color: #E30713;
    --item-background: #202125b3;
    --item-borderradius: 12px;
} 

.blog-wrapper{
  background-image: url('../img/bg2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3.5rem 0;
}

.blog-container{
    max-width: 1200px;
    margin: 0 auto;
}

.blog-container h2 {
    font-family: 'Formula1Bold', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-container p {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding: 0;
}

.entrada-principal-container{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

#entrada-principal{
    width: 100%;
    max-width: 750px;
    margin-bottom: 2rem;
    background-color: var(--item-background);
    padding: 1rem;
    border-radius: var(--item-borderradius);
    box-shadow: var(--item-shadow);
    cursor: pointer;
}

#entrada-principal p{
    font-size: 1rem;
    margin: 0.5rem 0;
    padding: 0;
}

#entrada-principal img{
    max-width: 750px;
    width: 100%;
    border-radius: var(--item-borderradius);
}

#entrada-principal h3 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  font-family: "Formula1Bold", sans-serif;
  color: var(--primary-color);
  cursor: pointer;

}


#entrada-principal h2{
  display:inline;                 /* para que el ancho sea el del texto */
  font-size:1.5rem;
  margin-bottom:.5rem;
  text-decoration: underline;     /* multi-línea real */
  text-decoration-color: transparent; 
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color .25s ease; /* fade in rápido */
}

#entrada-principal:hover h2{
  text-decoration-color: var(--red-color);
}

#x-feed{
    width: 400px;
    padding: 0.5rem;
    border-radius: var(--item-borderradius);
}


.intro-blog{
    display: flex;
    align-items: center;
    position: relative;
}

.intro-blog h3{
    font-family: "Formula1Regular", sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    width: 600px;
    line-height: 50px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    border-left: 5px solid var(--red-color);
    padding-left: 0.5rem;
    margin-top: 30px;
}

.intro-blog img{
    max-width: 250px;
    border-radius: 8px;
    margin-left: 1rem;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
    position: absolute;
    z-index: 1;
    top: -60px;
    right: 20px;
}

.redes-blog{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
}

.redes-blog p{
    margin-bottom: 0.5rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--red-color);
}
.social-icons img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.social-icons img:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 8px #9e9e9e;
}

.info-post{
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    margin-top: 0.5rem;
}

.info-post p{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.adrian-perfil{
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}


/* ULTIMOS 3 POST */

.entradas-previas-container{
    margin-top: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.entradas-previas-container h3{
    font-family: "Formula1Bold", sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.entrada-previa-cards{
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

.entrada-previa-cards article{
    width: calc(33.33% - 1rem);
    background-color: var(--item-background);
    padding: 1rem;
    border-radius: var(--item-borderradius);
    cursor: pointer;
}

.entrada-previa-cards article:hover{
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.entrada-previa-cards article h2{
    font-size: 1.5rem;
}

.entrada-previa-cards article p{
    font-size: 1rem;
    margin-bottom: 0;
}

.post-link, .entrada-previa-cards article a {
  text-decoration: none;   /* saca subrayado */
  color: inherit;          /* hereda el color del padre (tu h2) */
}

.post-link h2 {
  margin: 0;
}

.btn-ver-mas{
    font-family: "Formula1Bold", sans-serif;
    background-color: var(--red-color);
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 8px 16px;
    border-radius: var(--item-borderradius);
    margin: auto;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ver-mas:hover{
    box-shadow: 0px 0px 10px #c10500;
    transform: scale(1.05);
}

/* ULTIMOS POSTEOS*/

.posteos-previos-container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 6rem;
}

.posteos-previos-container h3{
    font-family: "Formula1Bold", sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.posteos-previos{
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

.posteo-previo{
    width: calc(100% / 3 - 1rem);
}

#posteo-2{
    width: 358px;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 768px) {
    
    html,body{
        overflow-x: hidden;
    }
    .blog-wrapper{
        padding: 2rem 0;
    }
    .blog-container{
        width: 90%;
    }
    .blog-container h2, .posteos-previos-container h3{
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    .blog-container p{
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .entrada-ppal{
        width: 60%;
    }
    #entrada-principal{
        width: 100%;
    }
    .x-feed-container {
        width: 261px;
    }
    #x-feed{
        width: 100%;
        height: 66vh;
        overflow: hidden;
    }
    .intro-blog h3{
        width: 100%;
        font-size: 1.5rem;
        margin-top: 0;
    }
    .intro-blog img {
top: 131px;
        right: 45px;
    }
    .eapps-facebook-feed-load-more{
        display: none !important;
    }
    .posteo-previo {
    width: 48%;
    }
    #posteo-3{
        margin-top: -60px;
    }
    #posteo-2{
        margin-top: 60px !important;
    }
    #eapps-facebook-feed-1 .eapps-facebook-feed-content-container{
        height: auto !important;
    }
    .entrada-previa-cards article h2{
        font-size: 1.2rem;
    }
    .entrada-previa-cards article p{
        font-size: 0.8rem;
    }
    #posteo-2{
        width: 333px;
    }
}

@media (max-width: 450px) {
    .entrada-previa-cards{
        flex-direction: column;
    }
    .entrada-previa-cards article{
        width: 100%;
    }
    .entrada-principal-container{
        flex-direction: column;
        margin: auto;
    }
    .entrada-ppal{
        width: 100%;
    }
    .intro-blog{
        margin-top: 0;
    }
    .intro-blog h3{
        margin-top: 0;
    }
    .intro-blog img{
        display: none;
    }
    .x-feed-container{
        width: 100%;
        margin-top: 20px;
    }
    .posteos-previos-container{
        width: 90%;
        margin: auto;
        margin-top: 3rem;
    }
    .posteos-previos {
        justify-content: space-between;
    }
    .posteo-previo p{
        font-size: 0.9rem;
        margin-bottom: 0;
        padding-left: 0.5rem;
    }
    .posteo-previo{
        width: 100%;
    }
    #posteo-2, #posteo-3, #posteo-1{
        width: 100%;
    }
    .bICRKw{
        height: 495px !important;
    }
        #posteo-3{
        margin-top: 0 !important;
    }
    #posteo-2{
        margin-top: 0px !important;
    }
    .eapps-facebook-feed-posts-inner{
        margin-bottom: 0 !important;
    }
}

