/* ==========================================
   NOTICIAS
   Hoja de estilos complementaria a inicio.css
   Mismas variables y mismo lenguaje visual que
   el resto del sitio: no redefine navbar, footer
   ni galería base (eso ya lo resuelve inicio.css).
   ========================================== */

/* Variables espejo de inicio.css (por si esta hoja
   se llega a usar sola, sin inicio.css) */
:root {
    --azul-profundo: #002E86;
    --amarillo-vibrante: #FFD500;
    --blanco: #FFFFFF;
    --gris-claro: #F5F5F5;
    --rojo-detalle: #FFD500;
    --negro-texto: #1E293B;
    --gris-oscuro: #64748B;
    --font-titles: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-elegant: 0 10px 30px rgba(0, 46, 134, 0.08);
    --radius-smooth: 12px;
    --transition-clean: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   CONTENEDOR GENÉRICO
   (inicio.css no define un .container de ancho
   fijo; las secciones de esta página lo usan)
   ========================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   TÍTULOS DE SECCIÓN
   ========================================== */
.section-title {
    font-family: var(--font-titles);
    font-size: 2rem;
    color: var(--azul-profundo);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--amarillo-vibrante);
    border-radius: 2px;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-clean);
}

.btn-yellow {
    background-color: var(--amarillo-vibrante);
    color: var(--azul-profundo);
}

.btn-yellow:hover {
    background-color: var(--azul-profundo);
    color: var(--blanco);
}

.btn-blue {
    background-color: var(--azul-profundo);
    color: var(--blanco);
}

.btn-blue:hover {
    background-color: var(--amarillo-vibrante);
    color: var(--azul-profundo);
}

/* ==========================================
   HERO — mismo lenguaje visual que .hero-section
   de inicio.css (mismo degradé, misma tipografía)
   ========================================== */
.hero-banner {
    position: relative;
    min-height: 45vh;
    background: linear-gradient(135deg, var(--azul-profundo) 65%, #0c43ad 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 230px 5% 60px;
}

.hero-overlay {
    display: none; /* el degradé ya cumple esa función, igual que en el resto del sitio */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--blanco);
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-family: var(--font-titles);
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--amarillo-vibrante);
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==========================================
   NOTICIA DESTACADA
   ========================================== */
.featured-section {
    padding: 4rem 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--blanco);
    border-radius: var(--radius-smooth);
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    margin-top: 2rem;
    border: 1px solid #f0f4f8;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .date {
    color: var(--azul-profundo);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.featured-content h3 {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--azul-profundo);
    line-height: 1.3;
}

.featured-content p {
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.featured-content .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* ==========================================
   ÚLTIMAS NOTICIAS
   ========================================== */
.latest-news {
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background-color: var(--blanco);
    border-radius: var(--radius-smooth);
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-clean);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f4f8;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 46, 134, 0.12);
    border-color: var(--amarillo-vibrante);
}

.card-img-wrapper {
    overflow: hidden;
    height: 600px;
    background-color: var(--gris-claro);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-clean);
}

.news-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.card-date {
    color: var(--gris-oscuro);
}

.card-category {
    color: var(--azul-profundo);
    text-transform: uppercase;
}

.news-card h3 {
    font-family: var(--font-titles);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--azul-profundo);
    line-height: 1.4;
}

.news-card p {
    color: var(--gris-oscuro);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-readmore {
    font-weight: 600;
    color: var(--azul-profundo);
    align-self: flex-start;
    transition: var(--transition-clean);
}

.news-card:hover .btn-readmore {
    color: var(--amarillo-vibrante);
}

/* ==========================================
   GALERÍA
   (.gallery-item y .gallery-overlay ya están
   estilizados por inicio.css; aquí solo se define
   la cuadrícula propia de esta página y el texto
   en <h4>, ya que inicio.css usa <span>)
   ========================================== */
.gallery-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    height: 250px;
}

.gallery-overlay h4 {
    font-family: var(--font-titles);
    color: var(--blanco);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
}

/* ==========================================
   VIDEOS
   ========================================== */
.videos-section {
    padding: 4rem 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    background-color: var(--blanco);
    border-radius: var(--radius-smooth);
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    border: 1px solid #f0f4f8;
}

.video-thumbnail {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-clean);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--amarillo-vibrante);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-clean);
}

.play-button span {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--azul-profundo);
    margin-left: 4px;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-card:hover .play-button {
    background-color: var(--azul-profundo);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card:hover .play-button span {
    border-left-color: var(--amarillo-vibrante);
}

.video-info {
    padding: 1.5rem;
}

.video-date {
    font-size: 0.8rem;
    color: var(--gris-oscuro);
    font-weight: 600;
}

.video-info h3 {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    color: var(--azul-profundo);
    margin: 0.5rem 0;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--gris-oscuro);
}

/* ==========================================
   BOLETINES Y COMUNICADOS
   ========================================== */
.bulletin-section {
    padding: 4rem 0 6rem 0;
}

.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bulletin-card {
    display: flex;
    align-items: center;
    background-color: var(--gris-claro);
    padding: 1.5rem;
    border-radius: var(--radius-smooth);
    gap: 1.5rem;
    transition: var(--transition-clean);
}

.bulletin-card:hover {
    background-color: var(--blanco);
    box-shadow: var(--shadow-elegant);
    transform: translateX(5px);
}

.pdf-icon {
    background-color: #E74C3C;
    color: var(--blanco);
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.bulletin-info {
    flex: 1;
}

.bulletin-info h3 {
    font-family: var(--font-titles);
    font-size: 1.05rem;
    color: var(--azul-profundo);
    margin-bottom: 0.3rem;
}

.bulletin-date {
    font-size: 0.8rem;
    color: var(--gris-oscuro);
}

.btn-download {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 2px solid var(--azul-profundo);
    color: var(--azul-profundo);
    border-radius: var(--radius-smooth);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-clean);
}

.btn-download:hover {
    background-color: var(--azul-profundo);
    color: var(--blanco);
}

/* ==========================================
   RESPONSIVE — mismos breakpoints que inicio.css
   (1200 / 992 / 768 / 480) para que toda la web
   cambie de layout en los mismos puntos.
   ========================================== */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 992px) {
    .hero-banner {
        min-height: auto;
        padding: 130px 5% 50px;
    }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content p { font-size: 1.05rem; }

    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-banner { padding: 120px 5% 40px; }
    .hero-content h1 { font-size: 2rem; }

    .featured-card { grid-template-columns: 1fr; }
    .featured-content { padding: 1.5rem; }

    .news-grid { grid-template-columns: 1fr; }
    .card-img-wrapper { height: 500px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .videos-grid { grid-template-columns: 1fr; }
    .video-thumbnail { height: 380px; }

    .bulletin-grid { grid-template-columns: 1fr; }
    .bulletin-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .btn-download {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-banner { padding: 110px 5% 35px; }
    .hero-content h1 { font-size: 1.7rem; }
    .hero-content p { font-size: 0.95rem; }

    .section-title { font-size: 1.6rem; }

    .card-img-wrapper { height: 420px; }
    .video-thumbnail { height: 300px; }

    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gallery-item { height: 160px; }
}
