/* ========================================
   FOOTER MODERNA
   Última modificación: 2026-02-03 08:55
   ======================================== */

.footer-moderna {
    background: var(--color-primary);
    color: #ffffff;
    padding: 2.5rem 0 0 0;
    margin-top: 0;
    clear: both;
}

/* Sección Superior */
.footer-top {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

/* Logo y Marca */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 200px;
    height: auto;
}

.footer-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

.brand-highlight {
    color: #e5a040;
    font-size: 1.3rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Caja de Contacto */
.footer-contact-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.25rem;
}

.contact-box-title {
    color: #e5a040;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-box-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-box-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.contact-box-item i {
    color: #e5a040;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Sección de Enlaces */
.footer-links {
    padding-bottom: 2rem;
}

.footer-links-title {
    color: #e5a040;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

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

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Redes Sociales */
.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: #e5a040;
    border-color: #e5a040;
    transform: translateY(-3px);
}

/* Dirección */
.footer-address {
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-address i {
    color: #e5a040;
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-address p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-moderna {
        padding: 2rem 0 0 0;
        margin-top: 2rem;
    }
    
    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .footer-logo {
        width: 60px;
    }
    
    .footer-brand-title {
        font-size: 1rem;
    }
    
    .brand-highlight {
        font-size: 1.1rem;
    }
    
    .footer-contact-box {
        margin-top: 1.5rem;
    }
    
    .footer-links {
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .footer-moderna {
        padding: 1.5rem 0 0 0;
    }
    
    .footer-top {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-brand {
        margin-bottom: 0.75rem;
    }
    
    .footer-contact-box {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .contact-box-title {
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }
    
    .contact-box-items {
        gap: 0.5rem;
    }
    
    .contact-box-item {
        font-size: 0.85rem;
    }
    
    .footer-links {
        padding-bottom: 1.5rem;
    }
    
    /* Forzar layout 2x2 en móvil */
    .footer-links .row > div {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .footer-links-title {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-links-list li {
        margin-bottom: 0.4rem;
    }
    
    .footer-links-list a {
        font-size: 0.75rem;
    }
    
    .footer-social-icons {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-address {
        font-size: 0.75rem;
    }
}

/* ========================================
   OPTIMIZACIONES PARA FOOTER COMÚN EN PLANTILLA MODERNA
   ======================================== */

@media (max-width: 576px) {
    /* Configurar row para 3 columnas - SOLO PLANTILLA MODERNA */
    .template-moderna .footer-enlaces-principales .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Columna 1 (Enlaces Útiles) - 33.33% */
    .template-moderna .footer-enlaces-principales .row > div:nth-child(1) {
        order: 1 !important;
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        text-align: center !important;
    }
    
    /* Columna 2 (Estamos Cerca) - OCULTAR */
    .template-moderna .footer-enlaces-principales .row > div:nth-child(2) {
        display: none !important;
    }
    
    /* Columna 3 (Servicios) - 33.33% */
    .template-moderna .footer-enlaces-principales .row > div:nth-child(3) {
        order: 2 !important;
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        text-align: center !important;
    }
    
    /* Columna 4 (Secretarías) - 33.33% */
    .template-moderna .footer-enlaces-principales .row > div:nth-child(4) {
        order: 3 !important;
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        text-align: center !important;
    }
    
    /* Reducir padding de secciones */
    .template-moderna .footer-enlaces-principales {
        padding: 1.5rem 0 1rem 0 !important;
    }
    
    .template-moderna .footer-contacto {
        padding: 1rem 0 1.5rem 0 !important;
    }
    
    .template-moderna .footer-bottom {
        padding: 1.25rem 0 !important;
    }
    
    /* Optimizar títulos y separadores */
    .template-moderna .footer-titulo {
        font-size: 0.7rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .template-moderna .footer-separador {
        margin-bottom: 0.5rem !important;
        width: 2rem !important;
    }
    
    /* Optimizar listas */
    .template-moderna .footer-lista {
        margin-bottom: 1rem !important;
    }
    
    .template-moderna .footer-lista li {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.3 !important;
    }
    
    .template-moderna .footer-lista li i {
        font-size: 0.65rem !important;
        margin-right: 0.4rem !important;
    }
    
    /* Optimizar cards de teléfonos */
    .template-moderna .contacto-card {
        padding: 0.5rem !important;
        min-height: 70px !important;
        gap: 0.4rem !important;
    }
    
    .template-moderna .contacto-card-icono i {
        font-size: 1rem !important;
    }
    
    .template-moderna .contacto-numero {
        font-size: 1rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    .template-moderna .contacto-label {
        font-size: 0.55rem !important;
        line-height: 1.2 !important;
    }
    
    .template-moderna .footer-contacto-header {
        margin-bottom: 0.75rem !important;
    }
}
