/* Font Awesome Fallbacks y Mejoras para Hosting */

/* Asegurar que los iconos se muestren correctamente */
.fas, .far, .fab, .fal, .fad {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands" !important;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.far {
    font-weight: 400;
}

.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400;
}

/* Fallbacks para iconos específicos si Font Awesome falla */
.icon-fallback {
    display: inline-block;
    width: 1em;
    height: 1em;
    text-align: center;
}

/* Fallback específico para iconos comunes */
.fas.fa-home::before { content: "🏠"; }
.fas.fa-user::before { content: "👤"; }
.fas.fa-lock::before { content: "🔒"; }
.fas.fa-cog::before { content: "⚙️"; }
.fas.fa-chart-bar::before { content: "📊"; }
.fas.fa-envelope::before { content: "✉️"; }
.fas.fa-phone::before { content: "📞"; }
.fas.fa-shield-alt::before { content: "🛡️"; }
.fas.fa-video::before { content: "📹"; }
.fas.fa-network-wired::before { content: "🌐"; }
.fas.fa-tools::before { content: "🔧"; }
.fas.fa-credit-card::before { content: "💳"; }

/* Estilos específicos para el modal de login */
.login-modal .input-with-icon {
    position: relative;
}

.login-modal .input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 2;
    pointer-events: none;
    font-size: 16px;
}

.login-modal .input-with-icon input {
    padding-left: 45px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.login-modal .input-with-icon input:focus + i {
    color: #10b981;
}

/* Estilos para admin panel cuando los iconos fallan */
.admin-icon-fallback {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 3px;
    margin-right: 8px;
    text-align: center;
    line-height: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .login-modal .input-with-icon i {
        left: 10px;
        font-size: 14px;
    }
    
    .login-modal .input-with-icon input {
        padding-left: 35px;
        font-size: 16px; /* Prevenir zoom en iOS */
    }
}
