 
/* --- CONFIGURACIÓN DE RESPALDO Y ANCHOS --- */
 @media (min-width: 1200px) {
    .blog-desktop-restricted {
        max-width: 1140px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.owl-carousel-blog .owl-dot {
    width: 20px;
    height: 20px;
    border: 0px solid !important;
    background: #b7b7b6;
    border-radius: 50px !important;
    margin: 0 10px;
}

.owl-carousel-blog .owl-dots {
    text-align: center !important;
    margin-top: 15px !important;
}

.owl-carousel-blog .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    margin: 5px !important;
    background: #babab9 !important;
    display: inline-block !important;
    border-radius: 50% !important;
}


.owl-carousel-blog .owl-dot.active span {
    background: black !important; /* Color rosado de tu marca para el punto activo */
}

.owl-carousel-blog .card-blog-custom {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    width: 100% !important;
}

.owl-carousel-blog .blog-image-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
}

.owl-carousel-blog .blog-square-box {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding-top: 100% !important;
    overflow: hidden !important;
}

.owl-carousel-blog .blog-img-fluid {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.owl-carousel-blog .blog-badge-pink {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background-color: #d65a8a !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 8px 16px !important;
    z-index: 5 !important;
}

.owl-carousel-blog .blog-content-box {
    padding: 15px 0px 5px 0px !important;
    text-align: left !important;
}

.owl-carousel-blog .blog-author-text {
    color: #c49a45 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-bottom: 6px !important;
}

.owl-carousel-blog .blog-title-text {
    color: #111111 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    /* El truco del -webkit-box ya limita a DOS líneas nativamente sin romper la altura */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    /* Usamos max-height flexible en lugar de height estricto */
    max-height: 2.8rem !important;
}

.owl-carousel-blog .blog-link-btn {
    color: #111111 !important;
    font-size: 0.7rem !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding-top: 6px !important;
    border-top: 1px solid #e5e5e5 !important;
    display: block !important;
    text-align: center !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-decoration: none !important;
    margin-top: 20px;
    line-height: initial;
}

.owl-carousel-blog .owl-item {
    padding-left: 10px !important;
    padding-right: 10px !important;
}
/* ==========================================================================
   URBAN EDITORIAL BLOG WALL (CON BORDES DIVISORIOS DE 2PX)
   ========================================================================== */

.editorial-blog__main-title {
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: #e25c8a;
    font-family: inherit;
    padding: 20px 0;
}

/* Bloque contenedor de la tarjeta con borde blanco de 2px */
.blog-brick {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #111111;
    /* Líneas blancas divisoras exactas del diseño */
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

/* Caja contenedora con Relación de Aspecto Cuadrada Perfecta (1:1) */
.blog-brick__wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

/* Imagen estirada cubriendo todo el cuadrante */
.blog-brick__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Efecto Zoom sutil al hacer hover en el bloque */
.blog-brick:hover .blog-brick__img {
    transform: scale(1.05);
}

/* Gradiente Negro Inferior para legibilidad de textos blancos */
.blog-brick__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Contenedor interno absoluto para textos y badges */
.blog-brick__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

/* Badge Superior Rectangular */
.blog-brick__badge {
    background-color: #e25c8a;
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    display: inline-block;
    border-radius: 0px;
}

/* Título Blanco Integrado en la Foto */
.blog-brick__title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}












/* ==========================================================================
   BOTÓN INTERACTIVO DE RETORNO (MÓVILES)
   ========================================================================== */
.btn-back-articles {
    background: transparent;
    border: none;
    color: #111111;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-back-articles:hover {
    color: #e25c8a;
}

/* Círculo contenedor del icono flecha de la imagen de referencia */
.btn-back-articles__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    font-size: 0.75rem;
    color: #444444;
    transition: all 0.3s ease;
}

.btn-back-articles:hover .btn-back-articles__icon {
    border-color: #e25c8a;
    color: #e25c8a;
    transform: translateX(-2px);
}
/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 991.98px) {
    .blog-brick__title {
        font-size: 0.88rem;
    }

    .main-content__hero-text h1 {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .main-content__hero-text h1 {
        font-size: 1.0rem;
    }

    .editorial-blog__main-title {
        font-size: 1.8rem;
    }

    .blog-brick__content {
        padding: 12px;
    }

    .blog-brick__badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .blog-brick__title {
        font-size: 0.8rem;
        line-height: 1.25;
    }
}


/* --- RESTO DE TUS ESTILOS BASE BEM --- */
.main-content__hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}
.main-content__hero-img {
    width: 100%;
    height: auto;
    display: block;
}
.main-content__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
}
.main-content__hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
}
.main-content__hero-text h1 {
    color: #ffffff;
    font-size: 1.8rem;
    letter-spacing: 1px;
    line-height: 1.3;
}
.main-content__body p {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.main-content__subtitle {
    font-size: 1.25rem;
    color: #e25c8a;
    letter-spacing: 1px;
}
.main-content__image-box {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}
.main-content__quote {
    background-color: #fcfbf9;
    border-left: 3px solid #e25c8a;
}
/* ==========================================================================
   BARRA LATERAL / SIDEBAR BRICKS (ESTILO EDITORIAL URBANO)
   ========================================================================== */

.sidebar-brick {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Borde blanco separador idéntico a tu primera imagen de referencia */
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

/* Forzar relación de aspecto cuadrada perfecta 1:1 */
.sidebar-brick__img-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #111111;
}

.sidebar-brick__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.5s ease;
}

/* Efecto hover opcional para darle dinamismo al pasar el mouse */
.sidebar-brick:hover .sidebar-brick__img {
    transform: scale(1.05);
}

/* Capa de contenido y gradiente oscuro inferior */
.sidebar-brick__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px; /* Espaciado interno elegante */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
    /* El truco mágico: Flexbox distribuye el badge arriba y el texto abajo */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

/* El Badge rosa rectangular y pequeño */
.sidebar-brick__badge {
    position: relative;
    background-color: #e25c8a; /* Tu color rosa de marca */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    display: inline-block;
    border-radius: 0px; /* Rectangular exacto */
    text-transform: uppercase;
}

/* Texto blanco integrado sobre la imagen */
.sidebar-brick__text {
    position: relative;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* Limitar a DOS líneas nativamente */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   BOTÓN INTERACTIVO DE RETORNO (MÓVILES - ESTILO REFERENCIA)
   ========================================================================== */
.btn-back-articles {
    background: transparent;
    border: none;
    color: #444444;
    padding: 0;
    cursor: pointer;
    outline: none !important;
    transition: color 0.3s ease;
}

    .btn-back-articles span {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

/* Círculo contenedor del icono de flecha */
.btn-back-articles__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    font-size: 0.75rem;
    color: #555555;
    transition: all 0.3s ease;
}

/* Efecto interactivo al pasar el mouse o presionar */
.btn-back-articles:hover .btn-back-articles__icon,
.btn-back-articles:focus .btn-back-articles__icon {
    border-color: #e25c8a;
    color: #e25c8a;
    transform: translateX(-3px);
}

/* ==========================================================================
   BOTÓN INTERACTIVO DE RETORNO (MÓVILES - CON FUENTE DE ICONOS PROPIA)
   ========================================================================== */
.btn-back-articles {
    background: transparent;
    border: none;
    color: #444444;
    padding: 0;
    cursor: pointer;
    outline: none !important;
    transition: color 0.3s ease;
}

    .btn-back-articles span {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

/* Círculo contenedor adaptado para fuentes de iconos personalizadas */
.btn-back-articles__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    color: #555555;
    transition: all 0.3s ease;
}

    /* Evitar que estilos heredados rompan el centrado del icono */
    .btn-back-articles__icon i {
        display: block;
        line-height: 1;
    }

/* Efectos hover/focus en móviles */
.btn-back-articles:hover .btn-back-articles__icon,
.btn-back-articles:focus .btn-back-articles__icon {
    border-color: #e25c8a;
    color: #e25c8a;
    transform: translateX(-3px);
}


/* 1. Por si el HTML viene como <pre class="ql-syntax"> (Tu caso actual) */
.ql-editor pre.ql-syntax {
    background-color: #fcf9f9 !important; /* Fondo claro/rosado sutil */
    border-left: 4px solid #e91e63 !important; /* Borde fucsia/rosa */
    color: #333333 !important; /* Color de texto oscuro para lectura */
    font-family: 'Sans Serif', Arial, sans-serif !important; /* Quita la fuente de código */
    font-size: 1.1rem !important;
    white-space: pre-wrap; /* Mantiene los saltos de línea pero ajusta el texto */
    padding: 15px 20px !important;
    margin: 20px 0 !important;
}

/* 2. Por si el usuario usa correctamente el botón de comillas (” -> <blockquote>) */
.ql-editor blockquote {
    background-color: #fcf9f9;
    border-left: 4px solid #e91e63;
    color: #333333;
    font-family: 'Sans Serif', Arial, sans-serif;
    font-size: 1.1rem;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: normal; /* Quita la cursiva por defecto si el cliente no la quiere */
}

/* Cambia el color de todos los H2 dentro del contenido del editor */
.ql-editor h2 {
    color: #e91e63 !important;
    font-weight: 600; /* Opcional: para darle un poco más de peso al título */
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
/* ==========================================================================
   COMPORTAMENTO DE COMPORTAMIENTO STICKY / OFFCANVAS
   ========================================================================== */

/* En computadoras se mantiene fijo y hereda el flujo normal de grillas */
@media (min-width: 768px) {
    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 30px;
        height: fit-content;
        max-width: 280px;
        margin-left: auto;
    }
}

/* Estilos internos para cuando se despliega como Offcanvas en móviles */
@media (max-width: 767.98px) {
    .offcanvas-md {
        max-width: 300px; /* Ancho cómodo del panel lateral en celulares */
        background-color: #ffffff;
        padding: 15px;
    }

    .sidebar-brick__text {
        font-size: 0.85rem; /* Ajuste sutil de lectura para pantallas táctiles */
    }

    .main-content__hero-text h1 {
        font-size: 1.0rem;
    }

    .main-content__subtitle {
        font-size: 1.0rem;
    }
}
/* ==========================================================================
   COMPORTAMIENTO STICKY / COLLAPSE RESPONSIVE (BOOTSTRAP 4)
   ========================================================================== */

/* --- COMPORTAMIENTO EN ESCRITORIO Y DISPOSITIVOS MEDIANOS (>= 768px) --- */
@media (min-width: 768px) {
    .sidebar-sticky.collapse {
        display: block !important; /* Fuerza a mantener visible el contenido en PC */
        height: auto !important;
        position: -webkit-sticky;
        position: sticky;
        top: 30px;
        height: fit-content;
        max-width: 280px;
        margin-left: auto;
        z-index: 10;
    }
}

/* --- COMPORTAMIENTO EN MÓVILES (< 768px) --- */
@media (max-width: 767.98px) {
    .sidebar-sticky {
        width: 100%;
        /* Espaciado sutil para que no se pegue al botón al desplegarse */
        padding-top: 10px;
    }

    /* Opcional: Ajuste del tamaño de texto de los títulos para pantallas pequeñas */
    .sidebar-brick__text {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   COMPORTAMIENTO STICKY / COLLAPSE RESPONSIVE (BOOTSTRAP 4)
   ========================================================================== */
@media (min-width: 768px) {
    .sidebar-sticky.collapse {
        display: block !important;
        height: auto !important;
        position: -webkit-sticky;
        position: sticky;
        top: 30px;
        height: fit-content;
        max-width: 280px;
        margin-left: auto;
        z-index: 10;
    }
}

@media (max-width: 767.98px) {
    .sidebar-sticky {
        width: 100%;
        padding-top: 10px;
    }
}