/* ═══════════════════════════════════════════════════════════════
   AsistPro Field · Shell v0.2 · Data-Dense Dashboard
   Tokens semánticos + microinteracciones + jerarquía pro
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Base · Mint Glass Dark (Field 2026 redesign) */
  --bg-deep:        #0A0418;
  --bg-elevated:    rgba(26,175,255,0.06);   /* glass surface */
  --bg-muted:       rgba(26,175,255,0.10);
  --bg-overlay:     rgba(10,4,24,0.6);

  /* Bordes glass */
  --border:         rgba(94,252,232,0.20);
  --border-strong:  rgba(0,255,178,0.45);
  --border-soft:    rgba(94,252,232,0.10);

  /* Texto sobre dark glass */
  --text:           #F0E8FF;
  --text-dim:       #A8B5D0;
  --text-faint:     #8780A8;
  --text-mute:      #5A6280;

  /* Brand Field — Mint primary (reemplaza orange) */
  --orange:         #00FFB2;          /* mint neon · alias mantiene compat */
  --orange-soft:    #5EFCE8;          /* mint pastel */
  --orange-deep:    #00B894;          /* deep mint */
  --orange-glow:    rgba(0,255,178,0.20);
  --orange-bg:      rgba(0,255,178,0.08);

  /* Mint palette (canónica) */
  --mint:           #00FFB2;
  --mint-soft:      #5EFCE8;
  --mint-deep:      #00B894;
  --blue:           #00BFFF;          /* electric sky */
  --blue-deep:      #1AAFFF;
  --glass:          rgba(26,175,255,0.06);
  --glass-strong:   rgba(26,175,255,0.12);
  --glass-stroke:   rgba(94,252,232,0.20);

  /* Estados semánticos (data dashboard) */
  --positive:       #22C55E;   /* online, OK, success */
  --positive-bg:    rgba(34,197,94,0.10);
  --warning:        #F59E0B;   /* BETA, soon, alerta */
  --warning-bg:     rgba(245,158,11,0.10);
  --negative:       #EF4444;   /* error, peligro */
  --negative-bg:    rgba(239,68,68,0.10);
  --info:           #3B82F6;
  --info-bg:        rgba(59,130,246,0.10);
  --yellow:         #FFD24A;   /* KPIs numéricos destacados */

  /* Espaciado 4/8 estricto */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* Border radius */
  --r-sm:  6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Sombras blueprint */
  --sh-sm:  0 1px 2px rgba(0,0,0,0.30);
  --sh-md:  0 4px 12px rgba(0,0,0,0.35);
  --sh-lg:  0 12px 32px rgba(0,0,0,0.45);
  --sh-glow-orange: 0 0 0 3px var(--orange-glow);

  /* Animación */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 120ms var(--ease);
  --t-mid:  180ms var(--ease);
  --t-slow: 280ms var(--ease);

  /* Type scale modular ratio 1.30 */
  --fs-xs:   11px;   /* labels uppercase, badges */
  --fs-sm:   13px;   /* sub texts, captions */
  --fs-base: 14px;   /* body */
  --fs-md:   15px;   /* body emphasis, h3 cards */
  --fs-lg:   17px;   /* nav active, h3 sections */
  --fs-xl:   22px;   /* h2 panels */
  --fs-2xl:  28px;   /* h1 secondary */
  --fs-3xl:  36px;   /* h1 hero */
  --fs-num:  32px;   /* números KPI */

  --lh-tight: 1.15;
  --lh-base:  1.5;
  --lh-loose: 1.65;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body {
  font-family: 'Funnel Sans', -apple-system, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(0,255,178,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 5%, rgba(0,191,255,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 500px 400px at 50% 100%, rgba(26,175,255,0.12) 0%, transparent 70%),
    var(--bg-deep);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
/* Grid sutil mint con mask radial */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,191,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,178,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.app { position: relative; z-index: 1; }
.mono { font-family: 'Geist Mono', ui-monospace, 'Menlo', monospace; font-feature-settings: 'tnum'; }
.display { font-family: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif; letter-spacing: -0.025em; }
.tabular { font-variant-numeric: tabular-nums; }

/* Selection */
::selection { background: var(--orange); color: white; }

/* ════════ APP LAYOUT ════════ */
.app {
  display: grid;
  grid-template-rows: 64px 56px 1fr 36px;
  grid-template-columns: 232px 1fr;
  grid-template-areas:
    "header header"
    "subbar subbar"
    "side   main"
    "footer footer";
  min-height: 100vh;
}

/* ════════ TOPBAR (estilo Centro Evaluación) ════════ */
header.field-top {
  grid-area: header;
  background: linear-gradient(180deg, #0F0A2A 0%, #0A0418 100%);
  border-bottom: 1px solid rgba(0,191,255,0.18);
  display: flex;
  align-items: center;
  padding: 0 var(--s-5);
  gap: var(--s-5);
  z-index: 50;
  position: relative;
}
.brand-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  border-left: 1px solid rgba(0,191,255,0.18);
  padding-left: var(--s-5);
  height: 38px;
}
.brand-title .label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-soft);
}
.brand-title .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
  letter-spacing: -0.01em;
}

/* Cápsula derecha del topbar (info principal) */
.top-capsule {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 6px var(--s-3) 6px 6px;
  background: rgba(15,18,48,0.6);
  border: 1px solid rgba(0,191,255,0.30);
  border-radius: var(--r-pill);
  height: 40px;
}
.top-capsule .clock {
  width: 32px; height: 32px;
  position: relative;
  flex-shrink: 0;
}
.top-capsule .clock svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.top-capsule .clock-time {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
}
.top-capsule .info { line-height: 1.15; }
.top-capsule .info .lbl {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.top-capsule .info .val {
  font-size: 12px;
  color: var(--text);
  margin-top: 2px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-capsule .info .val .arr { color: var(--positive); font-size: 10px; }
.top-capsule .info .sub {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-capsule .info .sub .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 4px var(--positive);
}

/* ════════ SUB-BAR (info usuario + pills) ════════ */
.field-subbar {
  grid-area: subbar;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--s-5);
  gap: var(--s-5);
}
.subbar-user {
  display: flex; align-items: center; gap: var(--s-3);
}
.subbar-user .avatar-lg {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ADE80, #16A34A);
  display: grid; place-items: center;
  color: #042;
  font-weight: 800;
  font-size: 13px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  position: relative;
  flex-shrink: 0;
}
.subbar-user .avatar-lg::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--positive);
  border: 2px solid var(--bg-elevated);
}
.subbar-user .info { line-height: 1.2; }
.subbar-user .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.subbar-user .meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.subbar-pills {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(0,191,255,0.04);
}
.sub-pill .ic { font-size: 11px; line-height: 1; }
.sub-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.sub-pill.orange  { color: var(--orange); border-color: rgba(0,255,178,0.30); background: var(--orange-bg); }
.sub-pill.positive { color: var(--positive); border-color: rgba(34,197,94,0.30); background: var(--positive-bg); }
.sub-pill.warning { color: var(--warning); border-color: rgba(245,158,11,0.30); background: var(--warning-bg); }
.sub-pill.info    { color: var(--info); border-color: rgba(59,130,246,0.30); background: var(--info-bg); }
.sub-pill .key {
  color: var(--text-faint);
  margin-right: 2px;
}
.sub-pill strong {
  color: var(--text);
  font-weight: 700;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: inherit;
  height: 32px;
  transition: opacity var(--t-fast);
}
.brand:hover { opacity: 0.85; }
.brand img {
  height: 26px;
  width: auto;
  display: block;
}
.brand .skills-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: 'Geist Mono', ui-monospace, monospace;
}

.h-divider { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }

.field-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.field-tag .ic { font-size: 14px; color: var(--orange); }

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.30);
  padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.beta-badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.h-spacer { flex: 1; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'Geist Mono', ui-monospace, monospace;
  padding: 5px 10px;
  background: var(--positive-bg);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--r-pill);
}
.status-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 6px var(--positive);
}
.status-pill strong { color: var(--positive); font-weight: 600; }

.h-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.h-link:hover { color: var(--text); border-color: var(--border-strong); background: rgba(0,191,255,0.04); }
.h-link.primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.h-link.primary:hover { filter: brightness(1.08); color: #fff; }

.user-chip {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 3px 12px 3px 4px;
  background: rgba(0,191,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast);
}
.user-chip:hover { border-color: var(--border-strong); background: rgba(0,191,255,0.08); }
.user-chip .avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ADE80, #16A34A);
  display: grid; place-items: center;
  color: #042;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Geist Mono', ui-monospace, monospace;
}

/* ════════ SIDENAV ════════ */
aside.field-side {
  grid-area: side;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: var(--s-3);
  padding: var(--s-4) var(--s-3);
  overflow-y: auto;
  box-shadow: var(--sh-md);
  max-height: calc(100vh - 56px - 36px - var(--s-6));
}
.side-section { margin-bottom: var(--s-5); }
.side-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 0 var(--s-3) var(--s-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-title .count {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  color: var(--text-faint);
  background: var(--bg-muted);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 7px var(--s-3);
  border-radius: var(--r-md);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--t-fast);
  cursor: pointer;
  margin-bottom: 1px;
  position: relative;
  user-select: none;
}
.nav-item:hover { background: rgba(0,191,255,0.05); color: var(--text); }
.nav-item.active {
  background: var(--orange-bg);
  color: var(--orange-soft);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(0,255,178,0.20);
}
.nav-item.active .ico { color: var(--orange); }
.nav-item.active .nm::after {
  content: '●';
  color: var(--orange);
  font-size: 7px;
  vertical-align: middle;
  margin-left: 8px;
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
.nav-item .ico {
  width: 18px;
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.nav-item .nm { flex: 1; letter-spacing: -0.01em; }
.nav-item .badge {
  font-size: 9px;
  background: var(--border);
  color: var(--text-dim);
  padding: 2px 6px;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.nav-item .badge.live { background: var(--positive-bg); color: var(--positive); }
.nav-item .badge.new  { background: var(--orange-bg); color: var(--orange); }
.nav-item .badge.soon { background: var(--warning-bg); color: var(--warning); }
.nav-item.disabled { opacity: 0.40; cursor: not-allowed; }
.nav-item.disabled:hover { background: transparent; color: var(--text-faint); }

.beta-info {
  margin-top: var(--s-4);
  padding: var(--s-3);
  background: linear-gradient(180deg, var(--orange-bg), rgba(0,255,178,0.02));
  border: 1px solid rgba(0,255,178,0.20);
  border-radius: var(--r-md);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}
.beta-info strong {
  color: var(--orange);
  display: block;
  margin-bottom: var(--s-1);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  font-family: 'Geist Mono', ui-monospace, monospace;
}

/* ════════ MAIN ════════ */
main.field-main {
  grid-area: main;
  padding: var(--s-8) var(--s-10) var(--s-16);
  max-width: 1400px;
  width: 100%;
  overflow-y: auto;
}

/* ════════ HERO compacto ════════ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  background:
    radial-gradient(circle at 100% 0%, rgba(0,255,178,0.14), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(0,191,255,0.10), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-8);
  margin-bottom: var(--s-10);
}
.hero-text { flex: 1; min-width: 0; }
.hero-greet {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-family: 'Geist Mono', ui-monospace, monospace;
  margin-bottom: var(--s-2);
}
.hero-greet::before {
  content: '— ';
  color: var(--orange);
  margin-right: 2px;
}
.hero h1 {
  margin: 0;
  font-family: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: var(--lh-tight);
}
.hero h1 span { color: var(--orange); }
.hero-sub {
  margin-top: var(--s-2);
  color: var(--text-dim);
  font-size: var(--fs-md);
  max-width: 60ch;
  line-height: var(--lh-loose);
}
.hero-progress {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.hero-progress .pbar {
  flex: 1;
  max-width: 280px;
  height: 6px;
  background: rgba(0,0,0,0.30);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.hero-progress .pbar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  border-radius: var(--r-pill);
  transition: width 800ms var(--ease);
}
.hero-progress .pct {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 12px;
  color: var(--orange);
}
.hero-progress .lbl {
  font-size: 11px;
  color: var(--text-faint);
}
.hero-cta {
  flex-shrink: 0;
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast);
  box-shadow: 0 4px 14px var(--orange-glow);
}
.hero-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ════════ KPI cards row ════════ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
@media (max-width: 900px) { .kpi-row { grid-template-columns: 1fr 1fr; } }

.kpi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-4) var(--s-3);
  position: relative;
  overflow: hidden;
  transition: all var(--t-fast);
}
.kpi-card:hover {
  border-color: var(--border-strong);
  background: rgba(0,191,255,0.04);
}
.kpi-card .head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-2);
}
.kpi-card .head .ic {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--bg-muted);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-dim);
}
.kpi-card .num {
  font-family: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  font-size: var(--fs-num);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi-card .num small {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 3px;
}
.kpi-card .delta {
  margin-top: var(--s-2);
  font-size: 11px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-card .delta .arr {
  font-weight: 700;
}
.kpi-card .delta.up .arr { color: var(--positive); }
.kpi-card .delta.dn .arr { color: var(--negative); }
.kpi-card .delta.stale .arr { color: var(--text-mute); }
.kpi-card.accent .num { color: var(--orange); }

/* ════════ Section title ════════ */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: var(--s-10) 0 var(--s-4) var(--s-1);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.section-title:first-of-type { margin-top: var(--s-6); }
.section-title .meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}
.section-title .filler {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: var(--s-3);
}

/* ════════ Practice card ════════ */
.practice-card {
  background:
    radial-gradient(circle at 0% 50%, rgba(0,255,178,0.14), transparent 60%),
    var(--bg-elevated);
  border: 1px solid rgba(0,255,178,0.30);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  text-decoration: none;
  color: inherit;
  transition: all var(--t-fast);
  margin-bottom: var(--s-4);
}
.practice-card:hover {
  border-color: rgba(0,255,178,0.50);
  background:
    radial-gradient(circle at 0% 50%, rgba(0,255,178,0.20), transparent 60%),
    var(--bg-elevated);
}
.practice-card .ic {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  display: grid; place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px var(--orange-glow);
}
.practice-card .info { flex: 1; min-width: 0; }
.practice-card .level {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--warning);
  text-transform: uppercase;
  font-family: 'Geist Mono', ui-monospace, monospace;
  margin-bottom: 3px;
}
.practice-card h3 {
  margin: 0 0 4px;
  font-family: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
}
.practice-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}
.practice-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-faint);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.practice-card .meta span {
  display: inline-flex; align-items: center; gap: 3px;
}
.practice-card .btn-go {
  background: var(--orange);
  color: #fff;
  border: 0;
  padding: 9px 16px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--t-fast);
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--orange-glow);
}
.practice-card:hover .btn-go { filter: brightness(1.1); transform: translateY(-1px); }

/* ════════ Tool grid (data-dense) ════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: var(--s-3);
}
.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  border-color: var(--border-strong);
  background: rgba(0,191,255,0.04);
  transform: translateY(-1px);
}
.tool-card.live::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.tool-card.disabled { opacity: 0.55; cursor: not-allowed; }
.tool-card.disabled:hover { transform: none; box-shadow: none; background: var(--bg-elevated); border-color: var(--border); }

.tool-card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2);
}
.tool-card .ic {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--bg-muted);
  display: grid; place-items: center;
  font-size: 19px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  color: var(--text);
}
.tool-card.live .ic {
  background: linear-gradient(135deg, var(--orange-bg), transparent);
  border-color: rgba(0,255,178,0.30);
}
.tool-card .pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.tool-card .pill.live { background: var(--positive-bg); color: var(--positive); border: 1px solid rgba(34,197,94,0.30); }
.tool-card .pill.new  { background: var(--orange-bg); color: var(--orange); border: 1px solid rgba(0,255,178,0.30); }
.tool-card .pill.soon { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.30); }

.tool-card h3 {
  margin: 0;
  font-family: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
}
.tool-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-card .foot {
  margin-top: auto;
  padding-top: var(--s-2);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-faint);
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}
.tool-card .foot .arrow {
  font-size: 16px;
  color: var(--orange);
  font-weight: 700;
  font-family: 'Funnel Sans', system-ui, sans-serif;
  transition: transform var(--t-fast);
}
.tool-card:hover .foot .arrow { transform: translateX(3px); }

/* ════════ Cards info row ════════ */
.cards-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
@media (max-width: 1100px) { .cards-row { grid-template-columns: 1fr; } }

.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.info-card h3 {
  margin: 0 0 var(--s-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.info-card h3 .ic {
  width: 22px; height: 22px;
  background: var(--bg-muted);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: 12px;
}
.info-card .body { font-size: 13px; line-height: 1.5; }

.feed-list { display: flex; flex-direction: column; gap: var(--s-2); }
.feed-item {
  padding: var(--s-3);
  background: rgba(0,0,0,0.20);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px;
  transition: all var(--t-fast);
}
.feed-item:hover { border-color: var(--border-strong); background: rgba(0,0,0,0.30); }
.feed-item .meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.feed-item .who {
  font-size: 11px;
  color: var(--orange-soft);
  font-weight: 600;
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.feed-item .time {
  font-size: 10px;
  color: var(--text-faint);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.feed-item .what { color: var(--text); line-height: 1.4; font-size: 12px; }

.kpi-stack { display: flex; flex-direction: column; gap: var(--s-1); }
.kpi-stack .row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border);
}
.kpi-stack .row:last-child { border-bottom: 0; }
.kpi-stack .row .lbl { font-size: 12px; color: var(--text-dim); }
.kpi-stack .row .val {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kpi-stack .row .val.pos { color: var(--positive); }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--s-3);
  font-size: 11px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Geist Mono', ui-monospace, monospace;
  transition: gap var(--t-fast);
}
.cta-link:hover { gap: 8px; color: var(--orange-soft); }

/* ════════ FOOTER status bar ════════ */
footer.field-foot {
  grid-area: footer;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--s-5);
  gap: var(--s-4);
  font-size: 11px;
  color: var(--text-faint);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
footer.field-foot .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
footer.field-foot .item strong { color: var(--text-dim); font-weight: 600; }
footer.field-foot .sep { color: var(--text-mute); }
footer.field-foot .spacer { flex: 1; }
footer.field-foot a { color: var(--orange); text-decoration: none; transition: color var(--t-fast); }
footer.field-foot a:hover { color: var(--orange-soft); }

/* ════════ FAB Feedback ════════ */
#feedback-fab {
  position: fixed;
  bottom: var(--s-12); right: var(--s-5);
  background: var(--orange);
  color: #fff;
  border: 0;
  padding: 11px 16px 11px 13px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  box-shadow: 0 8px 24px var(--orange-glow), 0 4px 8px rgba(0,0,0,0.30);
  z-index: 998;
  transition: all var(--t-mid);
  letter-spacing: 0.02em;
}
#feedback-fab:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--orange-glow), 0 6px 12px rgba(0,0,0,0.40);
}
#feedback-fab .ic { font-size: 14px; }

/* ════════ Panel feedback ════════ */
#feedback-panel {
  position: fixed;
  top: 0; right: 0;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-strong);
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 280ms var(--ease);
  display: flex;
  flex-direction: column;
}
#feedback-panel.open { transform: translateX(0); }

.fb-header {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:
    radial-gradient(circle at 0% 50%, var(--orange-bg), transparent 70%);
}
.fb-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fb-header h3 .ic { color: var(--orange); }
.fb-header .ctx {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}
.fb-close {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.fb-close:hover { color: var(--text); background: var(--bg-muted); }

.fb-body { padding: var(--s-4) var(--s-5); overflow-y: auto; flex: 1; }
.fb-group { margin-bottom: var(--s-4); }
.fb-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-2);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.fb-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.fb-type {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(0,0,0,0.20);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 12px;
  user-select: none;
  transition: all var(--t-fast);
  font-weight: 500;
  color: var(--text);
}
.fb-type:hover { border-color: var(--border-strong); background: rgba(0,0,0,0.30); }
.fb-type.selected {
  background: var(--orange-bg);
  border-color: var(--orange);
  color: var(--text);
}
.fb-type input { display: none; }
.fb-type .ic { font-size: 15px; }

.fb-stars {
  display: flex; gap: var(--s-1);
}
.fb-star {
  cursor: pointer;
  font-size: 22px;
  color: var(--text-mute);
  transition: all var(--t-fast);
  user-select: none;
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
}
.fb-star:hover { transform: scale(1.15); }
.fb-star.on { color: var(--yellow); }

.fb-msg {
  width: 100%;
  background: rgba(0,0,0,0.30);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: all var(--t-fast);
}
.fb-msg:focus {
  border-color: var(--orange);
  box-shadow: var(--sh-glow-orange);
}

.fb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  margin-bottom: var(--s-2);
  user-select: none;
}
.fb-check input { width: 15px; height: 15px; accent-color: var(--orange); cursor: pointer; }

.fb-context {
  margin-top: var(--s-3);
  padding: 10px 12px;
  background: rgba(0,0,0,0.20);
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  font-size: 10px;
  color: var(--text-faint);
  font-family: 'Geist Mono', ui-monospace, monospace;
  line-height: 1.7;
}
.fb-context strong {
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.fb-foot {
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--s-2);
}
.fb-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: all var(--t-fast);
  letter-spacing: 0.02em;
}
.fb-btn.primary { background: var(--orange); color: #fff; }
.fb-btn.primary:hover { filter: brightness(1.08); }
.fb-btn.primary:disabled { opacity: 0.40; cursor: not-allowed; filter: none; }
.fb-btn.ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  flex: 0 0 90px;
}
.fb-btn.ghost:hover { color: var(--text); border-color: var(--border-strong); }

#fb-toast {
  position: fixed;
  bottom: var(--s-12);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--positive);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-mid);
  z-index: 9999;
}
#fb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════ Scrollbar ════════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-sm);
  border: 2px solid var(--bg-elevated);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ════════ Stagger entrance ════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero          { animation: fadeUp 320ms var(--ease-out-quart) both; }
.kpi-row .kpi-card                 { animation: fadeUp 320ms var(--ease-out-quart) both; }
.kpi-row .kpi-card:nth-child(1)    { animation-delay: 60ms; }
.kpi-row .kpi-card:nth-child(2)    { animation-delay: 100ms; }
.kpi-row .kpi-card:nth-child(3)    { animation-delay: 140ms; }
.kpi-row .kpi-card:nth-child(4)    { animation-delay: 180ms; }
.practice-card { animation: fadeUp 320ms var(--ease-out-quart) both; animation-delay: 220ms; }
.tools-grid .tool-card             { animation: fadeUp 280ms var(--ease-out-quart) both; }
.tools-grid .tool-card:nth-child(1) { animation-delay: 280ms; }
.tools-grid .tool-card:nth-child(2) { animation-delay: 320ms; }
.tools-grid .tool-card:nth-child(3) { animation-delay: 360ms; }
.tools-grid .tool-card:nth-child(4) { animation-delay: 400ms; }
.tools-grid .tool-card:nth-child(5) { animation-delay: 440ms; }
.tools-grid .tool-card:nth-child(6) { animation-delay: 480ms; }
.tools-grid .tool-card:nth-child(7) { animation-delay: 520ms; }
.tools-grid .tool-card:nth-child(8) { animation-delay: 560ms; }
.cards-row .info-card               { animation: fadeUp 320ms var(--ease-out-quart) both; animation-delay: 600ms; }
.cards-row .info-card:nth-child(2)  { animation-delay: 660ms; }

/* ════════ Reduced motion ════════ */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ════════ Responsive ════════ */
@media (max-width: 1024px) {
  .app { grid-template-columns: 200px 1fr; }
  main.field-main { padding: var(--s-5) var(--s-5) var(--s-12); }
}
@media (max-width: 900px) {
  .app {
    grid-template-rows: 56px auto 1fr 36px;
    grid-template-columns: 1fr;
    grid-template-areas: "header" "side" "main" "footer";
  }
  aside.field-side {
    margin: var(--s-2) var(--s-2) 0;
    padding: var(--s-2);
    overflow-x: auto;
    max-height: none;
    box-shadow: none;
  }
  .side-section { display: inline-block; margin: 0 var(--s-2) 0 0; vertical-align: top; }
  .nav-item { padding: 6px 10px; }
  .beta-info { display: none; }
  main.field-main { padding: var(--s-4) var(--s-4) var(--s-12); }
  .hero { flex-wrap: wrap; padding: var(--s-4); }
  .hero h1 { font-size: 18px; }
  .hero-cta { width: 100%; justify-content: center; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .practice-card { flex-wrap: wrap; padding: var(--s-3); }
  .practice-card .ic { width: 44px; height: 44px; font-size: 22px; }
  .practice-card .btn-go { width: 100%; text-align: center; }
  #feedback-fab { bottom: var(--s-3); right: var(--s-3); padding: 10px 14px; font-size: 11px; }
  #feedback-panel { width: 100%; }
  footer.field-foot { font-size: 10px; padding: 0 var(--s-3); gap: var(--s-2); flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   BETA STRIP — modelo de tiempo "incluido con plan Skills"
   ═══════════════════════════════════════════════════════════════ */
.field-betastrip {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 24px;
  background: linear-gradient(90deg, rgba(0,255,178,0.14) 0%, rgba(0,255,178,0.04) 70%);
  border-bottom: 1px solid rgba(0,255,178,0.28);
  font-family: 'Funnel Sans', system-ui, sans-serif;
  font-size: 13px; line-height: 1.45;
  color: #B8C5DC;
}
.field-betastrip-tag {
  display: inline-flex; align-items: center;
  background: #00FFB2; color: #fff;
  padding: 3px 10px; border-radius: 4px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}
.field-betastrip-msg strong { color: #fff; font-weight: 600; }
.field-betastrip-msg em { color: #FFD700; font-style: normal; font-weight: 600; }
@media (max-width: 768px) {
  .field-betastrip { padding: 9px 14px; font-size: 12px; gap: 10px; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   Gate de acceso · paywall overlay + banner días restantes
   ═══════════════════════════════════════════════════════════════ */
body.field-gate-locked { overflow: hidden; }
body.field-gate-locked .app,
body.field-gate-locked > *:not(.field-gate-overlay) {
  filter: blur(6px) brightness(0.55);
  pointer-events: none; user-select: none;
}
.field-gate-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, rgba(10,23,64,0.75) 0%, rgba(6,16,38,0.92) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: field-gate-fade 240ms ease-out;
}
@keyframes field-gate-fade { from { opacity: 0; } to { opacity: 1; } }
.field-gate-card {
  background: linear-gradient(180deg, #0F1F4F 0%, #0A1740 100%);
  border: 1px solid rgba(0,191,255,0.22);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 460px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.6);
  font-family: 'Funnel Sans', system-ui, sans-serif;
}
.field-gate-icon {
  font-size: 48px; line-height: 1; margin-bottom: 18px;
  filter: drop-shadow(0 4px 12px rgba(0,255,178,0.4));
}
.field-gate-title {
  font-size: 22px; font-weight: 700; color: #fff;
  margin: 0 0 10px; letter-spacing: -0.01em;
}
.field-gate-sub {
  font-size: 14.5px; color: rgba(255,255,255,0.78);
  line-height: 1.55; margin: 0 0 24px;
}
.field-gate-actions {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.field-gate-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: #00FFB2; color: #fff !important;
  padding: 13px 28px; border-radius: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
  width: 100%; max-width: 280px;
}
.field-gate-cta:hover { background: #e85a24; transform: translateY(-1px); }
.field-gate-secondary {
  font-size: 12px; color: rgba(255,255,255,0.55);
  text-decoration: none; padding: 6px 12px;
}
.field-gate-secondary:hover { color: rgba(255,255,255,0.85); }
.field-gate-meta {
  margin-top: 20px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; color: rgba(255,255,255,0.30);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* Banner aviso días restantes */
.field-gate-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(90deg, #00FFB2 0%, #e85a24 100%);
  color: #fff;
  padding: 9px 18px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  font-family: 'Funnel Sans', system-ui, sans-serif;
  font-size: 13px; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,255,178,0.32);
}
.field-gate-banner-icon { font-size: 16px; }
.field-gate-banner-text { font-weight: 500; }
.field-gate-banner-cta {
  background: #fff; color: #0A1740 !important;
  padding: 5px 14px; border-radius: 6px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-decoration: none !important;
  transition: transform .2s;
}
.field-gate-banner-cta:hover { transform: scale(1.04); }
body.field-gate-with-banner { padding-top: 38px; }
@media (max-width: 600px) {
  .field-gate-banner { padding: 7px 12px; font-size: 11.5px; gap: 8px; }
  .field-gate-banner-cta { padding: 4px 10px; font-size: 10.5px; }
  body.field-gate-with-banner { padding-top: 56px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — v2 · 2026-04-25
   Drawer hamburger sidebar · topbar simplificado · forms full-width
   Touch targets 44px · pills wrap · sin amputar features
   ═══════════════════════════════════════════════════════════════ */

/* Hamburger button (oculto en desktop, aparece en <992px) */
.fm-hamburger {
  display: none;
  width: 44px; height: 44px;
  background: rgba(15,18,48,0.6);
  border: 1px solid rgba(0,191,255,0.30);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
  position: relative;
  margin-left: auto;
}
.fm-hamburger:hover { background: rgba(15,18,48,0.9); border-color: var(--orange); }
.fm-hamburger:active { transform: scale(0.96); }
.fm-hamburger svg { width: 22px; height: 22px; color: var(--text); display: block; }
.fm-hamburger .fm-ham-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--orange); color: #fff;
  font-family: 'Geist Mono', monospace;
  font-size: 9px; font-weight: 800;
  display: none;
  align-items: center; justify-content: center;
  border: 2px solid #0A0418;
}

/* Backdrop oscuro detrás del drawer */
.fm-drawer-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(6,16,38,0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 90;
  animation: fm-fade-in 200ms var(--ease-out-quart);
}
@keyframes fm-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 991px) {
  /* ─── Layout: sidebar pasa a drawer ─── */
  .app {
    grid-template-columns: 1fr !important;
    grid-template-rows: 56px auto 1fr 36px !important;
    grid-template-areas: "header" "subbar" "main" "footer" !important;
  }

  .fm-hamburger { display: inline-flex; }

  /* Sidebar → drawer fixed off-screen */
  aside.field-side {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    margin: 0 !important;
    padding: var(--s-4) !important;
    border-radius: 0 16px 16px 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-105%);
    transition: transform 280ms var(--ease-out-quart);
    z-index: 100;
    box-shadow: 8px 0 32px rgba(0,0,0,0.45);
    max-height: none !important;
    background: var(--bg-elevated) !important;
  }
  aside.field-side.fm-drawer-open { transform: translateX(0); }
  body.fm-drawer-locked { overflow: hidden; }
  body.fm-drawer-locked .fm-drawer-backdrop { display: block; }

  .side-section { display: block !important; margin: 0 0 var(--s-4) !important; }
  .nav-item { padding: 10px 12px !important; }
  .beta-info { display: block !important; }

  /* ─── Topbar simplificado ─── */
  header.field-top {
    padding: 0 var(--s-3);
    gap: var(--s-3);
  }
  header.field-top .brand { flex-shrink: 0; }
  header.field-top .brand img { height: 32px; }
  .brand-title {
    border-left: 0;
    padding-left: 0;
    height: auto;
    overflow: hidden;
  }
  .brand-title .label { font-size: 9px; letter-spacing: 0.14em; }
  .brand-title .name { font-size: 12.5px; line-height: 1.2; }
  .h-spacer { display: none; }

  /* Cápsula del header → ocultarla en mobile (.info ya estaba display:none, queda óvalo
     vacío). El subbar de abajo muestra los pills relevantes. */
  .top-capsule { display: none !important; }

  /* Subbar avatar usuario → ocultar en mobile (el "JP" se ve recortado y agrega ruido) */
  .subbar-user { display: none !important; }

  /* Page-head de cada herramienta (TE-1, calculadoras, etc): forzar wrap en mobile.
     Sin esto, .actions (3 botones) se queda flex-shrink:0 y .info colapsa a 22px,
     rompiendo el título palabra por palabra. */
  .page-head { flex-wrap: wrap; }
  .page-head .info { flex: 1 1 100% !important; min-width: 100% !important; }
  .page-head .actions {
    flex: 1 1 100% !important;
    flex-wrap: wrap;
    width: 100%;
  }
  .page-head .actions .btn-action { flex: 1 1 auto; justify-content: center; min-height: 40px; }

  /* ─── Subbar wrap natural ─── */
  .field-subbar {
    padding: 8px var(--s-3);
    gap: var(--s-3);
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
  }
  .subbar-user .avatar-lg { width: 32px; height: 32px; font-size: 11px; }
  .subbar-user .name { font-size: 12.5px; }
  .subbar-user .meta { font-size: 9px; }
  .subbar-pills { gap: 6px; }
  .sub-pill { font-size: 9px; padding: 3px 8px; }
  .h-link { font-size: 11px; padding: 5px 10px; }

  /* ─── Main padding ─── */
  main.field-main { padding: var(--s-4) var(--s-3) var(--s-12) !important; }

  /* ─── KPI / Hero ─── */
  .kpi-row { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .kpi-card { padding: var(--s-3); }
  .kpi-card .num { font-size: 24px; }

  .hero { flex-wrap: wrap; padding: var(--s-4); }
  .hero-text { width: 100%; }
  .hero h1 { font-size: 18px; line-height: 1.25; }
  .hero-sub { font-size: 13px; }
  .hero-cta {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
  }

  /* ─── Tools grid mobile ─── */
  .tools-grid { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .tool-card { padding: var(--s-3); min-height: 140px; }
  .tool-card h3 { font-size: 13px; }
  .tool-card p { font-size: 11px; line-height: 1.35; }

  /* ─── Practice card ─── */
  .practice-card { flex-wrap: wrap; padding: var(--s-3); gap: var(--s-3); }
  .practice-card .ic { width: 44px; height: 44px; font-size: 22px; }
  .practice-card .info { flex: 1 1 auto; min-width: 200px; }
  .practice-card .info h3 { font-size: 14px; }
  .practice-card .btn-go { width: 100%; text-align: center; min-height: 44px; padding: 11px; }

  /* ─── Section titles ─── */
  .section-title { flex-wrap: wrap; gap: 6px; font-size: 12px; padding-bottom: var(--s-2); }
  .section-title .meta { font-size: 10px; }

  /* ─── Forms genéricos en herramientas ─── */
  .field-row, .form-row {
    grid-template-columns: 1fr !important;
    gap: var(--s-2) !important;
  }
  .with-unit { width: 100%; }
  .with-unit input,
  input[type="number"],
  input[type="text"],
  input[type="email"],
  textarea, select {
    width: 100%;
    min-height: 44px;
    font-size: 16px; /* iOS no zoom */
  }
  button, .btn-action, .btn-cta {
    min-height: 44px;
  }
  .btn-action {
    padding: 10px 14px;
    font-size: 12px;
  }

  /* ─── Big result responsive ─── */
  .big-result { padding: var(--s-4); }
  .big-result .val { font-size: 32px; }
  .result-cells { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .result-cell { padding: var(--s-2); }
  .result-cell .val { font-size: 16px; }

  /* ─── Footer ─── */
  footer.field-foot {
    grid-area: footer;
    font-size: 10px;
    padding: 8px var(--s-3);
    gap: var(--s-2);
    flex-wrap: wrap;
  }

  /* ─── Feedback widget ─── */
  #feedback-fab {
    bottom: 80px !important; /* dejar espacio FAB práctica */
    right: var(--s-3);
    padding: 10px 14px;
    font-size: 11px;
  }
  #feedback-panel {
    width: 100% !important;
    max-width: none !important;
    bottom: 0 !important;
    right: 0 !important;
    top: 0 !important;
    border-radius: 0;
    /* Bug fix 2026-04-25: --bg-elevated es glass 6% opacity, contenido detrás se transparentaba.
       En mobile el panel toma el viewport entero → fondo sólido obligatorio. */
    background: #0F121E !important;
  }
  body.fb-panel-open { overflow: hidden; }
}

@media (max-width: 600px) {
  /* ─── Mobile chico: simplificar más ─── */
  .brand-title { display: none; } /* Solo logo en mobile chico */
  .top-capsule .info { display: none; } /* Solo el reloj */

  .kpi-row { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }

  /* Result cells stack */
  .result-cells { grid-template-columns: 1fr; }

  /* Subbar más compacto */
  .field-subbar { padding: 6px var(--s-3); gap: 8px; }
  .subbar-user .info { display: none; } /* Solo avatar en mobile chico */

  /* Hero compact */
  .hero { padding: var(--s-3); }
  .hero h1 { font-size: 16px; }
}

@media (max-width: 380px) {
  /* ─── Mobile muy chico (Android común 360px) ─── */
  .top-capsule { display: none; } /* Solo logo + hamburger */
  .field-betastrip { padding: 7px 10px; font-size: 11px; }
  .field-betastrip-tag { font-size: 9px; padding: 2px 7px; }
}

/* Touch optimizations: hover-state no se aplica a touch */
@media (hover: none) and (pointer: coarse) {
  /* En touch no hay hover, asegurar feedback visible al press */
  .nav-item:active,
  .tool-card:active,
  .practice-card:active,
  .btn-action:active,
  .hero-cta:active {
    transform: scale(0.98);
    transition: transform 80ms var(--ease);
  }
  /* Eliminar tap highlight feo */
  * { -webkit-tap-highlight-color: rgba(0,255,178,0.20); }
}

/* ═══════════════════════════════════════════════════════════════
   MINT GLASS · Overrides 2026 redesign
   Glassmorphism + gradient text + glow hover + mobile drawer
   ═══════════════════════════════════════════════════════════════ */

/* Topbar / subbar / footer — frosted glass */
header.field-top,
.field-subbar,
footer.field-foot {
  background: rgba(10,4,24,0.55) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%);
          backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--glass-stroke);
}
footer.field-foot { border-top: 1px solid var(--glass-stroke); border-bottom: none; }

/* Brand logo h1 + name → gradient text mint→blue */
.brand-title .name,
.hero h1,
h1.display {
  background: linear-gradient(135deg, #FFF 0%, var(--mint) 50%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(0,255,178,0.20);
}

/* Top capsule → glass + glow ring */
.top-capsule {
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-stroke) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 8px 32px rgba(0,255,178,0.10);
}

/* Sidebar nav active — glass glow */
aside.field-side .nav-item.active,
aside.field-side .nav-item[aria-current="page"] {
  background: linear-gradient(90deg, rgba(0,255,178,0.16), rgba(0,191,255,0.06)) !important;
  border-left: 2px solid var(--mint) !important;
  box-shadow: 0 0 24px rgba(0,255,178,0.18), inset 0 0 0 1px var(--glass-stroke);
}
aside.field-side .nav-item.active .ic,
aside.field-side .nav-item[aria-current="page"] .ic {
  filter: drop-shadow(0 0 6px var(--mint));
}

/* Cards — glass */
.tool-card,
.practice-card,
.kpi-card,
.info-card,
.mission-hero {
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-stroke) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, var(--sh-md);
  transition: transform var(--t-fast), box-shadow var(--t-mid), border-color var(--t-mid);
  position: relative;
  overflow: hidden;
}
.tool-card::before,
.practice-card::before,
.kpi-card::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 70%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  opacity: 0.5;
  pointer-events: none;
}
.tool-card:hover,
.practice-card:hover,
.kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--mint) !important;
  box-shadow:
    0 20px 60px rgba(0,255,178,0.18),
    0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* Beta strip — mint accent */
.field-betastrip {
  background: linear-gradient(90deg, rgba(0,255,178,0.14) 0%, rgba(0,191,255,0.04) 70%) !important;
  border-bottom: 1px solid rgba(0,255,178,0.28) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.field-betastrip-tag {
  background: linear-gradient(90deg, var(--mint), var(--blue)) !important;
  color: #0A0418 !important;
  box-shadow: 0 0 12px rgba(0,255,178,0.4);
}

/* Pills genéricos */
.sub-pill {
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sub-pill.positive { color: var(--mint); border-color: rgba(0,255,178,0.4); }
.sub-pill.warning  { color: #FFD93D; border-color: rgba(255,217,61,0.4); }
.sub-pill.info     { color: var(--blue); border-color: rgba(0,191,255,0.4); }

/* CTA buttons */
.hero-cta,
.btn-go,
.btn-primary {
  background: linear-gradient(135deg, var(--mint), var(--blue)) !important;
  color: #0A0418 !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0,255,178,0.30);
  transition: all var(--t-mid);
}
.hero-cta:hover,
.btn-go:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,255,178,0.45);
}

/* Selection ya está mint vía var(--orange) */

/* ─── MOBILE DRAWER + HAMBURGER (usa clases de mobile-nav.js) ── */

/* Hamburger button — solo visible <992px */
.fm-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin-left: auto;
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 12px;
  color: var(--mint);
  cursor: pointer;
  position: relative;
  z-index: 160;
  transition: background var(--t-fast);
}
.fm-hamburger:hover { background: var(--glass-strong); }
.fm-hamburger svg { width: 22px; height: 22px; }
.fm-ham-badge { display: none; }

/* Backdrop overlay */
.fm-drawer-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,4,24,0.65);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  z-index: 140;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
body.fm-drawer-locked .fm-drawer-backdrop { display: block; opacity: 1; }
body.fm-drawer-locked { overflow: hidden; }

@media (max-width: 991px) {
  .fm-hamburger { display: flex; }

  /* Header 2 filas: logo arriba, capsule + hamburger abajo */
  header.field-top {
    flex-wrap: wrap;
    height: auto;
    min-height: 88px;
    padding: 10px var(--s-3);
    gap: var(--s-2);
  }
  .brand-title { padding-left: var(--s-3); }
  .top-capsule { order: 99; flex-basis: 100%; height: auto; padding: 8px 14px; }

  /* Subbar compacto */
  .field-subbar { padding: 8px var(--s-3); flex-wrap: wrap; gap: var(--s-2); height: auto; min-height: 56px; }

  /* Sidebar = drawer offscreen */
  aside.field-side {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    margin: 0 !important;
    padding: 60px var(--s-3) var(--s-4) !important;
    background: rgba(10,4,24,0.92) !important;
    -webkit-backdrop-filter: blur(28px) saturate(140%);
            backdrop-filter: blur(28px) saturate(140%);
    border-right: 1px solid var(--glass-stroke);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateX(-100%);
    transition: transform 280ms var(--ease-out-quart);
    z-index: 150;
    max-height: none !important;
    box-shadow: 8px 0 32px rgba(0,0,0,0.4);
  }
  aside.field-side.fm-drawer-open { transform: translateX(0); }

  .side-section { display: block !important; margin: 0 0 var(--s-4) !important; }
  .nav-item { padding: 10px 12px; font-size: 14px; }
  .beta-info { display: block; }

  /* Cards full-width 1-col */
  .practice-card, .tool-card, .kpi-card { width: 100%; }
}

@media (max-width: 480px) {
  header.field-top h1, .hero h1 { font-size: 24px !important; }
  .field-betastrip { font-size: 11px; }
  .sub-pill { font-size: 10px; padding: 3px 8px; }
}

/* Performance: degradar backdrop-filter en mobile bajo presupuesto */
@media (max-width: 768px) and (max-resolution: 1.5dppx) {
  .tool-card, .practice-card, .kpi-card {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(15,18,48,0.55) !important;
  }
}

/* Reduce motion — respetar */
@media (prefers-reduced-motion: reduce) {
  .tool-card, .practice-card, .hero-cta { transition: none !important; }
  .tool-card:hover, .practice-card:hover { transform: none !important; }
}

