/* ==============================> ENCABEZADO DE ENTRADA */

.encabezado-entrada {
    animation: encabezado-entrada-fade-in 0.8s ease-out;
}

/* -> Titulo */

.encabezado-entrada__titulo {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
    transition: color 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.5px;
}

.encabezado-entrada__titulo:hover {
    transform: translateX(5px);
}

/* -> Descripcion */

.encabezado-entrada__descripcion {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.95;
}

.encabezado-entrada__descripcion:hover {
    opacity: 1;
}

/* -> Animaciones */

@keyframes encabezado-entrada-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -> Responsive Móvil */

@media ( max-width: 768px ) {
    .encabezado-entrada {
        padding: 30px 20px;
        border-radius: 6px;
    }

    .encabezado-entrada__titulo {
        font-size: 24px;
        margin-bottom: 12px;
        letter-spacing: 0.3px;
    }

    .encabezado-entrada__descripcion {
        font-size: 14px;
        line-height: 1.5;
    }

    .encabezado-entrada__titulo:hover {
        transform: translateX(3px);
    }
}

/* -> Compatibilidad iOS */

@supports (-webkit-appearance: none) {
    .encabezado-entrada__titulo,
    .encabezado-entrada__descripcion {
        -webkit-font-smoothing: antialiased;
        -webkit-backface-visibility: hidden;
    }

    .encabezado-entrada__titulo:hover,
    .encabezado-entrada__descripcion:hover {
        -webkit-transform: translateZ(0);
    }
}

/* ==============================> WHATSAPP */

.blog-whatsapp-blanco {
    display: inline-flex;
    padding: 12px 32px;
    border-radius: 8px;
    background: var(--e-global-color-primary);
    color: #fff;
    transition: .4s all ease;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

.blog-whatsapp-blanco i {
    font-size: 24px;
}

.blog-whatsapp-blanco:hover {
    background: #25d366;
    color: #fff;
}


/* ==============================> 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;
    }
}

/* ==============================> ITEMS POST */

.items-de-post .elementor-icon-list-items.elementor-inline-items {
 	justify-content: flex-end;
}

/* ==============================> 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: 16px;
    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 */

.er-wrapper {
    position: relative;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #dedede;
}

.er-wrapper .titulo-relacionados {
    font-size: 20px;
    font-weight: 600;
}

/* -> CONTAINER */

.er-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* -> SWIPER */

.er-swiper {
    width: 100%;
    overflow: hidden;
}

.er-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.er-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* -> NAVEGACION */

.er-nav {
    position: absolute;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--e-global-color-secondary);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.er-nav.er-prev {
    left: -64px;
}

.er-nav.er-next {
    right: -64px;
}

.er-wrapper:hover .er-nav:not(.swiper-button-disabled) {
    opacity: 1;
    pointer-events: auto;
}

.er-nav:hover {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    color: #fff;
    transform: scale(1.05);
}

.er-nav:active {
    transform: scale(0.95);
}

.er-nav.swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* -> ITEM */

.er-item {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.er-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.er-enlace {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* -> IMAGEN */

.er-imagen {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.er-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.er-item:hover .er-imagen img {
    transform: scale(1.05);
}

/* -> CONTENIDO */

.er-contenido {
    padding: 0 14px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.er-categoria {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--e-global-color-text);
    margin-bottom: 8px;
    transition: color 0.25s ease;
}

.er-item:hover .er-categoria {
    color: var(--e-global-color-primary);
}

.er-titulo {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px 0;
    transition: color 0.25s ease;
}

.er-item:hover .er-titulo {
    color: var(--e-global-color-primary);
}

.er-fecha {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #999;
    margin-top: auto;
}

/* -> RESPONSIVE TABLET */

@media (max-width: 1024px) {
    .er-container {
        gap: 20px;
    }

    .er-nav {
        width: 44px;
        height: 44px;
    }

    .er-imagen {
        height: 160px;
    }

    .er-titulo {
        font-size: 16px;
    }
}

/* -> RESPONSIVE MOBILE */

@media (max-width: 768px) {
    .er-container {
        gap: 15px;
    }

    .er-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .er-nav.er-prev {
        left: -48px;
    }

    .er-nav.er-next {
        right: -48px;
    }

    .er-imagen {
        height: 180px;
    }

    .er-titulo {
        font-size: 15px;
    }

    .er-categoria,
    .er-fecha {
        font-size: 12px;
    }
}