/* Asegurar que el body ocupe toda la altura */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* El contenido principal ocupa el espacio restante */
main {
    flex: 1;
}

/* Footer */
footer {
    background: url('../img/footer2.jpg') no-repeat center calc(100% + 75vh);
    background-size: cover;
    color: white;
    padding: 0px 20px 0 20px;
    width: 100%;
    height: 60vh;
    margin-top: auto;
}


.footer-container {
    margin-top: 17%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
    background-color: transparent; /* o no pongas nada */
}

.footer-section {
    margin-bottom: 20px;
}

/* Títulos de las secciones */

.footer-title {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: bold;
    color: white;
    text-align: left;

}

/* Listas de enlaces */
.footer-section ul {
    list-style: none;
    padding: 0;
}



/* Párrafos en el footer */
.footer-section p {
    font-size: 14px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    
    
}

/* Íconos */
.footer-section i {
    font-size: 18px;
}

/* Corregir color y eliminar subrayado de enlaces en la sección de contacto */
.footer-section a {
    color: white !important; /* Color blanco */
    text-decoration: none !important; /* Sin subrayado */
    margin-top: 10px;
    transition: color 0.3s ease;
}

/* Efecto hover en los enlaces de contacto */
.footer-section a:hover {
    color: #25D366 !important; /* Color de WhatsApp */
    text-decoration: underline;
}

/* Íconos de redes sociales */
.social-icons {
    color: white;
    font-size: 24px;
    margin-right: 10px;
    text-decoration: none;
}

.social-icons :hover {
    color: var(--primary-yellow);
}

/* Logo del footer */
.footer-logo {
    width: 110px;
    margin-top: 30px;   
    border-radius: 50%;
    border: 2px solid var(--primary-white);
    box-shadow: 2px 2px 10px 2px var(--primary-white);
}
.footer-autorizado {
    max-width: 200px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 2px solid var(--primary-white);
    box-shadow: 2px 2px 10px 2px var(--primary-white);

    
}

/* Sección inferior del footer */
/* Sección inferior del footer */
.footer-bottom {
    display: flex;
    justify-content: space-between; /* izquierda y derecha */
    align-items: center;
    flex-wrap: wrap; /* permite que se acomode en 2 líneas si no cabe */
    color: white;
    font-size: 12px;
    padding: 20px;
    background: var(--primary-darkgreen);
    text-align: center; /* útil para móviles */
    padding: 17px 100px;
}

.footer-bottom a strong {
    color: #ffffff; /* blanco fijo para Accuracy Nexus */
    text-decoration: none !important;
}

/* En pantallas pequeñas se apilan centrados */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        gap: 6px; /* espacio entre las dos líneas */
        padding: 15px 20px !important;
    }
}

/* Media Queries para pantallas de tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    footer {
        background-position: center calc(100% + 300px);
        height: auto;
    }

    .footer-container {
        padding-top: 50%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: left;
        margin-left: 5%;
        align-items: flex-start; /* Alinear contenido al inicio */
    }

    .footer-section {
        flex: 1 1 45%; /* Dos columnas, cada sección ocupa el 45% del ancho */
        text-align: left; /* Asegurar que los textos estén alineados a la izquierda */
        margin-bottom: 20px;
    }

    .footer-title {
        text-align: left; /* Alinear títulos a la izquierda */
        font-size: 20px; /* Ajustar tamaño de fuente para tablet */        
        font-weight: bold;
    }

    .footer-section p {
        justify-content: flex-start; /* Alinear iconos con el texto a la izquierda */
        font-size: 15px; /* Ajustar tamaño de fuente para tablet */
    }

    .social-icons {
        display: flex;
        justify-content: flex-start; /* Alinear iconos sociales a la izquierda */
        font-size: 22px; /* Ajustar tamaño de iconos sociales para tablet */
        gap: 10px;
    }

    .footer-logo {
        width: 120px; /* Ajustar tamaño del logo para tablet */
        margin-left: 25%;
    }

    .footer-autorizado {
        max-width: 220px; /* Ajustar tamaño del logo autorizado para tablet */
    }
}
/* Diseño responsivo */
@media (max-width: 768px) {
    footer {
        background-position: center calc(100% + 0px);
        height: 1000px;
    }

    .footer-container {
        padding-top: 50%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        text-align: center; /* Asegurar que los textos también se centren */
    }

    .footer-title {
        text-align: center;
        font-size: 18px; /* Ajustar tamaño de fuente para tablet */        
        font-weight: bold;
    }

    .footer-section p {
        justify-content: center; /* Centrar iconos con el texto */
    }

    .social-icons {
        display: flex;
        justify-content: center; /* Centrar iconos sociales */
        gap: 10px;
    }
}
