@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

body.page-noticias,
.noticias-page {
    --nt-bg: #f4f8fc;
    --nt-text: #1c2a3a;
    --nt-muted: #5b6b7c;
    --nt-title: #102033;
    --nt-accent: #0c5adb;
    --nt-accent-soft: #2475fc;
    --nt-magenta: #c43d8a;
    --nt-card: #ffffff;
    --nt-card-border: rgba(12, 90, 219, 0.14);
    --nt-card-alt: rgba(12, 90, 219, 0.08);
    --nt-glow: rgba(12, 90, 219, 0.1);
    --nt-grid: rgba(12, 90, 219, 0.08);
    --nt-orb-a: #7eb6ff;
    --nt-orb-b: #b8a6ff;
    --nt-orb-c: #ff9ad4;
    --nt-scan: rgba(12, 90, 219, 0.08);
}

html.dark:has(body.page-noticias),
html.dark body.page-noticias,
html.dark .noticias-page,
body.dark.page-noticias,
body.dark .noticias-page {
    --nt-bg: #070b14;
    --nt-text: #eef5ff;
    --nt-muted: #b7c9de;
    --nt-title: #ffffff;
    --nt-accent: #7eefff;
    --nt-accent-soft: #3cf6ff;
    --nt-magenta: #ff5ec4;
    --nt-card: #101828;
    --nt-card-border: rgba(126, 239, 255, 0.32);
    --nt-card-alt: #182338;
    --nt-glow: rgba(60, 246, 255, 0.22);
    --nt-grid: rgba(126, 239, 255, 0.1);
    --nt-orb-a: #00f0ff;
    --nt-orb-b: #7b5cff;
    --nt-orb-c: #ff3cac;
    --nt-scan: rgba(60, 246, 255, 0.14);
}

body.page-noticias {
    background: var(--nt-bg);
}

html.dark:has(body.page-noticias),
html.dark body.page-noticias,
html.dark body.page-noticias.loaded,
body.dark.page-noticias {
    background: #070b14 !important;
    color: #eef5ff;
}

html.dark .noticias-page,
body.dark .noticias-page {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(60, 246, 255, 0.22), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(255, 62, 172, 0.16), transparent 50%),
        #070b14 !important;
    color: #eef5ff;
}

.noticias-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--nt-text);
    background:
        radial-gradient(1200px 600px at 10% -10%, var(--nt-glow), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(196, 61, 138, 0.08), transparent 50%),
        var(--nt-bg);
    font-family: "IBM Plex Sans", sans-serif;
}

.noticias-contenedor {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

@media (min-width: 1280px) {
    .noticias-contenedor {
        width: min(1360px, calc(100% - 40px));
    }
}

@media (min-width: 1600px) {
    .noticias-contenedor {
        width: min(1680px, calc(100% - 48px));
    }
}

.noticias-holo {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.noticias-holo-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--nt-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--nt-grid) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

.noticias-holo-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.noticias-holo-orb-a {
    top: 80px;
    left: 8%;
    width: 220px;
    height: 220px;
    background: var(--nt-orb-a);
}

.noticias-holo-orb-b {
    top: 40px;
    right: 6%;
    width: 280px;
    height: 280px;
    background: var(--nt-orb-b);
}

.noticias-holo-orb-c {
    top: 520px;
    left: 40%;
    width: 180px;
    height: 180px;
    background: var(--nt-orb-c);
}

.noticias-holo-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 18%;
    background: linear-gradient(180deg, transparent, var(--nt-scan), transparent);
    animation: noticias-scan 9s linear infinite;
}

.noticias-hero,
.noticias-bento,
.noticias-stream,
.noticias-paginacion,
.noticias-vacio {
    position: relative;
    z-index: 1;
}

.noticias-hero {
    padding: 120px 0 32px;
}

.noticias-hero-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.noticias-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nt-accent);
}

.noticias-live-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nt-accent-soft);
    box-shadow: 0 0 0 4px var(--nt-glow);
    animation: noticias-pulse 1.6s ease-in-out infinite;
}

.noticias-nodo,
.noticias-hero-fecha {
    color: var(--nt-muted);
}

.noticias-kicker {
    margin: 0 0 10px;
    color: var(--nt-accent);
    font-family: Orbitron, sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.noticias-hero-copy h1 {
    margin: 0;
    max-width: 16ch;
    color: var(--nt-title);
    font-family: Orbitron, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 0 24px var(--nt-glow);
}

.noticias-bento,
.noticias-stream {
    padding: 42px 0 18px;
}

.noticias-seccion-top {
    margin-bottom: 18px;
}

.noticias-seccion-top p {
    margin: 0 0 6px;
    color: var(--nt-magenta);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.noticias-seccion-top h2 {
    margin: 0;
    color: var(--nt-title);
    font-family: Orbitron, sans-serif;
    font-size: 1.35rem;
}

.noticias-mosaico {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    grid-auto-rows: minmax(180px, auto);
}

.noticias-featured {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--nt-card);
    box-shadow: 0 0 0 1px var(--nt-card-border), 0 20px 50px rgba(16, 32, 51, 0.08);
}

@media (min-width: 761px) {
    .noticias-featured {
        grid-row: span 2;
    }

    .noticias-featured-media {
        flex: 1 1 auto;
        min-height: 100%;
        height: 100%;
        aspect-ratio: auto;
    }
}

@media (min-width: 1280px) {
    .noticias-mosaico {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .noticias-featured {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (min-width: 1600px) {
    .noticias-mosaico {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.noticias-featured::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    background: conic-gradient(from 180deg, #00f0ff, #7b5cff, #ff3cac, #00f0ff);
    opacity: 0.35;
    filter: blur(16px);
    animation: noticias-holo-spin 10s linear infinite;
}

.noticias-featured-media {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    color: inherit;
    text-decoration: none;
}

.noticias-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.noticias-featured-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 16, 0.08) 28%, rgba(5, 8, 16, 0.88) 100%),
        linear-gradient(90deg, rgba(5, 8, 16, 0.35), transparent 42%);
}

.noticias-featured-sello {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 10px;
    border: 1px solid rgba(0, 240, 255, 0.45);
    border-radius: 999px;
    background: rgba(5, 12, 20, 0.72);
    color: #7ff6ff;
    font-family: Orbitron, sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.noticias-featured-sheen {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(220px 160px at var(--holo-x, 40%) var(--holo-y, 30%), rgba(255, 255, 255, 0.22), transparent 55%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.noticias-featured-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 74ch;
    padding: 22px 24px 24px;
}

.noticias-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--nt-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.noticias-categoria {
    color: var(--nt-accent);
}

.noticias-featured-overlay .noticias-meta,
.noticias-featured-overlay .noticias-featured-pie {
    color: rgba(215, 230, 245, 0.72);
}

.noticias-featured-overlay .noticias-categoria,
.noticias-featured-overlay .noticias-featured-cta {
    color: #7ff6ff;
}

.noticias-featured-titulo {
    margin: 0;
    color: #f4fbff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.18;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.noticias-featured-resumen {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: rgba(215, 230, 245, 0.82);
    font-size: 0.98rem;
    line-height: 1.45;
}

.noticias-featured-pie {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 240, 255, 0.18);
    font-size: 12px;
    color: rgba(215, 230, 245, 0.72);
}

.noticias-featured-cta,
.noticias-stream-link,
.noticias-canales-cta {
    color: var(--nt-accent);
    text-decoration: none;
    font-weight: 600;
}

.noticias-stream-texto h3 {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.3;
}

.noticias-stream-texto h3 a {
    color: var(--nt-title);
    text-decoration: none;
}

html.dark .noticias-stream-texto h3 a,
html.dark .noticias-featured-overlay h2,
html.dark .noticias-featured-overlay h3,
html.dark .noticias-uplink-texto h3,
html.dark .noticias-uplink-texto h3 a {
    color: #ffffff !important;
}

html.dark .noticias-stream-texto p,
html.dark .noticias-uplink-texto p,
html.dark .noticias-seccion-top p {
    color: #c5d6ea !important;
}

.noticias-stream-texto h3 a:hover {
    color: var(--nt-accent);
}

.noticias-stream-texto p {
    margin: 0;
    color: var(--nt-muted);
    line-height: 1.5;
}

.noticias-uplink {
    display: contents;
}

.noticias-uplink-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--nt-card-border);
    border-radius: 18px;
    background: var(--nt-card);
}

.noticias-uplink-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.noticias-uplink-foto,
.noticias-stream-foto {
    position: relative;
    display: block;
    overflow: hidden;
}

.noticias-uplink-foto {
    aspect-ratio: 16 / 10;
}

.noticias-uplink-foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 16, 0.55));
}

.noticias-uplink-foto img,
.noticias-stream-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticias-indice {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(5, 8, 16, 0.75);
    color: var(--nt-magenta);
    font-family: Orbitron, sans-serif;
    font-size: 10px;
}

.noticias-uplink-texto {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 18px;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 16, 0.9) 55%);
}

.noticias-uplink-texto .noticias-meta {
    color: rgba(215, 230, 245, 0.72);
}

.noticias-uplink-texto .noticias-categoria {
    color: #7ff6ff;
}

.noticias-uplink-titulo {
    margin: 0;
    color: #f4fbff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.noticias-uplink-card a:hover .noticias-uplink-titulo {
    color: #7ff6ff;
}

.noticias-featured-media:hover .noticias-featured-titulo {
    color: #7ff6ff;
}

.noticias-stream-lista {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.noticias-stream-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--nt-card-border);
    border-radius: 16px;
    background: var(--nt-card);
}

.noticias-stream-foto {
    aspect-ratio: 16 / 11;
}

.noticias-stream-texto {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.noticias-stream-texto h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 1.05rem;
}

.noticias-stream-texto p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.95rem;
}

.noticias-canales {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid var(--nt-card-border);
    border-radius: 16px;
    background: var(--nt-card);
}

.noticias-canales-kicker {
    margin: 0;
    color: var(--nt-magenta);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.noticias-canales ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.noticias-canales li {
    padding: 4px 10px;
    border: 1px solid var(--nt-card-border);
    border-radius: 999px;
    color: var(--nt-text);
    font-size: 12px;
}

.noticias-canales-cta {
    margin-left: auto;
}

.noticias-paginacion {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    padding: 10px 0 48px;
}

.noticias-paginacion a,
.noticias-paginacion span {
    padding: 8px 14px;
    border: 1px solid var(--nt-card-border);
    border-radius: 999px;
    color: var(--nt-text);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.noticias-paginacion a:hover {
    border-color: var(--nt-accent-soft);
    color: var(--nt-accent);
}

.noticias-vacio {
    max-width: 720px;
    margin: 40px auto 70px;
    padding: 36px 28px;
    border: 1px solid var(--nt-card-border);
    border-radius: 18px;
    background: var(--nt-card);
    text-align: center;
}

.noticias-vacio h2 {
    color: var(--nt-title);
    font-family: Orbitron, sans-serif;
}

.noticias-vacio a {
    display: inline-block;
    margin-top: 16px;
    color: var(--nt-accent);
}

.noticias-stream-item[data-reveal],
.noticias-uplink-card[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.noticias-stream-item[data-reveal].noticias-visible,
.noticias-uplink-card[data-reveal].noticias-visible {
    opacity: 1;
    transform: none;
}

.noticias-stream-item[data-reveal]:nth-child(2n) {
    transition-delay: 70ms;
}

.noticias-stream-item[data-reveal]:nth-child(3n) {
    transition-delay: 120ms;
}

@keyframes noticias-scan {
    from {
        transform: translateY(-20%);
    }
    to {
        transform: translateY(520%);
    }
}

@keyframes noticias-pulse {
    50% {
        box-shadow: 0 0 0 8px rgba(0, 240, 255, 0.05);
    }
}

@keyframes noticias-holo-spin {
    to {
        transform: rotate(1turn);
    }
}

@media (max-width: 980px) {
    .noticias-canales-cta {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .noticias-hero {
        padding-top: 100px;
    }

    .noticias-mosaico,
    .noticias-stream-lista {
        grid-template-columns: 1fr;
    }

    .noticias-hero-barra,
    .noticias-featured-pie {
        flex-direction: column;
        align-items: flex-start;
    }

    .noticias-stream-item {
        grid-template-columns: 1fr;
    }

    .noticias-featured-overlay {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .noticias-holo-scan,
    .noticias-featured::before,
    .noticias-live-punto {
        animation: none;
    }

    .noticias-stream-item[data-reveal],
    .noticias-uplink-card[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
