/* Inicio funcionalidad Variables visuales */
:root {
    --ai-bg: #f5f7fb;
    --ai-dark: #0b1220;
    --ai-text: #172033;
    --ai-muted: #64748b;
    --ai-panel: #ffffff;
    --ai-header: rgba(255,255,255,.92);
    --ai-sidebar: #0b1220;
    --ai-sidebar-text: #dbeafe;
    --ai-primary: #080b5f;
    --ai-primary-2: #ff1f14;
    --ai-accent: #10177a;
    --ai-soft: #eaf1ff;
    --ai-border: rgba(15, 23, 42, 0.09);
    --ai-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', 'Segoe UI', Arial, sans-serif; background: var(--ai-bg); color: var(--ai-text); overflow: hidden; }
body.theme-dark {
    --ai-bg: #101827;
    --ai-dark: #f8fafc;
    --ai-text: #dbeafe;
    --ai-muted: #a8b4c7;
    --ai-panel: #172033;
    --ai-header: rgba(23,32,51,.94);
    --ai-sidebar: #08111f;
    --ai-sidebar-text: #e2e8f0;
    --ai-soft: rgba(59,130,246,.16);
    --ai-border: rgba(226, 232, 240, 0.12);
    --ai-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}
/* Fin funcionalidad Variables visuales */

/* Inicio funcionalidad Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at top left, rgba(0,114,255,.22), transparent 36%), linear-gradient(135deg, #07111f, #080b5f 50%, #10177a); }
.login-card { width: 100%; max-width: 420px; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-radius: 28px; padding: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.55); }
.login-logo { display: block; width: 112px; height: 112px; margin: 0 auto 18px; filter: drop-shadow(0 16px 28px rgba(18, 58, 122, .25)); }
.login-title { text-align: center; font-weight: 800; color: var(--ai-dark); margin-bottom: 8px; }
.login-subtitle { text-align: center; color: #64748b; margin-bottom: 26px; }
.form-control { border-radius: 14px; min-height: 48px; border: 1px solid var(--ai-border); }
.btn-ai { border: 0; border-radius: 16px; min-height: 48px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--ai-primary), var(--ai-primary-2), var(--ai-accent)); box-shadow: 0 14px 26px rgba(0,114,255,.28); transition: transform .25s ease, box-shadow .25s ease; }
.btn-ai:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 32px rgba(0,114,255,.36); }
.demo-credentials { border-radius: 16px; padding: 12px 14px; background: #f1f5f9; color: #475569; font-size: 13px; margin-top: 18px; }
/* Fin funcionalidad Login */

/* Inicio funcionalidad Lenguajes */
.language-control { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid var(--ai-border); background: var(--ai-panel); color: var(--ai-text); border-radius: 14px; padding: 0 10px; }
.language-control i { color: var(--ai-primary-2); }
.language-select { border: 0; outline: 0; background: transparent; color: var(--ai-text); font-weight: 700; min-width: 92px; cursor: pointer; }
.language-select option { color: #172033; }
.login-language-control { position: absolute; top: 16px; right: 16px; }
.login-card { position: relative; }
/* Fin funcionalidad Lenguajes */

/* Inicio funcionalidad Toast */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.ai-toast { min-width: 260px; max-width: 360px; padding: 13px 16px; border-radius: 16px; color: #fff; box-shadow: var(--ai-shadow); animation: toastIn .25s ease; background: #0f172a; }
.ai-toast.success { background: linear-gradient(135deg, #059669, #10b981); }
.ai-toast.error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.ai-toast.info { background: linear-gradient(135deg, #080b5f, #ff1f14); }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
/* Fin funcionalidad Toast */

/* Inicio funcionalidad Shell responsive */
.app-shell { height: 100vh; display: grid; grid-template-columns: 280px 1fr; grid-template-rows: 74px 1fr; background: var(--ai-bg); overflow: hidden; transition: grid-template-columns .25s ease; }
.app-shell.sidebar-hidden { grid-template-columns: 0 1fr; }
.app-shell.sidebar-right { grid-template-columns: 1fr 280px; }
.app-shell.sidebar-right.sidebar-hidden { grid-template-columns: 1fr 0; }
.app-header { grid-column: 1 / 3; height: 74px; background: var(--ai-header); backdrop-filter: blur(18px); border-bottom: 1px solid var(--ai-border); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; z-index: 5; }
.app-shell.sidebar-right .app-header { flex-direction: row-reverse; }
.app-shell.sidebar-right .header-side-left { flex-direction: row-reverse; }
.header-side { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ai-dark); }
.brand img { width: 44px; height: 44px; border-radius: 14px; }
.active-section-label { color: #fff; font-size: 18px; font-weight: 850; line-height: 1; white-space: nowrap; max-width: min(34vw, 360px); overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.user-pill { background: var(--ai-soft); border-radius: 999px; padding: 9px 14px; font-weight: 700; color: var(--ai-primary); }
.btn-ghost, .icon-button { border: 1px solid var(--ai-border); background: var(--ai-panel); color: var(--ai-text); border-radius: 14px; padding: 9px 14px; font-weight: 700; }
.icon-button { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.icon-button:hover { transform: translateY(-1px); border-color: rgba(0,114,255,.35); }
.sidebar { grid-column: 1; grid-row: 2; background: var(--ai-sidebar); color: #fff; padding: 20px 16px; overflow-y: auto; transition: transform .25s ease, padding .25s ease; }
.app-shell.sidebar-hidden .sidebar { transform: translateX(-100%); padding-left: 0; padding-right: 0; }
.app-shell.sidebar-right .sidebar { grid-column: 2; }
.app-shell.sidebar-right .workspace { grid-column: 1; }
.app-shell.sidebar-right.sidebar-hidden .sidebar { transform: translateX(100%); }
.sidebar-title { color: #94a3b8; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 6px 10px 14px; }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-item { border: 0; width: 100%; text-align: left; color: var(--ai-sidebar-text); background: transparent; border-radius: 16px; padding: 14px 14px; display: flex; align-items: center; gap: 12px; font-weight: 700; transition: all .25s ease; }
.menu-item:hover, .menu-item.active { background: linear-gradient(135deg, rgba(0,114,255,.26), rgba(124,58,237,.24)); color: #fff; transform: translateX(2px); }
.menu-item-logout { margin-top: 12px; color: #fecaca; }
.menu-item-logout:hover { background: rgba(220, 38, 38, .2); color: #fff; }
.workspace { grid-column: 2; grid-row: 2; padding: 16px; min-width: 0; overflow: hidden; }
.workspace-frame { width: 100%; height: 100%; border: 0; border-radius: 24px; background: var(--ai-panel); box-shadow: var(--ai-shadow); }
.install-banner { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #0f172a; color: #fff; border-radius: 20px; padding: 12px 14px; box-shadow: var(--ai-shadow); z-index: 999; display: none; align-items: center; gap: 12px; }
.install-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(15, 23, 42, .48); backdrop-filter: blur(8px); }
.install-modal.show { display: flex; }
.install-modal-card { width: min(420px, 100%); border-radius: 24px; padding: 28px; text-align: center; color: var(--ai-text); background: var(--ai-panel); border: 1px solid var(--ai-border); box-shadow: var(--ai-shadow); }
.install-modal-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--ai-soft); color: var(--ai-primary-2); font-size: 26px; }
.install-modal-card h2 { color: var(--ai-dark); font-size: 24px; margin: 0 0 8px; font-weight: 850; }
.install-modal-card p { color: var(--ai-muted); margin: 0 0 20px; }
.install-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 820px) {
    body { overflow: hidden; }
    .app-shell, .app-shell.sidebar-right, .app-shell.sidebar-hidden, .app-shell.sidebar-right.sidebar-hidden { grid-template-columns: 1fr; grid-template-rows: 68px 1fr; }
    .app-header { grid-column: 1; height: 68px; padding: 0 14px; }
    .brand span { display: none; }
    .user-pill { display: none; }
    .header-actions { gap: 8px; }
    .language-control { width: 42px; justify-content: center; padding: 0; }
    .language-control i { display: none; }
    .language-select { min-width: 38px; width: 38px; font-size: 12px; text-align: center; }
    .btn-ghost { padding: 9px 10px; }
    .sidebar, .app-shell.sidebar-right .sidebar { position: fixed; top: 68px; bottom: 0; width: min(320px, 86vw); grid-column: auto; grid-row: auto; z-index: 8; padding: 18px 14px; overflow-y: auto; transform: translateX(0); box-shadow: var(--ai-shadow); }
    .app-shell.sidebar-right .sidebar { right: 0; }
    .app-shell:not(.sidebar-right) .sidebar { left: 0; }
    .app-shell.sidebar-hidden .sidebar { transform: translateX(-105%); }
    .app-shell.sidebar-right.sidebar-hidden .sidebar { transform: translateX(105%); }
    .sidebar-title { display: none; }
    .menu-list { flex-direction: column; width: 100%; gap: 8px; }
    .menu-item { justify-content: flex-start; min-width: 0; flex-direction: row; gap: 12px; padding: 13px 12px; font-size: 14px; }
    .workspace { grid-column: 1; grid-row: 2; padding: 10px; }
    .workspace-frame { border-radius: 18px; }
    .install-modal-actions { grid-template-columns: 1fr; }
}
/* Fin funcionalidad Shell responsive */

/* Inicio funcionalidad Paginas internas */
.page-body { overflow: auto; background: var(--ai-panel); min-height: 100vh; padding: 24px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-kicker { color: var(--ai-primary-2); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.page-title { font-weight: 850; color: var(--ai-dark); margin: 4px 0 6px; }
.page-description { color: var(--ai-muted); margin: 0; }
.ai-card { border: 1px solid var(--ai-border); border-radius: 24px; padding: 22px; background: var(--ai-panel); box-shadow: 0 10px 30px rgba(15,23,42,.07); height: 100%; }
.metric-card { border-radius: 24px; padding: 22px; background: linear-gradient(135deg, #f8fbff, #eef5ff); border: 1px solid var(--ai-border); }
.metric-card .value { font-size: 34px; font-weight: 850; color: var(--ai-dark); }
.metric-card .label { color: #64748b; font-weight: 700; }
.fake-chart { height: 250px; display: flex; align-items: flex-end; gap: 14px; padding: 20px; border-radius: 20px; background: #f8fafc; }
.fake-bar { flex: 1; min-width: 28px; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, #ff1f14, #10177a); opacity: .9; }
.table { background: #fff; }
.table th { color: #475569; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.unauthorized { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px; background: #f8fafc; }
.unauthorized-box { max-width: 460px; background: #fff; padding: 32px; border-radius: 26px; box-shadow: var(--ai-shadow); }
@media (max-width: 600px) { .page-body { padding: 16px; } .page-header { flex-direction: column; } }
/* Fin funcionalidad Paginas internas */

/* Inicio funcionalidad Animacion agente voz */
.voice-center { text-align: center; padding: 8px 0 18px; }
.voice-toggle-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; margin: 16px 0 20px; }
.voice-ring { position: absolute; width: 190px; height: 190px; border-radius: 999px; border: 2px solid rgba(0,114,255,.2); opacity: 0; pointer-events: none; }
.voice-toggle-wrap.on .voice-ring.r1 { animation: voiceWave 1.8s infinite; }
.voice-toggle-wrap.on .voice-ring.r2 { animation: voiceWave 1.8s .55s infinite; }
.voice-toggle { position: relative; z-index: 2; width: 150px; height: 150px; border: none; border-radius: 999px; padding: 18px; font-weight: 800; transition: all 0.35s ease; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; cursor: pointer; }
.voice-toggle i { font-size: 34px; }
.voice-toggle.off { background: linear-gradient(135deg, #6c757d, #475569); color: #ffffff; box-shadow: 0 12px 28px rgba(71, 85, 105, 0.28); }
.voice-toggle.on { background: linear-gradient(135deg, #00c6ff, #ff1f14, #7f00ff); color: #ffffff; box-shadow: 0 0 34px rgba(0, 114, 255, 0.72); animation: voicePulse 1.5s infinite; }
.voice-text { font-size: 13px; line-height: 1.2; }
@keyframes voicePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 114, 255, 0.55); }
    70% { transform: scale(1.045); box-shadow: 0 0 0 20px rgba(0, 114, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 114, 255, 0); }
}
@keyframes voiceWave {
    0% { transform: scale(.7); opacity: .55; }
    100% { transform: scale(1.7); opacity: 0; }
}
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 14px; font-weight: 800; background: #f1f5f9; color: #475569; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.status-pill.on { background: #ecfeff; color: #0369a1; }
.status-pill.on .status-dot { background: #06b6d4; box-shadow: 0 0 0 8px rgba(6,182,212,.12); }
.transcript-box { min-height: 170px; border-radius: 20px; padding: 16px; background: #0b1220; color: #dbeafe; font-family: Consolas, monospace; overflow: auto; }
.command-button { border-radius: 14px; border: 1px solid var(--ai-border); background: #fff; padding: 10px 12px; font-weight: 700; color: #334155; transition: all .2s ease; }
.command-button:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15,23,42,.09); color: var(--ai-primary); }
.widget-placeholder { border: 2px dashed rgba(0,114,255,.26); border-radius: 22px; padding: 20px; background: #f8fbff; color: #475569; }
/* Fin funcionalidad Animacion agente voz */
/* Inicio funcionalidad Boton instalar PWA en login */
.install-pwa-btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

.install-pwa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

.install-pwa-btn i {
    transition: transform 0.3s ease;
}

.install-pwa-btn:hover i {
    transform: translateY(2px);
}
/* Fin funcionalidad Boton instalar PWA en login */

/* Inicio personalizacion ClearCardio */
:root {
    --ai-primary: #080b5f;
    --ai-primary-2: #ff1f14;
    --ai-accent: #10177a;
    --ai-sidebar: #080b5f;
    --ai-sidebar-text: #ffffff;
    --ai-soft: #eef2ff;
}
.login-page { background: linear-gradient(135deg, #080b5f 0%, #10177a 56%, #ff1f14 100%); }
.login-card { border-radius: 22px; }
.clearcardio-login-logo { width: 210px; height: auto; max-height: 78px; object-fit: contain; filter: none; }
.brand img { width: 150px; height: auto; max-height: 48px; border-radius: 0; object-fit: contain; }
.brand span { color: #080b5f; }
.app-header { background: rgba(255,255,255,.96); }
.btn-ai { background: linear-gradient(135deg, #080b5f, #10177a); box-shadow: 0 14px 26px rgba(8,11,95,.26); }
.btn-ai:hover { box-shadow: 0 18px 32px rgba(8,11,95,.32); }
.menu-item:hover, .menu-item.active { background: rgba(255,255,255,.14); color: #fff; }
.clearcardio-dashboard-page { background: #f5f7fb; color: #080b5f; padding: 18px; }
.cc-dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border-radius: 22px; background: #080b5f; color: #fff; box-shadow: var(--ai-shadow); margin-bottom: 14px; }
.cc-dashboard-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cc-dashboard-brand img { width: 190px; max-width: 42vw; height: auto; background: transparent; }
.cc-dashboard-header .page-title, .cc-dashboard-header .page-description, .cc-dashboard-header .page-kicker { color: #fff; }
.cc-dashboard-header .page-description { opacity: .78; }
.cc-dashboard-actions { display: flex; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.cc-dashboard-actions label { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cc-dashboard-actions .form-control { min-height: 40px; border: 0; border-radius: 12px; color: #080b5f; }
.cc-filter-status-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.cc-chip-row { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px; min-width: 0; }
.cc-chip-row span { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; background: #fff; color: #080b5f; border: 1px solid rgba(8,11,95,.1); font-size: 13px; }
.cc-section { margin-bottom: 24px; }
.cc-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.cc-section-heading h2 { margin: 0; color: #080b5f; font-size: 22px; font-weight: 850; }
.cc-section-heading p { color: #64748b; margin: 4px 0 0; }
.cc-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.cc-kpi-card { background: #fff; border-radius: 18px; min-height: 136px; }
.cc-kpi-card .value { color: #080b5f; font-size: 26px; line-height: 1.15; }
.cc-kpi-top { display: flex; justify-content: space-between; gap: 8px; color: #64748b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.cc-status { border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.cc-status.good { background: #dcfce7; color: #166534; }
.cc-status.warn { background: #fef3c7; color: #92400e; }
.cc-status.bad { background: #fee2e2; color: #991b1b; }
.cc-chart-grid { display: grid; gap: 12px; }
.cc-chart-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-chart-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-chart-grid.funnel { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.ai-card h3 { color: #080b5f; font-size: 15px; font-weight: 850; margin-bottom: 12px; }
.ai-card canvas { width: 100% !important; height: 280px !important; }
.cc-table-card { overflow: hidden; }
.cc-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-card-title span, .cc-note { color: #64748b; font-size: 12px; }
.cc-table { min-width: 900px; color: #080b5f; }
.cc-table thead th { background: #f8fafc; color: #64748b; border-top: 0; }
.cc-table tbody tr:nth-child(even) { background: #eef2ff; }
.cc-table td, .cc-table th { white-space: nowrap; }
.cc-ops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cc-op-card h3 { margin: 10px 0 4px; font-size: 24px; color: #080b5f; }
.cc-op-card p { margin: 0; color: #64748b; font-weight: 700; }
@media (max-width: 1100px) { .cc-dashboard-header { align-items: flex-start; flex-direction: column; } .cc-dashboard-actions { justify-content: flex-start; } .cc-kpi-grid, .cc-chart-grid.three, .cc-ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-chart-grid.funnel, .cc-chart-grid.two { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .clearcardio-dashboard-page { padding: 12px; } .cc-dashboard-brand { align-items: flex-start; flex-direction: column; } .cc-dashboard-brand img { width: 160px; max-width: 70vw; } .cc-dashboard-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; } .cc-dashboard-actions label, .cc-dashboard-actions button { width: 100%; } .cc-kpi-grid, .cc-ops-grid { grid-template-columns: 1fr; } .ai-card canvas { height: 240px !important; } }
/* Fin personalizacion ClearCardio */

/* Inicio ajustes visuales solicitados */
:root {
    --cc-top: #000153;
}
.app-header,
body.theme-dark .app-header {
    background: #000153 !important;
    border-bottom-color: rgba(255,255,255,.14) !important;
}
.app-header .brand span {
    display: none !important;
}
.app-header .icon-button,
.app-header .btn-ghost,
.app-header .language-control {
    background: rgba(255,255,255,.96) !important;
    color: #000153 !important;
    border-color: rgba(255,255,255,.18) !important;
}
.app-header .language-select {
    color: #000153 !important;
}
.app-header .user-pill {
    background: rgba(255,255,255,.96) !important;
    color: #000153 !important;
}
.login-page {
    background: linear-gradient(rgba(0,1,83,.18), rgba(0,1,83,.34)), url('assets/fondo.webp') center center / cover no-repeat fixed !important;
}
.login-card.clearcardio-login-card {
    background: #000153 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.42) !important;
}
.clearcardio-login-card .login-title {
    display: none !important;
}
.clearcardio-login-card .login-subtitle,
.clearcardio-login-card label,
.clearcardio-login-card .form-text {
    color: #ffffff !important;
}
.clearcardio-login-card .login-subtitle {
    font-weight: 700;
    letter-spacing: .01em;
}
.clearcardio-login-card .form-control {
    background: #ffffff !important;
    color: #000153 !important;
    border-color: rgba(255,255,255,.5) !important;
}
.clearcardio-login-card .form-control::placeholder {
    color: rgba(0,1,83,.58) !important;
}
.clearcardio-login-card .language-control {
    background: #ffffff !important;
    color: #000153 !important;
}
.clearcardio-login-card .language-select {
    color: #000153 !important;
}
.clearcardio-login-card .btn-ai {
    background: #ff1f14 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 26px rgba(255,31,20,.24) !important;
}
.clearcardio-login-card .demo-credentials {
    display: none !important;
}
/* Fin ajustes visuales solicitados */
/* Inicio boton idioma EN/SP y placeholders */
.language-toggle-button {
    min-width: 64px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    color: #000153;
    font-weight: 850;
    letter-spacing: .02em;
}
.section-placeholder-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
}
.section-placeholder {
    width: min(760px, 100%);
    min-height: 360px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(0,1,83,.12);
    box-shadow: var(--ai-shadow);
}
.section-placeholder h1 {
    margin: 0;
    color: #000153;
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 900;
    text-align: center;
}
@media (max-width: 820px) {
    .language-toggle-button {
        min-width: 54px;
        height: 42px;
        font-size: 12px;
    }
}
/* Fin boton idioma EN/SP y placeholders */
/* Inicio usuarios y vistas por rol */
.role-preview-page .cc-dashboard-header {
    background: #000153;
}
.users-card-title {
    color: #000153;
    font-size: 16px;
    font-weight: 850;
    margin-bottom: 14px;
}
.role-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.role-pill-grid span {
    border-radius: 999px;
    background: #eef2ff;
    color: #000153;
    border: 1px solid rgba(0,1,83,.12);
    padding: 9px 13px;
    font-weight: 800;
}
.users-access-table td,
.users-access-table th {
    vertical-align: middle;
}
/* Fin usuarios y vistas por rol */
/* Inicio filtros colapsables tableros */
.cc-dashboard-actions {
    position: relative;
    padding-top: 0;
}
.cc-filter-toggle {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid rgba(8,11,95,.12);
    border-radius: 999px;
    background: #fff;
    color: #000153;
    font-size: 12px;
    font-weight: 850;
    padding: 5px 10px;
}
.cc-dashboard-header.filters-hidden {
    justify-content: flex-end;
    padding: 0;
    min-height: 30px;
    background: transparent;
    box-shadow: none;
    margin-bottom: 8px;
}
.cc-dashboard-header.filters-hidden .cc-dashboard-brand {
    display: none;
}
.cc-dashboard-actions.filters-hidden {
    min-width: 0;
    min-height: 0;
    padding-top: 0;
}
.cc-dashboard-actions.filters-hidden label,
.cc-dashboard-actions.filters-hidden #ccRefresh,
.cc-dashboard-actions.filters-hidden #ccExport {
    display: none !important;
}
@media (max-width: 640px) {
    .active-section-label { max-width: 28vw; font-size: 14px; }
    .cc-filter-status-row { align-items: stretch; flex-direction: column; }
    .cc-filter-toggle { width: max-content; }
    .cc-dashboard-actions { padding-top: 0; }
}
/* Fin filtros colapsables tableros */

/* Inicio funcionalidad Drill-down clientes */
.cc-chart-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cc-chart-card-title h3 { margin: 0; }
.cc-chart-card-title > div { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cc-drilldown-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; background: #eef2ff; color: #080b5f; font-size: 11px; font-weight: 850; white-space: nowrap; }
.cc-drilldown-button { border: 0; border-radius: 999px; padding: 6px 10px; background: #080b5f; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.cc-drilldown-button:hover { background: #ff1f14; }
.cc-drilldown-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 40; padding: 18px; background: rgba(5, 8, 36, .64); }
.cc-drilldown-modal.show { display: flex; }
.cc-drilldown-dialog { width: min(1120px, 96vw); max-height: 88vh; overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.32); padding: 18px; }
.cc-drilldown-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.cc-drilldown-header h2 { margin: 2px 0 4px; color: #080b5f; font-size: 22px; font-weight: 850; }
.cc-drilldown-header p { margin: 0; color: #64748b; }
.cc-drilldown-search { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; color: #080b5f; }
.cc-drilldown-search .form-control { min-height: 40px; border: 1px solid #cbd5e1; border-radius: 10px; color: #080b5f; }
.cc-drilldown-search span { color: #64748b; font-size: 12px; font-weight: 800; white-space: nowrap; }
.cc-client-table { min-width: 980px; }
@media (max-width: 640px) { .cc-chart-card-title { flex-direction: column; } .cc-drilldown-dialog { padding: 14px; } .cc-drilldown-search { grid-template-columns: auto 1fr; } .cc-drilldown-search span { grid-column: 2; } }
/* Fin funcionalidad Drill-down clientes */
