/* ============================================================================
   FITCOACH PRO — DESIGN SYSTEM PREMIUM SaaS
   Identidad: verde lima fitness + dark mode profesional
   Fuente: Inter · Estilo: SaaS comercial moderno
   ============================================================================ */

/* ============================================================
   1. VARIABLES GLOBALES (DESIGN TOKENS)
   ============================================================ */
.fitcoach-wrapper,
.fitcoach-alumno-wrapper {
    /* === COLORES MARCA === */
    --fc-primary:         #A6EA2A;
    --fc-primary-hover:   #B9F53A;
    --fc-primary-strong:  #8FD11B;
    --fc-primary-soft:    rgba(166, 234, 42, 0.10);
    --fc-primary-glow:    rgba(166, 234, 42, 0.35);

    /* === FONDOS === */
    --fc-bg:              #050607;
    --fc-bg-secondary:    #0C1014;
    --fc-surface:         #11161C;
    --fc-surface-2:       #171D24;
    --fc-surface-3:       #1F2630;
    --fc-surface-hover:   #1C232C;

    /* === BORDES === */
    --fc-border:          rgba(255, 255, 255, 0.08);
    --fc-border-strong:   rgba(255, 255, 255, 0.14);
    --fc-border-primary:  rgba(166, 234, 42, 0.35);

    /* === TEXTO === */
    --fc-text:            #FFFFFF;
    --fc-text-muted:      #C9D1D9;
    --fc-text-soft:       #95A0AA;
    --fc-text-dim:        #6B7480;

    /* === ESTADOS === */
    --fc-success:         #3DDC84;
    --fc-success-soft:    rgba(61, 220, 132, 0.12);
    --fc-warning:         #FFB020;
    --fc-warning-soft:    rgba(255, 176, 32, 0.12);
    --fc-danger:          #FF5C5C;
    --fc-danger-soft:     rgba(255, 92, 92, 0.12);
    --fc-info:            #4DA3FF;
    --fc-info-soft:       rgba(77, 163, 255, 0.12);

    /* === RADIUS === */
    --fc-radius-xs:       6px;
    --fc-radius-sm:       10px;
    --fc-radius:          14px;
    --fc-radius-lg:       18px;
    --fc-radius-xl:       24px;
    --fc-radius-full:     999px;

    /* === SOMBRAS === */
    --fc-shadow-xs:       0 2px 4px rgba(0, 0, 0, 0.15);
    --fc-shadow-sm:       0 4px 12px rgba(0, 0, 0, 0.20);
    --fc-shadow:          0 10px 30px rgba(0, 0, 0, 0.30);
    --fc-shadow-lg:       0 20px 50px rgba(0, 0, 0, 0.45);
    --fc-shadow-primary:  0 8px 24px rgba(166, 234, 42, 0.20);

    /* === TRANSICIONES === */
    --fc-transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --fc-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --fc-transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* === Z-INDEX === */
    --fc-z-sidebar:       100;
    --fc-z-topbar:        90;
    --fc-z-dropdown:      200;
    --fc-z-modal:         1000;
    --fc-z-toast:         1100;
}

/* ============================================================
   2. BASE / RESET LOCAL
   ============================================================ */
.fitcoach-wrapper,
.fitcoach-alumno-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--fc-text);
    background: var(--fc-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fitcoach-wrapper *,
.fitcoach-wrapper *::before,
.fitcoach-wrapper *::after,
.fitcoach-alumno-wrapper *,
.fitcoach-alumno-wrapper *::before,
.fitcoach-alumno-wrapper *::after {
    box-sizing: border-box;
}

.fitcoach-wrapper {
    display: flex;
    align-items: stretch;
}

/* TIPOGRAFÍA JERÁRQUICA */
.fitcoach-wrapper h1, .fitcoach-alumno-wrapper h1 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #fff; margin: 0 0 12px; }
.fitcoach-wrapper h2, .fitcoach-alumno-wrapper h2 { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: #fff; margin: 0 0 10px; }
.fitcoach-wrapper h3, .fitcoach-alumno-wrapper h3 { font-size: 17px; font-weight: 600; line-height: 1.4; color: #fff; margin: 0 0 10px; }
.fitcoach-wrapper h4, .fitcoach-alumno-wrapper h4 { font-size: 14px; font-weight: 600; line-height: 1.4; color: #fff; margin: 0 0 8px; }

.fitcoach-wrapper p { color: var(--fc-text-muted); margin: 0 0 10px; }
.fitcoach-wrapper a { color: var(--fc-primary); text-decoration: none; transition: var(--fc-transition-fast); }
.fitcoach-wrapper a:hover { color: var(--fc-primary-hover); }

.fitcoach-wrapper code,
.fitcoach-alumno-wrapper code {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    background: var(--fc-surface-2);
    padding: 2px 8px;
    border-radius: var(--fc-radius-xs);
    color: var(--fc-primary);
    font-size: 0.88em;
}

/* SCROLLBAR PERSONALIZADO */
.fitcoach-wrapper *::-webkit-scrollbar { width: 8px; height: 8px; }
.fitcoach-wrapper *::-webkit-scrollbar-track { background: transparent; }
.fitcoach-wrapper *::-webkit-scrollbar-thumb { background: var(--fc-border-strong); border-radius: 4px; }
.fitcoach-wrapper *::-webkit-scrollbar-thumb:hover { background: var(--fc-text-dim); }

/* ============================================================
   3. SIDEBAR PREMIUM
   ============================================================ */
.fc-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #08090C 0%, #0D1218 100%);
    border-right: 1px solid var(--fc-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: var(--fc-z-sidebar);
    transition: var(--fc-transition);
}

.fc-sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid var(--fc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.fc-sidebar-logo { max-height: 42px; max-width: 170px; object-fit: contain; }

.fc-sidebar-logo-text {
    color: var(--fc-text);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fc-sidebar-logo-text::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--fc-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--fc-primary-glow);
    animation: fcPulse 2.5s ease-in-out infinite;
}

@keyframes fcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

.fc-sidebar-close {
    background: none; border: none;
    color: var(--fc-text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--fc-radius-xs);
    transition: var(--fc-transition-fast);
}
.fc-sidebar-close:hover { background: var(--fc-surface-2); color: var(--fc-text); }

.fc-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fc-nav-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--fc-text-dim);
    padding: 14px 14px 6px;
}

.fc-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--fc-radius-sm);
    color: var(--fc-text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: var(--fc-transition-fast);
    position: relative;
    overflow: hidden;
}

.fc-nav-item i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    transition: var(--fc-transition-fast);
}

.fc-nav-item:hover {
    background: var(--fc-surface-2);
    color: var(--fc-text);
    transform: translateX(2px);
}
.fc-nav-item:hover i { color: var(--fc-primary); }

.fc-nav-item.active {
    background: linear-gradient(90deg, var(--fc-primary-soft) 0%, transparent 100%);
    color: var(--fc-primary);
    font-weight: 600;
}
.fc-nav-item.active i { color: var(--fc-primary); }
.fc-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    background: var(--fc-primary);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--fc-primary-glow);
}

.fc-sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--fc-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fc-user-mini { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.fc-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid var(--fc-border);
}
.fc-user-info { min-width: 0; flex: 1; }
.fc-user-info strong {
    display: block;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-user-info small { color: var(--fc-text-soft); font-size: 11px; }

.fc-logout-link {
    color: var(--fc-text-soft);
    font-size: 18px;
    padding: 8px;
    border-radius: var(--fc-radius-xs);
    transition: var(--fc-transition-fast);
}
.fc-logout-link:hover { color: var(--fc-danger); background: var(--fc-danger-soft); }

/* ============================================================
   4. MAIN CONTENT AREA
   ============================================================ */
.fc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--fc-bg);
}

/* ============================================================
   5. TOPBAR PREMIUM
   ============================================================ */
.fc-topbar {
    height: 70px;
    padding: 0 28px;
    background: rgba(12, 16, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fc-border);
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: var(--fc-z-topbar);
}

.fc-page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    flex: 1;
    color: #fff;
}

.fc-menu-toggle {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    width: 40px; height: 40px;
    border-radius: var(--fc-radius-sm);
    cursor: pointer;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--fc-transition-fast);
}
.fc-menu-toggle:hover { background: var(--fc-surface-3); border-color: var(--fc-border-strong); }

.fc-topbar-actions { display: flex; align-items: center; gap: 10px; }

.fc-search-wrap { position: relative; }
.fc-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fc-text-soft);
    font-size: 16px;
    pointer-events: none;
}
.fc-search-input {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px 10px 40px !important;
    border-radius: var(--fc-radius-sm);
    width: 260px;
    font-size: 13px;
    font-family: inherit;
    transition: var(--fc-transition-fast);
    box-sizing: border-box !important;
}
.fc-search-input::placeholder { color: var(--fc-text-soft); }
.fc-search-input:focus {
    outline: none;
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px var(--fc-primary-soft);
    background: var(--fc-surface);
}

.fc-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 40px; height: 40px;
    border-radius: var(--fc-radius-sm);
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--fc-transition-fast);
}
.fc-icon-btn:hover {
    background: var(--fc-surface-3);
    color: var(--fc-text);
    border-color: var(--fc-border-strong);
    transform: translateY(-1px);
}

.fc-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--fc-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--fc-bg-secondary);
}

/* ============================================================
   6. CONTENT AREA + TABS
   ============================================================ */
.fc-content {
    padding: 28px;
    flex: 1;
    overflow-y: auto;
}

.fc-tab { display: none; animation: fcFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.fc-tab.active { display: block; }

@keyframes fcFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fcFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fcScaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.fc-tab-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px 22px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
}
.fc-toolbar-filters,
.fc-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   7. CARDS PREMIUM
   ============================================================ */
.fc-card {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 22px;
    box-shadow: var(--fc-shadow-sm);
    transition: var(--fc-transition);
    position: relative;
    overflow: hidden;
}
.fc-card:hover {
    border-color: var(--fc-border-strong);
    box-shadow: var(--fc-shadow);
}

.fc-card h3 {
    font-size: 16px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   8. KPI / STAT CARDS
   ============================================================ */
.fc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.fc-stat-card {
    background: linear-gradient(135deg, var(--fc-surface) 0%, var(--fc-surface-2) 100%);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: var(--fc-transition);
    cursor: default;
}

.fc-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fc-primary), var(--fc-primary-strong));
    opacity: 0.7;
}

.fc-stat-card::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, var(--fc-primary-soft) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: var(--fc-transition);
}

.fc-stat-card:hover {
    border-color: var(--fc-border-primary);
    transform: translateY(-3px);
    box-shadow: var(--fc-shadow);
}
.fc-stat-card:hover::after { opacity: 1; }

.fc-stat-card .fc-stat-label {
    color: var(--fc-text-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.fc-stat-card .fc-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.fc-stat-card .fc-stat-trend {
    font-size: 12px;
    color: var(--fc-success);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fc-stat-card .fc-stat-icon {
    position: absolute;
    right: 18px; top: 18px;
    font-size: 26px;
    color: var(--fc-primary);
    opacity: 0.85;
    background: var(--fc-primary-soft);
    width: 44px; height: 44px;
    border-radius: var(--fc-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   9. GRID DE CARDS
   ============================================================ */
.fc-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

/* CARD ALUMNO */
.fc-student-card {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 18px;
    cursor: pointer;
    transition: var(--fc-transition);
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.fc-student-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--fc-primary-soft) 0%, transparent 50%);
    opacity: 0;
    transition: var(--fc-transition);
    pointer-events: none;
}

.fc-student-card:hover {
    border-color: var(--fc-border-primary);
    transform: translateY(-3px);
    box-shadow: var(--fc-shadow);
}
.fc-student-card:hover::before { opacity: 1; }

.fc-student-card .fc-avatar-md {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    font-weight: 700;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--fc-shadow-primary);
    position: relative;
    z-index: 1;
}

.fc-student-card-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.fc-student-card-body strong {
    color: #fff;
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.fc-student-card-body small { color: var(--fc-text-soft); font-size: 12px; }

/* ============================================================
   10. STATUS PILLS / BADGES
   ============================================================ */
.fc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--fc-radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
}
.fc-status-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.fc-status-pill.activo,
.fc-status-pill.confirmada,
.fc-status-pill.pagado,
.fc-status-pill.ganado,
.fc-status-pill.completada { background: var(--fc-success-soft); color: var(--fc-success); border-color: rgba(61,220,132,0.25); }
.fc-status-pill.inactivo,
.fc-status-pill.cancelada,
.fc-status-pill.cancelado,
.fc-status-pill.perdido,
.fc-status-pill.vencido { background: var(--fc-danger-soft); color: var(--fc-danger); border-color: rgba(255,92,92,0.25); }
.fc-status-pill.pendiente,
.fc-status-pill.pausado { background: var(--fc-warning-soft); color: var(--fc-warning); border-color: rgba(255,176,32,0.25); }
.fc-status-pill.nuevo,
.fc-status-pill.info { background: var(--fc-info-soft); color: var(--fc-info); border-color: rgba(77,163,255,0.25); }

/* ============================================================
   11. BUTTONS PREMIUM
   ============================================================ */
.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--fc-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    transition: var(--fc-transition-fast);
    text-decoration: none;
    background: var(--fc-surface-2);
    color: var(--fc-text);
    line-height: 1;
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.fc-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--fc-primary-soft);
}

.fc-btn:active { transform: translateY(1px); }

.fc-btn-primary {
    background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-primary-strong) 100%);
    color: #050607;
    border-color: var(--fc-primary);
    box-shadow: var(--fc-shadow-primary);
}
.fc-btn-primary:hover {
    background: linear-gradient(135deg, var(--fc-primary-hover) 0%, var(--fc-primary) 100%);
    color: #050607;
    box-shadow: 0 12px 28px rgba(166, 234, 42, 0.30);
    transform: translateY(-2px);
}

.fc-btn-secondary {
    background: var(--fc-surface-2);
    border-color: var(--fc-border);
    color: var(--fc-text);
}
.fc-btn-secondary:hover {
    background: var(--fc-surface-3);
    border-color: var(--fc-border-strong);
    color: #fff;
    transform: translateY(-1px);
}

.fc-btn-danger {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
}
.fc-btn-danger:hover {
    background: #ff7575;
    box-shadow: 0 8px 20px rgba(255, 92, 92, 0.30);
    transform: translateY(-1px);
}

.fc-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--fc-text-muted);
}
.fc-btn-ghost:hover { background: var(--fc-surface-2); color: #fff; }

.fc-btn-ai {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: #fff;
    border-color: transparent;
}
.fc-btn-ai:hover {
    background: linear-gradient(135deg, #9d6efb 0%, #7176fe 100%);
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.fc-btn-sm { padding: 7px 12px; font-size: 12px; gap: 5px; }
.fc-btn-lg { padding: 13px 24px; font-size: 14px; }

.fc-btn:disabled,
.fc-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   12. INPUTS & FORMS PREMIUM
   ============================================================ */
.fc-input,
.fc-select,
.fc-textarea,
.fitcoach-wrapper select,
.fitcoach-wrapper textarea,
.fitcoach-wrapper input[type="text"],
.fitcoach-wrapper input[type="email"],
.fitcoach-wrapper input[type="tel"],
.fitcoach-wrapper input[type="url"],
.fitcoach-wrapper input[type="date"],
.fitcoach-wrapper input[type="time"],
.fitcoach-wrapper input[type="number"],
.fitcoach-wrapper input[type="password"],
.fitcoach-wrapper input[type="color"] {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 11px 14px;
    border-radius: var(--fc-radius-sm);
    font-size: 13px;
    width: 100%;
    transition: var(--fc-transition-fast);
    font-family: inherit;
    line-height: 1.4;
}

.fc-input::placeholder,
.fc-textarea::placeholder { color: var(--fc-text-soft); }

.fc-input:hover,
.fc-select:hover { border-color: var(--fc-border-strong); }

.fc-input:focus,
.fc-select:focus,
.fc-textarea:focus,
.fitcoach-wrapper select:focus,
.fitcoach-wrapper textarea:focus,
.fitcoach-wrapper input:focus {
    outline: none;
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px var(--fc-primary-soft);
    background: var(--fc-surface);
}

.fc-input[type="color"] { padding: 4px; height: 42px; cursor: pointer; }

.fc-form-group { margin-bottom: 16px; }
.fc-form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--fc-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.fc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

/* ============================================================
   13. TABLES PREMIUM
   ============================================================ */
.fc-table-wrap {
    overflow-x: auto;
    border-radius: var(--fc-radius);
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
}

.fc-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--fc-text);
}

.fc-table th,
.fc-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--fc-border);
    font-size: 13px;
    vertical-align: middle;
}

.fc-table th {
    background: var(--fc-surface-2);
    color: var(--fc-text-soft);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    white-space: nowrap;
}

.fc-table tbody tr {
    transition: var(--fc-transition-fast);
}
.fc-table tbody tr:hover { background: var(--fc-surface-2); }
.fc-table tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   14. ALERTS
   ============================================================ */
.fc-alert {
    padding: 14px 18px;
    border-radius: var(--fc-radius-sm);
    border: 1px solid;
    border-left-width: 3px;
    margin: 14px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}
.fc-alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.fc-alert-info { background: var(--fc-info-soft); border-color: var(--fc-info); color: #93C5FD; }
.fc-alert-success { background: var(--fc-success-soft); border-color: var(--fc-success); color: #6EE7B7; }
.fc-alert-warning { background: var(--fc-warning-soft); border-color: var(--fc-warning); color: #FCD34D; }
.fc-alert-danger { background: var(--fc-danger-soft); border-color: var(--fc-danger); color: #FCA5A5; }

/* ============================================================
   15. MODAL PREMIUM
   ============================================================ */
.fc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 7, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--fc-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fcFade 0.25s ease;
}

.fc-modal {
    background: var(--fc-surface);
    border-radius: var(--fc-radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--fc-shadow-lg);
    border: 1px solid var(--fc-border-strong);
    animation: fcScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-modal-lg { max-width: 980px; }

.fc-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--fc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--fc-surface);
    z-index: 1;
}

.fc-modal-header h3 { margin: 0; font-size: 18px; }

.fc-modal-close {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 34px; height: 34px;
    border-radius: var(--fc-radius-sm);
    cursor: pointer;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--fc-transition-fast);
}
.fc-modal-close:hover { background: var(--fc-danger-soft); color: var(--fc-danger); border-color: var(--fc-danger); }

.fc-modal-body { padding: 24px; }

.fc-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--fc-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: var(--fc-surface);
}

/* ============================================================
   16. KANBAN CRM PREMIUM
   ============================================================ */
.fc-kanban {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 14px;
    min-height: 60vh;
}

.fc-kanban-column {
    flex: 0 0 300px;
    background: var(--fc-surface);
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
    display: flex;
    flex-direction: column;
    max-height: 78vh;
    transition: var(--fc-transition-fast);
}

.fc-kanban-column.fc-drag-over {
    border-color: var(--fc-primary);
    background: var(--fc-surface-2);
    box-shadow: 0 0 0 3px var(--fc-primary-soft);
}

.fc-kanban-column-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--fc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid;
    border-radius: var(--fc-radius) var(--fc-radius) 0 0;
}

.fc-kanban-column-header strong {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.fc-kanban-count {
    background: var(--fc-surface-3);
    color: var(--fc-text-muted);
    padding: 3px 10px;
    border-radius: var(--fc-radius-full);
    font-size: 11px;
    font-weight: 600;
}

.fc-kanban-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-lead-card {
    background: var(--fc-surface-2);
    border-radius: var(--fc-radius-sm);
    padding: 14px;
    cursor: grab;
    border: 1px solid var(--fc-border);
    border-left: 3px solid var(--fc-primary);
    transition: var(--fc-transition-fast);
}
.fc-lead-card:active { cursor: grabbing; }
.fc-lead-card:hover {
    background: var(--fc-surface-3);
    transform: translateX(3px);
    border-color: var(--fc-border-strong);
    border-left-color: var(--fc-primary);
}
.fc-lead-card.sortable-ghost {
    opacity: 0.4;
    background: var(--fc-primary-soft);
}
.fc-lead-card.sortable-chosen { box-shadow: var(--fc-shadow); }

.fc-lead-card strong {
    color: #fff;
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}
.fc-lead-card small { color: var(--fc-text-soft); font-size: 11px; }

.fc-lead-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fc-lead-meta span {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--fc-radius-full);
    background: rgba(255,255,255,0.06);
    color: var(--fc-text-muted);
    font-weight: 500;
}

/* ============================================================
   17. AI CHAT
   ============================================================ */
.fc-ai-chat {
    min-height: 340px;
    max-height: 500px;
    overflow-y: auto;
    background: var(--fc-bg-secondary);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fc-ai-message {
    padding: 11px 16px;
    border-radius: var(--fc-radius);
    max-width: 85%;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.55;
    animation: fcFadeUp 0.3s ease;
}
.fc-ai-message.user {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-ai-message.bot {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}

.fc-ai-input-wrap {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    transition: var(--fc-transition-fast);
}
.fc-ai-input-wrap:focus-within { border-color: var(--fc-primary); box-shadow: 0 0 0 3px var(--fc-primary-soft); }
.fc-ai-input-wrap textarea {
    flex: 1;
    resize: vertical;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 8px 10px !important;
    color: var(--fc-text);
    font-family: inherit;
    font-size: 13px;
    min-height: 42px;
}

/* ============================================================
   18. SPINNER & LOADERS
   ============================================================ */
.fc-spinner {
    display: inline-block;
    width: 26px; height: 26px;
    border: 3px solid var(--fc-border);
    border-top-color: var(--fc-primary);
    border-radius: 50%;
    animation: fcSpin 0.8s linear infinite;
}
@keyframes fcSpin { to { transform: rotate(360deg); } }

.fc-skeleton {
    background: linear-gradient(90deg, var(--fc-surface-2) 0%, var(--fc-surface-3) 50%, var(--fc-surface-2) 100%);
    background-size: 200% 100%;
    border-radius: var(--fc-radius-sm);
    animation: fcShimmer 1.4s ease-in-out infinite;
}
@keyframes fcShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   19. NOTIFICATIONS PANEL
   ============================================================ */
.fc-notifications-panel {
    position: fixed;
    top: 80px; right: 28px;
    width: 380px;
    max-height: 520px;
    overflow-y: auto;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-strong);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow-lg);
    z-index: var(--fc-z-dropdown);
    display: none;
    animation: fcFadeUp 0.25s ease;
}
.fc-notifications-panel.show { display: block; }

.fc-notif-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--fc-border);
    cursor: pointer;
    transition: var(--fc-transition-fast);
}
.fc-notif-item.unread {
    background: var(--fc-primary-soft);
    border-left: 3px solid var(--fc-primary);
    padding-left: 15px;
}
.fc-notif-item:hover { background: var(--fc-surface-2); }
.fc-notif-item:last-child { border-bottom: 0; }
.fc-notif-item strong { color: #fff; font-size: 13px; display: block; margin-bottom: 2px; }
.fc-notif-item small { color: var(--fc-text-soft); font-size: 11px; }

/* ============================================================
   20. ROUTINE / DIET BUILDER
   ============================================================ */
.fc-exercise-row-card {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    transition: var(--fc-transition-fast);
}
.fc-exercise-row-card:hover {
    border-color: var(--fc-border-primary);
    background: var(--fc-surface-3);
}
.fc-exercise-row-card .fc-form-row {
    grid-template-columns: 2fr 1.2fr 0.6fr 0.8fr 0.8fr 0.8fr auto;
    gap: 8px;
    align-items: end;
}
.fc-exercise-row-card label {
    font-size: 9px;
    margin-bottom: 4px;
}
.fc-exercise-row-card .fc-input { padding: 8px 10px; font-size: 12px; }

/* ============================================================
   21. EMPTY STATES
   ============================================================ */
.fc-empty-state {
    padding: 60px 24px;
    text-align: center;
    color: var(--fc-text-soft);
}
.fc-empty-state i {
    font-size: 56px;
    color: var(--fc-primary);
    opacity: 0.35;
    margin-bottom: 16px;
    display: inline-block;
}
.fc-empty-state p {
    margin-top: 14px;
    color: var(--fc-text-muted);
    font-size: 14px;
}

/* ============================================================
   22. PORTAL ALUMNO
   ============================================================ */
.fitcoach-alumno-wrapper {
    background: var(--fc-bg);
    color: var(--fc-text);
    min-height: 100vh;
    padding: 24px;
}

.fc-alu-hero {
    background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-primary-strong) 100%);
    border-radius: var(--fc-radius-lg);
    padding: 32px;
    color: #050607;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px rgba(166, 234, 42, 0.30);
    position: relative;
    overflow: hidden;
}
.fc-alu-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.fc-alu-hero-info { display: flex; gap: 20px; align-items: center; position: relative; z-index: 1; }
.fc-alu-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(5, 6, 7, 0.20);
    object-fit: cover;
    background: rgba(5,6,7,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 42px;
}
.fc-alu-hero h1 { color: #050607; margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.fc-alu-objetivo { margin: 0; font-size: 14px; opacity: 0.85; font-weight: 500; }

.fc-alu-hero-stats {
    display: flex;
    gap: 22px;
    position: relative;
    z-index: 1;
}
.fc-alu-stat { text-align: center; }
.fc-alu-stat span { display: block; font-size: 26px; font-weight: 800; color: #050607; line-height: 1; }
.fc-alu-stat small { font-size: 10px; opacity: 0.75; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

.fc-alu-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-lg);
    padding: 6px;
    margin-bottom: 22px;
}
.fc-alu-tab {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--fc-text-muted);
    cursor: pointer;
    border-radius: var(--fc-radius);
    font-weight: 600;
    transition: var(--fc-transition-fast);
    font-size: 13px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.fc-alu-tab:hover { background: var(--fc-surface-2); color: #fff; }
.fc-alu-tab.active {
    background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-primary-strong) 100%);
    color: #050607;
    box-shadow: var(--fc-shadow-primary);
}

.fc-alu-content { display: none; animation: fcFadeUp 0.4s ease; }
.fc-alu-content.active { display: block; }

.fc-macros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}
.fc-macro {
    background: var(--fc-surface-2);
    border-radius: var(--fc-radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--fc-border);
    border-top: 3px solid;
    transition: var(--fc-transition-fast);
}
.fc-macro:hover { transform: translateY(-2px); border-color: var(--fc-border-strong); }
.fc-macro strong { display: block; font-size: 22px; color: #fff; font-weight: 700; }
.fc-macro small { color: var(--fc-text-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.fc-macro-cal { border-top-color: var(--fc-warning); }
.fc-macro-p { border-top-color: var(--fc-danger); }
.fc-macro-c { border-top-color: var(--fc-info); }
.fc-macro-g { border-top-color: #FBBF24; }

.fc-meal-list { list-style: none; padding: 0; margin: 0; }
.fc-meal-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--fc-border);
}
.fc-meal-list li:last-child { border: 0; }
.fc-meal-list strong { color: #fff; }
.fc-meal-list span { color: var(--fc-text-soft); font-size: 13px; }

/* ============================================================
   23. LOGIN REQUIRED
   ============================================================ */
.fc-login-required {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--fc-bg);
    color: var(--fc-text);
    font-family: 'Inter', sans-serif;
}
.fc-login-required .fc-card {
    max-width: 440px;
    width: 100%;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-lg);
}
.fc-login-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: var(--fc-primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--fc-primary);
}

/* ============================================================
   24. RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
    .fc-search-input { width: 200px; }
    .fc-content { padding: 20px; }
}

@media (max-width: 991.98px) {
    .fc-sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        box-shadow: var(--fc-shadow-lg);
    }
    .fc-sidebar.open { left: 0; }
    .fc-search-input { width: 160px; }
    .fc-stat-card .fc-stat-value { font-size: 26px; }
    .fc-macros-grid { grid-template-columns: repeat(2, 1fr); }
    .fc-alu-hero { flex-direction: column; text-align: center; padding: 24px; }
    .fc-alu-hero h1 { font-size: 24px; }
}

@media (max-width: 767.98px) {
    .fc-content { padding: 16px; }
    .fc-topbar { padding: 0 16px; height: 64px; gap: 10px; }
    .fc-search-wrap { display: none; }
    .fc-page-title { font-size: 17px; }
    .fc-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fc-stat-card { padding: 16px; }
    .fc-stat-card .fc-stat-value { font-size: 22px; }
    .fc-stat-card .fc-stat-icon { width: 36px; height: 36px; font-size: 20px; }
    .fc-tab-toolbar { padding: 14px 16px; }
    .fc-modal-body, .fc-modal-header, .fc-modal-footer { padding: 16px 18px; }
    .fc-exercise-row-card .fc-form-row { grid-template-columns: 1fr 1fr; }
    .fc-grid-cards { grid-template-columns: 1fr; }
    .fc-notifications-panel { right: 12px; left: 12px; width: auto; top: 70px; }
    .fc-alu-hero-stats { width: 100%; justify-content: space-around; }
    .fc-alu-tabs { padding: 4px; }
    .fc-alu-tab { min-width: 110px; padding: 10px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .fc-stats-grid { grid-template-columns: 1fr; }
    .fc-toolbar-filters,
    .fc-toolbar-actions { width: 100%; }
    .fc-toolbar-filters > *,
    .fc-toolbar-actions > * { flex: 1; }
    .fc-macros-grid { grid-template-columns: 1fr 1fr; }
    
    /* Mobile adjustments for student portal stats */
    .fc-alu-hero-stats { gap: 10px; flex-wrap: wrap; }
    .fc-alu-stat { flex: 1; min-width: 30%; }
    .fc-alu-stat span { font-size: 18px; word-break: break-word; }
    .fc-alu-stat small { font-size: 9px; }
    .fc-alu-hero { padding: 20px 16px; }
}

/* ============================================================
   25. UTILIDADES
   ============================================================ */
.fitcoach-wrapper .text-muted,
.fitcoach-alumno-wrapper .text-muted { color: var(--fc-text-soft) !important; }

.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 18px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.ms-2 { margin-left: 8px !important; }
.m-0 { margin: 0 !important; }
.text-center { text-align: center !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-5 { padding: 24px !important; }

hr {
    border: 0;
    height: 1px;
    background: var(--fc-border);
    margin: 20px 0;
}

/* SweetAlert2 dark theme override */
.swal2-popup.swal2-toast { background: var(--fc-surface) !important; border: 1px solid var(--fc-border-strong); box-shadow: var(--fc-shadow-lg) !important; }
.swal2-popup { border-radius: var(--fc-radius-lg) !important; border: 1px solid var(--fc-border-strong) !important; }

/* FullCalendar dark theme */
.fitcoach-wrapper .fc { color: var(--fc-text); width: 100% !important; max-width: 100% !important; }
.fitcoach-wrapper .fc-theme-standard td,
.fitcoach-wrapper .fc-theme-standard th,
.fitcoach-wrapper .fc-theme-standard .fc-scrollgrid { border-color: var(--fc-border) !important; }

/* Ensure the grid doesn't collapse */
.fc .fc-scrollgrid-section table { width: 100% !important; table-layout: fixed !important; }
.fc .fc-view-harness { background: transparent; min-height: 500px; }
.fc .fc-col-header { width: 100% !important; }
.fc .fc-daygrid-body { width: 100% !important; }
.fitcoach-wrapper .fc .fc-button-primary {
    background: var(--fc-surface-2) !important;
    border-color: var(--fc-border) !important;
    color: var(--fc-text) !important;
    text-transform: capitalize;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--fc-radius-sm) !important;
}
.fitcoach-wrapper .fc .fc-button-primary:hover { background: var(--fc-surface-3) !important; border-color: var(--fc-border-strong) !important; }
.fitcoach-wrapper .fc .fc-button-primary:not(:disabled).fc-button-active,
.fitcoach-wrapper .fc .fc-button-primary:not(:disabled):active {
    background: var(--fc-primary) !important;
    color: #050607 !important;
    border-color: var(--fc-primary) !important;
}
.fitcoach-wrapper .fc-toolbar-title { color: #fff; font-size: 18px !important; }
.fitcoach-wrapper .fc-day-today { background: var(--fc-primary-soft) !important; }
.fitcoach-wrapper .fc-event {
    border-radius: var(--fc-radius-xs);
    border: 0;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Fix for infinite chart growth */
.fc-chart-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    min-height: 250px;
}
@media (max-width: 768px) {
    .fc-chart-wrap { height: 220px; }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* ============================================================
   26. ASISTENTE IA · BURBUJA FLOTANTE PREMIUM
   ============================================================ */

.fc-agent-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #A6EA2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(166, 234, 42, 0.10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}
.fc-agent-bubble:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 42px rgba(99, 102, 241, 0.55), 0 0 0 8px rgba(166, 234, 42, 0.15);
}
.fc-agent-bubble.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.fc-agent-bubble i { z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fc-agent-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #6366F1, #A6EA2A);
    opacity: 0.7;
    z-index: -1;
    animation: fcAgentSpin 3s linear infinite;
    filter: blur(8px);
}
@keyframes fcAgentSpin { to { transform: rotate(360deg); } }

.fc-agent-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(166, 234, 42, 0.6);
    animation: fcAgentPulse 2s ease-out infinite;
}
@keyframes fcAgentPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== PANEL ============== */
.fc-agent-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #11161C 0%, #0C1014 100%);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 234, 42, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fc-agent-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.fc-agent-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ============== HEADER ============== */
.fc-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fc-agent-header-info { display: flex; align-items: center; gap: 12px; }
.fc-agent-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
    position: relative;
}
.fc-agent-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #A6EA2A, #8B5CF6, #A6EA2A);
    z-index: -1;
    animation: fcAgentSpin 4s linear infinite;
    filter: blur(4px);
    opacity: 0.5;
}
.fc-agent-header-info strong { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.fc-agent-header-info small { color: var(--fc-text-soft); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.fc-agent-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--fc-success);
    box-shadow: 0 0 8px var(--fc-success);
    animation: fcPulse 2s ease-in-out infinite;
}

.fc-agent-header-actions { display: flex; gap: 6px; }
.fc-agent-icon-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: var(--fc-transition-fast);
}
.fc-agent-icon-btn:hover { background: var(--fc-surface-3); color: #fff; border-color: var(--fc-border-strong); }

/* ============== QUICK PROMPTS ============== */
.fc-agent-quickprompts {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--fc-border);
}
.fc-agent-quickprompts::-webkit-scrollbar { display: none; }
.fc-agent-quickprompts button {
    flex-shrink: 0;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--fc-transition-fast);
    font-family: inherit;
}
.fc-agent-quickprompts button:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* ============== MESSAGES ============== */
.fc-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.fc-agent-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-msg.user { justify-content: flex-end; }
.fc-agent-msg.bot { justify-content: flex-start; }

.fc-agent-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
}

.fc-agent-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.fc-agent-msg.user .fc-agent-msg-bubble {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.fc-agent-msg.bot .fc-agent-msg-bubble {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    border-bottom-left-radius: 4px;
}
.fc-agent-msg.bot .fc-agent-msg-bubble code {
    background: rgba(166, 234, 42, 0.10);
    color: var(--fc-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Tool chip */
.fc-agent-tool-chip {
    align-self: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid rgba(166, 234, 42, 0.30);
    color: var(--fc-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
    animation: fcFadeUp 0.3s ease;
}
.fc-agent-tool-chip i { font-size: 11px; }

/* Typing indicator */
.fc-agent-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.fc-agent-typing span {
    width: 7px; height: 7px;
    background: var(--fc-text-soft);
    border-radius: 50%;
    animation: fcAgentTyping 1.2s infinite ease-in-out;
}
.fc-agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.fc-agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcAgentTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ============== INPUT ============== */
.fc-agent-input-wrap {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--fc-border);
    background: var(--fc-bg-secondary);
    align-items: flex-end;
}
.fc-agent-input-wrap textarea {
    flex: 1;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--fc-transition-fast);
}
.fc-agent-input-wrap textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
    background: var(--fc-surface);
}

.fc-agent-mic-btn,
.fc-agent-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--fc-transition-fast);
}
.fc-agent-mic-btn {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
}
.fc-agent-mic-btn:hover {
    background: var(--fc-surface-3);
    color: #fff;
    border-color: var(--fc-border-strong);
}
.fc-agent-mic-btn.recording {
    background: var(--fc-danger);
    color: #fff;
    border-color: var(--fc-danger);
    animation: fcMicPulse 1s ease-in-out infinite;
}
@keyframes fcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 92, 0); }
}

.fc-agent-send-btn {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #050607;
    box-shadow: 0 4px 14px rgba(166, 234, 42, 0.30);
}
.fc-agent-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 234, 42, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
    .fc-agent-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 12px;
        right: 12px;
        border-radius: 18px;
    }
    .fc-agent-bubble {
        bottom: 18px;
        right: 18px;
        width: 56px; height: 56px;
        font-size: 22px;
    }
}

/* Logo Alumno */
.fc-alu-header {
    display: flex;
    justify-content: center;
    padding: 24px 20px 10px;
}
.fc-alu-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

/* Avatar Edit */
.fc-alu-avatar-wrap {
    position: relative;
    display: inline-block;
}
.fc-alu-avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--fc-primary);
    color: #050607;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--fc-shadow);
    transition: var(--fc-transition-fast);
    border: 2px solid #050607;
}
.fc-alu-avatar-edit-btn:hover {
    transform: scale(1.1);
}
.fc-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Animaciones y Efectos Hover Vibrantes */
@keyframes fcPulseSubtle {
    0% { box-shadow: 0 0 0 0 rgba(166, 234, 42, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(166, 234, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(166, 234, 42, 0); }
}

.fc-card {
    transition: var(--fc-transition-slow);
    animation: fcFadeUp 0.5s ease-out backwards;
}
.fc-card:nth-child(1) { animation-delay: 0.1s; }
.fc-card:nth-child(2) { animation-delay: 0.2s; }
.fc-card:nth-child(3) { animation-delay: 0.3s; }

.fc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fc-shadow);
    border-color: var(--fc-primary);
}

.fc-table tbody tr {
    transition: var(--fc-transition);
}
.fc-table tbody tr:hover {
    background: var(--fc-surface-2);
    transform: scale(1.01) translateX(4px);
    box-shadow: -4px 0 0 var(--fc-primary);
}

.fc-alu-stat {
    transition: var(--fc-transition);
}
.fc-alu-stat:hover {
    transform: scale(1.1) translateY(-2px);
    color: #000;
}

.fc-alu-avatar-wrap .fc-alu-avatar-edit-btn {
    animation: fcPulseSubtle 2s infinite;
}
.fc-alu-avatar-wrap .fc-alu-avatar-edit-btn:hover {
    animation: none;
    transform: scale(1.15) rotate(5deg);
    background: #050607;
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}

/* Solución Scroll Portal Alumno */
body:has(.fitcoach-alumno-wrapper),
html:has(.fitcoach-alumno-wrapper) {
    overflow-y: auto !important;
}
.fitcoach-alumno-wrapper {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 100vh;
}
