/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2E8B57;
    --light-green: #3CB371;
    --dark-green: #1E6B47;
    --primary-yellow: #FFD700;
    --light-yellow: #FFF8DC;
    --dark-yellow: #DAA520;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --text-color: #333333;
    --text-light: #666666;
}

body {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-green);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-green);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--dark-yellow);
    color: var(--dark-gray);
    transform: translateY(-2px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre imagen y texto */
}

.logo-img {
  width: 250px;   /* Ajusta el tamaño según lo necesites */
  height: auto;  /* Mantiene la proporción */
}


.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    font-weight: 500;
    color: var(--dark-gray);
}

.nav ul li a:hover {
    color: var(--primary-green);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(46, 139, 87, 0.8), rgba(46, 139, 87, 0.9)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-content .btn {
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
}

.hero-content .btn:hover {
    background-color: var(--light-yellow);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.featured-article {
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.featured-article-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 500;
}

.featured-article h2 {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-meta .date {
    margin-right: 20px;
}

.article-meta .category {
    background-color: var(--light-yellow);
    color: var(--dark-yellow);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: 300px;
    margin: 30px auto;
    border-radius: 8px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 500;
}

blockquote {
    border-left: 4px solid var(--primary-yellow);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

/* News Section */
.news-section {
    margin-top: 60px;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--dark-green);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 500;
}

.news-item h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.news-item p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.altaltium-comment {
    background-color: var(--light-yellow);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-yellow);
}

.altaltium-comment h4 {
    color: var(--dark-yellow);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.altaltium-comment p {
    margin-bottom: 0;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .featured-article h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav ul li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .header .container {
        padding: 10px 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .featured-article {
        padding: 25px;
    }
    
    .featured-article-img {
        height: 250px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1rem;
    }
    
    .featured-article h2 {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
    }
    
    .article-meta .date {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .featured-article-img {
        height: 200px;
    }
    
    .article-image {
        height: 200px;
    }
}
.featured-article-img {
  width: 100%;
  max-width: 800px; /* Puedes ajustar según el ancho del artículo */
  margin: 0 auto 20px auto; /* Centra el contenedor y deja espacio abajo */
  overflow: hidden; /* Evita que sobresalga la imagen */
  border-radius: 10px; /* Opcional: bordes redondeados */
}

.featured-article-img img {
  width: 100%;
  height: auto; /* Mantiene proporción natural */
  object-fit: cover; /* Evita que se deforme si cambias el alto */
  display: block; /* Elimina espacios innecesarios */
}

