.containerFlexSharePostBlog{
                    display:flex;
                    justify-content:start;
                    gap:10px;
                }

                .containerTextShare p{
                    font-size:15px;
                    font-weight:400;
                    letter-spacing:1px;
                }

    /* ===== TUS ESTILOS EXISTENTES (NO MODIFICAR) ===== */
    .titlePosBlog {
        font-size: 45px;
        font-weight: 600;
        line-height: 1.1;
    }

    .resumenPostBlog {
        padding: 20px 0px;
    }

    .imgFullBlogPost {
        width: 100%;
        height: auto;
        display: block;
    }

    .imgFullBlogPost img {
        width: 100%;
    }

    .containerDescostBlog {
        padding: 20px 0px;
    }

    .containerDescostBlog ul li,
    .containerDescostBlog ol li {
        margin-left: 25px;
    }

    .containerDescostBlog ul li {
        list-style: disc;
    }

    .containerDescostBlog ol li {
        list-style: decimal;
    }

    .containerDescostBlog h2 {
        font-size: 35px;
        font-weight: 600;
        line-height: 1.1;
        padding-bottom: 10px;
    }

    .containerDescostBlog h3 {
        font-size: 30px;
        font-weight: 600;
        line-height: 1.1;
        padding-bottom: 10px;
    }

    .h3SubtitlePostBlog {
        font-size: 30px;
        font-weight: 600;
        line-height: 1.1;
        padding-bottom: 20px;
        padding-top: 20px;
    }

    .resultadosBioksin {
        position: relative;
        margin-bottom:50px;
    }

   /* ===== ANTES Y DESPUÉS - SLIDER ===== */
.before-after-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 800px;
    user-select: none;
    touch-action: none;
}

.before-after-container .ba-inner {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 por defecto, se ajustará con JS */
    overflow: hidden;
}

.before-after-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.before-after-container .after-image {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.05s ease;
}

.before-after-container .divider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
    transition: left 0.05s ease;
}

.before-after-container input[type="range"] {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 10;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.before-after-container input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
}

.before-after-container input[type="range"]::-moz-range-track {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
}

.before-after-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 50px;
    background-color: var(--color-black);
    cursor: pointer;
    margin-top: -25px;
    position: relative;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.before-after-container input[type="range"]::-webkit-slider-thumb::after {
    content: '⟷';
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
}

.before-after-container input[type="range"]::-moz-range-thumb {
    width: 50px;
    height: 50px;
    background: var(--color-black);
    cursor: pointer;
    border-radius: 8px;
}

.before-after-container input[type="range"]::-webkit-slider-thumb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 18l-6-6 6-6'/%3E%3Cpath d='M28 18l6-6-6-6'/%3E%3C/svg%3E");
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--color-black);
}

.before-after-container .labels {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
    pointer-events: none;
}

.before-after-container .labels .label-item {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-white);
    color: var(--color-black);
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    opacity:0.7;
}

.before-after-container .labels .label-item.label-before {
}

.before-after-container .labels .label-item.label-after {
}

    /* Categoría */
    .post-category {
        display: inline-block;
        margin: 15px 0px;
    }

    .post-category a {
        display: inline-block;
        padding: 6px 16px;
        background: var(--color-white);
        color: var(--color-black);
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
        border:1px solid var(--color-black);
        border-radius: 5px;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
    }

    .post-category a:hover {
       background: var(--color-black);
        color: var(--color-white);
    }

    /* Título de sección */
    .section-title {
        font-size: 28px;
        font-weight: 600;
        margin: 30px 0 15px 0;
        color: #000000;
    }

    /* Botones de compartir */
    .share-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin: 20px 0;
    }

    .share-buttons a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        text-decoration: none;
        font-weight: 500;
        font-size: 20px;
        border-radius:50%;
        color: var(--color-white);
        transition: all 0.3s ease;
        min-width: 40px;
        background: var(--color-black);
    }

    .share-buttons a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .share-buttons .facebook:hover{
        background-color:rgb(11, 67, 252);
    }

    .share-buttons .twitter:hover{
        background-color:rgb(0, 2, 7);
    }

    .share-buttons .linkedin:hover{
        background-color:#0072B1;
    }

     .share-buttons .whatsapp:hover{
        background-color:#25D366;
    }

    /* Botón final */
    .final-button-wrapper {
        display: flex;
        justify-content: start;
        margin: 30px 0;
    }

    .final-button {
        border: none;
        cursor: pointer;
        text-align: center;
        background: var(--color-primary);
        color: var(--color-white);
        padding: 10px 40px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 400;
        text-decoration: none;
        transition: background 0.2s;
    }

    .final-button:hover {
        background: var(--color-primary-hover);
    }

 /* Artículos relacionados */
.related-posts h3{
    text-align:center;
    font-weight:400;
    font-size:35px;
    color:var(--color-black)
}

.related-posts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.related-post-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: block;
    flex: 1 1 calc(50% - 20px); /* Ocupa 50% menos el gap */
    max-width: calc(50% - 20px);
    min-width: 200px; /* Ancho mínimo para que no se vean muy pequeños */
}

/* Cuando solo hay un item */
.related-posts-grid:has(.related-post-item:only-child) {
    justify-content: center;
}

.related-posts-grid:has(.related-post-item:only-child) .related-post-item {
    flex: 0 1 auto; /* No crece, solo se ajusta al contenido */
    max-width: 400px; /* Ancho máximo para el item único */
    width: 100%;
}

.related-post-item:hover {
    transform: translateY(-4px);
}

.related-post-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.related-post-item h4 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-black);
}

.related-post-item:hover h4 {
    text-decoration: underline;
}

/* Responsive */
@media(max-width: 768px) {
    .related-post-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
        min-width: 150px;
    }

    .related-posts-grid:has(.related-post-item:only-child) .related-post-item {
        max-width: 300px;
    }
}

@media(max-width: 480px) {
    .related-post-item {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: unset;
    }

    .related-posts-grid:has(.related-post-item:only-child) .related-post-item {
        max-width: 100%;
    }
}


    /* Bloques especiales */
    .special-block {
        display: flex;
        gap: 30px;
        align-items: center;
        margin: 30px 0;
        flex-direction: column;
    }

    .special-block-image {
        flex: 0 0 200px;
    }

    .special-block-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        max-width:300px;
    }

    .special-button {
        width: 100%;
        border: none;
        cursor: pointer;
        display: block;
        text-align: center;
        background: var(--color-primary);
        color: var(--color-white);
        padding: 10px 40px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 400;
        text-decoration: none;
        transition: background 0.2s;
    }

    .special-button:hover {
        background: var(--color-primary-hover);
    }

    /* Responsive */
    @media(max-width:999px) {
        .titlePosBlog {
            font-size: 40px;
        }
        .containerDescostBlog h2 {
            font-size: 30px;
        }
        .containerDescostBlog h3,
        .h3SubtitlePostBlog {
            font-size: 25px;
        }
        .special-block {
            flex-direction: column;
            text-align: center;
        }
        .special-block-image {
            flex: 0 0 auto;
            width: 100%;
            max-width: 300px;
        }
        .share-buttons {
            justify-content: center;
        }

    }

    @media(max-width:468px) {
        .titlePosBlog {
            font-size: 35px;
        }
        .containerDescostBlog h2 {
            font-size: 25px;
        }
        .containerDescostBlog h3,
        .h3SubtitlePostBlog {
            font-size: 20px;
        }
        .final-button {
            padding: 12px 25px;
            font-size: 14px;
        }
        .related-posts-grid {
            grid-template-columns: 1fr;
            gap:40px;
        }
    }












    /* ===== ENCABEZADO DE CATEGORÍA ===== */
    .category-header {
        margin: 40px 0 60px 0;
        text-align: center;
    }

    .category-title {
        font-size: 45px;
        font-weight: 600;
        line-height: 1.1;
        color: var(--color-black);
        margin-bottom: 15px;
    }

    .category-description {
        font-size: 18px;
        color: var(--color-black);
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* ===== GRID DE POSTS - 2 COLUMNAS ===== */
    .category-posts-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin: 30px 0;
    }

    .category-post-item {
        text-decoration: none;
        color: inherit;
        display: block;
        background: var(--color-white);
        overflow: hidden;
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    /* Hover en toda la tarjeta */
    .category-post-item:hover {
        transform: translateY(-4px);
    }

    /* ===== IMAGEN - SIN LÍMITE DE ALTO ===== */
    .category-post-image {
        width: 100%;
        overflow: hidden;
    }

    .category-post-image img {
        width: 100%;
        height: auto; /* Alto libre, solo controla el ancho */
        display: block;
        transition: transform 0.4s ease;
    }

    .category-post-item:hover .category-post-image img {
        transform: scale(1.03);
    }

    /* ===== CONTENIDO ===== */
    .category-post-content {
        padding: 20px 0px;
    }

    .category-post-title {
        font-size: 22px;
        font-weight: 600;
        line-height: 1.3;
        margin: 0 0 12px 0;
        color: var(--color-black);
        transition: color 0.3s ease;
    }

    /* Cambia el color del título en hover */
    .category-post-item:hover .category-post-title {
       text-decoration: underline;
    }

    .category-post-excerpt {
        font-size: 15px;
        line-height: 1.6;
        margin: 0 0 16px 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.3s ease;
    }

    /* Cambia el color del resumen en hover */
    .category-post-item:hover .category-post-excerpt {
        color: #444;
    }

    .category-post-readmore {
        display: inline-block;
        font-size: 15px;
        font-weight: 500;
        color: var(--color-black);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    /* Cambia el color del "Leer más" a primary en hover */
    .category-post-item:hover .category-post-readmore {
        color: var(--color-primary);
    }

    /* ===== PAGINACIÓN ===== */
    .category-pagination {
        margin: 40px 0 60px 0;
        display: flex;
        justify-content: center;
    }

    .category-pagination .pagination {
        display: flex;
        gap: 8px;
        list-style: none;
        padding: 0;
    }

    .category-pagination .pagination li {
        display: inline-block;
    }

    .category-pagination .pagination li a,
    .category-pagination .pagination li span {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        border-radius: 8px;
        background: var(--color-white);
        color: var(--color-black);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        border: 1px solid #e0e0e0;
        transition: all 0.3s ease;
    }

    .category-pagination .pagination li a:hover {
        background: var(--color-black);
        color: var(--color-white);
        border-color: var(--color-black);
    }

    .category-pagination .pagination li.active span {
        background: var(--color-primary);
        color: var(--color-white);
        border-color: var(--color-primary);
    }

    .category-pagination .pagination li.disabled span {
        opacity: 0.5;
        cursor: not-allowed;
    }

@media(max-width: 992px) { /* ← AÑADIDO BREAKPOINT PARA TABLET */
    .category-posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
        gap: 25px;
    }
}

    /* ===== RESPONSIVE ===== */
    @media(max-width: 768px) {
        .category-title {
            font-size: 35px;
        }

        .category-description {
            font-size: 16px;
            padding: 0 20px;
        }

        /* Cambia a 1 columna en tablet */
        .category-posts-grid {
            grid-template-columns: 1fr;
            gap: 25px;
        }

        .category-post-title {
            font-size: 20px;
        }

        .category-post-content {
            padding: 16px 20px 20px 20px;
        }
    }

    @media(max-width: 480px) {
        .category-title {
            font-size: 28px;
        }

        .category-posts-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .category-post-title {
            font-size: 18px;
        }

        .category-post-excerpt {
            font-size: 14px;
            -webkit-line-clamp: 2;
        }

        .category-pagination .pagination li a,
        .category-pagination .pagination li span {
            min-width: 35px;
            height: 35px;
            font-size: 13px;
            padding: 0 10px;
        }
    }
