body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}
.top-bar {
    background-color: #181ca5;
    color: white;
    padding: 10px 0;
    text-align: right;
}
.top-bar select, .top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}
.logo {
    width: 100px;
    height: auto;
    margin-left: auto;  /* Añadido para centrar el logo horizontalmente */
    margin-right: auto;
}
.logo:hover{
    cursor: pointer;
}
nav {
    background-color: white;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 150px;
}
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}
nav ul li {
    margin: 0 10px;
}
nav ul li a {
    text-decoration: none;
    color: #181CA5;
    font-weight: bold;
}
.hero {
    background-image: url('QuienesSomos4.jpg');
    background-size: 180%; /* Ajusta el porcentaje según lo necesites */
    background-position: 2% center; /*no modificar */
    background-repeat: no-repeat; /*no modificar */
    height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 100px;
    color: white;
    padding-left: 60px;
    
}
.hero h1 {
    font-size: 3em; /* Aumenta el tamaño de la fuente */
    margin-bottom: 20px;
    text-align: right;
    text-shadow: 1px 1px 3px #ffffff; /* Sombra del color #181CA5 */
}
.hero p {
    font-size: 1.2em;
    max-width: 700px;
    text-align: justify; /* Añade esta línea para justificar el texto */
    margin-right: auto;
}
.content {
    display: flex;
    flex-direction: column;
    text-align: justify; /* Añade esta línea para justificar el texto */
    
}
.section {
    display: flex;
    width: 100%;
    text-align: justify; /* Añade esta línea para justificar el texto */
    /*display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px;
    background-color: white;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
}
.text-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/*.image-content {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}*/
.image-content {
    flex: 1;
    min-height: 150px; /* Aumenta la altura mínima para que la imagen tenga más espacio */
    background-size: cover; /* Esto puede ser eliminado si no se usa fondo */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-content img {
    width: 150px; /* Mantiene la proporción de la imagen */
    height: auto; /* Mantiene la altura del contenedor */
    max-width: 100%; /* Asegura que no exceda el ancho del contenedor */
    object-fit: contain; /* Ajusta la imagen sin recortarla */
    object-position: center; /* Centra la imagen dentro del contenedor */
}

.text-content h2 {
    color: #202379;
    margin-bottom: 20px;
}
.text-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}








/* RUCCCCC */

.stats-section {
    display: flex;
    justify-content: space-around;
    background: url('proyecto7.jpg') no-repeat center center/cover; /* Puedes agregar la imagen de fondo que desees */
    padding: 40px 0;
    color: white;
    
}

.stat {
    text-align: center;
    width: 18%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    border-radius: 10px;
}

.stat i {
    font-size: 50px;
    margin-bottom: 20px;
}

.stat h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.stat p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
}

.btn:hover {
    background-color: white;
    color: #000;
}

@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 80%;
        margin-bottom: 20px;
    }
}

.divider {
    border: 0;
    height: 10px; /* Ajusta el grosor de la línea */
    background-color: white; /* Color blanco para la línea */
    margin: 10px 0; /* Margen entre las secciones */
}







.footer {
    background-color: #202379;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-logo {
    width: 150px;
    margin-bottom: 2rem;
}
.footer-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}
.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 1rem;
    text-align: center;
}
.footer-column h3 {
    margin-bottom: 0.5rem;
}
.footer-column i {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.social-icons {
    margin-top: 1rem;
}
.social-icons a {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.5rem;
}
@media (max-width: 768px) {
    .footer-info {
        flex-direction: column;
        align-items: center;
    }
    .footer-column {
        margin: 1rem 0;
    }
}

@media (max-width: 400px) {
    .quienes-somos {
        flex-direction: column;
    }
    .quienes-somos-image {
        max-width: 50%;
    }
}

/* Animación para que los elementos aparezcan con un desvanecimiento desde la parte inferior */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Aplicar animaciones a secciones individuales */
.section,
.stats-section,
.footer {
    animation: fadeUp 1.5s ease forwards;
    opacity: 0; /* Empieza invisible hasta que la animación termine */
}

.stat {
    animation: fadeUp 2s ease forwards;
    opacity: 0;
}



/* Secciones de texto: desvanecimiento con desplazamiento lateral al aparecer */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RUCCCCC */
.stats-section {
    display: flex;
    justify-content: space-around;
    background: url('proyecto7.jpg') no-repeat center center/cover; /* Puedes agregar la imagen de fondo que desees */
    padding: 40px 0;
    color: white;
}

.stat {
    text-align: center;
    width: 18%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    border-radius: 10px;
    transition: transform 0.1s; /* Transición suave para el movimiento */
}

/* Efecto de movimiento ligero al pasar el ratón */
.stat:hover {
    transform: translateY(-5px); /* Movimiento hacia arriba */
}

.stat i {
    font-size: 50px;
    margin-bottom: 20px;
}

.stat h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.stat p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
}



@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* Fade in para los iconos dentro del footer */
.footer-column i {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 1s; /* Retrasa la animación para que sea visible después */
}

/* Mover los títulos en el footer al pasar el ratón */
.footer-column:hover h3 {
    transform: translateY(-5px); /* Mueve el título hacia arriba */
    transition: transform 0.3s ease; /* Transición suave */
}



/* Animación de barra de navegación al hacer hover */
nav ul li a {
    position: relative;
    overflow: hidden;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #181CA5;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p {
    opacity: 0; /* Inicia con opacidad 0 */
    animation: fadeIn 0.5s ease-out forwards; /* Aplica la animación */
}

.hero h1 {
    animation-delay: 0.3s; /* Añade un retraso al título */
}

.hero p {
    animation-delay: 0.5s; /* Añade un retraso diferente para el párrafo */
}

/* Hero Styles */
.hero {
    background-image: url('QuienesSomos4.jpg');
    background-size: 180%;
    background-position: 2% center;
    background-repeat: no-repeat;
    height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 100px;
    color: white;
    padding-left: 60px;
}

/* Existing CSS for larger screens remains unchanged */

@media (max-width: 1024px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    .logo {
        width: 80px;
    }

    .hero {
        height: 70vh;
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quienes-somos {
        flex-direction: column;
    }

    .quienes-somos-image {
        max-width: 100%;
    }

    .footer-content {
        padding: 0 20px;
    }




}

/* Media query for mobile devices (up to 768px) */
@media (max-width: 768px) {
    /* Top-bar adjustments */
    .top-bar {
        text-align: center;
    }

    .top-bar select, .top-bar a {
        display: inline-block;
        margin: 5px 10px;
    }

    /* Navigation adjustments */
    nav {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 60px;
    }

    /* Hero section */
    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    /* Section spacing and text alignment */
    .quienes-somos, .nuestros-servicios {
        padding: 0 15px;
    }

    /* Grid layout changes */
    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicio-card img {
        height: auto;
    }

    /* Footer adjustments */
    .footer-info {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .social-icons {
        margin: 10px 0;
    }


}

/* Additional animations for mobile */
@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

 
