/* Franja de datos en vivo — portada */
.td-home-pulse {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.td-home-pulse__fest {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.35;
    color: #92400e;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

.td-home-pulse__fest .bi {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #d97706;
}

.td-home-pulse__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

@media (min-width: 900px) {
    .td-home-pulse__row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
}

.td-home-pulse__chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    padding: 8px 9px;
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    background: var(--td-surface, #f8fafc);
    border: 1px solid var(--td-line, #cbd5e1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.td-home-pulse__chip .bi {
    font-size: 0.85rem;
    color: #0369a1;
    margin-bottom: 1px;
}

.td-home-pulse__chip-label {
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--td-muted, #64748b);
}

.td-home-pulse__chip-val {
    width: 100%;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--td-text, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-home-pulse__chip--link:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

.td-home-pulse__chip--link:active {
    transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
    .td-home-pulse__chip--link:hover {
        border-color: #7dd3fc;
        box-shadow: 0 4px 12px -6px rgba(14, 165, 233, 0.35);
    }
}

html[data-theme="dark"] .td-home-pulse__fest {
    color: #fde68a;
    background: linear-gradient(135deg, #2a2418 0%, #1f1a12 100%);
    border-color: #854d0e;
}

html[data-theme="dark"] .td-home-pulse__chip {
    background: #141c2e;
    border-color: #334155;
}

html[data-theme="dark"] .td-home-pulse__chip-val {
    color: #e2e8f0;
}

/* Teaser última noticia */
.td-home-pulse__news {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 45%, #fef08a 100%);
    border: 1px solid #facc15;
    box-shadow: 0 2px 8px -4px rgba(202, 138, 4, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 900px) {
    .td-home-pulse__news {
        grid-column: auto;
        height: 100%;
    }
}

.td-home-pulse__news-ico {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    color: #b45309;
    font-size: 1rem;
}

.td-home-pulse__news-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.td-home-pulse__news-kicker {
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #92400e;
}

.td-home-pulse__news-title {
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #78350f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.td-home-pulse__news-chev {
    flex-shrink: 0;
    font-size: 1rem;
    color: #b45309;
    opacity: 0.75;
}

.td-home-pulse__news--placeholder {
    background: var(--td-surface, #f8fafc);
    border-color: var(--td-line, #cbd5e1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.td-home-pulse__news-kicker--skel {
    display: inline-block;
    width: 92px;
    border-radius: 999px;
}

.td-home-pulse__news-title--skel {
    display: block;
    width: min(100%, 320px);
    min-height: 1.55em;
    border-radius: 8px;
}

.td-home-pulse__news:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

.td-home-pulse__news:active {
    transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
    .td-home-pulse__news:hover {
        box-shadow: 0 6px 16px -6px rgba(202, 138, 4, 0.5);
    }
}

html[data-theme="dark"] .td-home-pulse__news {
    background: linear-gradient(135deg, #2a2318 0%, #3d3518 100%);
    border-color: #a16207;
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .td-home-pulse__news--placeholder {
    background: #141c2e;
    border-color: #334155;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .td-home-pulse__news-kicker {
    color: #fcd34d;
}

html[data-theme="dark"] .td-home-pulse__news-title {
    color: #fef3c7;
}

html[data-theme="dark"] .td-home-pulse__news-ico {
    background: rgba(0, 0, 0, 0.25);
    color: #fcd34d;
}

html[data-theme="dark"] .td-home-pulse__news-chev {
    color: #fde68a;
}

@media (prefers-reduced-motion: reduce) {
    .td-home-pulse__chip--link:active {
        transform: none;
    }

    .td-home-pulse__news:active {
        transform: none;
    }
}
