/* =====================================================
   FOOTER LEGAL - MOBILE FIRST - FOOTER NORMAL (NO STICKY)
   ===================================================== */

/* El footer aparece después de todo el contenido (scroll para verlo) */

/* 2️⃣ ESTILOS DEL FOOTER (Mobile First) */
.footer-legal {
    background-color: #212529;
    color: #ffffff;
    padding: 1.25rem 1rem; /* Mobile: padding reducido */
    width: 100%;
    clear: both;
    margin-top: 3rem; /* Separación del contenido */
}

/* 3️⃣ CONTENEDOR */
.footer-legal .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 4️⃣ FILAS Y COLUMNAS - Mobile First */
.footer-legal .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.footer-legal .col-md-2,
.footer-legal .col-md-3 {
    flex: 0 0 50%; /* Mobile: 2 columnas al 50% */
    max-width: 50%;
    padding: 0 10px;
    margin-bottom: 1.25rem; /* Reducido de 2rem */
}

/* 5️⃣ TÍTULOS */
.footer-legal h5 {
    font-weight: 700;
    font-size: 1.1rem; /* Reducido de 1.25rem */
    margin-bottom: 0.75rem; /* Reducido de 1rem */
    color: #ffffff;
}

.footer-legal h6 {
    font-weight: 700;
    font-size: 0.8rem; /* Reducido de 0.875rem */
    margin-bottom: 0.75rem; /* Reducido de 1rem */
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 6️⃣ TEXTO */
.footer-legal .small {
    font-size: 0.8rem; /* Reducido de 0.875rem */
    line-height: 1.5; /* Reducido de 1.6 */
}

.footer-legal .text-white-50 {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* 7️⃣ LISTAS */
.footer-legal .list-unstyled {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.footer-legal .list-unstyled li {
    margin-bottom: 0.5rem; /* Reducido de 0.75rem */
}

/* 8️⃣ ENLACES */
.footer-legal a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal small.opacity-75 {
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.9);
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: #ffffff !important;
    text-decoration: underline;
}

/* 9️⃣ ICONOS DE REDES SOCIALES */
.footer-legal .d-flex {
    display: flex;
}

.footer-legal .gap-3 {
    gap: 1rem;
}

.footer-legal .fs-4 {
    font-size: 1.5rem;
}

.footer-legal a[title]:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* 🔟 LÍNEA SEPARADORA */
.footer-legal hr {
    border: 0;
    border-top: 1px solid #6c757d;
    margin: 1rem 0; /* Reducido de 1.5rem */
    opacity: 0.3;
}

/* 1️⃣1️⃣ COPYRIGHT */
.footer-legal .text-center {
    text-align: center;
}

/* =====================================================
   📱 RESPONSIVE - TABLET (≥768px)
   ===================================================== */
@media (min-width: 768px) {
    .footer-legal {
        padding: 1.5rem 1rem; /* Reducido de 2.5rem */
    }
    
    .footer-legal .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
        margin-bottom: 0;
    }
    
    .footer-legal .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
        margin-bottom: 0;
    }
    
    .footer-legal h5 {
        font-size: 1.25rem; /* Ligeramente más grande en tablet */
    }
    
    .footer-legal h6 {
        font-size: 0.85rem;
    }
}

/* =====================================================
   💻 RESPONSIVE - DESKTOP (≥992px)
   ===================================================== */
@media (min-width: 992px) {
    .footer-legal {
        padding: 2rem 1.5rem; /* Reducido de 3rem */
    }
    
    .footer-legal .container {
        padding: 0 30px;
    }
    
    .footer-legal .row {
        margin: 0 -15px;
    }
    
    .footer-legal .col-md-2,
    .footer-legal .col-md-3 {
        padding: 0 15px;
    }
}

/* =====================================================
   🖥️ RESPONSIVE - LARGE DESKTOP (≥1200px)
   ===================================================== */
@media (min-width: 1200px) {
    .footer-legal {
        padding: 2.25rem 2rem; /* Reducido de 3.5rem */
    }
}

/* =====================================================
   ♿ ACCESIBILIDAD
   ===================================================== */

/* Focus visible para navegación por teclado */
.footer-legal a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Mejora de contraste para WCAG AA */
.footer-legal a {
    font-weight: 500;
}

/* =====================================================
   🎨 ANIMACIONES SUAVES (UX)
   ===================================================== */
.footer-legal a {
    position: relative;
}

.footer-legal .list-unstyled a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.footer-legal .list-unstyled a:hover::before {
    width: 100%;
}

/* =====================================================
   🔧 UTILIDADES ADICIONALES
   ===================================================== */
.footer-legal .mb-0 {
    margin-bottom: 0 !important;
}

.footer-legal .mb-2 {
    margin-bottom: 0.5rem !important;
}

.footer-legal .mb-3 {
    margin-bottom: 1rem !important;
}

.footer-legal .me-1 {
    margin-right: 0.25rem !important;
}

.footer-legal .me-2 {
    margin-right: 0.5rem !important;
}

.footer-legal .fw-bold {
    font-weight: 700 !important;
}

/* =====================================================
   📱 MOBILE - MEJORAS ESPECÍFICAS
   ===================================================== */
@media (max-width: 576px) {
    .footer-legal {
        padding: 1rem 0.75rem; /* Más compacto en móvil */
    }
    
    .footer-legal h5 {
        font-size: 1rem; /* Más pequeño */
        text-align: center;
    }
    
    .footer-legal h6 {
        font-size: 0.75rem; /* Más pequeño */
        text-align: center;
    }
    
    .footer-legal .col-md-2,
    .footer-legal .col-md-3 {
        text-align: center;
        margin-bottom: 1rem; /* Reducido de 1.5rem */
    }
    
    .footer-legal .list-unstyled {
        text-align: center;
    }
    
    .footer-legal .d-flex.gap-3 {
        justify-content: center;
    }
    
    .footer-legal .small {
        font-size: 0.75rem; /* Más pequeño */
    }
}

/* =====================================================
   🌙 DARK MODE SUPPORT (opcional para futuro)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    .footer-legal {
        background-color: #1a1a1a;
    }
}

/* =====================================================
   🖨️ PRINT STYLES
   ===================================================== */
@media print {
    .footer-legal {
        background-color: #ffffff !important;
        color: #000000 !important;
        border-top: 2px solid #000000;
    }
    
    .footer-legal a {
        color: #000000 !important;
        text-decoration: underline;
    }
    
    .footer-legal .d-flex.gap-3 {
        display: none !important; /* Ocultar redes sociales en impresión */
    }
}

