:root {
    --gris-oscuro: rgb(45, 45, 45);
    --rojo: #EC3337;

    --title-font: 'Oswald', sans-serif;
    --cont-font: 'PT Sans', sans-serif;
    
}

html{
    box-sizing: border-box;
    font-size: 62.5%;
    font-family: Helvetica, sans-serif;
    background-color: var(--gris-oscuro);
    background-image: url("../imgs/asfalt-dark\ \(1\).png");
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}


* {
    margin: 0;
    padding: 0;

    scrollbar-width: thin;
    scrollbar-color: #EE3333 #242424;
}

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
    width: 10px;
    width: 10px;
  }
  *::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: #242424;
  }
  
  *::-webkit-scrollbar-track:hover {
    background-color: #303030;
  }
  
  *::-webkit-scrollbar-track:active {
    background-color: #303030;
  }
  
  *::-webkit-scrollbar-thumb {
    border-radius: 11px;
    background-color: #EE3333;
  }
  
  *::-webkit-scrollbar-thumb:hover {
    background-color: #EE3333;
  }
  
  *::-webkit-scrollbar-thumb:active {
    background-color: #EE3333;
  }

  h1, h2 {
    font-family: var(--title-font);
  }

 a, p, span {
    font-family: var(--cont-font);
}

/* Estilos para limitar imágenes en el contenido del blog */
.blog-content img,
.post-content img,
.content img,
.blog-intro img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Estilos para centrar videos automáticamente */
.blog-content video,
.post-content video,
.content video,
.blog-intro video,
.blog-content iframe,
.post-content iframe,
.content iframe,
.blog-intro iframe,
.blog-content .video-container,
.post-content .video-container,
.content .video-container,
.blog-intro .video-container {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Para imágenes muy grandes, limitar altura máxima */
.blog-content img,
.post-content img,
.content img,
.blog-intro img {
    max-height: 500px;
    object-fit: contain;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .blog-content img,
    .post-content img,
    .content img,
    .blog-intro img {
        max-height: 300px;
        margin: 1.5rem auto;
    }
    
    /* Videos responsive en móviles */
    .blog-content video,
    .post-content video,
    .content video,
    .blog-intro video,
    .blog-content iframe,
    .post-content iframe,
    .content iframe,
    .blog-intro iframe,
    .blog-content .video-container,
    .post-content .video-container,
    .content .video-container,
    .blog-intro .video-container {
        max-width: 100%;
        margin: 1.5rem auto;
        border-radius: 6px;
    }
}

/* Estilos específicos para el contenido del blog individual */
.blog-intro {
    overflow: hidden; /* Evita que el contenido se salga */
}

.blog-intro img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 2rem auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-height: 500px !important;
    object-fit: contain !important;
}

/* Videos en blog-intro centrados automáticamente */
.blog-intro video,
.blog-intro iframe,
.blog-intro .video-container {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 2rem auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-height: 500px !important;
}

/* Estilos específicos para iframes de video (YouTube, Vimeo, etc.) */
.blog-intro iframe[src*="youtube"],
.blog-intro iframe[src*="vimeo"],
.blog-intro iframe[src*="dailymotion"],
.blog-intro iframe[src*="facebook"],
.blog-intro iframe[src*="instagram"] {
    aspect-ratio: 16/9 !important;
    width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
    margin: 2rem auto !important;
    display: block !important;
}

header {
    background-color: var(--gris-oscuro);
    display: flex;
    justify-content: space-around;
    height: 10vh;

    position:fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

header .logo_5sfoam {
    width: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    left: 2rem;
}

header .navbar-icon-cont{
    width: 15%;
}

.menu-button {
    display: flex;
    align-items: center;
    text-align: center;
    filter: invert(1);

    position: relative;
    top: 0.5rem;
    right: 1rem;
    cursor: pointer;
}

.x-icon {
    display: none;
    text-align: center;
    filter: invert(1);

    position: relative;
    top: 0.5rem;
    right: 1rem;
}

.header-correo {
    display: none;
}

header nav {
    color: white;
    display: flex;
    align-items: center;
}

nav .nav_options {
    display: none;
}


header nav ul li{
    padding-left: 4rem;
    list-style: none;
}

header nav ul a {
    text-align: center;
    color: white;
    list-style: none;
    text-decoration: underline #EC3337 0.5rem;
}

header nav ul a:hover {
    text-decoration: #FFF;
    transition: all 0.3s ease;
}

.redes-cont {
    display: none;
    align-items: center;
}

.redes-cont figure {
    width: 100%;
    height: 100%;
}

.redes-cont figure a {
    justify-content: center;
    align-content: center;
    padding-left: 2rem;
}

.redes-cont img {
    height: 100%;
    width: 3.5rem;
    align-items: center;
}

nav .nav_options.active {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--gris-oscuro);
    z-index: 2;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    overflow: hidden;
}

.nav_options.active .redes-cont li {
    width: auto;
    padding-left: 0;
}

.nav_options.active .redes-cont {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Bloquear scroll del body cuando el menú esté activo */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
}

.nav_options.active li {
    font-size: 3.5rem;
    color: #FFFF;
    font-weight: bold;

    width: 100%;
}

.nav_options.active .home {
    position: absolute;
    top: 18%;
    left: 15%;
    text-align: left;
    width: auto;
}

.nav_options.active .home a{
    text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration-color: #EC3337;
    -webkit-text-decoration-thickness: 0.5rem;
    text-underline-offset: 5px;
    display: inline-block;
}

.nav_options.active .productos {
    position: absolute;
    top: 26%;
    left: 15%;
    text-align: left;
    width: auto;
}

.nav_options.active .productos a{
    text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration-color: #EC3337;
    -webkit-text-decoration-thickness: 0.5rem;
    text-underline-offset: 5px;
    display: inline-block;
}

.nav_options.active .galeria {
    position: absolute;
    top: 34%;
    left: 15%;
    text-align: left;
    width: auto;
}

.nav_options.active .galeria a{
    text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration-color: #EC3337;
    -webkit-text-decoration-thickness: 0.5rem;
    text-underline-offset: 5px;
    display: inline-block;
}

.nav_options.active .blog {
    position: absolute;
    top: 42%;
    left: 15%;
    text-align: left;
    width: auto;
}

.nav_options.active .blog a{
    text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration-color: #EC3337;
    -webkit-text-decoration-thickness: 0.5rem;
    text-underline-offset: 5px;
    display: inline-block;
}

.nav_options.active .contacto {
    position: absolute;
    top: 50%;
    left: 15%;
    text-align: left;
    width: auto;
}

.nav_options.active .contacto a{
    text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration-color: #EC3337;
    -webkit-text-decoration-thickness: 0.5rem;
    text-underline-offset: 5px;
    display: inline-block;
}

.nav_options.active .nosotros {
    position: absolute;
    top: 58%;
    left: 15%;
    text-align: left;
    width: auto;
}

.nav_options.active .nosotros a{
    text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration: underline #EC3337 0.5rem;
    -webkit-text-decoration-color: #EC3337;
    -webkit-text-decoration-thickness: 0.5rem;
    text-underline-offset: 5px;
    display: inline-block;
}

.nav_options.active a:hover {
    color: var(--rojo);
    text-decoration: underline #FFF 0.5rem;
}

.menu-button.hide {
    display: none;
}

.x-icon.show {
    display: flex;
    position: fixed;
    top: 3rem;
    right: 2rem;
    z-index: 3;
    cursor: pointer;
}

/*A R T I C U L O*/


main {
    margin-top: 10rem;
    color: #FFF;
}

.blog-section {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 4rem;
}

main .blog-title{
    font-size: 2rem;
    margin-bottom: 1.6rem;
}

.blog-section p {
    font-family: var(--cont-font);

    font-size: 1.5rem;
    line-height: 2.5rem;
}

.ventajas-title {
    font-family: var(--cont-font);
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-top: 3.2rem;
    margin-bottom: 2.4rem;
}

/*I N T E R E S A R*/

.interesar-section {
    width: 90%;
    margin: 0 auto;
    margin-top: 1.6rem;

    padding: 2rem 0rem;
}

.producto-cont{
    display: flex;
}

.articulo-img {
    width: 100%;
}

.articulo-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interesar-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.interesar-section .articulo-cont {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 2.4rem;

    padding: 1.6rem;

    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.interesar-section .articulo-cont:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 13px;
    transform: scale(1.02);
    transition: all 250ms ease-in-out;

}

.interesar-section .articulo-title {
    margin-bottom: 0.8rem;
}

.interesar-section a{
    text-decoration: none;
    color: #FFF;
}

.interesar-section p {
    font-size: 1.5rem;
}

/* F O O T E R*/


footer {
    background-color: var(--gris-oscuro);
    padding-top: 4rem;
    margin-top: 4rem;

    display: flex;
    flex-direction: column;

    color: #FFF;
}

.footer-width {
    width: 80%;
    margin: 0 auto;
    margin-bottom: 2.4rem;

    display: flex;
    flex-direction: column;
}

.footer-bar ul {
    font-size: 2rem;
    font-weight: bold;
    list-style: none;

    margin-bottom: 2.4rem;
} 

.footer-bar ul li {
    margin-top: 0.8rem;
}

.footer-bar ul li a {
    color: #FFF;
    text-decoration: none;
}

.footer-bar ul li a:hover {
    color: var(--rojo);
}


.footer-mobile-divider {
    border: 1px solid #272626;
}

.footer-correo {
    display: flex;
    flex-direction: column;
    margin-top: 1.6rem;
    margin-bottom: 2.4rem;
}

#mc_embed_signup {
    background-color:#2d2d2d;
    clear: left; 
    font-size:15px ;
    font-family: var(--cont-font); 
    width: 100%;
}


.mc-field-group label {
    display: flex !important;
    font-size: 2rem;
}

.mc-field-group label::after {
    content: '*';
    color: var(--rojo);
    position: relative;
    left: 2%;
}

#mc-embedded-subscribe {
    margin: 1.6rem !important;
}


footer form {
    margin: 0 !important;
}

footer .mc-field-group {
    width: 100% !important;
}

.footer-correo h2 {
    font-size: 2.5rem;
    margin-bottom: 1.6rem;
}

.mc-field-group {
    display: flex;
    flex-direction: column;
}

.footer-correo span {
    font-size: 1.5rem;
    margin-bottom: 1.6rem;
}

footer .email{
    margin-top: 1.6rem;

    background-color: #242424;
    padding-left: 2rem;
    width: 100%;
    height: 3rem;

    border: none;

    color: #FFF;
    font-size: 2rem;
}

.footer-button {
    padding: 1rem;
    color: #FFF;
    font-weight: bold;
}


footer label input:focus {
    outline: 1px solid var(--rojo);
}

footer label input::placeholder {
    align-self: center;
}

.asterisk {
    color: var(--rojo);
    font-size: 1.5rem;
}

.footer-button {
    background-color: var(--rojo);
}

.footer-button:hover {
    cursor: pointer;
    background-color: #ee4e50;
}

.footer-redes-width {
    width: 80%;
    margin: 0 auto;
    margin-bottom: 2.4rem;
}

.footer-redes {
    margin-top: 2.4rem;
}

.footer-redes ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.footer-redes li {
    list-style: none;
    padding-left: 1.2rem;
}

.footer-redes img {
    width: 70%;
}

/*TABLETAS*/

@media screen and (min-width: 767px) and (max-width:1023px){

    .redes-cont {
        display: none;
        align-items: center;
    }
    
    .redes-cont figure {
        width: 100%;
        height: 100%;
    }
    
    .redes-cont figure a {
        justify-content: center;
        align-content: center;
    }
    
    .redes-cont img {
        height: 100%;
        width: 3.5rem;
        align-items: center;
    }
    
    .nav_options.active .redes-cont li {
        width: auto;
    }
    
    .nav_options.active .redes-cont {
        display: flex;
        flex-wrap: wrap;
        position: absolute;
        bottom: 10%;    
        width: 100%;
    }
    
    .nav_options.active li {
        font-size: 4.5rem;
        color: #FFFF;
        font-weight: bold;
    
        width: 100%;
        text-decoration: underline #EC3337 0.5rem;
    }

    .nav_options.active .redes-cont li {
        width: auto;
        padding-left: 5rem;
    }
    
    .nav_options.active .home {
        top: 16%;
        text-align: center;
    }
    
    .nav_options.active .productos {
        top: 26%;
        text-align: center;
    }
    
    .nav_options.active .galeria {
        top: 36%;
        text-align: center;
    }
    
    .nav_options.active .blog {
        top: 46%;
        text-align: center;
    }
    
    .nav_options.active .contacto {
        top: 56%;
        text-align: center;
    }
    
    .nav_options.active .nosotros {
        top: 66%;
        text-align: center;
    }

    .blog-section {
        width: 70%;
        margin: 0 auto;
    }

    /*F O O T E R*/

    .footer-width {
        display: flex;
        flex-direction: row;
    }

    .footer-bar {
        width: 50%;
    }

    .footer-correo {
        width: 50%;
        padding-left: 2.4rem;
        margin: 0 auto;
    }

    .footer-correo input{
        width: 100%;
    }

    .footer-redes {
        width: 80%;
        padding-left: 2.4rem;
    }

    .footer-redes ul{
        align-self: center;
        display: flex;
        width: 115%;
        justify-content: space-between;
    }
}

/*PCs / LAPTOPs*/

@media screen and (min-width: 1024px) {

    /*Header / nav*/

    header {
        position: inherit;
    }

    header .logo_5sfoam {
        justify-content: flex-start;
        width: 50vw;
        padding-left: 4rem;
    }

    header .navbar-icon-cont {
        width: 50%;
        justify-content: flex-end;
    }

    header nav {
        width: 60vw;
        font-size: 2rem;
        justify-content: flex-end;
        padding-right: 10rem;

        text-decoration: underline #EC3337 0.5rem;
        text-underline-offset: 5px;
    }

    nav .nav_options a {
        font-weight: bold;
    }

    nav .nav_options a:hover {
        color: red;
        text-decoration: underline #FFF 0.5rem;
        
    }

    .menu-button {
        display: none;
    }

    nav .nav_options {
        display: flex;
    }

    /*A R T I C U L O*/

    main {
        display: flex;
        padding: 3.2rem;
        padding-top: 0;
        margin-top: 2.4rem;
        justify-content: space-around;
    }

    .blog-section {
        width: 60%;
        margin: 0 auto;

    }

    .blog-section .blog-title {
        font-size: 3.5rem;
    }

    .blog-section p {
        font-size: 2rem;
    }

    .blog-section h2 {
        font-size: 3rem;
    }


    /*I N T E R E S A R*/

    .interesar-section {
        width: 20%;
        margin: 0;
        margin-left: 4rem;
        padding-top: 0;
    }


    /*F O O T E R*/

    .footer-width {
        display: flex;
        flex-direction: row;
    }

    .footer-bar {
        width: 50%;
    }

    .footer-correo {
        width: 50%;
        padding-left: 4.8rem;
        margin: 0 auto;
    }

    .footer-redes ul{
        align-self: center;
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .footer-redes li {
        padding-left: 3.2rem;
    }
}

/* Botón de Administración */
.admin-link {
    text-align: right;
    margin-top: 1rem;
}

.admin-button {
    display: inline-block;
    background: var(--rojo);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    transition: background 0.3s;
}

.admin-button:hover {
    background: #d42e32;
    color: white;
}

/* Responsive para el botón de admin */
@media (max-width: 768px) {
    .admin-link {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .admin-button {
        font-size: 1.2rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Estilos mejorados para el blog individual */
.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    padding-top: 8rem; /* Espacio para el header fijo */
}

.blog-title h1 {
    font-size: 5.2rem; /* Aumentado de 4.8rem para mantener jerarquía */
    color: #FFF;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.blog-date,
.blog-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #cccccc;
    font-size: 1.6rem;
    font-family: var(--cont-font);
}

.calendar-icon,
.author-icon {
    font-size: 1.8rem;
    opacity: 0.8;
}

.blog-content {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-intro {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 12px;
    border-left: 4px solid var(--rojo);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para el contenido principal del blog */
.blog-intro p {
    font-size: 1.8rem; /* Aumentado de 1.6rem */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-align: justify;
    text-indent: 2rem;
}

/* Estilos para los subtítulos del contenido principal del blog */
.blog-intro h2,
.blog-intro h3,
.blog-intro h4 {
    color: #FFF; /* Subtítulos del blog en blanco */
    font-size: 3.2rem; /* Tamaño más grande para mejor legibilidad */
    margin: 3rem 0 1.5rem 0;
    font-family: var(--title-font);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-left: 2rem;
}

.blog-intro h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 3.2rem;
    background: var(--rojo);
    border-radius: 4px;
}

.blog-intro h3 {
    font-size: 2.8rem; /* Tamaño más grande */
    margin: 2.5rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.blog-intro h3::before {
    width: 6px;
    height: 2.8rem;
}

.blog-intro h4 {
    font-size: 2.4rem; /* Tamaño más grande */
    margin: 2rem 0 1rem 0;
    padding-left: 1.2rem;
}

.blog-intro h4::before {
    width: 4px;
    height: 2.4rem;
}

.blog-intro ul,
.blog-intro ol {
    margin: 2rem 0;
    padding-left: 3rem;
}

.blog-intro li {
    font-size: 1.8rem;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 1rem;
}

.blog-intro blockquote {
    border-left: 4px solid var(--rojo);
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #ffffff;
    background: rgba(236, 51, 55, 0.15);
    padding: 2.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 2.2rem;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 4px 15px rgba(236, 51, 55, 0.2);
}

/* Separador visual mejorado */
.blog-divider {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rojo), transparent);
    margin: 5rem auto;
    border: none;
    outline: none;
    clear: both;
    float: none;
    position: relative;
    z-index: 1;
}

/* Estilos para las secciones relacionadas */
.interesar-title {
    text-align: center;
    margin: 4rem 0 3rem 0;
}

/* Estilos para los títulos de secciones relacionadas */
.interesar-title h2 {
    color: #FFF; /* Cambiado de rojo a blanco */
    font-size: 2.8rem; /* Aumentado de 2.4rem */
    margin-bottom: 1.5rem;
    font-family: var(--title-font);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.interesar-title p {
    color: rgba(255, 255, 255, 0.8); /* Mantenido en blanco semi-transparente */
    font-size: 1.6rem; /* Aumentado de 1.4rem */
    line-height: 1.4;
    text-align: center;
    margin-bottom: 2rem;
}

/* Grid de productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.producto-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 3rem;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-card .articulo-cont {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.producto-card:hover .articulo-cont {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--rojo);
    box-shadow: 0 8px 25px rgba(236, 51, 55, 0.2);
}

/* Grid de posts relacionados */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.post-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    margin-bottom: 3rem;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-card .articulo-cont {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover .articulo-cont {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--rojo);
    box-shadow: 0 8px 25px rgba(236, 51, 55, 0.2);
}

.post-card .articulo-title h3 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-family: var(--title-font);
    line-height: 1.3;
}

.post-card .articulo-desc p {
    font-size: 1.6rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-date {
    font-size: 1.4rem;
    color: #999999;
    font-family: var(--cont-font);
}

.read-more {
    font-size: 1.4rem;
    color: var(--rojo);
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-card:hover .read-more {
    color: #ffffff;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .blog-title h1 {
        font-size: 3.2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .blog-content {
        padding: 0 1rem;
    }
    
    .blog-intro {
        padding: 2rem;
    }
    
    .productos-grid,
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .interesar-title h2 {
        font-size: 2.8rem;
    }
}

/* Estilos para asegurar layout correcto del blog */
.blog-section {
    width: 100%;
    max-width: 100%;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    float: none;
}

.blog-content {
    width: 100%;
    max-width: 100%;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    float: none;
}

.blog-intro {
    width: 100%;
    max-width: 100%;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    float: none;
}

/* Asegurar que no haya divisiones en columnas no deseadas */
.interesar-section {
    width: 100%;
    max-width: 100%;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    float: none;
}

/* Forzar layout de una sola columna para todo el contenido principal */
main {
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Asegurar que las secciones no se dividan en columnas */
section {
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Estilos para eliminar scroll horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Asegurar que el contenido principal no cause scroll horizontal */
.blog-content {
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

.blog-intro {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ajustar el ancho de las secciones relacionadas */
.interesar-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.interesar-width {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 2rem;
}

/* Asegurar que las grids no excedan el ancho */
.productos-grid,
.posts-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
}

/* Responsive para móviles */
@media screen and (max-width: 768px) {
    .blog-content,
    .interesar-width {
        padding: 0 1rem;
    }
    
    .blog-intro {
        padding: 1.5rem;
    }
    
    .productos-grid,
    .posts-grid {
        gap: 1.5rem;
    }
}

/* Layout de dos columnas para el blog individual */
.blog-section {
    width: 100%;
    max-width: 100%;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    float: none;
}

.blog-content {
    width: 100%;
    max-width: 100%;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    float: none;
}

.blog-intro {
    width: 100%;
    max-width: 100%;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    float: none;
}

/* Layout principal de dos columnas */
main {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
    max-width: 140rem;
    margin: 0 auto;
    padding: 0 2rem;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
}

/* Columna izquierda - Post principal */
.blog-section {
    grid-column: 1;
    width: 100%;
    overflow: visible;
}

/* Columna derecha - Productos y posts relacionados */
.interesar-section {
    grid-column: 2;
    width: 100%;
    max-width: 100%;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    float: none;
    position: sticky;
    top: 12rem;
    height: fit-content;
    overflow: visible;
}

/* Ajustar el ancho de las secciones relacionadas */
.interesar-width {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow: visible;
}

/* Asegurar que las grids no excedan el ancho */
.productos-grid,
.posts-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow: visible;
}

/* Responsive para móviles - volver a una columna */
@media screen and (max-width: 1024px) {
    main {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0 1rem;
        display: block;
    }
    
    .blog-section,
    .interesar-section {
        grid-column: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .interesar-section {
        position: static;
        top: auto;
        margin-top: 3rem;
    }
    
    .blog-content,
    .interesar-width {
        padding: 0;
    }
    
    .blog-intro {
        padding: 2rem;
    }
    
    .productos-grid,
    .posts-grid {
        gap: 1.5rem;
    }
}

/* Responsive para tablets */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    main {
        grid-template-columns: 2.5fr 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }
}

/* Espaciado adicional para la columna derecha */
.interesar-section {
    grid-column: 2;
    width: 100%;
    max-width: 100%;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: normal !important;
    display: block;
    float: none;
    position: sticky;
    top: 12rem;
    height: fit-content;
}

/* Espaciado entre secciones en la columna derecha */
.interesar-title {
    text-align: center;
    margin: 4rem 0 3rem 0;
}

.interesar-title:first-child {
    margin-top: 0;
}

.interesar-title:not(:first-child) {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilos para los subtítulos de posts dinámicos */
.interesar-title h2 {
    color: var(--rojo); /* Mantenido en rojo como querías */
    font-size: 2.8rem; /* Mantenido el tamaño aumentado */
    margin-bottom: 1.5rem;
    font-family: var(--title-font);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.interesar-title p {
    color: rgba(255, 255, 255, 0.8); /* Mantenido en blanco semi-transparente */
    font-size: 1.6rem; /* Mantenido el tamaño aumentado */
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* Estilos para los subtítulos del contenido principal del blog */
.blog-intro h2,
.blog-intro h3,
.blog-intro h4 {
    color: #FFF; /* Subtítulos del blog en blanco */
    font-size: 3.2rem; /* Tamaño más grande para mejor legibilidad */
    margin: 3rem 0 1.5rem 0;
    font-family: var(--title-font);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-left: 2rem;
}

.blog-intro h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 3.2rem;
    background: var(--rojo);
    border-radius: 4px;
}

.blog-intro h3 {
    font-size: 2.8rem; /* Tamaño más grande */
    margin: 2.5rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.blog-intro h3::before {
    width: 6px;
    height: 2.8rem;
}

.blog-intro h4 {
    font-size: 2.4rem; /* Tamaño más grande */
    margin: 2rem 0 1rem 0;
    padding-left: 1.2rem;
}

.blog-intro h4::before {
    width: 4px;
    height: 2.4rem;
}

/* Estilos para evitar clipping de contenedores */
.producto-card .articulo-cont,
.post-card .articulo-cont {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    min-height: auto;
    height: auto;
}

.producto-card .articulo-cont {
    padding: 2rem;
}

.post-card .articulo-cont {
    padding: 2.5rem;
}

/* Asegurar que las imágenes no se recorten */
.articulo-img {
    width: 100%;
    overflow: visible;
}

.articulo-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Asegurar que el texto no se recorte */
.articulo-title p,
.articulo-title h3 {
    overflow: visible;
    word-wrap: break-word;
    hyphens: auto;
}

.articulo-desc p {
    overflow: visible;
    word-wrap: break-word;
    hyphens: auto;
}

/* Responsive específico para móviles */
@media screen and (max-width: 768px) {
    /* Asegurar que el main no tenga overflow */
    main {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    /* Ajustar el header del blog para móvil */
    .blog-header {
        padding-top: 10rem; /* Más espacio para el header fijo */
        margin-bottom: 3rem;
    }
    
    .blog-title h1 {
        font-size: 3.6rem; /* Título más pequeño en móvil */
        line-height: 1.1;
    }
    
    /* Asegurar que las secciones no se corten */
    .blog-section,
    .interesar-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0;
    }
    
    /* Asegurar que el contenido del blog no se corte */
    .blog-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0;
    }
    
    .blog-intro {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 1.5rem;
        margin: 0;
    }
    
    /* Asegurar que los contenedores de productos y posts no se corten */
    .producto-card .articulo-cont,
    .post-card .articulo-cont {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 1.5rem;
        margin-bottom: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }
    
    /* Asegurar que las grids no se corten */
    .productos-grid,
    .posts-grid {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0;
        gap: 1.5rem;
    }
    
    /* Asegurar que las imágenes no se corten */
    .articulo-img {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .articulo-img img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        max-height: 200px;
    }
    
    /* Asegurar que el texto no se corte */
    .articulo-title p,
    .articulo-title h3 {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        box-sizing: border-box;
    }
    
    .articulo-desc p {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        box-sizing: border-box;
    }
    
    /* Asegurar que la sección relacionada no se corte */
    .interesar-section {
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0;
    }
    
    .interesar-width {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0;
    }
    
    /* Asegurar que los títulos no se corten */
    .interesar-title {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0 1rem;
    }
    
    .interesar-title h2,
    .interesar-title p {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        box-sizing: border-box;
    }
}

/* Ajuste específico para dispositivos muy pequeños */
@media screen and (max-width: 480px) {
    .blog-header {
        padding-top: 12rem; /* Aún más espacio para dispositivos pequeños */
    }
    
    .blog-title h1 {
        font-size: 3.2rem; /* Título aún más pequeño */
    }
}