/* 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 de la página de Factura Electrónica */
.page-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; /* Se corrigió la altura */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

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

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

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

/* Estilos para la sección del logo del sistema */
.system-logo-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f8f8;
}

.system-logo-section img {
    max-width: 400px;
    height: auto;
}

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

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-text {
    margin-bottom: 40px;
}

.features-text h2 {
    font-size: 2.5rem;
    color: #333;
}

.features-text p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 10px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

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

.feature-card h3 {
    font-size: 1.2rem;
    color: #203569;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

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

.process-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    width: 250px;
    text-align: center;
}

.step-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.step-card h3 {
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Estilos para la sección de CTA */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #255eb6;
    color: #ffffff;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background-color: #ffffff;
    color: #007bff;
    border: 1px solid #ffffff;
}

.cta-section .btn-primary:hover {
    background-color: #f0f2f5;
    color: #007bff;
}

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

.main-footer a {
    text-decoration: none;
    color: #ecf0f1;
    transition: color 0.3s ease;
}

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

    .page-banner {
        padding: 60px 20px;
    }

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

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

    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .main-footer {
        padding: 40px 30px;
    }
}

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

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

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

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

    .page-banner {
        padding: 40px 10px;
    }

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

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

    .features-text {
        padding: 0 10px;
    }

    .cta-section {
        padding: 40px 10px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        width: 100%;
    }

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

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

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

    .footer-contpaqi img {
        margin: 0 auto;
    }

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

    .main-footer ul li {
        text-align: center;
    }
}