/* Variables */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --accent-color: #3498db;
    --text-color: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --border-color: #dddddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Botones */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
}

.btn-text i {
    margin-left: 5px;
    transition: var(--transition);
}

.btn-text:hover i {
    transform: translateX(5px);
}

.center-button {
    text-align: center;
    margin-top: 30px;
}

/* Cabecera */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-links a.btn-primary {
    padding: 8px 20px;
    color: white;
}

.nav-links a.btn-primary:hover {
    color: white;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    outline: none;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Animación del ícono hamburguesa cuando el menú está activo */
body.menu-open .hamburger {
    background-color: transparent;
}

body.menu-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

body.menu-open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Highlights */
.highlights {
    background-color: var(--bg-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.highlight-card p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.highlight-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.highlight-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.highlight-link:hover i {
    transform: translateX(5px);
}

/* About preview */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-text .btn-secondary {
    margin-top: 10px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Projects */
.projects-preview {
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Impact */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

.impact-testimonial {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.impact-testimonial::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    left: 20px;
    top: 10px;
    color: var(--primary-color);
    opacity: 0.3;
}

.impact-testimonial blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.impact-testimonial cite {
    font-style: normal;
    font-weight: 600;
}

/* News */
.news {
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-date {
    display: inline-block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.news-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Collaborate */
.collaborate {
    background-color: white;
}

.collaborate-content {
    text-align: center;
}

.collaborate-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.collaborate-content > p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px;
}

.collaborate-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.collaborate-option {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.collaborate-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.option-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.collaborate-option h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.collaborate-option p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0 30px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: var(--bg-dark);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 25px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.footer-info {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 0.85rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid,
    .news-grid,
    .collaborate-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    /* Menú móvil - Implementación con inspiración de Magic UI */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1010;
        width: 48px;
        height: 48px;
        margin-right: 5px;
        cursor: pointer;
        background: transparent;
        border: none;
        border-radius: 50%;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
        overflow: hidden;
    }
    
    .menu-toggle:hover {
        background-color: rgba(46, 204, 113, 0.1);
        transform: scale(1.05);
    }
    
    .menu-toggle:active {
        transform: scale(0.95);
    }
    
    .menu-icon-container {
        width: 24px;
        height: 18px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .menu-icon-line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
                    opacity 0.3s ease;
    }
    
    /* Animación de las líneas cuando el menú está activo */
    body.menu-open .menu-icon-line-1 {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    body.menu-open .menu-icon-line-2 {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    body.menu-open .menu-icon-line-3 {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Diseño overlay para el menú móvil - Inspirado en Magic UI */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0; /* Corrected from -100% */
        width: 80%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1100;
        padding: 80px 20px 20px;
        margin: 0;
        list-style: none;
        text-align: left;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateX(100%);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        backdrop-filter: blur(3px);
        pointer-events: none;
    }
    
    body.menu-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-links li {
        margin: 0;
        padding: 0;
        width: 100%;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: calc(0.05s * var(--item-index, 0));
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links li:nth-child(1) { --item-index: 1; }
    .nav-links li:nth-child(2) { --item-index: 2; }
    .nav-links li:nth-child(3) { --item-index: 3; }
    .nav-links li:nth-child(4) { --item-index: 4; }
    .nav-links li:nth-child(5) { --item-index: 5; }
    
    .nav-links li a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        font-size: 18px;
        font-weight: 500;
        width: 100%;
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        margin-bottom: 5px;
        position: relative;
        overflow: hidden;
    }
    
    .nav-links li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background-color: var(--primary-color);
        opacity: 0;
        transform: translateX(-5px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-links li a:hover::before,
    .nav-links li a:focus::before,
    .nav-links li a.active::before {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links li a:hover,
    .nav-links li a:focus {
        background-color: rgba(46, 204, 113, 0.1);
        color: var(--primary-color);
        transform: translateX(5px);
        box-shadow: 0 4px 10px rgba(46, 204, 113, 0.1);
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-grid,
    .news-grid,
    .collaborate-options {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Página de Contacto */
.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-methods {
    margin: 30px 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.method-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.method-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.method-content p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.social-contact {
    margin-top: 30px;
}

.social-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Formulario de contacto */
.contact-form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    width: auto;
    margin-top: 5px;
    margin-right: 10px;
}

.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
}

.form-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Mapa */
.map-section {
    background-color: var(--bg-light);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Preguntas Frecuentes */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background-color: white;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

.faq-toggle {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Contact Page */
@media (max-width: 992px) {
    .contact-flex {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-details {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .method-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Page Hero for internal pages */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/page-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    color: white;
    text-align: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Estilos para misión y visión */
.mission-vision {
    background-color: var(--bg-light);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mission-card, .vision-card {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mission-card h3, .vision-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.mission-card p, .vision-card p {
    color: var(--text-light);
}

/* Estilos para áreas de trabajo */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.area-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.area-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.area-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.area-card p {
    color: var(--text-light);
}

/* Estilos para valores */
.values-list {
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.value-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.value-content p {
    color: var(--text-light);
}

/* Estilos para aliados */
.partners-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.partner-logo {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    height: 80px;
    margin-bottom: 15px;
}

.partner-logo p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Estilos para proyectos */
.project-categories {
    padding: 20px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
    z-index: 900;
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.category-link:hover, .category-link.active {
    background-color: var(--primary-color);
    color: white;
}

.project-section {
    padding: 80px 0;
    scroll-margin-top: 150px;
}

.project-section:nth-child(even) {
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 25px;
}

.project-details h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-location, .project-partner {
    display: flex;
    align-items: center;
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.project-location i, .project-partner i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1rem;
}

.project-description {
    margin: 15px 0;
    color: var(--text-light);
}

/* Proyectos destacados */
.featured-projects {
    background-color: white;
    padding: 80px 0;
}

.featured-project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.featured-project-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.featured-project-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.featured-project-content .project-location,
.featured-project-content .project-partner {
    margin-bottom: 15px;
    font-size: 1rem;
}

.project-details-extended p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Media Queries Adicionales */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .highlights-grid,
    .team-grid,
    .projects-grid,
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content,
    .project-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .highlights-grid,
    .team-grid,
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-col:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .header-container {
        padding: 12px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 999;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        height: auto;
        padding: 20px 0;
    }
    
    .nav-links li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 80px 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        margin: 10px 0;
        width: 80%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .collaborate-content {
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons a {
        margin: 10px 0;
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .stats-item {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .contact-container,
    .project-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col:first-child {
        grid-column: span 1;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .mission-vision-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .mission-card, .vision-card {
        width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .partner-logo img {
        max-height: 60px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .footer-logo {
        max-width: 150px;
    }
}