From c847ef3ef5ba0a132009700a5a5abfbc0e2cce6b Mon Sep 17 00:00:00 2001 From: markosbenitez Date: Fri, 26 Jun 2026 18:22:26 -0300 Subject: [PATCH] =?UTF-8?q?feat(dashboard):=20tema=20claro=20marca=20Re=20?= =?UTF-8?q?=E2=80=94=20fondos,=20cards=20y=20texto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- app/globals.css | 98 ++++++++++++++++++++++++------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/app/globals.css b/app/globals.css index a5ee911..84c9f6c 100644 --- a/app/globals.css +++ b/app/globals.css @@ -708,27 +708,27 @@ body { .survey-footer-logo { height: 32px; width: auto; display: block; } /* ══════════════════════════════════════════════════════════════ - DASHBOARD — tema oscuro premium - Fondo: #0F1923 · Widgets: #1A2535 · Teal: #43BBC8 + DASHBOARD — tema claro (marca Re) + Fondo: #E7E6E5 · Widgets: #FFFFFF · Teal: #43BBC8 ══════════════════════════════════════════════════════════════ */ .db-page { display: flex; min-height: 100vh; - background: #0F1923; color: #E7E6E5; + background: #E7E6E5; color: #494F4F; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; } .db-main { flex: 1; padding: 24px; overflow-x: hidden; } .db-page-header { margin-bottom: 20px; } -.db-page-title { font-size: 1.375rem; font-weight: 700; color: #fff; margin: 0 0 4px; } -.db-page-subtitle { font-size: 0.8125rem; color: #9ca3af; margin: 0; } +.db-page-title { font-size: 1.375rem; font-weight: 700; color: #494F4F; margin: 0 0 4px; } +.db-page-subtitle { font-size: 0.8125rem; color: #6B7878; margin: 0; } .db-active-filter { color: var(--color-re-teal); font-weight: 600; } .db-survey-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .db-survey-link { font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; - border: 1px solid rgba(67,187,200,0.3); color: #9ca3af; text-decoration: none; + border: 1px solid rgba(67,187,200,0.3); color: #6B7878; text-decoration: none; transition: all 0.2s ease; } -.db-survey-link:hover { color: #E7E6E5; border-color: var(--color-re-teal); } -.db-survey-link-active { background: var(--color-re-teal); color: #0F1923; border-color: var(--color-re-teal); } +.db-survey-link:hover { color: #494F4F; border-color: var(--color-re-teal); } +.db-survey-link-active { background: var(--color-re-teal); color: #FFFFFF; border-color: var(--color-re-teal); } .db-section { margin-bottom: 16px; } .db-grid { display: grid; @@ -738,7 +738,7 @@ body { /* ── Widget shell ── */ .db-widget { - background: #1A2535; + background: #FFFFFF; border: 1px solid rgba(67,187,200,0.2); border-radius: 10px; overflow: hidden; @@ -749,24 +749,24 @@ body { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 8px; } -.db-widget-title { font-size: 0.875rem; font-weight: 600; color: #E7E6E5; margin: 0; } -.db-widget-n { font-size: 0.75rem; color: #9ca3af; } +.db-widget-title { font-size: 0.875rem; font-weight: 600; color: #494F4F; margin: 0; } +.db-widget-n { font-size: 0.75rem; color: #6B7878; } .db-widget-body { padding: 0 16px 16px; } /* ── Suppressed / loading states ── */ .db-suppressed { display: flex; flex-direction: column; align-items: center; justify-content: center; - min-height: 100px; text-align: center; color: #9ca3af; gap: 6px; + min-height: 100px; text-align: center; color: #6B7878; gap: 6px; } .db-suppressed-icon { font-size: 1.5rem; } -.db-suppressed-hint { font-size: 0.75rem; color: #6b7280; } +.db-suppressed-hint { font-size: 0.75rem; color: #9CA8A8; } .db-suppressed-card { display: flex; flex-direction: column; align-items: center; justify-content: center; - gap: 4px; color: #6b7280; + gap: 4px; color: #9CA8A8; } -.db-skeleton-block { background: #1e2d42; border-radius: 6px; animation: pulse 1.4s ease-in-out infinite; } +.db-skeleton-block { background: rgba(73,79,79,0.08); border-radius: 6px; animation: pulse 1.4s ease-in-out infinite; } .db-error { color: #ef4444; font-size: 0.875rem; padding: 12px; } -.db-loading-page { padding: 24px; background: #0F1923; min-height: 100vh; } +.db-loading-page { padding: 24px; background: #E7E6E5; min-height: 100vh; } /* ── KPI row ── */ .db-kpi-row { @@ -774,36 +774,36 @@ body { padding: 0; } .db-kpi-card { - background: #1A2535; border: 1px solid rgba(67,187,200,0.2); + background: #FFFFFF; border: 1px solid rgba(67,187,200,0.2); border-radius: 10px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; transition: box-shadow 0.3s; } .db-kpi-card:hover { box-shadow: 0 0 20px rgba(67,187,200,0.18); } /* Título de KPI: mayúsculas, bold, siempre visible */ -.db-kpi-title { font-size: 0.8125rem; font-weight: 700; color: #E7E6E5; text-transform: uppercase; letter-spacing: 0.04em; } +.db-kpi-title { font-size: 0.8125rem; font-weight: 700; color: #494F4F; text-transform: uppercase; letter-spacing: 0.04em; } /* Subtítulo de KPI: código de pregunta + descripción */ -.db-kpi-subtitle { font-size: 0.6875rem; color: #7A8FA0; font-weight: 400; line-height: 1.4; margin-bottom: 4px; } +.db-kpi-subtitle { font-size: 0.6875rem; color: #8A9A9A; font-weight: 400; line-height: 1.4; margin-bottom: 4px; } .db-kpi-value { font-size: 2rem; font-weight: 700; color: var(--color-re-teal); font-variant-numeric: tabular-nums; margin-top: 4px; } -.db-kpi-value-suppressed { font-size: 1.25rem; color: #6b7280; } -.db-kpi-note { font-size: 0.75rem; color: #9ca3af; } +.db-kpi-value-suppressed { font-size: 1.25rem; color: #9CA8A8; } +.db-kpi-note { font-size: 0.75rem; color: #6B7878; } .db-kpi-suppressed-block { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; } /* Compat — se puede quitar si ya no se usa */ -.db-kpi-label { font-size: 0.8125rem; color: #E7E6E5; } -.db-kpi-sub { font-size: 0.75rem; color: #9ca3af; } +.db-kpi-label { font-size: 0.8125rem; color: #494F4F; } +.db-kpi-sub { font-size: 0.75rem; color: #6B7878; } /* Subtítulo de widget-shell */ .db-widget-title-group { display: flex; flex-direction: column; gap: 2px; flex: 1; } -.db-widget-subtitle { font-size: 0.75rem; color: #7A8FA0; font-weight: 400; margin: 0; line-height: 1.4; } +.db-widget-subtitle { font-size: 0.75rem; color: #8A9A9A; font-weight: 400; margin: 0; line-height: 1.4; } /* ── Mapa tile ── */ .db-map-wrapper { position: relative; } .db-map-tooltip { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); - background: #0F1923; color: #E7E6E5; font-size: 0.75rem; + background: #E7E6E5; color: #494F4F; font-size: 0.75rem; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(67,187,200,0.3); white-space: nowrap; z-index: 10; pointer-events: none; } @@ -838,13 +838,13 @@ body { .db-gauge-wrapper { text-align: center; } .db-gauge-svg { width: 100%; max-width: 160px; } .db-gauge-zona { font-size: 0.9rem; font-weight: 700; margin: 4px 0 2px; } -.db-gauge-hint { font-size: 0.7rem; color: #6b7280; margin: 0; } +.db-gauge-hint { font-size: 0.7rem; color: #9CA8A8; margin: 0; } /* ── Bar chart ── */ .db-bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .db-bar-item { display: flex; align-items: center; gap: 8px; } -.db-bar-label { font-size: 0.75rem; color: #E7E6E5; width: 180px; flex-shrink: 0; line-height: 1.3; } -.db-bar-track { flex: 1; background: #2a3547; border-radius: 4px; height: 14px; overflow: hidden; } +.db-bar-label { font-size: 0.75rem; color: #494F4F; width: 180px; flex-shrink: 0; line-height: 1.3; } +.db-bar-track { flex: 1; background: rgba(73,79,79,0.10); border-radius: 4px; height: 14px; overflow: hidden; } .db-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; } .db-bar-pct { font-size: 0.75rem; color: var(--color-re-teal); width: 40px; text-align: right; font-weight: 600; } @@ -852,39 +852,39 @@ body { .db-heatmap-scroll { overflow-x: auto; } .db-heatmap-grid { display: grid; gap: 2px; } .db-heatmap-header { - font-size: 0.625rem; color: #9ca3af; text-align: center; padding: 2px; + font-size: 0.625rem; color: #6B7878; text-align: center; padding: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } -.db-heatmap-rowlabel { font-size: 0.625rem; color: #9ca3af; padding: 2px 4px; line-height: 1.2; } +.db-heatmap-rowlabel { font-size: 0.625rem; color: #6B7878; padding: 2px 4px; line-height: 1.2; } .db-heatmap-cell { border-radius: 3px; min-height: 32px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: rgba(255,255,255,0.8); transition: filter 0.15s; } .db-heatmap-cell:hover { filter: brightness(1.2); } -.db-hexbin-note { font-size: 0.75rem; color: #9ca3af; margin-bottom: 8px; } +.db-hexbin-note { font-size: 0.75rem; color: #6B7878; margin-bottom: 8px; } /* ── Pirámide ── */ .db-piramide { display: flex; flex-direction: column; gap: 6px; } .db-piramide-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; } .db-piramide-row { display: flex; align-items: center; gap: 6px; } -.db-piramide-label { font-size: 0.7rem; color: #9ca3af; width: 90px; flex-shrink: 0; text-align: right; } +.db-piramide-label { font-size: 0.7rem; color: #6B7878; width: 90px; flex-shrink: 0; text-align: right; } .db-piramide-bars { flex: 1; display: flex; gap: 2px; } .db-piramide-bar-wrap { display: flex; flex-direction: column; } .db-piramide-bar { height: 20px; border-radius: 3px; min-width: 4px; transition: width 0.4s; } -.db-piramide-n { font-size: 0.7rem; color: #9ca3af; width: 24px; text-align: right; } +.db-piramide-n { font-size: 0.7rem; color: #6B7878; width: 24px; text-align: right; } /* ── Tabla riesgo ── */ .db-table-wrapper { overflow-x: auto; } -.db-table-note { font-size: 0.75rem; color: #9ca3af; margin-bottom: 10px; } +.db-table-note { font-size: 0.75rem; color: #6B7878; margin-bottom: 10px; } .db-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; } -.db-table th { color: #9ca3af; font-weight: 600; text-align: left; padding: 8px 12px; border-bottom: 1px solid #2a3547; } -.db-table td { padding: 10px 12px; border-bottom: 1px solid #1e2d42; color: #E7E6E5; } +.db-table th { color: #6B7878; font-weight: 600; text-align: left; padding: 8px 12px; border-bottom: 1px solid #2a3547; } +.db-table td { padding: 10px 12px; border-bottom: 1px solid #1e2d42; color: #494F4F; } .db-table tr:last-child td { border-bottom: none; } .db-risk-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; color: #fff; } /* ── Sidebar ── */ .db-sidebar { - width: 220px; flex-shrink: 0; background: #14202e; + width: 220px; flex-shrink: 0; background: #F0EFEE; border-right: 1px solid rgba(67,187,200,0.15); padding: 12px; transition: width 0.3s ease; display: flex; flex-direction: column; gap: 8px; @@ -897,12 +897,12 @@ body { } .db-sidebar-content { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; } .db-filter-group { display: flex; flex-direction: column; gap: 4px; } -.db-filter-label { font-size: 0.75rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; } +.db-filter-label { font-size: 0.75rem; font-weight: 600; color: #6B7878; text-transform: uppercase; letter-spacing: 0.05em; } .db-filter-select { - background: #1e2d42; border: 1px solid #2a3547; color: #E7E6E5; + background: #FFFFFF; border: 1px solid #2a3547; color: #494F4F; border-radius: 6px; padding: 6px 8px; font-size: 0.8125rem; width: 100%; } -.db-filter-check { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #E7E6E5; cursor: pointer; } +.db-filter-check { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #494F4F; cursor: pointer; } .db-filter-check input { accent-color: var(--color-re-teal); width: 14px; height: 14px; } .db-filter-reset { background: rgba(67,187,200,0.1); border: 1px solid rgba(67,187,200,0.3); @@ -915,19 +915,19 @@ body { /* ── Tres miradas: tabs ── */ .db-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid rgba(67,187,200,0.15); } .db-tab { - padding: 10px 18px; font-size: 0.8125rem; font-weight: 600; color: #9ca3af; + padding: 10px 18px; font-size: 0.8125rem; font-weight: 600; color: #6B7878; cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; } -.db-tab:hover { color: #E7E6E5; } +.db-tab:hover { color: #494F4F; } .db-tab-active { color: var(--color-re-teal); border-bottom-color: var(--color-re-teal); } .db-tab-lens { font-size: 0.6875rem; color: #5e6f8c; font-weight: 400; } /* ── Tres miradas: intro de cada lente ── */ .db-lens-intro { - background: #101a30; border-left: 3px solid var(--color-re-teal); + background: #F0EFEE; border-left: 3px solid var(--color-re-teal); border-radius: 0 8px 8px 0; padding: 10px 14px; margin-bottom: 16px; - font-size: 0.8125rem; color: #9fb0cc; line-height: 1.5; + font-size: 0.8125rem; color: #8A9A9A; line-height: 1.5; } /* ── Card destacada (estrella) ── */ @@ -941,25 +941,25 @@ body { .db-big-stat { font-size: 2.375rem; font-weight: 700; color: var(--color-re-teal); line-height: 1; } .db-big-stat-warn { color: #f0b429; } .db-big-stat-danger { color: #f06b6b; } -.db-big-stat-sub { font-size: 0.75rem; color: #7d8da5; margin-top: 6px; line-height: 1.4; } +.db-big-stat-sub { font-size: 0.75rem; color: #8A9A9A; margin-top: 6px; line-height: 1.4; } /* ── Punto ciego: contraste de dos barras ── */ .db-gap-viz { display: flex; align-items: flex-end; gap: 24px; justify-content: center; padding: 8px 0 4px; } .db-gap-col { text-align: center; } .db-gap-bar { width: 56px; border-radius: 6px 6px 0 0; margin: 0 auto; transition: height 0.4s; } .db-gap-val { font-size: 0.8125rem; font-weight: 700; margin-bottom: 4px; } -.db-gap-lab { font-size: 0.6875rem; color: #9fb0cc; margin-top: 6px; } +.db-gap-lab { font-size: 0.6875rem; color: #8A9A9A; margin-top: 6px; } .db-gap-brecha { text-align: center; font-size: 0.75rem; color: #f0b429; margin-top: 10px; } /* ── Placeholder (Mirada País / Humana, "próximamente") ── */ .db-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; - gap: 8px; min-height: 220px; text-align: center; color: #7d8da5; - background: #101a30; border: 1px dashed rgba(67,187,200,0.25); border-radius: 12px; + gap: 8px; min-height: 220px; text-align: center; color: #8A9A9A; + background: #F0EFEE; border: 1px dashed rgba(67,187,200,0.25); border-radius: 12px; padding: 32px 24px; } .db-placeholder-icon { font-size: 1.75rem; } -.db-placeholder-title { font-size: 1rem; font-weight: 600; color: #E7E6E5; } +.db-placeholder-title { font-size: 1rem; font-weight: 600; color: #494F4F; } .db-placeholder-hint { font-size: 0.8125rem; max-width: 420px; line-height: 1.5; } /* ── Admin: control de respuestas (Etapa 3V) ── */