/* Estilos Generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/**/
header {
    background-color: #333;
    padding: 10px 0;
    width: 100%;
}

/* ====== Menú en pantallas grandes ====== */
.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;
}

/* ====== Estilos para móviles ====== */
.mobile-header {
    display: none; /* Se oculta en pantallas grandes */
}

/* ====== Menú móvil con logo centrado ====== */
@media (max-width: 768px) {
    /* Oculta el menú tradicional */
    .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 img {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
    }

    .mobile-nav a:hover {
        color: #9ccc65;
    }

    /* Ajuste del espacio para que el contenido no quede tapado */
    body {
        padding-top: 100px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 6rem 0;
    color: black;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Titulo videos */
.videos-title {
    font-size: 45px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.videos-title::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #66bb6a;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
}
.team-header {
    text-align: center;
    color: #333;
    padding: 20px 0;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
}
.team-member {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    position: relative;
}
.team-member:hover {
    transform: scale(1.05);
}
.team-member .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}
.team-member .header h3 {
    margin: 5px 0;
    font-size: 1.2em;
}
.team-member .header h4 {
    margin: 0;
    color: #666;
    font-weight: bold;
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.team-member .description {
    flex-grow: 1;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 20px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
    filter: grayscale(100%) opacity(0.7);
}
.social-links svg {
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
    fill: #1a472a; /* Color verde solicitado */
}
.social-links svg:hover {
    transform: scale(1.2);
    fill: black; /* Al hacer hover cambia a negro */
}
.social-links img:hover {
    transform: scale(1.2);
    filter: grayscale(0%) opacity(1);
}
@media screen and (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* 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;
    }
}