/* ==============================> 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; }
.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; }
.mpan-entrada-separador { display: flex; align-items: center; color: #3c3c3c; font-size: 12px; margin: 0; }

@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; }
.tdc-titulo { padding: 16px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; border-radius: 8px; background: #f3f3f3; color: #333; }
.tdc-lista { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.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); }
.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); }
.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); }
.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); }

@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 (Estilos de Descripción) */
.items-de-post .elementor-widget .elementor-icon-list-items.elementor-inline-items { justify-content: flex-end; }
.elementor-widget-theme-post-content :is(h2, h3) { padding: 8px 12px; border-radius: 8px; margin: 16px 0 8px 0; }
.elementor-widget-theme-post-content h2 { background: #dedede; font-size: 30px; }
.elementor-widget-theme-post-content h3 { background: #f2f2f2; font-size: 20px; }
.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: 8px; }
.elementor-widget-theme-post-content p:last-child { margin-bottom: 0; }
.elementor-widget-theme-post-content ul { margin-bottom: 8px; }
.elementor-widget-theme-post-content ul 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; }
.er-container { position: relative; display: flex; align-items: center; gap: 30px; }
.er-swiper { width: 100%; overflow: hidden; }
.er-swiper .swiper-wrapper { display: flex; align-items: stretch; }
.er-swiper .swiper-slide { height: auto; display: flex; }
.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; }

@media (max-width: 1024px) {
    .er-container { gap: 20px; }
    .er-nav { width: 44px; height: 44px; }
}
@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; }
}
