/* Estilos Generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #333;
    padding: 10px 0;
    width: 100%;
}

/* ====== Menú en computadoras ====== */
.desktop-nav {
    background-color: #333;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 180px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-links a:hover {
    color: #9ccc65;
}

/* ====== Menú en móviles ====== */
.mobile-header {
    display: none; /* Se oculta en computadoras */
}

/* ====== Menú móvil con logo centrado ====== */
@media (max-width: 768px) {
    /* Oculta el menú de escritorio */
    .desktop-nav {
        display: none;
    }

    /* Contenedor del logo y menú en móviles */
    .mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #333;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    /* Estilos del logo */
    .mobile-header .logo img {
        height: 60px;
    }

    /* Menú móvil debajo del logo */
    .mobile-nav ul {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 10px 0;
    }

    .mobile-nav li {
        list-style: none;
        text-align: center;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white;
        text-decoration: none;
        font-size: 0.9em;
    }

    .mobile-nav a:hover {
        color: #9ccc65;
    }

    /* Ajuste del espacio para que el contenido no quede tapado */
    body {
        padding-top: 100px;
    }
}

/* Sección "Sobre Nosotros" */
.about {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.about .content {
    flex: 1 1 50%;
    padding: 1rem;
}

.about .image-section {
    flex: 1 1 30%;
    text-align: center;
}

.about .image-section img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Misión y Visión */
.mission-vision {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 2rem auto;
    max-width: 1200px;
}

.mission-vision .box {
    flex: 1 1 45%;
    background-color: #f4f4f4;
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mission-vision .box h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a472a, #2a6041);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.footer-heading {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Raleway', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.social-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.social-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.social-link svg {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.3s ease;
}
.footer-text {
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer-heading {
        font-size: 1.5rem;
    }
    
    .social-container {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .social-link svg {
        width: 25px;
        height: 25px;
    }
}