/* Panel de noticias — extiende los tokens de style.css */

:root {
    --color-tech: #1cbcd4;
    --color-tech-dim: rgba(28, 188, 212, 0.12);
    --color-gaming: #a855f7;
    --color-gaming-dim: rgba(168, 85, 247, 0.12);
    --color-elec: #f5a623;
    --color-elec-dim: rgba(245, 166, 35, 0.12);
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

body {
    justify-content: flex-start;
}

.main-content--news {
    max-width: 1080px;
    width: 100%;
    text-align: left;
    margin: 0 0 40px 0;
    animation: var(--transition-fade);
}

/* Hero / radar */

.news-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 50px 0;
    position: relative;
}

.news-hero .tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-tech);
    box-shadow: 0 0 0 0 rgba(28, 188, 212, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(28, 188, 212, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(28, 188, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(28, 188, 212, 0); }
}

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

.news-hero .title {
    font-size: 2.6rem;
    max-width: 640px;
}

.news-hero .description {
    max-width: 520px;
}

.update-stamp {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Productos destacados (afiliados Amazon) */

.news-section--picks .cat-label { color: #ff9900; }

.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.pick-card {
    background: rgba(255, 153, 0, 0.05);
    border: 1px solid rgba(255, 153, 0, 0.25);
    border-radius: 6px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.pick-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 153, 0, 0.09);
}

.pick-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ff9900;
}

.pick-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin: 0;
}

.pick-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
    flex-grow: 1;
}

.pick-cta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ff9900;
}

.affiliate-disclosure {
    margin-top: 16px;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

/* Enlaces de afiliado dentro de cada noticia */

.amazon-inline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #ff9900;
    align-self: flex-start;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.amazon-inline:hover {
    border-bottom-color: #ff9900;
}

/* Secciones por categoría */

.news-section {
    margin-bottom: 56px;
}

.news-section-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: 14px;
}

.news-section-header .cat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.news-section-header h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin: 0;
}

.news-section--tech .cat-label { color: var(--color-tech); }
.news-section--gaming .cat-label { color: var(--color-gaming); }
.news-section--elec .cat-label { color: var(--color-elec); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.news-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    border-radius: 6px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.045);
}

.news-section--tech .news-card { border-left-color: var(--color-tech); }
.news-section--gaming .news-card { border-left-color: var(--color-gaming); }
.news-section--elec .news-card { border-left-color: var(--color-elec); }

.news-card .meta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

.news-card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text-light);
    margin: 0;
}

.news-card p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin: 0;
    flex-grow: 1;
}

.news-card a.read-more {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 4px;
    align-self: flex-start;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.news-section--tech a.read-more { color: var(--color-tech); }
.news-section--gaming a.read-more { color: var(--color-gaming); }
.news-section--elec a.read-more { color: var(--color-elec); }

.news-card a.read-more:hover {
    border-bottom-color: currentColor;
}

/* Featured card (primera de cada sección) */

.news-card--featured {
    grid-column: span 2;
}

@media (max-width: 700px) {
    .news-card--featured {
        grid-column: span 1;
    }
    .news-hero .title {
        font-size: 1.9rem;
    }
}