/* Footer Full Width Fix - Soluciona espacios laterales y debajo del footer */

/* Resetear márgenes y padding del body y html */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    height: 100% !important;
}

/* Eliminar cualquier espacio en blanco al final de la página */
html {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 100vh !important;
}

/* Footer de ancho completo - SOBRESCRIBIR ESTILOS DE styles.css */
.footer {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 3rem !important;
    padding-bottom: 0 !important; /* ELIMINAR padding-bottom de styles.css */
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: white !important;
    text-align: left !important; /* Sobrescribir text-align: center de styles.css */
    font-size: 1rem !important; /* Sobrescribir font-size: 0.9rem de styles.css */
}

/* Contenedor del footer con padding interno */
.footer .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto !important;
}

/* Eliminar cualquier padding o margin de contenedores principales */
.container-fluid, .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Solo aplicar padding al contenido del footer, no al footer mismo */
.footer .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Asegurar que no haya espacios en blanco debajo del footer */
.footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Eliminar cualquier espacio después del footer */
.footer::after {
    display: none !important;
}

/* Asegurar que el body no tenga margin-bottom */
body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Eliminar cualquier espacio del último elemento */
.footer:last-child {
    margin-bottom: 0 !important;
}

/* Asegurar que no haya elementos con margin después del footer */
.footer + * {
    margin-top: 0 !important;
}

/* Eliminar cualquier espacio de elementos que puedan estar después del footer */
.footer ~ * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Asegurar que el footer sea el último elemento visible */
.footer {
    position: relative !important;
    z-index: 999 !important;
}

/* Eliminar cualquier pseudo-elemento que pueda crear espacio */
.footer::before,
.footer::after {
    content: none !important;
    display: none !important;
}

/* Asegurar que no haya scroll vertical innecesario */
html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Eliminar cualquier espacio del viewport */
* {
    box-sizing: border-box !important;
}

/* Asegurar que el footer llegue hasta el final del viewport */
.footer {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* SOBRESCRIBIR ESPECÍFICAMENTE LOS ESTILOS DE styles.css */
.footer {
    /* Sobrescribir padding de styles.css que causa espacio debajo */
    padding: 3rem 0 0 0 !important; /* Solo padding-top, sin padding-bottom */
    
    /* Sobrescribir otros estilos de styles.css */
    text-align: left !important; /* En lugar de center */
    font-size: 1rem !important; /* En lugar de 0.9rem */
    font-family: inherit !important; /* En lugar de Montserrat específico */
}

/* Eliminar cualquier padding adicional que pueda venir de otros archivos CSS */
.footer * {
    margin-bottom: 0 !important;
}

/* Asegurar que el último elemento del footer no tenga margin-bottom */
.footer .row:last-child,
.footer .container:last-child,
.footer > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Estilos específicos para el footer */
.footer-title {
    color: #0dcaf0 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
}

.footer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-list li {
    margin-bottom: 0.5rem !important;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-list a:hover {
    color: #0dcaf0 !important;
}

.social-links {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
}

.social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.social-link:hover {
    background: #0dcaf0 !important;
    transform: translateY(-2px) !important;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

.contact-info a:hover {
    color: #0dcaf0 !important;
}

.copyright {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease !important;
}

.footer-link:hover {
    color: #0dcaf0 !important;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 576px) {
    .footer .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}
