/* Estilos globales */
body, html {
    margin: 0;
    padding: 0;
    font-family:Arial, Helvetica, sans-serif;
}

/* Barra superior (top-bar) con enlaces y selector de idioma */
.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;
    
}

/* Aquí ajustamos el logo, eliminando display: grid y aplicando márgenes automáticos para centrar */
.logo {
    width: 100px;
    height: auto;
    margin-left: auto;  /* Añadido para centrar el logo horizontalmente */
    margin-right: auto; /* Añadido para centrar el logo horizontalmente */
}

.logo1{
    width: 200px;
    height: auto;
    margin-left: auto;  /* Añadido para centrar el logo horizontalmente */
    margin-right: auto; /* Añadido para centrar el logo horizontalmente */
}

/* Aquí empezamos con la navegación */
nav {
    background-color: white;
    padding: 10px 0;
    
    /* Añadido para alinear el logo y la lista de navegación horizontalmente */
    display: flex;                   /* Flexbox para alinear el logo y los enlaces */
    justify-content: space-between;         /* Centra el contenido */
    align-items: center;             /* Alinea verticalmente al centro */
    padding-right: 150px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    
    /* Ajustamos la lista de navegación */
    display: flex;                   /* Flexbox para mostrar los enlaces en línea */
}

nav ul li {
    margin: 0 10px;
}


 /* LETRA NEGRITA EN LA PARTE DE ARRIBA*/ 
nav ul li a {
    text-decoration: none;
    color: #181CA5;
    font-weight: bold;
}

.hero {
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: opacity 0.150s ease-in-out; /* Transición en opacidad */
    opacity: 1; /* Inicia visible */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px #ffffff; /* Sombra del color #ffffff */
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}
.btn {
    background-color: #00b300;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #7cb342;
}
.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: #181CA5;
            margin-bottom: 1rem;
            text-align: justify;
        }
        .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;
            }
        }

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

        .hero h1, .hero p {
            transform: translateY(-20px);
            opacity: 0;
            animation: fadeInUp 0.8s forwards;
        }
        
        @keyframes fadeInUp {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

/* Existing CSS for larger screens remains unchanged */

/* Media query for tablets (768px to 1024px) */
@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;
    }
}

 
