/* Avisos contextuales — portada (agenda en curso, colectivo por salir, etc.) */
.td-home-ahora {
    margin: 0;
    padding: 14px var(--td-home-edge-pad-r, 16px) 6px var(--td-home-edge-pad, 16px);
    background: var(--td-home-surface-bg, #fff);
}

.td-home-ahora__head {
    margin: 0 0 10px;
}

.td-home-ahora__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0d1b2a;
    line-height: 1.2;
}

.td-home-ahora__live-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
    animation: td-home-ahora-pulse 1.8s ease-out infinite;
    flex-shrink: 0;
}

@keyframes td-home-ahora-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.td-home-ahora__lead {
    margin: 6px 0 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #64748b;
}

.td-home-ahora__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.td-home-ahora__item {
    --ahora-accent: #94a3b8;
    --ahora-soft: #f8fafc;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 12px 12px 14px;
    text-decoration: none !important;
    color: inherit;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: linear-gradient(95deg, var(--ahora-soft) 0%, #fff 72%);
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
    animation: td-home-ahora-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.td-home-ahora__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: var(--ahora-accent);
}

.td-home-ahora__item:nth-child(1) { animation-delay: 0.03s; }
.td-home-ahora__item:nth-child(2) { animation-delay: 0.08s; }
.td-home-ahora__item:nth-child(3) { animation-delay: 0.13s; }
.td-home-ahora__item:nth-child(4) { animation-delay: 0.18s; }

@keyframes td-home-ahora-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.td-home-ahora__item--pulse {
    border-color: color-mix(in srgb, var(--ahora-accent) 35%, rgba(15, 23, 42, 0.08));
}

.td-home-ahora__item--agenda {
    --ahora-accent: #ea580c;
    --ahora-soft: #fff7ed;
}

.td-home-ahora__item--movilidad {
    --ahora-accent: #0d1b2a;
    --ahora-soft: #e8eef4;
}

.td-home-ahora__item--muni {
    --ahora-accent: #d97706;
    --ahora-soft: #fffbeb;
}

.td-home-ahora__item--clima {
    --ahora-accent: #2563eb;
    --ahora-soft: #eff6ff;
}

.td-home-ahora__ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ahora-accent) 12%, #fff);
    color: var(--ahora-accent);
    font-size: 1.125rem;
}

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

.td-home-ahora__badge {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ahora-accent);
}

.td-home-ahora__time {
    display: inline-block;
    margin: 1px 0 0;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ahora-accent);
    font-variant-numeric: tabular-nums;
}

.td-home-ahora__item--timed .td-home-ahora__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
}

.td-home-ahora__title {
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
}

.td-home-ahora__detail {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.td-home-ahora__go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 44px;
    color: #94a3b8;
    font-size: 1.125rem;
}

html[data-theme="dark"] .td-home-ahora {
    background: var(--td-home-surface-bg, #0b1220);
}

html[data-theme="dark"] .td-home-ahora__kicker {
    color: #f8fafc;
}

html[data-theme="dark"] .td-home-ahora__lead {
    color: #94a3b8;
}

html[data-theme="dark"] .td-home-ahora__item {
    background: linear-gradient(95deg, color-mix(in srgb, var(--ahora-accent) 10%, #141c2c) 0%, #101827 72%);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .td-home-ahora__title {
    color: #f8fafc;
}

html[data-theme="dark"] .td-home-ahora__item--timed .td-home-ahora__title {
    color: #94a3b8;
}

html[data-theme="dark"] .td-home-ahora__time {
    color: color-mix(in srgb, var(--ahora-accent) 70%, #f8fafc);
}

html[data-theme="dark"] .td-home-ahora__detail {
    color: #94a3b8;
}

html[data-theme="dark"] .td-home-ahora__ico {
    background: color-mix(in srgb, var(--ahora-accent) 18%, #0f172a);
}

@media (hover: hover) and (pointer: fine) {
    .td-home-ahora__item:hover {
        border-color: color-mix(in srgb, var(--ahora-accent) 28%, rgba(15, 23, 42, 0.12));
        box-shadow: 0 14px 28px -18px color-mix(in srgb, var(--ahora-accent) 25%, rgba(15, 23, 42, 0.35));
    }

    .td-home-ahora__item:hover .td-home-ahora__go {
        color: var(--ahora-accent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .td-home-ahora__live-dot {
        animation: none;
    }

    .td-home-ahora__item {
        animation: none;
    }
}
