/* assets/css/noticias.css – Estilo coherente con linktree (oscuro), mobile-first */
/* Actualizado enero 2026: fotos en CSS Grid con orden fila por fila, sin contenedores extra */

:root {
    --prensa-bg: #0f0f0f;
    --text-light: #f5f5f5;
    --card-bg: #1a1a1a;
    --accent: #c9a96e; /* maíz para detalles */
    --border-subtle: #333333;
    --shadow-card: 0 6px 20px rgba(0,0,0,0.4);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.55);
}

body {
    margin: 0;
    background: var(--prensa-bg);
    color: var(--text-light);
    font-family: 'Unbounded', system-ui, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Hero */
.prensa-hero {
    padding: 5rem 0 3rem;
    text-align: center;
    background: linear-gradient(to bottom, #111111, var(--prensa-bg));
}

.prensa-hero h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.8rem;
    margin: 0 0 0.8rem;
    color: var(--text-light);
}

.prensa-hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Notas periodísticas */
.notas-section {
    padding: 2rem 0 4rem;
}

.notas-section h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.notas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.nota-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.nota-card:hover {
    border-color: var(--accent);
}

.nota-content {
    padding: 1.6rem;
}

.nota-content h3 {
    font-size: 1.35rem;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.nota-content time {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.8rem;
}

.nota-content p {
    font-size: 1.05rem;
    margin: 0 0 1.2rem;
    opacity: 0.9;
}

.btn-read {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.btn-read:hover {
    color: #e0c080;
}

/* Videos */
.videos-section {
    padding: 3rem 0 5rem;
    background: #0a0a0a;
}

.videos-section h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 2.5rem;
    color: var(--accent);
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.horizontal {
    aspect-ratio: 16 / 9;
}

.vertical {
    aspect-ratio: 9 / 16;
    max-width: 420px;
    margin: 0 auto;
}

/* Fotos – galería en CSS Grid con orden fila por fila */
.fotos-section {
    padding: 2rem 0 3rem;
}

.fotos-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4.2vw, 2.2rem);
    margin-bottom: 1.4rem;
    color: var(--verde-urbano);
    font-weight: 500;
}

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);      /* 2 columnas en mobile */
    gap: 0.4rem;                                /* separación mínima */
    width: 100%;
}

.fotos-grid img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    border: 0;
}

.fotos-grid img.horizontal {
    grid-column: 1 / -1;                        /* ocupa todo el ancho */
    margin-bottom: 0.9rem;
    object-fit: cover;                          /* o 'contain' si no querés recorte */
}

/* Más columnas según tamaño de pantalla */
@media (min-width: 640px) {
    .fotos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 940px) {
    .fotos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.55rem;
    }
}

@media (min-width: 1200px) {
    .fotos-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.6rem;
    }
}

/* Responsive general (mantenido para otras secciones) */
@media (min-width: 640px) {
    .notas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fotos-grid img.horizontal {
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .notas-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .fotos-grid img.horizontal {
        margin-bottom: 3.2rem;
    }
}

/* Mejora progresiva: masonry nativo cuando el navegador lo soporte */
@supports (grid-template-rows: masonry) {
    .fotos-grid {
        grid-template-rows: masonry;
        gap: 0.5rem 0.8rem;
    }
    .fotos-grid img.horizontal {
        margin-bottom: 0;
    }
}

/* Seguridad extra */
img {
    max-width: 100%;
    height: auto;
}