/* Estilos generales y reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* Cabecera y Menú */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* Estilos para el Logotipo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo {
    max-height: 65px; /* Ajusta la altura de tu logo aquí si es necesario */
    width: auto;
    object-fit: contain;
    margin-bottom: 4px;
}

.slogan {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: #1a365d;
    flex-wrap: wrap;
}

nav ul li a {
    display: block;
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #2b4c7e;
}

/* Contenedor Principal */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Noticia Destacada (Hero) */
.featured-news {
    background: #ffffff;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-tag {
    display: inline-block;
    background-color: #e2e8f0;
    color: #2d3748;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
}

.featured-content h2 {
    font-size: 1.8rem;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-content p {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1rem;
}

.read-more {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.read-more:hover {
    color: #1a365d;
    text-decoration: underline;
}

/* Título de sección */
.section-title {
    margin-bottom: 20px;
    border-bottom: 2px solid #1a365d;
    padding-bottom: 5px;
}

.section-title h3 {
    color: #1a365d;
    font-size: 1.4rem;
}

/* Rejilla de Noticias Recientes */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1.25rem;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-body p {
    color: #718096;
    font-size: 0.95rem;
}

/* Pie de página */
footer {
    background-color: #1a365d;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-sub {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 5px;
}

/* Diseño Responsivo para Celulares */
@media (max-width: 768px) {
    .featured-news {
        grid-template-columns: 1fr;
    }
    
    .featured-image img {
        height: 250px;
    }

    nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }
}