/* ══════════════════════════════════════════════════════════════════
   AMBI — NOTICIAS.CSS
══════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────
   SECCIÓN
────────────────────────────────────────── */

.noticias {
    background-color: var(--c-black);
    
    /* El gradiente actúa como una capa oscura superpuesta a la imagen */
    background-image: url('../imgs/noise-texture.png'), 
                  linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                  url('../imgs/index/bgs/noticias_bg.webp');

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 500px;
}

.noticias-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 40px;
}


/* ──────────────────────────────────────────
   LAYOUT — DOS COLUMNAS
   Sidebar izquierda + Featured derecha
   align-items: stretch → featured iguala alto de la lista
────────────────────────────────────────── */

.noticias-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}


/* ──────────────────────────────────────────
   COL HEADER
────────────────────────────────────────── */

.noticias-col-header {
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* ──────────────────────────────────────────
   SIDEBAR — LISTA DE NOTICIAS CHICAS
────────────────────────────────────────── */

.noticias-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.noticias-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s;
}

.noticias-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.noticias-item.active {
    background: rgba(255, 255, 255, 0.06);
}

.noticias-item-thumb {
    width: 76px;
    height: 50px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.noticias-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    min-width: 0;
}

.noticias-item-title {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticias-item.active .noticias-item-title {
    color: rgba(255, 255, 255, 0.95);
}

.noticias-item-fecha {
    font-family: var(--font-main);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ──────────────────────────────────────────
   BADGES — COLORES POR CATEGORÍA
────────────────────────────────────────── */

.noticias-badge {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
    align-self: flex-start;
}

/* Stream → violeta (Twitch) */
.noticias-badge.cat-stream {
    background: rgba(109, 52, 164, 0.25);
    color: var(--c-purple);
}

/* Juego → verde */
.noticias-badge.cat-juego {
    background: rgba(30, 215, 96, 0.15);
    color: var(--c-green);
}

/* Comunidad → celeste */
.noticias-badge.cat-comunidad {
    background: rgba(62, 120, 199, 0.15);
    color: var(--c-blue);
}

/* Noticia → amarillo */
.noticias-badge.cat-noticia {
    background: rgba(241, 220, 40, 0.15);
    color: var(--c-yellow);
}

/* Review → naranja */
.noticias-badge.cat-review {
    background: rgba(212, 131, 14, 0.15);
    color: var(--c-orange);
}


/* ──────────────────────────────────────────
   FEATURED — CONTENEDOR
────────────────────────────────────────── */

.noticias-featured {
    overflow: hidden;
}


/* ──────────────────────────────────────────
   FEATURED — IMGWRAP
   Todo el contenido vive acá — alto fijo por aspect-ratio
────────────────────────────────────────── */

.noticias-featured-imgwrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0a0a;
}

.noticias-featured-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .25s;
}


/* ──────────────────────────────────────────
   FEATURED — CAPTION (adentro de la imagen)
   Overlay negro con blur en el bottom
────────────────────────────────────────── */

.noticias-featured-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 48px 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.90) 60%, transparent 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.noticias-featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.noticias-featured-meta .noticias-badge {
    font-size: 10px;
    padding: 3px 10px;
}

.noticias-featured-fecha {
    font-family: var(--font-main);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.noticias-featured-title {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticias-featured-desc {
    font-family: var(--font-main);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ──────────────────────────────────────────
   FEATURED — FLECHAS
────────────────────────────────────────── */

.noticias-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 0 16px;
    opacity: 0;
    transition: opacity .2s, transform .15s;
    z-index: 3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.noticias-featured-imgwrap:hover .noticias-arrow {
    opacity: 1;
}

.noticias-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.noticias-arrow.prev { left: 0; }
.noticias-arrow.next { right: 0; }


/* ──────────────────────────────────────────
   DOTS
────────────────────────────────────────── */

.noticias-dots {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.noticias-dot {
    height: 3px;
    width: 18px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: width .2s, background .2s;
}

.noticias-dot.active {
    width: 30px;
}

.noticias-dot.active.cat-stream    { background: var(--c-purple); }
.noticias-dot.active.cat-juego     { background: var(--c-green); }
.noticias-dot.active.cat-comunidad { background: var(--c-blue); }
.noticias-dot.active.cat-noticia   { background: var(--c-yellow); }
.noticias-dot.active.cat-review    { background: var(--c-orange); }