/* ==============================> "META CATEGORÍAS DE ENTRADAS" */

.bmcc-bloque {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    opacity: 0;
    transform: translateY(16px);
    animation: bmcc-entrada 0.5s ease forwards;
    -webkit-animation: bmcc-entrada 0.5s ease forwards;
}

@keyframes bmcc-entrada {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes bmcc-entrada {
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

/* -> TÍTULO */

.bmcc-bloque .bmcc-titulo {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    line-height: 46px;
    color: #fff;
    transition: color 0.3s ease !important;
    -webkit-transition: color 0.3s ease !important;
}

/* -> SUBTÍTULO */

.bmcc-bloque .bmcc-subtitulo {
    margin: 0;
    font-size: 20px;
    line-height: 26px;
    color: #fff;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
}

.bmcc-bloque:hover .bmcc-subtitulo {
    opacity: 1;
}

/* -> BOTÓN */

.bmcc-bloque .bmcc-boton {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 24px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #fff;
    background-color: var(--e-global-color-primary);
    border-radius: 4px;
    border: 2px solid var(--e-global-color-primary);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    -webkit-transition: background-color 0.3s ease, color 0.3s ease, -webkit-transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.bmcc-bloque .bmcc-boton:hover {
    background-color: transparent;
    color: var(--e-global-color-primary);
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
}

.bmcc-bloque .bmcc-boton:active {
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

/* -> RESPONSIVE TABLETS */

@media (max-width: 1024px) {
    .bmcc-bloque {
        padding: 24px;
    }

    .bmcc-bloque .bmcc-titulo {
        font-size: 24px;
    }
}

/* -> RESPONSIVE MÓVIL */

@media (max-width: 768px) {
    .bmcc-bloque {
        padding: 20px 16px;
        gap: 10px;
    }

    .bmcc-bloque .bmcc-titulo {
        font-size: 20px;
    }

    .bmcc-bloque .bmcc-subtitulo {
        font-size: 14px;
    }

    .bmcc-bloque .bmcc-boton {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
}

/* ==============================> "TARJETA DE ENTRADA" */

.blog-tarjeta {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.blog-tarjeta:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
    transform: translateY(-4px);
}

/* -> Enlace completo que cubre toda la tarjeta */
.blog-tarjeta__enlace {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* -> Imagen */
.blog-tarjeta__imagen-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-tarjeta__imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.blog-tarjeta:hover .blog-tarjeta__imagen {
    transform: scale(1.05);
}

.blog-tarjeta__imagen--vacia {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

/* -> Contenido */
.blog-tarjeta__contenido {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* -> Categoría */
.blog-tarjeta__categoria {
    font-size: 14px;
    font-weight: 500;
    color: var(--e-global-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
    transition: opacity 0.2s ease;
}

.blog-tarjeta:hover .blog-tarjeta__categoria {
    opacity: 0.8;
}

/* -> Título */
.blog-tarjeta__titulo {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    color: #1a1a1a;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tarjeta:hover .blog-tarjeta__titulo {
    color: var(--e-global-color-primary);
}

/* -> Fecha */
.blog-tarjeta__fecha {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
    line-height: 1.2;
}


/* ==============================> "BLOG ARCHIVO" */

/* -> Encabezado de contexto */
.blog-archivo__encabezado {
    margin-bottom: 36px;
}

.blog-archivo__encabezado-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.2;
}

.blog-archivo__encabezado-subtitulo {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

/* -> Grid principal */
.blog-archivo__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    transition: opacity 0.25s ease;
}

.blog-archivo__grid--cargando {
    opacity: 0.4;
    pointer-events: none;
}

/* -> Animación de entrada de tarjetas */
.blog-archivo__grid .blog-tarjeta {
    animation: blogTarjetaEntrada 0.35s ease both;
}

.blog-archivo__grid .blog-tarjeta:nth-child(1) {
    animation-delay: 0.00s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(2) {
    animation-delay: 0.04s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(3) {
    animation-delay: 0.08s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(4) {
    animation-delay: 0.12s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(5) {
    animation-delay: 0.16s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(6) {
    animation-delay: 0.20s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(7) {
    animation-delay: 0.24s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(8) {
    animation-delay: 0.28s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(9) {
    animation-delay: 0.32s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(10) {
    animation-delay: 0.36s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(11) {
    animation-delay: 0.40s;
}

.blog-archivo__grid .blog-tarjeta:nth-child(12) {
    animation-delay: 0.44s;
}

@keyframes blogTarjetaEntrada {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -> Sin resultados */
.blog-archivo__vacio {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 15px;
    padding: 40px 0;
}

/* -> Paginación */
.blog-archivo__paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.blog-paginacion__btn {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--e-global-color-primary);
    background: transparent;
    color: var(--e-global-color-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    -webkit-appearance: none;
}

.blog-paginacion__btn:hover:not(:disabled) {
    background: var(--e-global-color-primary);
    color: #fff;
}

.blog-paginacion__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.blog-paginacion__info {
    font-size: 14px;
    color: #666;
}


/* ==============================> "CARRUSEL DE BLOG" */

.blog-carrusel {
    position: relative;
    overflow: hidden;
}

.blog-carrusel .swiper-wrapper {
    align-items: stretch;
}

.blog-carrusel .swiper-slide {
    height: auto;
}

.blog-carrusel .blog-tarjeta {
    height: 100%;
}

/* -> Navegación */
.blog-carrusel .blog-carrusel__prev,
.blog-carrusel .blog-carrusel__next {
    color: var(--e-global-color-primary);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.blog-carrusel .blog-carrusel__prev::after,
.blog-carrusel .blog-carrusel__next::after {
    font-size: 18px;
}

.blog-carrusel .blog-carrusel__prev:hover,
.blog-carrusel .blog-carrusel__next:hover {
    opacity: 0.75;
    transform: scale(1.1);
}

.blog-carrusel .swiper-button-disabled {
    opacity: 0.25;
    pointer-events: none;
}


/* ==============================> MIGAS DE PAN DE ENTRADA */

.mpan-entrada-wrapper {
    width: 100%;
}

.mpan-entrada-lista {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* -> ITEMS */

.mpan-entrada-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #999;
    margin: 0;
}

.mpan-entrada-enlace {
    color: #999;
    text-decoration: none;
    transition: color 0.25s ease;
}

.mpan-entrada-enlace:hover {
    color: var(--e-global-color-text);
}

.mpan-entrada-actual {
    color: var(--e-global-color-text);
    font-weight: 600;
}

/* -> SEPARADOR */

.mpan-entrada-separador {
    display: flex;
    align-items: center;
    color: #3c3c3c;
    font-size: 12px;
    margin: 0;
}

/* -> RESPONSIVE MOBILE */

@media (max-width: 768px) {

    .mpan-entrada-item,
    .mpan-entrada-enlace {
        font-size: 13px;
    }
}


/* ==============================> TABLA DE CONTENIDOS */

.tdc-wrapper {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* -> TITULO */

.tdc-titulo {
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 8px;
    background: #f3f3f3;
    color: #333;
}

/* -> LISTA PRINCIPAL */

.tdc-lista {
    list-style: none;
    margin: 0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* -> ITEM H2 */

.tdc-item.tdc-h2 {
    border-radius: 4px;
    overflow: hidden;
}

.tdc-item.tdc-h2>.tdc-enlace {
    display: block;
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 600 !important;
    color: #3E3E3E;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.25s ease, background 0.25s ease;
}

.tdc-item.tdc-h2>.tdc-enlace:hover {
    color: var(--e-global-color-primary);
    background: rgba(0, 0, 0, 0.04);
}

/* -> DESPLEGABLE */

.tdc-btn-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.25s ease;
    gap: 10px;
}

.tdc-btn-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.tdc-btn-toggle .tdc-enlace {
    flex: 1;
    text-align: left;
    font-size: 15px;
    text-transform: math-auto;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.tdc-btn-toggle:hover .tdc-enlace {
    color: var(--e-global-color-primary);
}

/* -> ICONO TOGGLE */

.tdc-icono-toggle {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    opacity: 0.5;
    margin-right: 4px;
}

.tdc-desplegable.tdc-abierto .tdc-icono-toggle {
    transform: rotate(-135deg);
}

/* -> SUBLISTA H3 */

.tdc-sublista {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.tdc-sublista:last-child {
    margin-bottom: 0;
}

.tdc-item.tdc-h3 .tdc-enlace {
    display: block;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.25s ease, background 0.25s ease;
}

.tdc-item.tdc-h3 .tdc-enlace:hover {
    color: var(--e-global-color-primary);
    background: rgba(0, 0, 0, 0.04);
}

/* -> RESPONSIVE MOBILE */

@media (max-width: 768px) {
    .tdc-wrapper {
        padding: 18px 20px;
    }

    .tdc-btn-toggle .tdc-enlace,
    .tdc-item.tdc-h2>.tdc-enlace {
        font-size: 14px;
    }

    .tdc-item.tdc-h3 .tdc-enlace {
        font-size: 13px;
    }
}

/* ==============================> CONTENIDO DE ENTRADA */

.items-de-post .elementor-widget .elementor-icon-list-items.elementor-inline-items {
    justify-content: flex-end;
}

.elementor-widget-theme-post-content :is(h2) {
    padding: 8px 12px;
    border-radius: 8px;
    margin: 16px 0 8px 0;
}

.elementor-widget-theme-post-content h2 {
    background: #dedede;
    font-size: 30px !important;
    margin-top: 64px;
    margin-bottom: 20px;
}

.elementor-widget-theme-post-content h3 {
    font-size: 20px !important;
    margin-top: 40px;
    margin-bottom: 5px;
}

.elementor-widget-theme-post-content a {
    font-weight: 600;
}

.elementor-widget-theme-post-content a:hover {
    color: var(--e-global-color-primary);
}

.elementor-widget-theme-post-content p {
    line-height: 24px;
    margin-bottom: 10px;
    text-align: justify;
}

.elementor-widget-theme-post-content p:last-child {
    margin-bottom: 16px !important;
}

.elementor-widget-theme-post-content :is(ul, ol) {
    margin-bottom: 16px;
}

.elementor-widget-theme-post-content :is(ul, ol) li {
    margin-bottom: 0;
}


/* ==============================> "ENTRADAS RELACIONADAS" */

.blog-relacionados {
    position: relative;
    overflow: hidden;
}

.blog-relacionados .swiper-wrapper {
    align-items: stretch;
}

.blog-relacionados .swiper-slide {
    height: auto;
}

.blog-relacionados .blog-tarjeta {
    height: 100%;
}

/* -> Navegación */
.blog-relacionados .blog-relacionados__prev,
.blog-relacionados .blog-relacionados__next {
    color: var(--e-global-color-primary);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.blog-relacionados .blog-relacionados__prev::after,
.blog-relacionados .blog-relacionados__next::after {
    font-size: 18px;
}

.blog-relacionados .blog-relacionados__prev:hover,
.blog-relacionados .blog-relacionados__next:hover {
    opacity: 0.75;
    transform: scale(1.1);
}

.blog-relacionados .swiper-button-disabled {
    opacity: 0.25;
    pointer-events: none;
}


/* "RESPONSIVE" */

/* -> Tablets pequeñas (max 768px) */
@media (max-width: 768px) {
    .blog-archivo__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .blog-archivo__encabezado-titulo {
        font-size: 24px;
    }

    .blog-tarjeta__titulo {
        font-size: 17px;
    }

    .blog-archivo__paginacion {
        gap: 10px;
    }

    .blog-paginacion__btn {
        padding: 9px 16px;
        font-size: 13px;
    }
}