body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, 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;
    
}



.companies {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    gap: 20px;
  }
  
  .company {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .company img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .company p {
    font-size: 16px;
    color: #333;
    margin: 0;
  }

/*FOOTER*/
.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 */
    
}


.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;
    }
}
.quienes-somos {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: #f5f5f5;
}
.quienes-somos-image {
    flex: 1;
    max-width: 50%;
}
.quienes-somos-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.quienes-somos-content {
    flex: 1;
    padding: 2rem;
}
.quienes-somos h2 {
    color: #181CA5;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.quienes-somos p {
    color: #34495e;
    margin-bottom: 1rem;
}
.quienes-somos-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.btn-ver-mas, .btn-vq-renovables {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.btn-ver-mas {
    background-color: #181CA5;
    color: white;
}
.btn-ver-mas:hover {
    background-color: #2c3e50;
}
@media (max-width: 768px) {
    .quienes-somos {
        flex-direction: column;
    }
    .quienes-somos-image {
        max-width: 100%;
    }
}
.nuestros-servicios {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.nuestros-servicios h2 {
    text-align: center;
    color: #181CA5;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.nuestros-servicios h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #181CA5;
    margin: 0.5rem auto;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.servicio-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.servicio-card:hover {
    transform: translateY(-5px);
}
.servicio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.servicio-content {
    padding: 1.5rem;
}
.servicio-content h3 {
    color: #181CA5;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.servicio-content p {
    color: #34495e;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.btn-ver-mas-servicio {
    display: inline-block;
    background-color: #181CA5;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.btn-ver-mas-servicio:hover {
    background-color: #2c3e50;
}
.servicio-card:nth-child(4) {
    background-color: #1e5631;
}
.servicio-card:nth-child(4) h3,
.servicio-card:nth-child(4) p {
    color: white;
}
.servicio-card:nth-child(4) .btn-ver-mas-servicio {
    background-color: #8bc34a;
    color: #1e5631;
}
.servicio-card:nth-child(4) .btn-ver-mas-servicio:hover {
    background-color: #3de23d;
}
@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

/* Nueva sección: Política de Calidad */
.politica-calidad {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}
.politica-calidad h2 {
    color: #181CA5;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.politica-calidad p {
    color: #34495e;
    margin-bottom: 1rem;
    text-align: justify; /* Justificar texto en esta sección */
}
.politica-calidad .btn-leer-mas {
    display: inline-block;
    background-color: #181CA5;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.politica-calidad .btn-leer-mas:hover {
    background-color: #2c3e50;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Aplicar animación de desvanecimiento a los títulos en la política de calidad */
.politica-calidad h2 {
    animation: fadeIn 1s ease forwards;
    opacity: 0; /* Iniciar oculto para la animación */
}

.politica-calidad p {
    animation: moveUp 0.8s ease forwards;
    animation-delay: 0.5s; /* Retrasa un poco */
    opacity: 0; /* Iniciar oculto para la animación */
}

/* Aplicar animación a los íconos de redes sociales */
.social-icons a {
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px); /* Mueve el icono hacia arriba al pasar el ratón */
}

/* Animación en las tarjetas de servicio */
.servicio-card {
    animation: moveUp 0.8s ease forwards;
    opacity: 0; /* Iniciar oculto para la animación */
}

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

.servicio-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-card:nth-child(odd) {
    animation-delay: 0.3s; /* Retrasa ligeramente las tarjetas impares */
}

.servicio-card:nth-child(even) {
    animation-delay: 0.6s; /* Retrasa ligeramente las tarjetas pares */
}

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;
}

@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: 60vh;
        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: 50vh;
    }

    .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;
    }
}

 
