/* ===== páginas ===== */
.mt { margin-top: 18px; } .mt-lg { margin-top: 26px; }
.up { color: var(--ok-t); } .down { color: var(--danger-t); } .tx { color: var(--text); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; }
.btn--block { width: 100%; }
.dot-retailer--lg { width: 16px; height: 16px; border-radius: 6px; vertical-align: middle; margin-right: 6px; }
.route { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); } .route b { color: var(--text); font-weight: 600; } .route .ico { color: var(--text-3); }
.mini-h { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
.code-block { margin: 0; padding: 16px; border-radius: 14px; background: var(--input); border: 1px solid var(--line-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--text-2); overflow: auto; white-space: pre-wrap; word-break: break-all; }

/* --- panel --- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.dash__main, .dash__side, .detail-main, .detail-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 18px; }
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chart-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 18px; }
.stat small { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; margin-bottom: 2px; }
.stat strong { font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.stat strong em { font-style: normal; font-size: 13px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.dash-sample { display: inline-block; width: 18px; border-top: 2px dashed #FF4D1A; }
.chart-filter { margin-bottom: 14px; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel li { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 12px; align-items: center; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
.funnel__bar { width: var(--w); min-width: 120px; height: 38px; border-radius: 11px; display: flex; align-items: center; padding: 0 14px; background: var(--grad); background-size: 200% 100%; color: #fff; font-weight: 600; font-size: 13px; opacity: calc(1 - var(--i) * .1); transition: width .8s var(--ease); }
.funnel__v { display: flex; flex-direction: column; text-align: right; line-height: 1.2; } .funnel__v small { color: var(--text-3); font-size: 11.5px; }
.rank { display: flex; flex-direction: column; gap: 18px; }
.rank li { display: grid; grid-template-columns: 18px 36px minmax(0, 1fr); gap: 12px; align-items: center; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
.rank__n { color: var(--text-3); font-weight: 700; font-size: 13px; }
.rank__t small { color: var(--text-3); font-size: 11.5px; display: block; margin-top: 5px; }
.rank__row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13.5px; } .rank__row em { font-style: normal; color: var(--text-3); }
.pending__big { display: flex; align-items: baseline; gap: 10px; font-size: 46px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 4px 0 18px; } .pending__big small { font-size: 14px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.pending__list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.pending__list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .pending__list li:last-child { border-bottom: 0; }
.pending__list div { flex: 1; min-width: 0; } .pending__list strong { display: block; font-size: 13.5px; font-weight: 600; } .pending__list small { color: var(--text-3); font-size: 12px; } .pending__list b { font-size: 20px; font-weight: 600; }
.pending__ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent-t); flex: none; }
.pending__ico--warn { background: var(--warn-bg); color: var(--warn-t); } .pending__ico--bad { background: var(--danger-bg); color: var(--danger-t); }
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gauge-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; text-align: center; padding-top: 14px; border-top: 1px solid var(--line); }
.gauge-side small { display: block; color: var(--text-3); font-size: 11.5px; } .gauge-side strong { font-size: 18px; font-weight: 600; } .gauge-side em { font-style: normal; font-size: 12px; color: var(--text-3); font-weight: 500; }
.gauge-cap { margin-top: 12px; color: var(--text-2); font-size: 12.5px; text-align: center; }
.report-sheet { color: var(--text); }
.report-sheet__head { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); margin-bottom: 18px; } .report-sheet__head h2 { font-size: 20px; } .report-sheet__head p { color: var(--text-2); font-size: 13px; }
.report-sheet__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.report-sheet__kpis div { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); } .report-sheet__kpis small { display: block; color: var(--text-3); font-size: 12px; } .report-sheet__kpis strong { display: block; font-size: 24px; font-weight: 600; } .report-sheet__kpis em { font-style: normal; font-size: 12px; }
.report-sheet__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .report-sheet__cols h4 { margin-bottom: 8px; } .report-sheet__cols li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.report-sheet__foot { margin-top: 16px; font-size: 12px; color: var(--text-3); }

/* --- nuevo estudio --- */
.nuevo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 270px; padding: 28px; border-radius: 22px; border: 2px dashed var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: .25s var(--ease); cursor: pointer; overflow: hidden; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--accent-bg); transform: scale(1.01); }
.dropzone.is-busy { pointer-events: none; border-style: solid; border-color: var(--accent); }
.dropzone--wide { min-height: 300px; }
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__ico { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); margin-bottom: 8px; transition: transform .3s var(--ease); }
.dropzone:hover .dropzone__ico, .dropzone.is-drag .dropzone__ico { transform: translateY(-4px) scale(1.06); }
.dropzone.is-busy .dropzone__ico { animation: breathe 1.4s ease-in-out infinite; }
.dropzone strong { font-size: 18px; letter-spacing: -.01em; } .dropzone__sub { color: var(--text-2); } .dropzone small { color: var(--text-3); margin-top: 6px; }
.samples { display: flex; flex-direction: column; gap: 10px; }
.sample { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); transition: .22s var(--ease); width: 100%; }
.sample:hover:not(:disabled) { border-color: rgba(255, 122, 0, .6); background: var(--accent-bg); transform: translateX(4px); }
.sample:disabled { opacity: .6; }
.sample__n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--surface-3); color: var(--accent-t); flex: none; }
.sample__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .sample__t strong { font-size: 14px; } .sample__t small { color: var(--text-2); font-size: 12.5px; }
.sample__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.sample__go { color: var(--text-3); flex: none; } .sample:hover .sample__go { color: var(--accent-t); }
.cpick { display: flex; flex-direction: column; gap: 8px; position: relative; }
.cpick .field-search { position: relative; } .cpick .field-search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); } .cpick .field-search input { padding-left: 38px; }
.cpick__list { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.cpick__list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; } .cpick__list button:hover { background: var(--hover); }
.cpick__list span { display: flex; flex-direction: column; line-height: 1.25; } .cpick__list small { color: var(--text-3); font-size: 12px; }
.cpick__sel { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 14px; background: var(--accent-bg); border: 1px solid rgba(255, 122, 0, .35); } .cpick__sel strong { flex: 1; }

.engine { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--line-2); position: relative; overflow: hidden;
  background: radial-gradient(90% 70% at 15% 0, rgba(255, 122, 0, .13), transparent 60%), var(--surface); animation: rise .5s var(--ease) both; }
.engine__head { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; } .engine__head .sun-hero { flex: none; }
.engine__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-t); }
.engine__head h2 { font-size: 26px; letter-spacing: -.02em; margin: 4px 0; } .engine__stage { color: var(--text-2); }
.engine__prog { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; } .engine__prog b { min-width: 46px; text-align: right; font-size: 15px; }
.engine__bar { flex: 1; height: 10px; border-radius: 10px; background: var(--surface-3); overflow: hidden; } .engine__bar i { display: block; height: 100%; border-radius: 10px; background: var(--grad); box-shadow: var(--glow); transition: width .55s var(--ease); position: relative; overflow: hidden; }
.engine__bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.phase { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); transition: .35s var(--ease); }
.phase__ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); flex: none; color: var(--accent-t); } .phase__ico i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.phase__t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; } .phase__t strong { font-size: 13.5px; } .phase__t small { color: var(--text-3); font-size: 11.5px; }
.phase--now { border-color: rgba(255, 122, 0, .55); background: var(--accent-bg); } .phase--todo { opacity: .55; }
.phase--done { border-color: rgba(34, 197, 94, .3); } .phase--done .phase__ico { background: var(--ok); color: #fff; }
.phase__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; animation: checkDraw .5s var(--ease) both; }
@keyframes checkDraw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.console { border-radius: 16px; background: #08080A; border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.console__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #111115; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #6B6B74; font-size: 11.5px; } .console__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a30; } .console__bar span { margin-left: 8px; }
.console__body { padding: 14px 16px; height: 188px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-size: 12.5px; color: #D4D4D8; }
.console__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: typing .7s steps(48, end) both; } .console__line span { color: var(--sun-2); margin-right: 6px; }
.console__caret { color: var(--sun-2); animation: pulse 1s steps(2) infinite; }
@keyframes typing { from { max-width: 0; opacity: .4; } to { max-width: 100%; opacity: 1; } }
.console__line { max-width: 100%; }
.engine__preview { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.paper { position: relative; width: 100%; max-width: 400px; aspect-ratio: 3 / 4.1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.paper__frame { width: 100%; height: 100%; border: 0; pointer-events: none; background: #fff; }
.scanner { position: absolute; left: 0; right: 0; height: 90px; top: 0; background: linear-gradient(180deg, transparent, rgba(255, 122, 0, .28) 70%, rgba(255, 150, 0, .75) 98%, rgba(255, 220, 130, .95) 100%); border-bottom: 2px solid #FFC21A; box-shadow: 0 10px 30px rgba(255, 122, 0, .6); animation: scan 2.6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes scan { from { transform: translateY(-90px); } to { transform: translateY(calc(var(--ph, 520px))); } }
.paper { --ph: 520px; }
.paper__corners i { position: absolute; width: 22px; height: 22px; border: 3px solid var(--sun-2); pointer-events: none; }
.paper__corners i:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; } .paper__corners i:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.paper__corners i:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; } .paper__corners i:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.engine__cap { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; }

.valid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.valid__viewer { position: sticky; top: 84px; } .viewer-card { height: calc(100vh - 110px); display: flex; flex-direction: column; } .viewer-card .viewer { flex: 1; min-height: 0; padding: 14px; } .viewer-card .card__head { margin-bottom: 0; padding-bottom: 12px; }
.valid__form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.valid__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; } .valid__top h2 { font-size: 21px; letter-spacing: -.02em; } .valid__top p { color: var(--text-2); font-size: 13.5px; margin-top: 4px; max-width: 520px; }
.valid__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.valid__cta { display: flex; justify-content: space-between; align-items: center; position: sticky; bottom: 0; padding: 14px 18px; border-radius: 18px; background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); z-index: 5; }
.seg-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg-switch button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 13px; transition: .2s; } .seg-switch button.is-active { background: var(--grad); color: #fff; font-weight: 600; box-shadow: var(--glow); }
.calc-overlay { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--overlay); backdrop-filter: blur(10px); animation: fadeIn .25s both; } .calc-overlay h3 { font-size: 22px; } .calc-overlay p { color: var(--text-2); }

/* --- detalle de estudio --- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.hero-save { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 34px 38px; border-radius: var(--r-xl); margin-bottom: 18px; overflow: hidden; color: #fff; background: var(--grad); box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.hero-save__bg { position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0, rgba(255, 255, 255, .28), transparent 60%), radial-gradient(40% 80% at 0 100%, rgba(255, 60, 0, .35), transparent 70%); pointer-events: none; }
.hero-save > :not(.hero-save__bg) { position: relative; }
.hero-save__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; opacity: .92; }
.hero-save__v { font-size: clamp(48px, 8vw, 88px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; margin: 6px 0 10px; text-shadow: 0 6px 30px rgba(120, 30, 0, .35); } .hero-save__v--none { font-size: 44px; }
.hero-save__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; } .hero-save__row b { font-weight: 700; }
.hero-save__rec { margin-top: 10px; font-size: 14px; opacity: .92; }
.hero-save__r { opacity: .95; } .hero-save__r .sun-hero { filter: saturate(1.1); }
.hero-save.is-new { animation: heroIn 1s var(--ease) both, heroGlow 2.2s ease-out .6s 1; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes heroGlow { 0% { box-shadow: var(--glow); } 40% { box-shadow: 0 0 0 10px rgba(255, 150, 0, .25), 0 20px 80px -10px rgba(255, 122, 0, .9); } 100% { box-shadow: var(--glow); } }
.alts { display: flex; flex-direction: column; gap: 10px; }
.alt { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: .2s var(--ease); }
.alt:hover { transform: translateX(3px); border-color: var(--line-2); }
.alt--best { border-color: rgba(255, 122, 0, .55); background: var(--accent-bg); box-shadow: 0 8px 28px -14px rgba(255, 122, 0, .6); }
.alt--chosen { border-color: rgba(34, 197, 94, .5); }
.alt__rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--surface-3); } .alt--best .alt__rank { background: var(--grad); color: #fff; }
.alt__who { display: flex; align-items: center; gap: 10px; min-width: 0; } .alt__who span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; } .alt__who small { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alt__n { white-space: nowrap; display: flex; flex-direction: column; text-align: right; line-height: 1.25; } .alt__n small { color: var(--text-3); font-size: 11px; } .alt__n strong { font-size: 14.5px; } .alt__n em { font-style: normal; font-size: 12px; opacity: .85; }
.dl { display: flex; flex-direction: column; } .dl > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); } .dl > div:last-child { border-bottom: 0; }
.dl dt { font-size: 11.5px; color: var(--text-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; } .dl dd { margin: 0; font-size: 13.5px; } .dl dd small { color: var(--text-3); margin-left: 6px; }
.notes { color: var(--text-2); white-space: pre-wrap; }
.diffs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.diff { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.diff--down { background: var(--ok-bg); color: var(--ok-t); } .diff--up { background: var(--danger-bg); color: var(--danger-t); }

/* --- captación --- */
.leads { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.lead { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 50ms); transition: .2s var(--ease); flex-wrap: wrap; }
.lead:hover { border-color: var(--line-2); transform: translateY(-2px); }
.lead--new { border-color: rgba(255, 122, 0, .5); background: linear-gradient(90deg, var(--accent-bg), var(--surface) 55%); box-shadow: 0 10px 34px -16px rgba(255, 122, 0, .55); }
.lead__main { flex: 1; min-width: 240px; } .lead__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .lead__top small { color: var(--text-3); }
.lead__meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 5px; color: var(--text-2); font-size: 12.5px; } .lead__meta span { display: inline-flex; align-items: center; gap: 6px; }
.lead__msg { margin-top: 8px; color: var(--text-2); font-style: italic; font-size: 13px; }
.lead__save { text-align: right; } .lead__save small { display: block; color: var(--text-3); font-size: 11.5px; } .lead__save strong { font-size: 20px; }
.lead__act { display: flex; gap: 8px; align-items: center; }

/* --- comercializadoras --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.retailer { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; } .retailer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rc); }
.retailer.is-off { opacity: .6; }
.retailer__top { display: flex; align-items: center; gap: 14px; } .retailer__top h3 { font-size: 17px; } .retailer__top small { color: var(--text-3); }
.retailer__logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--rc); letter-spacing: -.02em; flex: none; }
.retailer__edit { margin-left: auto; }
.retailer__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .retailer__stats small { display: block; color: var(--text-3); font-size: 11.5px; } .retailer__stats strong { font-size: 22px; font-weight: 600; }
.retailer__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; gap: 10px; }

/* --- importación --- */
.imp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.how { display: flex; flex-direction: column; gap: 16px; } .how li { display: flex; gap: 14px; } .how li > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent-bg); color: var(--accent-t); flex: none; } .how strong { display: block; } .how small { color: var(--text-2); font-size: 13px; }
.msg { display: block; }
.row--same td { color: var(--text-2); }
.done { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 10px; text-align: center; } .done h2 { font-size: 26px; letter-spacing: -.02em; }
.done__stats { display: flex; gap: 44px; flex-wrap: wrap; justify-content: center; } .done__stats strong { display: block; font-size: 44px; font-weight: 600; letter-spacing: -.03em; } .done__stats small { color: var(--text-3); }
.done__msgs { color: var(--text-2); font-size: 13px; max-width: 560px; display: flex; flex-direction: column; gap: 4px; }

/* --- plantilla de informe --- */
.tpl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tpl__preview { position: sticky; top: 84px; } .tpl__cap { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; margin-bottom: 10px; }
.paper-doc { background: #fff; color: #17171B; border-radius: 6px; padding: 30px 30px 20px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); font-size: 11.5px; line-height: 1.5; min-height: 560px; display: flex; flex-direction: column; gap: 12px; border-top: 6px solid var(--rp); transition: border-color .2s; }
.paper-doc__head { display: flex; align-items: center; gap: 12px; } .paper-doc__head small { color: #7a7a82; letter-spacing: .08em; text-transform: uppercase; font-size: 9.5px; } .paper-doc__head h2 { font-size: 19px; color: var(--rs); letter-spacing: -.02em; line-height: 1.15; }
.paper-doc__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--rp); flex: none; }
.paper-doc__meta { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; color: #55555c; font-size: 10.5px; flex-wrap: wrap; }
.paper-doc__txt { color: #3d3d44; white-space: pre-wrap; }
.paper-doc__hero { padding: 16px 18px; border-radius: 10px; background: var(--rp); color: #fff; display: flex; flex-direction: column; } .paper-doc__hero small { opacity: .9; font-size: 10px; } .paper-doc__hero strong { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; } .paper-doc__hero span { font-size: 10.5px; opacity: .92; }
.paper-doc h4 { color: var(--rs); font-size: 12px; margin-top: 4px; }
.paper-doc__tbl { width: 100%; border-collapse: collapse; font-size: 10.5px; } .paper-doc__tbl th { text-align: left; color: #7a7a82; font-weight: 600; padding: 5px 6px; border-bottom: 1px solid #e4e4e8; } .paper-doc__tbl td { padding: 6px; border-bottom: 1px solid #f0f0f2; } .paper-doc__tbl .is-best td { background: color-mix(in srgb, var(--rp) 12%, #fff); font-weight: 700; }
.paper-doc__stack { display: flex; gap: 3px; height: 12px; } .paper-doc__stack i { border-radius: 4px; background: var(--rp); } .paper-doc__stack i:nth-child(2) { background: var(--rs); } .paper-doc__stack i:nth-child(3) { background: #9CA3AF; } .paper-doc__stack i:nth-child(4) { background: #D4D4D8; }
.paper-doc__legend { display: flex; gap: 14px; font-size: 9.5px; color: #55555c; } .paper-doc__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--rp); } .paper-doc__legend span:nth-child(2) i { background: var(--rs); } .paper-doc__legend span:nth-child(3) i { background: #9CA3AF; } .paper-doc__legend span:nth-child(4) i { background: #D4D4D8; }
.paper-doc__contact { padding: 10px 12px; border-radius: 8px; background: #f6f6f7; display: flex; flex-direction: column; font-size: 10.5px; color: #55555c; } .paper-doc__contact b { color: var(--rs); }
.paper-doc footer { margin-top: auto; padding-top: 10px; border-top: 1px solid #ececec; color: #8a8a92; font-size: 9.5px; text-align: center; }
.pdf-modal { height: 72vh; } .modal--pdf .modal__body { padding: 6px 20px 14px; }

/* --- seguridad, auditoría, ayuda --- */
.sec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
.checklist { display: flex; flex-direction: column; gap: 4px; } .checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; } .checklist li:last-child { border-bottom: 0; }
.checklist__ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok-t); flex: none; } .checklist li.is-bad .checklist__ico { background: var(--warn-bg); color: var(--warn-t); }
.act { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; } .act__ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-t); flex: none; }
.detail-cell { max-width: 420px; color: var(--text-2); }
.help { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; } .help__list { display: flex; flex-direction: column; gap: 12px; } .help__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: .25s var(--ease); } .acc.is-open { border-color: rgba(255, 122, 0, .4); box-shadow: var(--shadow); }
.acc__head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; } .acc__head:hover { background: var(--hover); }
.acc__ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent-t); flex: none; }
.acc__t { flex: 1; display: flex; flex-direction: column; } .acc__t strong { font-size: 15px; } .acc__t small { color: var(--text-3); font-size: 12.5px; }
.acc__chev { transition: transform .3s var(--ease); color: var(--text-3); } .acc.is-open .acc__chev { transform: rotate(180deg); }
.acc__body { padding: 4px 22px 20px 72px; display: flex; flex-direction: column; gap: 14px; animation: rise .3s var(--ease) both; } .acc__body ol { counter-reset: s; display: flex; flex-direction: column; gap: 10px; } .acc__body li { counter-increment: s; position: relative; padding-left: 14px; color: var(--text-2); line-height: 1.6; } .acc__body li::before { content: counter(s) "."; position: absolute; left: -14px; color: var(--accent-t); font-weight: 700; } .acc__body b { color: var(--text); }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); } .keys li:last-child { border-bottom: 0; }

/* ===== pantallas de acceso ===== */
.access { min-height: 100vh; background: var(--bg); }
.gate { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; background: #0D0D0F; color: #F5F5F4; }
.gate__glow { position: absolute; width: 900px; height: 900px; left: 50%; top: 18%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 122, 0, .22), rgba(255, 122, 0, .06) 45%, transparent 70%); pointer-events: none; animation: halo 6s ease-in-out infinite; }
.gate__card { position: relative; width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; animation: rise .7s var(--ease) both; }
.gate__card .sun-hero { margin-bottom: 8px; }
.gate__eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #FFA94D; font-weight: 700; }
.gate__card h1 { font-size: 32px; letter-spacing: -.03em; line-height: 1.1; }
.gate__lead { color: #9B9BA4; max-width: 380px; }
.gate__form { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; text-align: left; }
.gate__form .btn { width: 100%; }
.gate__err { color: #F87171; font-size: 13px; font-weight: 600; }
.gate__foot { display: flex; align-items: center; gap: 8px; color: #6B6B74; font-size: 12px; margin-top: 8px; }
.gate .field label, .gate .check-row { color: #9B9BA4; }
.gate input:not([type=checkbox]) { background: #121215 !important; border-color: rgba(255, 255, 255, .12) !important; color: #F5F5F4 !important; height: 48px !important; }
.gate .pill-note { text-align: left; width: 100%; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gate .otp input { text-align: center; font-size: 24px !important; font-weight: 700; height: 60px !important; padding: 0 !important; border-radius: 14px !important; }
.gate .otp input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(255, 122, 0, .25) !important; }

.login { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.login__art { position: relative; display: grid; place-items: center; padding: 48px; overflow: hidden; color: #F5F5F4; background: radial-gradient(80% 60% at 30% 25%, rgba(255, 122, 0, .24), transparent 60%), radial-gradient(70% 60% at 90% 100%, rgba(255, 60, 0, .14), transparent 60%), #0B0B0D; }
.login__art-in { position: relative; max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.login__art .sun-hero { margin: 0 0 6px -20px; }
.login__wm { height: 34px; width: auto; align-self: flex-start; object-fit: contain; } .login__tag { color: #9B9BA4; letter-spacing: .08em; font-size: 12px; margin-top: -6px; }
.login__art h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin-top: 10px; }
.login__bul { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.login__bul li { display: flex; gap: 14px; } .login__bul li > span { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 122, 0, .14); color: #FFA94D; flex: none; border: 1px solid rgba(255, 122, 0, .25); }
.login__bul strong { display: block; font-size: 15px; } .login__bul small { color: #9B9BA4; font-size: 13.5px; }
.login__form { display: grid; place-items: center; padding: 40px 32px; background: var(--bg); }
.login__box { width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px; animation: rise .6s var(--ease) both; }
.login__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-t); }
.login__form h2 { font-size: 32px; letter-spacing: -.03em; } .login__sub { color: var(--text-2); margin-top: -6px; }
.roles { display: grid; gap: 12px; margin-top: 6px; }
.role-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: .25s var(--ease); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); position: relative; overflow: hidden; }
.role-card:hover { border-color: rgba(255, 122, 0, .6); transform: translateY(-3px); box-shadow: 0 16px 40px -18px rgba(255, 122, 0, .55); background: linear-gradient(90deg, var(--accent-bg), var(--surface) 60%); }
.role-card__t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .role-card__t strong { font-size: 15.5px; } .role-card__job { color: var(--accent-t); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; } .role-card__t p { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.role-card__go { color: var(--text-3); transition: .25s var(--ease); flex: none; } .role-card:hover .role-card__go { color: var(--accent-t); transform: translateX(4px); }
.login__creds { margin-top: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 4px 16px; }
.login__creds summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; font-weight: 600; color: var(--text-2); list-style: none; } .login__creds summary::-webkit-details-marker { display: none; } .login__creds summary .chev { margin-left: auto; transition: .25s; } .login__creds[open] summary .chev { transform: rotate(180deg); }
.login__creds form { padding: 4px 0 16px; }
.login__legal { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; justify-content: center; margin-top: 6px; }

/* ===== formulario público (tema claro) ===== */
.public { min-height: 100vh; background: var(--bg); color: var(--text); }
.pub { max-width: 1180px; margin: 0 auto; padding: 24px 24px 40px; }
.pub__top { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 28px; } .pub__lock { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.pub__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }
.pub__eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 122, 0, .13); color: #C2570A; margin-bottom: 18px; }
.pub__intro h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.pub__lead { margin-top: 18px; font-size: 17px; color: var(--text-2); max-width: 520px; line-height: 1.6; }
.pub__bul { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; } .pub__bul li { display: flex; gap: 14px; } .pub__bul li > span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; box-shadow: var(--glow); } .pub__bul strong { display: block; } .pub__bul small { color: var(--text-2); font-size: 13.5px; }
.pub__card { background: var(--surface); border-radius: 28px; padding: 32px; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .28); display: flex; flex-direction: column; gap: 16px; animation: rise .6s var(--ease) both; } .pub__card h2 { font-size: 24px; letter-spacing: -.02em; }
.pub__rgpd { font-size: 11.5px; color: var(--text-3); line-height: 1.55; }
.pub__foot { text-align: center; color: var(--text-3); font-size: 12.5px; margin-top: 40px; }
.public .btn--secondary { background: #fff; }
.filedrop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 2px dashed var(--line-2); background: var(--surface-2); cursor: pointer; transition: .2s var(--ease); } .filedrop:hover { border-color: var(--accent); background: var(--accent-bg); }
.filedrop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.filedrop__ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; } .filedrop__t { display: flex; flex-direction: column; min-width: 0; } .filedrop__t strong { font-size: 14px; word-break: break-all; } .filedrop__t small { color: var(--text-3); } .filedrop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.pub__thanks { max-width: 560px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; animation: rise .6s var(--ease) both; } .pub__thanks h1 { font-size: 34px; letter-spacing: -.03em; } .pub__thanks p { color: var(--text-2); font-size: 16px; }
.pub__ref { padding: 14px 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; } .pub__ref small { color: var(--text-3); } .pub__ref strong { font-size: 24px; letter-spacing: .06em; }
.pub__check { width: 96px; height: 96px; display: inline-block; } .pub__check svg { width: 100%; height: 100%; } .pub__check circle { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: checkDraw2 .8s var(--ease) forwards; } .pub__check path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: checkDraw2 .5s var(--ease) .6s forwards; }
@keyframes checkDraw2 { to { stroke-dashoffset: 0; } }

/* ===== reconexión ===== */

/* ===== responsive de páginas ===== */
@media (max-width: 1279px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .detail-grid, .sec-grid, .help { grid-template-columns: minmax(0, 1fr); }
  .help__side { position: static; }
  .tpl { grid-template-columns: minmax(0, 1fr); } .tpl__preview { position: static; }
  .pub__grid { gap: 32px; }
}
@media (max-width: 1023px) {
  .kpis, .kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nuevo-grid, .engine, .valid, .imp-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .valid__viewer { position: static; } .viewer-card { height: 520px; }
   
  .login { grid-template-columns: minmax(0, 1fr); } .login__art { padding: 36px 24px; } .login__art .sun-hero { --s: 150px !important; } .login__art h1 { font-size: 30px; }
  .pub__grid { grid-template-columns: minmax(0, 1fr); }
  .hero-save { grid-template-columns: 1fr; } .hero-save__r { display: none; }
}
@media (max-width: 639px) {
  .kpis, .kpis--3, .kpis--4 { grid-template-columns: minmax(0, 1fr); }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .engine { padding: 18px; } .engine__head { flex-direction: column; align-items: flex-start; gap: 8px; } .engine__head h2 { font-size: 21px; }
  .hero-save { padding: 26px 22px; } .acc__body { padding-left: 22px; }
  .report-sheet__kpis, .report-sheet__cols { grid-template-columns: minmax(0, 1fr); }
  .chart-stats { gap: 20px; } .stat strong { font-size: 24px; }
  .lead { gap: 12px; } .lead__act { width: 100%; }
  .pub { padding: 16px; } .pub__card { padding: 22px; border-radius: 22px; }
  .login__form { padding: 28px 16px; }
  .gate .otp { gap: 6px; }
  .valid__cta { flex-direction: column-reverse; gap: 10px; align-items: stretch; }
  .alt { gap: 10px; padding: 12px; } .alt__n small { display: none; }
}
.alt__b { margin-left: 8px; height: 20px; font-size: 11px; vertical-align: middle; }
.alt__who strong { display: flex; align-items: center; flex-wrap: wrap; }
@media (max-width: 1500px) { .alt__n--c { display: none; } .alt { grid-template-columns: 30px minmax(0, 1fr) auto auto; } }
.otp input { min-width: 0; width: 100%; }
.alts__more { margin-top: 12px; width: 100%; justify-content: center; }
