body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    animation: fadeIn 1.5s ease-in-out;
}

/* Estilos para la navbar */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8); /* Transparencia */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    animation: slideDown 1s ease-in-out;
}

.nav .logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav .nav-links {
    display: flex;
    gap: 20px;
}

.nav .nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav .nav-links a:hover {
    color: #FFD700;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

.nav img {
    height: 70px; /* Reducir altura */
    width: auto; /* Mantener proporciones */
    padding: 5px; /* Espaciado alrededor */
}

.container {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 80px; /* Ajustamos el margen superior para no tapar la navbar */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%; /* Ajustado para centrarse con márgenes */
    margin-left: auto;
    margin-right: auto; /* Centramos la sección */
    animation: fadeIn 1.5s ease-in-out;
}

.text-section {
    flex: 1;
    padding-right: 20px;
}

.text-section h1 {
    font-size: 36px;
    color: #000;
    margin: 0;
}

.text-section p {
    font-size: 18px;
    color: #000;
    margin: 10px 0 20px 0;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.logos img {
    max-width: 400px;
    height: auto;
}

.video-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-section video {
    max-width: 1000px; /* Para asegurar que sea responsivo */
    width: 100%; /* Se ajusta al 100% del contenedor */
    height: auto; /* Mantiene proporción */
    border-radius: 10px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .text-section {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .logos {
        justify-content: center;
    }
}

/* Cards de proyectos */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: popUp 1s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px); /* Eleva la card */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Sombra más grande */
}


.project-card img {
    width: 450px; /* Nuevo tamaño ajustado */
    height: 450px; /* Mantener proporción */
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.5em;
    color: #333;
}

.project-card p {
    font-size: 1.1em;
    color: #555;
}



@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes popUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
