:root {
    --red: #E30613;
    --red-light: #fdeced;
    --orange: #FFA200;
    --yellow: #FFD400;
    --black: #0A0A0A;
    --dark: #1F1F1F;
    --mid: #4A4A4A;
    --soft: #808080;
    --border: #E5E7EB;
    --bg: #ffffff;
    --bg2: #F9FAFB;
    --bg3: #F3F4F6;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

h1, h2, h3, h4 { text-transform: uppercase; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ── */
.topbar {
    background: var(--black);
    padding: 9px 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}
.topbar-left span { color: rgba(255,255,255,0.8); }
.topbar-right { display: flex; gap: 24px; align-items: center; }
.topbar-right a {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color .2s;
}
.topbar-right a:hover { color: var(--yellow); }

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2B2B2B;
    border-bottom: 2px solid #AA050E;
    padding: 0 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
    transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links li a {
    display: block;
    padding: 0 22px;
    height: 86px;
    line-height: 86px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}
.nav-links li a:hover,
.nav-links li a.active {
    color: var(--red);
    border-bottom-color: var(--red);
}
.nav-cta {
    background: var(--red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 11px 26px;
    transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #c30511; transform: translateY(-1px); }
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #fff; }

/* ── HERO ── */
.noticias-hero {
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 60%, #2a0a0a 100%);
    padding: 80px 72px;
    position: relative;
    overflow: hidden;
}
.noticias-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
}
.noticias-hero-content { position: relative; max-width: 700px; }
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--red);
}
.noticias-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.noticias-hero h1 span { color: var(--yellow); }
.noticias-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
}

/* ── LISTADO ── */
.noticias-list-section {
    padding: 60px 72px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.noticias-loading, .noticias-empty {
    font-family: 'Inter', sans-serif;
    color: var(--soft);
    text-align: center;
    padding: 40px 0;
    grid-column: 1 / -1;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.noticia-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.noticia-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg3); }
.noticia-card-img img { width: 100%; height: 100%; object-fit: cover; }
.noticia-card-body { padding: 20px 22px 24px; }
.noticia-card-date {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
}
.noticia-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin: 10px 0 8px;
    line-height: 1.3;
    text-transform: none;
}
.noticia-card-body p {
    font-size: 0.88rem;
    color: var(--soft);
    line-height: 1.5;
    margin-bottom: 14px;
}
.noticia-card-link {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--black);
}

/* ── DETALLE ── */
.noticia-detail-section {
    padding: 60px 72px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.noticia-detail-date {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
}

.noticia-detail h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.15;
    margin: 12px 0 28px;
}

.noticia-detail-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}
.noticia-detail-img img { width: 100%; display: block; object-fit: cover; max-height: 440px; }

.noticia-detail-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--dark);
}
.noticia-detail-content p { margin-bottom: 18px; }
.noticia-detail-content ul, .noticia-detail-content ol { margin: 0 0 18px 24px; }
.noticia-detail-content a { color: var(--red); }
.noticia-detail-content strong { font-weight: 700; }

.noticia-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
}

.noticia-not-found { text-align: center; padding: 40px 0; }
.noticia-not-found h1 { font-size: 1.8rem; margin-bottom: 12px; }
.noticia-not-found p { font-family: 'Inter', sans-serif; color: var(--soft); margin-bottom: 28px; }

/* ── CTA (reused across pages) ── */
.enc-cta {
    background: var(--black);
    padding: 80px 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}
.enc-cta::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--red), var(--orange));
}
.enc-cta-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 12px;
}
.enc-cta-text h2 span { color: var(--yellow); }
.enc-cta-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}
.enc-cta-btns { display: flex; gap: 14px; flex-shrink: 0; }
.btn-red {
    background: var(--red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 30px;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.btn-red:hover { background: #c30511; transform: translateY(-2px); }
.btn-outline-white {
    border: 1.5px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 28px;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}
.btn-outline-white:hover { border-color: #fff; color: #fff; }

/* ── FOOTER (shared component) ── */
footer {
    background: var(--black);
    padding: 60px 72px 40px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-top: 16px;
    max-width: 240px;
}
.footer-logo-mark { height: 40px; }
.footer-col h5 {
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color .2s;
}
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy, .footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 960px) {
    h1, h2, h3, h4 { text-transform: none; }

    .topbar { display: none; }
    nav { padding: 0 24px; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 86px;
        left: 0;
        right: 0;
        background: #2B2B2B;
        flex-direction: column;
        padding: 16px 0;
        z-index: 99;
    }
    .nav-links.open { display: flex; }
    .nav-links li a {
        height: auto;
        line-height: 1;
        padding: 14px 24px;
        border-bottom: none;
    }

    .noticias-hero { padding: 60px 24px; }
    .noticias-list-section { padding: 40px 24px 60px; }
    .noticia-detail-section { padding: 40px 24px 60px; }
    .noticias-grid { grid-template-columns: 1fr; }

    .enc-cta { flex-direction: column; padding: 60px 24px; }
    .enc-cta-btns { flex-direction: column; width: 100%; }
    .btn-red, .btn-outline-white { text-align: center; }

    footer { padding: 48px 24px 32px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
