/* Estilos Generales */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

/* Estilos del Encabezado Principal */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos del Logo */
.main-header .logo img {
    height: 80px;
}

/* Estilos de la Navegación Principal */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 15px;
    margin-right: 15px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #007bff;
}

/* Estilo para el enlace "Contacto" */
.main-nav ul li:last-child a {
    color: #007bff;
    border: 1px solid #007bff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav ul li:last-child a:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Estilos para el Banner Principal */
.banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/img/banner.png");
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
}

/* Estilos del botón */
.btn-primary {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Estilos para la sección de servicios */
.services-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #f8f8f8;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: #007bff;
    margin: 0;
}

/* Estilos de la sección de soluciones para empresas */
.solution-section {
    padding: 60px 20px;
    background-color: #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}

.solution-text {
    flex: 1;
    min-width: 300px;
}

.solution-text .section-title {
    margin-bottom: 10px;
    text-align: left;
}

.solution-text p {
    text-align: left;
    margin-bottom: 20px;
}

.solution-cards {
    display: flex;
    gap: 20px;
    align-items: center;
}

.solution-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.solution-card img {
    width: 80px;
    height: 80px;
}

/* Estilos del botón secundario dentro de las tarjetas */
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Estilos para el pie de página (footer) */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 40px 50px;
    background-color: #2c3e50;
    color: #ecf0f1;
}

/* Nueva regla para los enlaces del footer */
.main-footer a {
    text-decoration: none;
    color: #ecf0f1;
    transition: color 0.3s ease;
}

/* Efecto hover para los enlaces del footer */
.main-footer a:hover {
    color: #007bff;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 20px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 10px;
}

.footer-contpaqi img {
    height: 180px;
    display: block;
}

.main-footer h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.main-footer ul {
    list-style: none;
    padding: 0;
}

.main-footer ul li a {
    text-decoration: none;
    color: #ecf0f1;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.main-footer ul li a:hover {
    color: #007bff;
}

.main-footer p {
    margin: 5px 0;
    line-height: 1.5;
}

.main-footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.main-footer .social-links img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.main-footer .social-links img:hover {
    transform: scale(1.1);
}


/* Media Queries para Tablets (ancho máximo de 1024px) */
@media (max-width: 1024px) {
    .main-header {
        padding: 15px 30px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .main-nav {
        margin-top: 10px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 5px 10px;
    }

    .banner {
        height: 50vh;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }

    .services-grid, .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .solution-section {
        flex-direction: column;
        gap: 20px;
    }

    .solution-text {
        text-align: center;
    }

    .solution-text .section-title, .solution-text p {
        text-align: center;
    }
}

/* Media Queries para Teléfonos Móviles (ancho máximo de 768px) */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .main-header .logo img {
        height: 60px;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 5px 0;
    }

    .banner {
        height: 40vh;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .services-section, .solution-section, .main-footer {
        padding: 30px 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .solution-section {
        flex-direction: column;
        text-align: center;
    }

    .solution-text, .solution-cards {
        width: 100%;
        justify-content: center;
    }
    
    .solution-text .section-title, .solution-text p {
        text-align: center;
    }

    .main-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        min-width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .footer-section h4 {
        text-align: center;
    }

    .main-footer .social-links, .main-footer ul {
        justify-content: center;
    }

    .footer-logo img, .footer-contpaqi img {
        margin: 0 auto;
    }
    
    .footer-section a {
        display: block;
    }
    
}