/* Novedades urgentes — novedades_urgentes.php */

.nu-page {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

.nu-header {
    margin-bottom: 18px;
    padding: 2px 4px 0;
}

.nu-header__title {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    font-weight: 800;
    color: var(--td-text, #0f172a);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.nu-header__sub {
    margin: 6px 0 0;
    font-size: 0.875rem;
    color: var(--td-muted, #64748b);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nu-live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: nu-blink 1.2s infinite;
}

@keyframes nu-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.nu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.nu-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
}

.nu-card--principal {
    grid-column: span 2;
    margin-bottom: 4px;
}

.nu-card__media {
    width: 100%;
    position: relative;
    background: #e2e8f0;
    overflow: hidden;
}

.nu-card--principal .nu-card__media {
    height: 200px;
}

.nu-card--secundaria .nu-card__media {
    height: 120px;
}

.nu-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nu-card__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
    font-size: 30px;
}

.nu-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(4px);
}

.nu-badge--alerta {
    background: rgba(239, 68, 68, 0.9);
}

.nu-badge--noticia {
    background: rgba(14, 165, 233, 0.9);
}

.nu-card__body {
    padding: 15px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nu-card__title {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.nu-card--principal .nu-card__title {
    font-size: 1.125rem;
}

.nu-card--secundaria .nu-card__title {
    font-size: 0.9375rem;
}

.nu-card__date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}

.nu-card__text {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--td-muted, #64748b);
    line-height: 1.5;
    font-weight: 600;
}

.nu-card--secundaria .nu-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nu-card__share {
    margin-top: auto;
    padding: 12px;
    text-align: center;
    color: #16a34a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid #f1f5f9;
    min-height: 44px;
}

.nu-empty {
    grid-column: span 2;
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.5;
}

@media (max-width: 899px) {
    .nu-card--principal .nu-card__title {
        font-size: 1.1875rem;
        line-height: 1.35;
    }

    .nu-card__text {
        font-size: 0.9375rem;
    }
}

html[data-theme="dark"] .nu-card {
    background: #1a2438;
    border-color: #334155;
}

html[data-theme="dark"] .nu-card__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .nu-header__title {
    color: #f1f5f9;
}
