/* =============================================
   NOTICIAS PAGE — estilos específicos
   ============================================= */

/* Navbar con logo encima — desktop only */
@media (min-width: 768px) {
    .navbar--with-logo {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-bottom: 0;
    }

    .navbar-inner {
        width: 100%;
        max-width: 1045px;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .nav-logo-link {
        display: inline-flex;
        align-items: center;
    }

    .nav-logo-img {
        height: 78px;
        width: auto;
    }
}

/* Navbar active state */
.navbar a.active {
    opacity: 1;
    color: #00bdf2;
}

/* ---- HERO NOTICIA DESTACADA ---- */
.news-hero {
    padding: 3rem 2rem 6rem;
}

.news-hero-img {
    width: 100%;
    max-width: 1045px;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
}

/* Columna de lectura centrada */
.news-article {
    max-width: 1045px;
    margin: 0 auto;
    padding: 3rem 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.news-meta-category {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #00bdf2;
    text-transform: uppercase;
}

.news-meta-date {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
}

.news-hero-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.15;
    color: #ffffff;
}

.news-hero-body {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.news-hero-body p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    text-align: justify;
}

/* ---- GRID DE NOTICIAS ---- */
.news-grid-section {
    padding: 2rem 2rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.news-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.news-card:hover .news-card-img-wrap img {
    transform: scale(1.04);
}

.news-card-actions {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.news-card:hover .news-card-actions {
    opacity: 1;
}

.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.news-card-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.news-card-body p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    flex: 1;
}

/* ---- PAGINACIÓN ---- */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.news-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    font-family: 'Neue Haas Display', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.news-page-btn:hover {
    border-color: #00bdf2;
    color: #00bdf2;
}

.news-page-btn.active {
    background: #00bdf2;
    border-color: #00bdf2;
    color: #000;
    font-weight: 700;
}

.news-page-ellipsis {
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
    line-height: 40px;
}

/* ---- FIGURE — bloque de imágenes en el artículo ---- */
.news-figure {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-figure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.news-figure-grid:has(> :only-child) {
    grid-template-columns: 1fr;
}

figcaption {
    display: none;
}

@media (max-width: 600px) {
    .news-figure-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- WRAPPER ampliar/descargar ---- */
.news-body-img-wrapper {
    position: relative;
    display: block;
    height: 300px;
}

.news-body-img-wrapper img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px;
    display: block;
}

@media (max-width: 600px) {
    .news-body-img-wrapper {
        height: 220px;
    }
}

.news-body-img-wrapper:hover .gallery-item-actions {
    opacity: 1;
}

/* ---- NOTA "SOBRE LA CÁMARA" ---- */
.news-about-note {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.news-about-note p {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.45) !important;
    text-align: justify !important;
}

.news-about-note strong {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- BOTÓN VOLVER ---- */
.news-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #00bdf2;
    border: 2px solid #00bdf2;
    border-radius: 50px;
    padding: 0.5rem 1.8rem;
    transition: background 0.2s, color 0.2s;
}

.news-back-btn:hover {
    background: #00bdf2;
    color: #000;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .news-hero { padding: 2rem 1.5rem 3rem; }
    .news-article { padding: 2rem 1.5rem 0; }
    .news-hero-title { font-size: 2.2rem; }
    .news-hero-body p { font-size: 1.1rem; }
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .news-grid-section { padding: 1.5rem 1.5rem 4rem; }
    .news-section-title { font-size: 2.2rem; margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .news-hero { padding: 1.5rem 1.25rem 2.5rem; }
    .news-hero-title { font-size: 1.8rem; }
    .news-hero-body p { font-size: 1rem; line-height: 1.7; text-align: justify; }
    .news-article { gap: 1.2rem; padding: 1.5rem 1.25rem 0; }
    .news-grid { grid-template-columns: 1fr; gap: 1rem; }
    .news-grid-section { padding: 1rem 1.25rem 3rem; }
    .news-section-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
    .news-card-body h3 { font-size: 1.1rem; }
    .news-card-body p { font-size: 0.95rem; }
}
