/* Noticias — tokens espejo de market.css */

.news-page {
    --news-brand: var(--color-primary, #28a745);
    --news-brand-strong: var(--color-primary-dark, #218838);
    --news-brand-soft: var(--color-primary-light, #e8f5e9);
    --news-ink: #111827;
    --news-muted: #6b7280;
    --news-faint: #9ca3af;
    --news-surface: #ffffff;
    --news-surface-2: #f9fafb;
    --news-line: #e5e7eb;
    --news-line-strong: #d1d5db;
    --news-danger: #dc2626;
    --news-danger-bg: #fee2e2;
    --news-warning: #d97706;
    --news-radius: 14px;
    --news-radius-sm: 10px;
    --news-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

html.dark .news-page {
    --news-ink: #f9fafb;
    --news-muted: #9ca3af;
    --news-faint: #6b7280;
    --news-surface: #1f2937;
    --news-surface-2: #182030;
    --news-line: #374151;
    --news-line-strong: #4b5563;
    --news-brand-soft: rgba(40, 167, 69, .16);
    --news-danger: #f87171;
    --news-danger-bg: rgba(220, 38, 38, .18);
    --news-warning: #fbbf24;
    --news-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.news-page .news-body {
    min-width: 0;
}

.news-page .meta {
    color: var(--news-muted);
}

.news-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 20px;
}

.news-pill {
    border: 1px solid var(--news-line-strong);
    background: var(--news-surface);
    color: var(--news-ink);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
}

.news-pill.active {
    background: var(--news-brand);
    color: #fff;
    border-color: var(--news-brand);
}

.news-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--news-radius-sm);
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
}

.news-btn-primary {
    background: var(--news-brand);
    color: #fff;
}

.news-btn-primary:hover {
    background: var(--news-brand-strong);
}

.news-btn-outline {
    background: var(--news-surface);
    color: var(--news-ink);
    border: 1px solid var(--news-line-strong);
}

.news-btn-outline:hover {
    border-color: var(--news-brand);
    background: var(--news-brand-soft);
}

.news-card {
    background: var(--news-surface);
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    box-shadow: var(--news-shadow);
    min-width: 0;
}

.news-brief {
    padding: 18px 20px 16px;
    margin-bottom: 18px;
    border-color: var(--news-brand);
    box-shadow: inset 4px 0 0 var(--news-brand);
}

.news-brief-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.news-brief-head svg {
    width: 20px;
    height: 20px;
    color: var(--news-brand-strong);
    flex: 0 0 auto;
    margin-top: 2px;
}

.news-brief h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--news-ink);
}

.news-brief .note {
    font-size: 13px;
    color: var(--news-muted);
    margin-top: 2px;
}

.news-brief-points {
    margin: 4px 0 0;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.45;
    max-width: 72ch;
    color: var(--news-ink);
    display: grid;
    gap: 8px;
}

.news-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.news-plans h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--news-ink);
}

.news-plans p {
    font-size: 13px;
    color: var(--news-muted);
    margin-top: 4px;
    max-width: 62ch;
}

.news-empty {
    text-align: center;
    padding: 48px 20px;
    margin-bottom: 24px;
}

.news-empty svg {
    width: 28px;
    height: 28px;
    color: var(--news-brand-strong);
    margin-bottom: 12px;
}

.news-empty h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--news-ink);
    margin-bottom: 8px;
}

.news-empty p {
    font-size: 14px;
    color: var(--news-muted);
    margin-bottom: 16px;
}

.news-error {
    background: var(--news-danger-bg);
    border: 1px solid var(--news-danger);
    border-radius: var(--news-radius);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.news-error h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--news-danger);
    margin-bottom: 4px;
}

.news-error p {
    font-size: 13px;
    color: var(--news-ink);
    margin-bottom: 12px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.news-item {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-thumb {
    height: 88px;
    background: var(--news-brand-soft);
    background-size: cover;
    background-position: center;
}

.news-item-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.news-ticker {
    font-size: 11px;
    font-weight: 800;
    color: var(--news-brand-strong);
    letter-spacing: .04em;
}

.news-item h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 6px 0 8px;
    color: var(--news-ink);
}

.news-item h3 a {
    color: inherit;
    text-decoration: none;
}

.news-item h3 a:hover {
    color: var(--news-brand-strong);
}

.news-item .summary {
    font-size: 13px;
    color: var(--news-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .meta {
    margin-top: auto;
    padding-top: 12px;
    font-size: 12px;
    color: var(--news-faint);
}

.news-stale {
    font-size: 12px;
    color: var(--news-warning);
    margin-bottom: 6px;
}

.news-skel {
    height: 12px;
    border-radius: 4px;
    background: var(--news-surface-2);
    margin: 8px 0;
}

.news-skel.short { width: 40%; }
.news-skel.mid { width: 72%; }

/* ---- Market Pulse Hero (Daily / Weekly / Live Flashes) ---- */

.news-pulse-wrap {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-pulse-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.news-pulse-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: var(--news-radius-sm);
    background: var(--news-surface-2);
    border: 1px solid var(--news-line);
}

.news-pulse-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: var(--news-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--news-radius-sm);
    cursor: pointer;
}

.news-pulse-tab svg,
.news-pulse-live svg,
.news-flash-badge svg,
.news-pulse-upsell-title svg,
.news-pulse-reasons svg,
.news-pulse-subhead svg,
.news-toro-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.news-pulse-tab.active {
    background: var(--news-surface);
    color: var(--news-ink);
    box-shadow: var(--news-shadow);
}

.news-pulse-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--news-line);
    background: var(--news-surface);
    color: var(--news-muted);
    text-decoration: none;
}

.news-pulse-live.active {
    border-color: var(--news-brand);
    background: var(--news-brand-soft);
    color: var(--news-ink);
}

.news-pulse-live.locked:hover {
    border-color: var(--news-brand);
}

.news-flash-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.news-flash-card {
    background: var(--news-surface);
    border: 1px solid var(--news-line);
    border-left: 3px solid var(--news-brand);
    border-radius: var(--news-radius);
    padding: 14px 16px;
    box-shadow: var(--news-shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.news-flash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.news-flash-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--news-brand);
    background: var(--news-brand-soft);
    padding: 3px 9px;
    border-radius: 999px;
}

.news-flash-tickers,
.news-seg-tickers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.news-ticker-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--news-surface-2);
    border: 1px solid var(--news-line);
    color: var(--news-ink);
    text-decoration: none;
}

.news-ticker-pill:hover {
    border-color: var(--news-brand);
}

.news-flash-card h3 {
    margin: 2px 0 0;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--news-ink);
}

.news-flash-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--news-muted);
}

.news-flash-why {
    color: var(--news-ink);
}

.news-flash-foot {
    margin-top: 2px;
}

.news-pulse-upsell,
.news-pulse-progress,
.news-pulse-personal,
.news-pulse-locked {
    background: var(--news-surface);
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    padding: 16px 18px;
    box-shadow: var(--news-shadow);
}

.news-pulse-upsell,
.news-pulse-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.news-pulse-upsell {
    background: var(--news-brand-soft);
    border-color: var(--news-line-strong);
}

.news-pulse-upsell-copy {
    flex: 1 1 320px;
    min-width: 0;
}

.news-pulse-upsell-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--news-ink);
}

.news-pulse-upsell-title svg {
    color: var(--news-brand);
}

.news-pulse-reasons {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 14px;
}

.news-pulse-reasons li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--news-ink);
}

.news-pulse-reasons svg {
    color: var(--news-brand);
    margin-top: 2px;
}

.news-pulse-progress-body {
    flex: 1 1 280px;
    min-width: 0;
}

.news-pulse-progress-body strong {
    display: block;
    font-size: 14px;
    color: var(--news-ink);
}

.news-pulse-progress-body p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--news-muted);
}

.news-progress-track {
    margin-top: 10px;
    height: 7px;
    border-radius: 999px;
    background: var(--news-surface-2);
    border: 1px solid var(--news-line);
    overflow: hidden;
}

.news-progress-track > span {
    display: block;
    height: 100%;
    background: var(--news-brand);
    border-radius: 999px;
}

.news-pulse-personal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.news-pulse-locked h2 {
    margin: 10px 0 6px;
    font-size: 18px;
    color: var(--news-ink);
}

.news-pulse-locked p {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: var(--news-muted);
    line-height: 1.5;
}

.news-pulse-teaser-meta {
    font-size: 12.5px;
    color: var(--news-muted);
}

.news-pulse-locked-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-pulse-card {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-pulse-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.news-pulse-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.news-pulse-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: var(--news-brand-soft);
    color: var(--news-brand);
}

.news-pulse-edition {
    font-size: 12px;
    color: var(--news-muted);
}

.news-pulse-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: var(--news-ink);
}

.news-pulse-verdict {
    margin: 0;
    padding: 12px 14px;
    border-left: 3px solid var(--news-brand);
    background: var(--news-surface-2);
    border-radius: 0 var(--news-radius-sm) var(--news-radius-sm) 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--news-ink);
}

.news-pulse-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-pulse-subhead {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--news-ink);
}

.news-pulse-subhead svg {
    color: var(--news-brand);
}

.news-pulse-thermo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.news-thermo-card {
    background: var(--news-surface-2);
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.news-thermo-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--news-muted);
}

.news-thermo-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--news-ink);
    font-variant-numeric: tabular-nums;
}

.news-thermo-chg {
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.news-thermo-chg.up,
.news-seg-name.up {
    color: var(--news-brand);
}

.news-thermo-chg.down,
.news-seg-name.down {
    color: var(--news-danger);
}

.news-thermo-chg.warn,
.news-seg-name.warn {
    color: var(--news-warning);
}

.news-thermo-chg.neutral,
.news-seg-name.neutral {
    color: var(--news-muted);
}

.news-thermo-read {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--news-muted);
}

.news-pulse-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius-sm);
}

.news-pulse-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: 13px;
}

.news-pulse-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--news-muted);
    background: var(--news-surface-2);
    padding: 10px 12px;
    border-bottom: 1px solid var(--news-line);
}

.news-pulse-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--news-line);
    vertical-align: top;
    color: var(--news-ink);
    line-height: 1.45;
}

.news-pulse-table tbody tr:last-child td {
    border-bottom: none;
}

.news-seg-name {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.news-pulse-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.news-pulse-panel {
    background: var(--news-surface-2);
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius-sm);
    padding: 14px;
    min-width: 0;
}

.news-pulse-panel h3 {
    margin: 0 0 8px;
    font-size: 13.5px;
    color: var(--news-ink);
}

.news-pulse-panel p,
.news-lens-list li {
    margin: 0 0 6px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--news-muted);
}

.news-pulse-panel strong,
.news-lens-list strong {
    color: var(--news-ink);
}

.news-lens-list {
    margin: 0;
    padding-left: 16px;
}

.news-toro-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-toro-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--news-radius-sm);
    border: 1px solid var(--news-line-strong);
    background: var(--news-surface-2);
    color: var(--news-ink);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}

.news-toro-btn:hover {
    border-color: var(--news-brand);
    background: var(--news-brand-soft);
}

.news-toro-btn.locked {
    color: var(--news-muted);
}

.news-pulse-sources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--news-line);
}

.news-sources-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--news-muted);
}

.news-pulse-source {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--news-line);
    background: var(--news-surface-2);
    color: var(--news-ink);
    text-decoration: none;
}

.news-pulse-source:hover {
    border-color: var(--news-brand);
}

.news-pulse-disclaimer {
    margin: 0;
    font-size: 11.5px;
    color: var(--news-muted);
}

@media (max-width: 900px) {
    .news-pulse-card {
        padding: 16px;
    }

    .news-pulse-head h2 {
        font-size: 17px;
    }

    .news-pulse-two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-pulse-upsell,
    .news-pulse-progress {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
