/* yacubierto — estilos compartidos (marca: slate #0F172A + ámbar #F59E0B) */
:root { --ink: #0F172A; --kb: #F59E0B; }
body { font-family: 'Inter', system-ui, sans-serif; }
.hero-grid { background-color: #0F172A; background-image: radial-gradient(rgba(245,158,11,.16) 1px, transparent 1px); background-size: 28px 28px; }

.field { min-width: 0; max-width: 100%; width: 100%; border-radius: .85rem; border: 1.5px solid #E2E8F0; background: #fff; padding: .7rem .95rem; font-size: .9rem; font-weight: 600; color: #0F172A; transition: .15s; outline: none; }
.field:focus { border-color: #F59E0B; box-shadow: 0 0 0 4px rgba(245,158,11,.15); }
.field::placeholder, input::placeholder, textarea::placeholder { color: #94A3B8; font-weight: 400; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .85rem; background: #F59E0B; padding: .75rem 1.25rem; font-size: .9rem; font-weight: 800; color: #0F172A; box-shadow: 0 8px 20px -8px rgba(245,158,11,.7); transition: .15s; }
.btn-primary:hover { background: #FBBF24; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .85rem; background: #0F172A; padding: .7rem 1.1rem; font-size: .85rem; font-weight: 700; color: #fff; transition: .15s; }
.btn-dark:hover { background: #1E293B; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .75rem; border: 1.5px solid #E2E8F0; background: #fff; padding: .5rem .85rem; font-size: .78rem; font-weight: 700; color: #334155; transition: .15s; }
.btn-ghost:hover { border-color: #F59E0B; color: #0F172A; background: #FFFBEB; }
.btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .75rem; background: #DC2626; padding: .55rem .9rem; font-size: .78rem; font-weight: 800; color: #fff; transition: .15s; }
.btn-danger:hover { background: #B91C1C; }

.card { border-radius: 1.1rem; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.lift { transition: .2s; } .lift:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(15,23,42,.25); border-color: #CBD5E1; }

.modal-bg { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); padding: 1rem; }
.stagger > * { animation: rise .4s ease-out both; }
.stagger > *:nth-child(2) { animation-delay: .05s } .stagger > *:nth-child(3) { animation-delay: .1s } .stagger > *:nth-child(4) { animation-delay: .15s } .stagger > *:nth-child(5) { animation-delay: .2s } .stagger > *:nth-child(6) { animation-delay: .25s }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabular { font-variant-numeric: tabular-nums; }

/* ===== Menú lateral claro y tablero sobrio ===== */
.side { background: #fff; border-right: 1px solid #E2E8F0; }
.side-logo { display: block; padding: 1.4rem 1.5rem 1.2rem; }
.nav-g { margin: 1rem .75rem .4rem; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94A3B8; }
.nav-g:first-child { margin-top: .4rem; }
.nav-i { position: relative; display: flex; align-items: center; gap: .75rem; border-radius: .7rem; padding: .62rem .8rem; font-size: .88rem; font-weight: 700; color: #475569; transition: background .15s, color .15s; }
.nav-i svg { color: #94A3B8; transition: color .15s; flex-shrink: 0; }
.nav-i:hover { background: #F1F5F9; color: #0F172A; }
.nav-i:hover svg { color: #475569; }
.nav-i.is-on { background: #FFF7E0; color: #0F172A; }
.nav-i.is-on svg { color: #D97706; }
.nav-i.is-on::before { content: ""; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: #F59E0B; }
.side-plan { border-radius: .85rem; background: #F8FAFC; border: 1px solid #E2E8F0; padding: .8rem .9rem; margin-bottom: .75rem; }
.side-user { display: flex; align-items: center; gap: .65rem; border-top: 1px solid #E2E8F0; padding: .85rem .35rem 0; }
.side-av { display: flex; height: 2.2rem; width: 2.2rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; background: #0F172A; color: #FBBF24; font-size: .72rem; font-weight: 800; }
.side-out { display: flex; height: 2rem; width: 2rem; align-items: center; justify-content: center; border-radius: .6rem; color: #94A3B8; transition: .15s; }
.side-out:hover { background: #FEE2E2; color: #DC2626; }

.kpi { display: flex; align-items: center; gap: .9rem; border-radius: .9rem; border: 1px solid #E2E8F0; background: #fff; padding: .95rem 1.1rem; }
.kpi-ic { display: flex; height: 2.5rem; width: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: .7rem; background: #F1F5F9; color: #64748B; }
.kpi-v { font-size: 1.65rem; font-weight: 800; line-height: 1; color: #0F172A; }
.kpi-l { margin-top: .3rem; font-size: .72rem; font-weight: 700; color: #64748B; }
.kpi-kb .kpi-ic { background: #FFF7E0; color: #D97706; }
.kpi-sky .kpi-ic { background: #E0F2FE; color: #0284C7; }
.kpi-emerald .kpi-ic { background: #DCFCE7; color: #16A34A; }
.kpi-red { border-color: #FCA5A5; background: #FEF2F2; } .kpi-red .kpi-ic { background: #DC2626; color: #fff; } .kpi-red .kpi-v { color: #B91C1C; }

.col-b { border-radius: .9rem; border: 1px solid #E2E8F0; background: #F1F5F9; padding: .7rem; }
.col-b > div:first-child { margin-bottom: .75rem; padding: .1rem .2rem .55rem; border-bottom: 1px solid #E2E8F0; }
.col-b h2 { font-size: .72rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: #334155; }
.col-b article.card { border-radius: .8rem; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.col-b article.card:hover { box-shadow: 0 8px 20px -10px rgba(15,23,42,.25); transform: none; }

/* ===== Azul marino + ámbar de la marca (sustituye al menú claro) ===== */
.side { background: linear-gradient(180deg, #0F172A 0%, #0B1220 100%); border-right: 0; }
.side-logo { padding: 1.5rem 1.4rem 1.3rem; }
.side-logo svg { height: 2.3rem; width: auto; }
.nav-g { color: #64748B; }
.nav-i { color: #CBD5E1; }
.nav-i svg { color: #64748B; }
.nav-i:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-i:hover svg { color: #CBD5E1; }
.nav-i.is-on { background: rgba(245,158,11,.14); color: #FBBF24; box-shadow: inset 0 0 0 1px rgba(245,158,11,.25); }
.nav-i.is-on svg { color: #FBBF24; }
.nav-i.is-on::before { left: -.75rem; background: #F59E0B; }
.side-plan { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.side-plan .text-slate-500, .side-plan .text-slate-400 { color: #94A3B8 !important; }
.side-plan .bg-slate-200 { background: rgba(255,255,255,.12) !important; }
.side-user { border-top-color: rgba(255,255,255,.08); }
.side-user .text-ink { color: #fff !important; }
.side-av { background: #F59E0B; color: #0F172A; }
.side-out { color: #94A3B8; }
.side-out:hover { background: rgba(239,68,68,.15); color: #FCA5A5; }

.kpi { border-top: 3px solid #0F172A; }
.kpi-kb { border-top-color: #F59E0B; } .kpi-sky { border-top-color: #0EA5E9; } .kpi-emerald { border-top-color: #16A34A; } .kpi-red { border-top-color: #DC2626; }
.kpi-ic { background: #0F172A; color: #FBBF24; }
.kpi-kb .kpi-ic { background: #0F172A; color: #FBBF24; } .kpi-sky .kpi-ic { background: #0F172A; color: #7DD3FC; } .kpi-emerald .kpi-ic { background: #0F172A; color: #86EFAC; }
.col-b { background: #EEF2F7; border-color: #DDE4EE; }
.col-b > div:first-child { border-bottom: 2px solid #0F172A; }

/* ===== Indicadores sin iconos: etiqueta con punto de estado + cifra grande ===== */
.kpi { display: block; border-top: 0; border-left: 3px solid #0F172A; padding: 1rem 1.2rem 1.05rem; }
.kpi-l { display: flex; align-items: center; gap: .5rem; margin: 0 0 .55rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748B; }
.kpi-l i { height: .5rem; width: .5rem; border-radius: 50%; background: #0F172A; }
.kpi-v { font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #0F172A; }
.kpi-kb { border-left-color: #F59E0B; } .kpi-kb .kpi-l i { background: #F59E0B; }
.kpi-sky { border-left-color: #0EA5E9; } .kpi-sky .kpi-l i { background: #0EA5E9; }
.kpi-emerald { border-left-color: #16A34A; } .kpi-emerald .kpi-l i { background: #16A34A; }
.kpi-slate { border-left-color: #CBD5E1; } .kpi-slate .kpi-l i { background: #CBD5E1; }
.kpi-red { border-left-color: #DC2626; background: #FEF2F2; border-color: #FECACA; } .kpi-red .kpi-l { color: #B91C1C; } .kpi-red .kpi-l i { background: #DC2626; } .kpi-red .kpi-v { color: #B91C1C; }

/* ===== Indicadores con icono: icono grande en cuadro suave + cifra y etiqueta ===== */
.kpi { display: flex; align-items: center; gap: 1rem; border: 1px solid #E2E8F0; border-left: 1px solid #E2E8F0; background: #fff; padding: 1rem 1.15rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.kpi-ic { display: flex; height: 3.1rem; width: 3.1rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: .9rem; }
.kpi-v { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #0F172A; }
.kpi-l { display: block; margin: .35rem 0 0; font-size: .74rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #64748B; }
.kpi-kb .kpi-ic { background: #FEF3C7; color: #B45309; }
.kpi-sky .kpi-ic { background: #E0F2FE; color: #0369A1; }
.kpi-emerald .kpi-ic { background: #DCFCE7; color: #15803D; }
.kpi-slate .kpi-ic { background: #F1F5F9; color: #64748B; }
.kpi-red { background: #fff; border-color: #FECACA; } .kpi-red .kpi-ic { background: #DC2626; color: #fff; } .kpi-red .kpi-v { color: #B91C1C; } .kpi-red .kpi-l { color: #B91C1C; }
.kpi-slate .kpi-ic { background: #F1F5F9; color: #94A3B8; }

/* Un cuadro de total sobre cada columna del tablero */
.kpis .kpi { padding: .85rem 1rem; gap: .85rem; }
.kpis .kpi-ic { height: 2.7rem; width: 2.7rem; }
.kpis .kpi-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis .kpi-slate .kpi-ic { background: #E2E8F0; color: #475569; }

/* Menú de usuario arriba a la derecha (estilo Gmail) */
.u-av { display: flex; height: 2.4rem; width: 2.4rem; align-items: center; justify-content: center; border-radius: 50%; background: #0F172A; color: #FBBF24; font-size: .8rem; font-weight: 800; letter-spacing: .02em; border: 2px solid #fff; box-shadow: 0 0 0 1px #CBD5E1; transition: box-shadow .15s; cursor: pointer; }
.u-av:hover, .u-av[aria-expanded="true"] { box-shadow: 0 0 0 3px #FCD34D; }
.u-av-l { height: 3.2rem; width: 3.2rem; flex-shrink: 0; font-size: 1rem; cursor: default; box-shadow: none; }
.u-drop { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 60; width: 17.5rem; overflow: hidden; border-radius: 1rem; border: 1px solid #E2E8F0; background: #fff; box-shadow: 0 20px 40px -12px rgba(15,23,42,.3); animation: pop .15s ease-out; }
.u-head { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1rem; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; }
.u-it { display: flex; align-items: center; gap: .7rem; padding: .8rem 1.1rem; font-size: .85rem; font-weight: 700; color: #334155; transition: background .12s; }
.u-it:hover { background: #F1F5F9; }
.u-it svg { color: #64748B; }
.u-out { border-top: 1px solid #E2E8F0; } .u-out:hover { background: #FEF2F2; color: #B91C1C; } .u-out:hover svg { color: #DC2626; }

.side-trial { margin-bottom: .6rem; border-radius: .85rem; padding: .7rem .9rem; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.3); color: #FCD34D; }
.side-trial b { color: #fff; }
.side-trial.is-fin { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.35); color: #FCA5A5; }

/* Tras la carga inicial, repintar los datos no vuelve a animar las tarjetas */
.no-anim .stagger > *, .no-anim .stagger, .no-anim .animate-rise, .no-anim .animate-pop, .no-anim .rv { animation: none !important; }

/* Iniciales y cuadros de icono en tono suave (nada de azul oscuro con amarillo) */
.u-av { background: #FEF3C7; color: #B45309; box-shadow: 0 0 0 1px #FCD34D; }
.u-av:hover, .u-av[aria-expanded="true"] { box-shadow: 0 0 0 3px #FCD34D; }
.side-av { background: #FEF3C7; color: #B45309; }

/* ===== Tablero con el diseño del Inicio de VPanel: cabecera, indicadores con meta y pie, paneles blancos ===== */
.dh { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 4px 0 20px; }
.dh__eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D97706; }
.dh h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: #0F172A; }
.dh__sub { margin: 6px 0 0; font-size: 14px; color: #64748B; }
.dh__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dh__actions a { padding: .65rem 1.1rem; font-size: .85rem; }

.db-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.db-kpi { --kpi: #F59E0B; position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow: hidden; padding: 18px 20px; border: 1px solid transparent; border-radius: 16px; background: #fff; box-shadow: 0 18px 36px -24px rgba(15,23,42,.35), 0 0 0 1px #E8ECF2; }
.db-kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--kpi); }
.db-kpi--kb { --kpi: #F59E0B; } .db-kpi--sky { --kpi: #0EA5E9; } .db-kpi--red { --kpi: #DC2626; } .db-kpi--emerald { --kpi: #16A34A; } .db-kpi--slate { --kpi: #64748B; }
.db-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.db-kpi__label { margin: 0; font-size: 13px; font-weight: 600; color: #64748B; }
.db-kpi__ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--kpi) 14%, #fff); color: var(--kpi); }
.db-kpi__value { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #0F172A; }
.db-kpi__meta { margin: 0; font-size: 13px; color: #334155; }
.db-kpi__foot { margin: auto 0 0; padding-top: 10px; border-top: 1px solid #EEF1F6; font-size: 12.5px; color: #94A3B8; }
.db-kpi--hot { background: #FEF2F2; box-shadow: 0 0 0 1px #FECACA, 0 18px 36px -24px rgba(220,38,38,.4); }
.db-kpi--hot .db-kpi__value { color: #B91C1C; } .db-kpi--hot .db-kpi__foot { border-top-color: #FECACA; color: #B91C1C; }

.db-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; }
.db-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border: 1px solid #E2E8F0; border-radius: 16px; background: #fff; }
.db-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.db-card__head h2 { margin: 0; font-size: 15px; font-weight: 700; color: #0F172A; }
.db-card__head p { margin: 2px 0 0; font-size: 12.5px; color: #64748B; }
.db-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: #F1F5F9; font-size: 12.5px; font-weight: 700; color: #334155; font-variant-numeric: tabular-nums; }
.db-col__list { display: flex; flex-direction: column; gap: 10px; }
.db-col__list article.card { border-radius: 12px; border: 1px solid #E8ECF2; box-shadow: none; background: #FAFBFD; transition: border-color .15s, background .15s; }
.db-col__list article.card:hover { transform: none; background: #fff; border-color: #CBD5E1; box-shadow: none; }
.db-empty { margin: 0; padding: 26px 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: #94A3B8; border: 1.5px dashed #E2E8F0; border-radius: 12px; }
.db-col--red .db-card__head h2 { color: #B91C1C; }

@media (max-width: 1279px) { .db-kpis, .db-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .db-kpis, .db-board { grid-template-columns: 1fr; } .dh h1 { font-size: 22px; } }

/* Iniciales de usuario: sin aro amarillo, el color lo pone cada persona */
.u-av { border: 0; box-shadow: none; }
.u-av:hover, .u-av[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(15,23,42,.12); }
.u-av-l { box-shadow: none !important; }

/* ===== Banda oscura de cabecera (como el Inicio de VPanel) en azul yacubierto, con los indicadores montados encima ===== */
body.bg-slate-50 { background: #EDF1F7; }
.dh { position: relative; overflow: hidden; align-items: flex-start; margin-bottom: 0; padding: 28px 30px 92px; border-radius: 20px; color: #fff;
  background:
    radial-gradient(520px 260px at 92% -30%, rgba(245,158,11,.5), transparent 70%),
    radial-gradient(380px 220px at 70% 140%, rgba(56,189,248,.28), transparent 70%),
    linear-gradient(135deg, #1E3A8A 0%, #172554 48%, #0F172A 100%); }
.dh::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.dh > * { position: relative; z-index: 1; }
.dh h1 { color: #fff; }
.dh__eyebrow { color: #FCD34D; }
.dh__sub { color: #BFCBE4; }
.dh .btn-ghost { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.dh .btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.db-kpis { position: relative; z-index: 2; margin: -70px 18px 18px; }
.db-card { border-color: transparent; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 30px -24px rgba(15,23,42,.35); }
.db-card__head h2 { display: flex; align-items: center; gap: 10px; }
.db-card__head h2::before { content: ""; width: 4px; height: 16px; flex: none; border-radius: 2px; background: linear-gradient(180deg, #FBBF24, #D97706); }
.db-col--red .db-card__head h2::before { background: #DC2626; }
@media (max-width: 640px) { .db-kpis { margin: -70px 0 16px; } .dh { padding: 22px 20px 92px; } }
.db-card__head h2 { font-size: 14px; } .db-card__head h2::before { align-self: stretch; height: auto; min-height: 16px; }

/* Todo en azul: caja sin brillo amarillo y barritas de los paneles en azul */
.dh { background:
    radial-gradient(520px 260px at 92% -30%, rgba(96,165,250,.35), transparent 70%),
    linear-gradient(135deg, #1D4ED8 0%, #1E40AF 55%, #1E3A8A 100%); }
.dh__eyebrow { color: #BFDBFE; }
.dh__sub { color: #DBEAFE; }
.db-card__head h2::before { background: #2563EB; }
.db-col--red .db-card__head h2::before { background: #DC2626; }

/* Indicadores y columnas con el mismo ancho: alineados en vertical */
.db-kpis { margin: -70px 0 16px; }

/* Caja con el azul corporativo de yacubierto (#0F172A) y botones sólidos, sin transparencias */
.dh { background: #0F172A; }
.dh__eyebrow { color: #FBBF24; }
.dh__sub { color: #94A3B8; }
.dh .btn-ghost { border: 1.5px solid #fff; background: #fff; color: #0F172A; }
.dh .btn-ghost:hover { background: #F1F5F9; border-color: #F1F5F9; color: #0F172A; }
.dh .btn-primary { box-shadow: none; }

/* Botones de los encargos: al pasar el ratón, gris azulado neutro (sin amarillo) */
.btn-ghost:hover { border-color: #94A3B8; background: #F1F5F9; color: #0F172A; }
.btn-ghost:active { background: #E2E8F0; }

/* Como en VPanel: la caja azul es un pelín más ancha que las tarjetas y las columnas (18 px por lado) */
.db-kpis { margin: -70px 18px 16px; }
#alertas, .db-board, #page > .mb-4.flex { margin-left: 18px; margin-right: 18px; }
@media (max-width: 640px) { .db-kpis { margin: -70px 0 16px; } #alertas, .db-board, #page > .mb-4.flex { margin-left: 0; margin-right: 0; } }

/* Campana de notificaciones */
.n-btn { position: relative; display: flex; height: 2.9rem; width: 2.9rem; align-items: center; justify-content: center; border-radius: 50%; color: #475569; transition: background .15s; }
.n-btn:hover, .n-btn[aria-expanded="true"] { background: #F1F5F9; color: #0F172A; }
.n-count { position: absolute; top: 1px; right: 0; min-width: 1.1rem; height: 1.1rem; padding: 0 .3rem; border-radius: 999px; background: #DC2626; color: #fff; font-size: .65rem; font-weight: 800; line-height: 1.1rem; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.n-drop { position: absolute; right: -3.5rem; top: calc(100% + .6rem); z-index: 60; width: 22rem; max-width: calc(100vw - 1.5rem); overflow: hidden; border-radius: 1rem; border: 1px solid #E2E8F0; background: #fff; box-shadow: 0 20px 40px -12px rgba(15,23,42,.3); animation: pop .15s ease-out; }
.n-head { display: flex; align-items: baseline; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid #E2E8F0; background: #F8FAFC; font-size: .9rem; color: #0F172A; }
.n-head small { font-size: .72rem; font-weight: 600; color: #94A3B8; }
.n-list { max-height: 24rem; overflow-y: auto; }
.n-it { display: flex; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid #F1F5F9; font-size: .82rem; color: #334155; }
.n-it:last-child { border-bottom: 0; }
.n-it.is-new { background: #F0F6FF; }
.n-it p { margin: 0; font-weight: 600; line-height: 1.35; }
.n-it small { font-size: .72rem; font-weight: 600; color: #94A3B8; }
.n-ic { display: flex; height: 1.9rem; width: 1.9rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; }
.n-ok { background: #DCFCE7; color: #15803D; } .n-warn { background: #FEF3C7; color: #B45309; } .n-bad { background: #FEE2E2; color: #B91C1C; } .n-info { background: #F1F5F9; color: #64748B; }
.n-vacio { margin: 0; padding: 1.8rem 1.2rem; text-align: center; font-size: .82rem; font-weight: 600; color: #94A3B8; }

/* Prueba gratuita: mismos colores que la opción seleccionada del menú */
.side-trial { background: rgba(245,158,11,.14); border: 0; box-shadow: inset 0 0 0 1px rgba(245,158,11,.25); color: #FBBF24; }
.side-trial b { color: #FBBF24; }
.side-trial.is-fin { background: rgba(239,68,68,.15); box-shadow: inset 0 0 0 1px rgba(239,68,68,.35); color: #FCA5A5; }
.db-more { margin-top: 2px; padding: .55rem; border-radius: .7rem; border: 1px dashed #CBD5E1; font-size: .78rem; font-weight: 700; color: #64748B; } .db-more:hover { background: #F1F5F9; color: #0F172A; }

/* Selector de especialidad */
.esp{position:relative}
.esp-val{position:absolute;left:0;bottom:0;width:100%;height:1px;opacity:0;pointer-events:none;border:0;padding:0}
.esp-btn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;cursor:pointer}
.esp-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.esp-ph{color:#94A3B8;font-weight:500}
.esp-chev{width:16px;height:16px;flex:none;color:#64748B}
.esp-pop{position:fixed;z-index:200;display:flex;flex-direction:column;background:#fff;border:1px solid #E2E8F0;border-radius:14px;box-shadow:0 20px 40px -12px rgba(15,23,42,.28);overflow:hidden}
.esp-q{padding:8px;border-bottom:1px solid #F1F5F9}
.esp-q input{width:100%;border:1px solid #E2E8F0;border-radius:9px;padding:8px 10px;font-size:14px;font-weight:600;font-family:inherit;outline:0}
.esp-q input:focus{border-color:#0F172A}
.esp-list{overflow:auto;padding:6px}
.esp-g{padding:8px 8px 4px;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#94A3B8}
.esp-it{display:flex;align-items:center;gap:8px;padding:8px;border-radius:9px;font-size:14px;font-weight:400;color:#0F172A;cursor:pointer}
.esp-it:hover{background:#F1F5F9}
.esp-it.on{background:#F1F5F9}
.esp-n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.esp-ok{width:15px;height:15px;color:#0F172A;flex:none}
.esp-x{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;flex:none;color:#94A3B8;opacity:0;border:0;background:none;cursor:pointer}
.esp-x svg{width:13px;height:13px}
.esp-it:hover .esp-x{opacity:1}
.esp-x:hover{background:#FEE2E2;color:#DC2626}
@media(hover:none){.esp-x{opacity:1}}
.esp-add{display:flex;align-items:center;gap:8px;width:100%;margin-top:4px;padding:9px 8px;border:1px dashed #CBD5E1;border-radius:9px;background:#fff;font-size:14px;font-weight:700;font-family:inherit;color:#0F172A;cursor:pointer;text-align:left}
.esp-add b{color:#D97706}
.esp-add:hover{background:#FFFBEB;border-color:#F59E0B}
.esp-vacio{padding:14px 8px;font-size:13px;color:#64748B;text-align:center}
.esp-rest{width:100%;margin-top:6px;padding:8px;border:0;background:none;font-size:12px;font-weight:700;font-family:inherit;color:#64748B;cursor:pointer;text-decoration:underline}
.esp-rest:hover{color:#0F172A}

.esp-nueva{display:inline-flex;white-space:nowrap;align-items:center;gap:6px;margin-top:6px;padding:0;border:0;background:none;font-size:12.5px;font-weight:700;color:#B45309;cursor:pointer}
.esp-nueva b{font-size:14px}
.esp-nueva:hover{text-decoration:underline}
.esp-foot{border-top:1px solid #F1F5F9;padding:8px;background:#F8FAFC}
.esp-foot-b{width:100%;padding:10px;border:0;border-radius:10px;background:#F59E0B;color:#0F172A;font-size:14px;font-weight:800;font-family:inherit;cursor:pointer}
.esp-foot-b:hover{background:#D97706}
.esp-foot-l{display:block;margin:0 0 6px 2px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#64748B}
.esp-foot-r{display:flex;gap:6px}
.esp-foot-r input{flex:1;min-width:0;border:1px solid #CBD5E1;border-radius:9px;padding:9px 10px;font-size:14px;font-weight:600;font-family:inherit;outline:0}
.esp-foot-r input:focus{border-color:#0F172A}
.esp-foot-r button{border:0;border-radius:9px;padding:0 14px;background:#0F172A;color:#fff;font-size:13px;font-weight:800;font-family:inherit;cursor:pointer}

.nf { position: relative; z-index: 2; margin: -70px 18px 18px; }
@media (max-width: 640px) { .nf { margin: -70px 0 16px; } }

/* Títulos con tipografía propia */
.ttl { font-family: 'Sora', 'Inter', system-ui, sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: #0F172A; }
.ttl-d { margin-top: 3px; font-family: 'Sora', 'Inter', system-ui, sans-serif; font-size: 11.5px; font-weight: 500; letter-spacing: .01em; color: #D97706; }
.dh h1 { font-family: 'Sora', 'Inter', system-ui, sans-serif; font-weight: 700; letter-spacing: -.025em; }

/* Indicador de colaboradores disponibles (barra superior) */
.avail { align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: #475569; white-space: nowrap; transition: border-color .15s, background .15s; }
.avail:hover { border-color: #CBD5E1; background: #F8FAFC; }
.avail b { font-weight: 800; color: #0F172A; margin-right: -3px; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.avail.is-on i { background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.avail-t { color: #94A3B8; font-weight: 500; }

/* Leyenda de estrellas dentro del bloque azul */
.dh-leg { flex-basis: 100%; margin-top: 6px; }
.dh-leg__h { margin: 0 0 12px; max-width: 820px; font-size: 12.5px; line-height: 1.5; color: #BFCBE4; }
.dh-leg__g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dh-leg__it { padding: 11px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); }
.dh-leg__st { display: flex; gap: 2px; margin: 0; }
.dh-leg__st svg { width: 15px; height: 15px; color: rgba(255,255,255,.22); }
.dh-leg__st svg.on { color: #FBBF24; }
.dh-leg__r { margin: 7px 0 0; font-size: 12px; font-weight: 800; color: #fff; }
.dh-leg__t { margin: 2px 0 0; font-size: 12px; line-height: 1.35; color: #BFCBE4; }
@media (max-width: 1279px) { .dh-leg__g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dh-leg__g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Leyenda de estrellas: versión compacta */
.dh-leg__h { margin-bottom: 10px; }
.dh-leg__g { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-leg__it { padding: 8px 12px; border-radius: 999px; }
.dh-leg__r { margin: 4px 0 0; font-size: 12px; }
.dh-leg__r span { font-weight: 500; color: #BFCBE4; }
.dh-leg__t { display: none; }
.dh-leg__it { display: flex; align-items: center; gap: 9px; }
.dh-leg__r { margin: 0; white-space: nowrap; }

/* Leyenda de estrellas: una sola línea */
.dh-leg { margin-top: 2px; }
.dh-leg__g { align-items: center; gap: 6px 22px; }
.dh-leg__l { font-size: 12px; font-weight: 800; color: #BFCBE4; cursor: help; }
.dh-leg__it { padding: 0; border: 0; background: none; gap: 7px; }
.dh-leg__st svg { width: 13px; height: 13px; }
.dh-leg__r { font-size: 11.5px; }
.dh-leg__g { gap: 6px 16px; }
.dh-leg__g { gap: 6px 12px; }
.dh-leg__st svg { width: 12px; height: 12px; }
.dh-leg__it { gap: 6px; }
.dh-leg__r { font-size: 11px; }
.dh-leg__l { font-size: 11px; }
.dh-leg__l { display: inline-flex; align-items: center; gap: 5px; }
.dh-leg__i { width: 14px; height: 14px; flex: none; }

.dh-niv { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 10px; font-size: 11.5px; color: #BFCBE4; }
.dh-niv span { display: inline-flex; align-items: center; gap: 7px; }
.dh-niv b { color: #fff; font-weight: 800; }

/* Panel de ayuda de Mis colaboradores */
.ay-pop { position: fixed; z-index: 120; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 100px); overflow: auto; padding: 6px 18px 14px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; box-shadow: 0 24px 48px -12px rgba(15,23,42,.32); }
.ay-s { padding: 12px 0; border-bottom: 1px solid #F1F5F9; }
.ay-s:last-child { border-bottom: 0; }
.ay-s h4 { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #0F172A; }
.ay-s p { margin: 0; font-size: 13px; line-height: 1.5; color: #0F172A; }
.ay-s p b, .ay-r b { color: #0F172A; font-weight: 800; }
.ay-n { display: flex; align-items: flex-start; gap: 9px; margin-top: 7px; }
.ay-i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #F8FAFC; flex: none; }
.ay-r { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: #0F172A; }
.ay-r i { font-style: normal; color: #0F172A; }
.ay-st { display: inline-flex; gap: 1px; flex: none; width: 82px; }
.ay-st svg { width: 14px; height: 14px; color: #E2E8F0; }
.ay-st svg.on { color: #F59E0B; }
select.field, select.field option, .esp-btn, .esp-btn * { font-weight: 400; }
.pop-w{position:relative;width:100%;max-width:32rem}
.pop-x{position:absolute;top:-12px;right:-12px;z-index:2;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:0;background:#fff;color:#0F172A;box-shadow:0 4px 14px rgba(15,23,42,.35);cursor:pointer}
.pop-x:hover{background:#F1F5F9}
.nv-b{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;cursor:pointer;font-weight:400}
.nv-c,.nv-o{display:flex;align-items:center;gap:8px}
.nv-l{margin-top:6px;padding:6px;border:1px solid #E2E8F0;border-radius:12px;background:#fff;box-shadow:0 10px 24px -12px rgba(15,23,42,.25)}
.nv-l[hidden]{display:none}
.nv-o{width:100%;padding:9px 10px;border:0;border-radius:9px;background:none;font:inherit;font-size:14px;font-weight:400;color:#0F172A;cursor:pointer;text-align:left}
.nv-o:hover{background:#F1F5F9}
.nav-dot{width:9px;height:9px;border-radius:50%;background:#F59E0B;box-shadow:0 0 0 3px rgba(245,158,11,.25);flex:none}
.nav-dot.hidden{display:none}
.nav-dot{width:auto;height:auto;border-radius:999px;padding:2px 8px;background:#F59E0B;box-shadow:none;color:#0F172A;font-size:10.5px;font-weight:800;letter-spacing:.02em;line-height:1.4}
.nav-dot::before{content:"Pendiente"}
