/* Alobri Partners — hoja de estilos única (sitio público, consola y administración). */
:root {
  --bg: #ffffff; --bg-soft: #f4f6fb; --card: #ffffff; --line: #dde2ee; --line-strong: #c5ccdb;
  --text: #0b1220; --muted: #4a5468; --faint: #5f6a80;
  --accent: #4245e6; --accent-strong: #3236c8; --accent-soft: #eeefff; --on-accent: #ffffff; --dot: #5053fa; --logo: #060d1f; --btn: #4245e6; --btn-hover: #3236c8;
  --ok: #0d6e46; --ok-soft: #e3f5ec; --warn: #855000; --warn-soft: #fff2db; --bad: #b42318; --bad-soft: #fdecea;
  --partner: #9a4a00; --partner-soft: #fff5ea;
  --shadow: 0 1px 2px rgba(11,18,32,.06), 0 4px 16px rgba(11,18,32,.05);
  --radius: 14px; --radius-sm: 10px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c; --bg-soft: #0f1626; --card: #121a2b; --line: #24304a; --line-strong: #34425f;
    --text: #eef1f8; --muted: #a9b2c7; --faint: #97a1b8;
    --accent: #9497ff; --accent-strong: #b3b5ff; --accent-soft: #1b2150; --dot: #7c80ff; --logo: #ffffff; --btn: #4f53f0; --btn-hover: #3f43d8;
    --ok: #5fd39b; --ok-soft: #0f2a1f; --warn: #ffc56b; --warn-soft: #2d2210; --bad: #ff8f84; --bad-soft: #2f1414;
    --partner: #ffb877; --partner-soft: #2a1d10;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1c; --bg-soft: #0f1626; --card: #121a2b; --line: #24304a; --line-strong: #34425f;
  --text: #eef1f8; --muted: #a9b2c7; --faint: #97a1b8;
  --accent: #9497ff; --accent-strong: #b3b5ff; --accent-soft: #1b2150; --dot: #7c80ff; --logo: #ffffff; --btn: #4f53f0; --btn-hover: #3f43d8;
  --ok: #5fd39b; --ok-soft: #0f2a1f; --warn: #ffc56b; --warn-soft: #2d2210; --bad: #ff8f84; --bad-soft: #2f1414;
  --partner: #ffb877; --partner-soft: #2a1d10;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--btn); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.wordmark { font-weight: 700; font-size: 26px; letter-spacing: -0.04em; line-height: 1; }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i::after { content: ''; position: absolute; left: 50%; top: 0.02em; width: 0.22em; height: 0.22em; margin-left: -0.11em; border-radius: 50%; background: var(--dot); }
.brand-tag { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

svg.logo { height: 26px; width: auto; display: block; color: var(--logo); flex: none; }
.logo-dot { fill: var(--dot); }
.brand-tag { padding-left: 10px; border-left: 1px solid var(--line-strong); line-height: 1.4; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { max-width: 1360px; display: flex; align-items: center; gap: 20px; min-height: 68px; }
.main-nav { display: flex; gap: 2px; margin-left: 8px; flex: 1; flex-wrap: nowrap; }
.main-nav a { white-space: nowrap; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: block; } :root:not([data-theme="light"]) .theme-btn .moon { display: none; } }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.lang-switch a { min-width: 44px; height: 42px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.lang-switch a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.menu-btn { display: none; }
.nav-lang { display: none; }
.main-nav .nav-apply { display: none; }
@media (max-width: 1280px) {
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 20px 16px; margin: 0; }
  .main-nav.open { display: flex; }
  .header-tools .btn { display: none; }
  .main-nav .nav-apply { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-tools .lang-switch { display: none; }
  .nav-lang { display: flex; padding-top: 10px; }
  svg.logo { height: 22px; }
  .brand-tag { display: none; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); color: #fff; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-wa { background: #0b7a3e; color: #fff; }
.btn-wa:hover { background: #096833; color: #fff; }
.btn-danger { background: var(--card); color: var(--bad); border-color: var(--bad); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Secciones públicas */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent 70%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; letter-spacing: -0.035em; margin: 14px 0 18px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.hero .btn-row { margin-top: 28px; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero-simple { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero-simple h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 12px 0 14px; letter-spacing: -0.03em; }
.hero-simple .lead { font-size: 18px; color: var(--muted); max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--faint); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 48px 0 40px; } section.block { padding: 52px 0; } }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--mono); font-size: 40px; font-weight: 600; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card.flat { box-shadow: none; }
.card .kicker { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }
.card dl { margin: 14px 0 0; display: grid; gap: 12px; }
.card dt { font-size: 13px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.card dd { margin: 2px 0 0; color: var(--text); font-size: 15px; }
.track-card { display: flex; flex-direction: column; gap: 10px; }
.track-card .ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.track-card .ico svg { width: 22px; height: 22px; }
.track-card p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step .n { font-family: var(--mono); font-size: 34px; font-weight: 600; line-height: 1; }
.step .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.who { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.who.p { background: var(--partner-soft); color: var(--partner); }
.who.a { background: var(--accent-soft); color: var(--accent); }
.step .n.p { color: var(--partner); } .step .n.a { color: var(--accent); }

.level-cards .card { position: relative; overflow: hidden; }
.level-cards .card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--lvl, var(--accent)); }
.lvl-registrado { --lvl: #6b7488; } .lvl-plata { --lvl: #8e9bb3; } .lvl-oro { --lvl: #c48a12; } .lvl-platino { --lvl: #4245e6; }
.level-cards .pct { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.level-cards .pct small { font-size: 14px; color: var(--muted); font-family: var(--font); font-weight: 500; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.lvl { background: var(--card); }
.badge.lvl::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lvl, var(--accent)); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.verified { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* Tablas */
.table-box { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--faint); background: var(--bg-soft); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.r, table.data th.r { text-align: right; }
table.data tr.hl td { background: var(--accent-soft); }
table.data .cell-title { font-weight: 600; color: var(--text); }
table.data td:has(> .cell-title) { min-width: 170px; }
table.matrix th[scope="row"] { font-weight: 500; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 15px; background: transparent; white-space: normal; }
table.matrix thead th { text-align: center; }
table.matrix td { text-align: center; }
table.matrix tr.group th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }

/* Formularios */
.form { display: grid; gap: 18px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; display: grid; gap: 16px; background: var(--card); min-width: 0; }
.form legend { font-weight: 700; font-size: 17px; padding: 0 6px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 13px; color: var(--faint); }
.field .err { font-size: 13px; color: var(--bad); font-weight: 600; }
.req { color: var(--bad); }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=password], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; min-height: 44px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--btn); flex: none; }
.check.plain { border: 0; padding: 4px 0; background: transparent; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.seg label { display: inline-flex; align-items: center; padding: 0 14px; min-height: 44px; cursor: pointer; font-size: 15px; border-right: 1px solid var(--line); }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--accent); font-weight: 700; }
.seg label:has(input:checked) { background: var(--accent-soft); }
.hp { position: absolute; left: -5000px; }

.alert { padding: 14px 16px; border-radius: 10px; font-size: 15px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--accent-soft); color: var(--text); }

/* Calculadora */
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc .result { position: sticky; top: 88px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--bg); min-width: 0; }
.kpi .k { font-size: 13px; color: var(--faint); font-weight: 600; }
.kpi .v { font-family: var(--mono); font-size: 24px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kpi .s { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.kpi.main { background: var(--btn); border-color: var(--btn); }
.kpi.main .k, .kpi.main .s { color: #e4e5ff; }
.kpi.main .v { color: #fff; }
.stage-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; min-width: 80px; }
.stage-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* Países */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.country-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); min-height: 56px; }
.country-link:hover { border-color: var(--accent); color: var(--text); }
.country-link .cur { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.flag { font-family: var(--mono); font-size: 12px; font-weight: 600; width: 34px; height: 24px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); flex: none; }

/* Directorio */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 22px; }
@media (max-width: 900px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr; } }
.partner-card { display: flex; flex-direction: column; gap: 12px; }
.partner-card .top { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--card); }
.empty h2, .empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }
.empty .ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

.cta-band { background: var(--btn); color: #fff; border-radius: 22px; padding: 44px; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); }
.cta-band p { color: #e4e5ff; margin-top: 8px; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: #2b2fb8; }
.cta-band .btn-primary:hover { background: #eef0ff; color: #2b2fb8; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }

.prose { max-width: 820px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 12px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 72px; background: var(--bg-soft); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer ul a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #0b7a3e; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float:hover { background: #096833; color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Consola y administración */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { min-width: 0; flex: 1 1 240px; max-width: 260px; border-right: 1px solid var(--line); background: var(--bg-soft); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.side .brand { padding: 4px 8px 10px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.side nav a svg { width: 18px; height: 18px; flex: none; }
.side nav a:hover { background: var(--card); color: var(--text); }
.side nav a[aria-current="page"] { background: var(--card); color: var(--accent); box-shadow: var(--shadow); font-weight: 600; }
.side .who-box { margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; }
.side .count { margin-left: auto; font-family: var(--mono); font-size: 12px; background: var(--btn); color: #fff; border-radius: 999px; padding: 1px 8px; }
.app-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--line); min-height: 64px; flex-wrap: wrap; }
.app-top .title { font-weight: 600; margin-right: auto; }
.app-body { padding: 28px 24px 56px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 30px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 720px; }
@media (max-width: 820px) {
  .side { max-width: none; flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; gap: 8px; }
  .side nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; max-width: 100%; min-width: 0; }
  .side nav a { white-space: nowrap; }
  .side .who-box { display: none; }
  .app-body { padding: 20px 16px 48px; }
  .app-top { padding: 10px 16px; }
}
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi-row .kpi { background: var(--card); box-shadow: var(--shadow); }
.kpi-row .kpi.main { background: var(--btn); border-color: var(--btn); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 18px; }
.panel-body { padding: 20px; }
.panel .table-box { border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1020px) { .cols-2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; min-width: 0; }
.progress { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: var(--btn); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--card); margin-top: 2px; }
.timeline li.done .dot { background: var(--btn); border-color: var(--btn); }
.timeline li.now .dot { border-color: var(--btn); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline li.now { font-weight: 600; }
.kv { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); gap: 8px 14px; font-size: 15px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.auth-wrap { min-height: calc(100vh - 69px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(900px 400px at 50% -10%, var(--accent-soft), transparent 70%); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.code-pill { font-family: var(--mono); font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 8px; font-size: 14px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: var(--mono); font-size: 14px; }
.inline-form { display: inline; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.toolbar .field { min-width: 160px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 14px 20px; }


/* Inteligencia (ML e IA) */
.badge.grade b { font-family: var(--mono); }
.grade-A { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.grade-B { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.grade-C { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.grade-D { background: var(--bg-soft); color: var(--muted); }
.ai-panel .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.ico-spark { width: 18px; height: 18px; color: var(--accent); }
.ai-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 520px) { .ai-top { grid-template-columns: 1fr; justify-items: start; } }
.gauge { width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--btn) var(--deg), var(--bg-soft) 0); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.gauge-in { width: 84px; height: 84px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; }
.gauge-in b { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.gauge-in small { font-size: 13px; color: var(--muted); }
.ai-h { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin: 18px 0 8px; }
.reasons, .tips, .flags, .actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reasons li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.reasons li.up { background: var(--ok-soft); color: var(--ok); }
.reasons li.down { background: var(--bad-soft); color: var(--bad); }
.tips li, .flags li { font-size: 14px; padding: 8px 12px 8px 30px; border-radius: 10px; background: var(--bg-soft); position: relative; }
.tips li::before { content: '→'; position: absolute; left: 11px; color: var(--accent); font-weight: 700; }
.flags li::before { content: '!'; position: absolute; left: 12px; color: var(--warn); font-weight: 700; }
.actions li a { display: block; padding: 11px 14px 11px 34px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 14px; position: relative; background: var(--bg); }
.actions li a:hover { border-color: var(--accent); }
.actions li a::before { content: ''; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--line-strong); }
.actions li.p1 a::before { background: var(--bad); }
.actions li.p2 a::before { background: var(--warn); }
.actions li.p3 a::before { background: var(--accent); }
.fc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.fc-col { display: grid; gap: 4px; text-align: center; min-width: 0; }
.fc-bars { height: 120px; display: flex; gap: 6px; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.fc-bars i { display: block; width: 26px; min-height: 2px; border-radius: 6px 6px 0 0; }
.fc-rec, .legend .fc-rec { background: var(--btn); }
.fc-pipe, .legend .fc-pipe { background: var(--accent-soft); border: 1px solid var(--accent); }
.fc-v { font-family: var(--mono); font-weight: 600; font-size: 15px; margin-top: 6px; overflow-wrap: anywhere; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ai-draft { font-family: var(--font); font-size: 14px; line-height: 1.55; min-height: 240px; background: var(--bg-soft); }
.weight-bar { display: inline-block; height: 8px; border-radius: 4px; vertical-align: middle; }


/* Directorio de consultores */
.c-hero h1 { max-width: 900px; }
.c-search { display: flex; gap: 10px; margin-top: 22px; max-width: 760px; flex-wrap: wrap; }
.c-search input { flex: 1 1 320px; min-height: 52px; font-size: 17px; }
.c-search .btn { min-height: 52px; }
.c-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.c-layout > aside { position: sticky; top: 88px; }
@media (max-width: 960px) { .c-layout { grid-template-columns: 1fr; } .c-layout > aside { position: static; } }
.c-filters { gap: 14px; }
.c-filters .btn { width: 100%; }
.c-card { display: flex; flex-direction: column; gap: 12px; }
.c-card .c-top { display: flex; gap: 14px; align-items: center; }
.c-card h3 { font-size: 18px; margin: 0 0 4px; }
.c-card h3 a { color: var(--text); text-decoration: none; }
.c-card h3 a:hover { color: var(--accent); }
.c-card .btn { align-self: flex-start; }
.c-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.c-why { display: flex; align-items: center; gap: 6px; }
.c-why svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
img.c-photo { border-radius: 16px; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--bg-soft); }
.c-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.c-head h1 { margin: 0 0 6px; }
.c-h2 { font-size: 19px; margin-bottom: 12px; }
.c-services { list-style: none; margin: 0; padding: 0; display: grid; }
.c-services li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.c-services li:last-child { border-bottom: 0; }
.c-tool { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.c-tool-card { display: flex; flex-direction: column; gap: 8px; }
.c-tool-card.rec { border-color: var(--accent); }
.c-tool-card .btn { align-self: flex-start; margin-top: auto; }
.c-cat .ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.c-cat .ico svg { width: 22px; height: 22px; }
.c-cat ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.c-cat li a { color: var(--muted); text-decoration: none; font-size: 15px; display: inline-block; padding: 3px 0; }
.c-cat li a:hover { color: var(--accent); text-decoration: underline; }
.c-spec-groups { display: grid; gap: 8px; }
.c-spec-groups details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.c-spec-groups summary { cursor: pointer; padding: 12px 14px; font-weight: 600; min-height: 44px; }
.c-spec-groups .checks { padding: 0 12px 12px; }
.c-svc { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.c-photo-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.c-similar { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.c-similar li { display: flex; gap: 12px; align-items: center; }
.c-contact { position: sticky; top: 88px; }
@media (max-width: 1020px) { .c-contact { position: static; } }
a.badge { text-decoration: none; }
a.badge:hover { border-color: var(--accent); color: var(--accent); }

@media print {
  .site-header, .site-footer, .wa-float, .side, .app-top, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.btn .ico-spark { color: currentColor; }

/* ======================= Comunidad y Programa de Aliados (v1.3) ======================= */
.h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 12px; }
.h3 { font-size: 20px; margin-bottom: 10px; }
.h4 { font-size: 16px; margin-bottom: 8px; }
.right { text-align: right; }
section.block.tight { padding: 36px 0 64px; }
.check-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-list svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.num-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { font-weight: 600; color: var(--text); text-decoration: none; }
.mini-list a:hover { color: var(--accent); }
table.data.compact td { padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.data.compact tr:last-child td { border-bottom: 0; }
.panel-head.plain { padding: 0 0 12px; border-bottom: 0; }
.panel-head.plain h2 { font-size: 22px; }
.page-head-pub { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head-pub .btn { flex: none; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px; align-items: start; }
.form-layout.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
.form-layout > aside { position: sticky; top: 88px; }
@media (max-width: 960px) { .form-layout, .form-layout.wide { grid-template-columns: 1fr; } .form-layout > aside { position: static; } }
.tips-card h2 { margin-bottom: 4px; }
.reward-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--partner-soft); color: var(--partner); }
.reward-note svg { width: 22px; height: 22px; flex: none; }
.reward-note p { color: var(--text); }
.link-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.link-card .ico, .benefit .ico, .offer .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.link-card .ico svg, .benefit .ico svg, .offer .ico svg { width: 24px; height: 24px; }
.link-card .more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 15px; padding-top: 8px; }
.link-card.accent { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), var(--card) 70%); }

/* Fotos */
picture.ph { display: block; overflow: hidden; border-radius: 18px; background: var(--bg-soft); }
picture.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Autor y avatares */
.author { display: flex; gap: 10px; align-items: center; min-width: 0; }
.author .av { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent); }
.author .av-alobri { background: var(--btn); color: #fff; }
.author .who-l { min-width: 0; }
.author .nm { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.author .nm .badge { padding: 2px 8px; font-size: 12px; }
.badge.official { background: var(--btn); color: #fff; border-color: transparent; }
.badge.cons-tag { background: var(--partner-soft); color: var(--partner); border-color: transparent; }
.badge.rank-explorador { background: var(--bg-soft); }
.badge.rank-colaborador { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.rank-impulsor { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.rank-embajador { background: var(--partner-soft); color: var(--partner); border-color: transparent; }
.badge.rank-pilar { background: linear-gradient(90deg, #4245e6, #7c3aed); color: #fff; border-color: transparent; }

/* Inicio de la comunidad */
.com-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 380px at 90% 0%, var(--accent-soft), transparent 70%); }
.com-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.com-hero h1 { font-size: clamp(34px, 4.8vw, 56px); letter-spacing: -0.035em; margin: 14px 0 18px; }
.com-hero .lead { font-size: clamp(17px, 1.9vw, 19px); color: var(--muted); max-width: 620px; }
.com-hero .btn-row { margin-top: 26px; }
.com-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.com-mosaic .ph { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.com-mosaic .m2, .com-mosaic .m4 { transform: translateY(28px); }
.me-strip { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.me-rank { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.me-rank b { font-family: var(--mono); font-size: 20px; }
.me-rank.big b { font-size: 30px; }
.stat-band { border-bottom: 1px solid var(--line); background: var(--card); }
.stat-band .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-band .sb { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); display: grid; gap: 4px; }
.stat-band .sb:last-child { border-right: 0; }
.stat-band b { font-family: var(--mono); font-size: 28px; color: var(--accent); }
.stat-band span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .com-hero .wrap { grid-template-columns: 1fr; } .com-mosaic { max-width: 520px; } .stat-band .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat-band .sb:nth-child(3) { border-right: 0; } }
@media (max-width: 560px) { .stat-band .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-band .sb { border-right: 0; border-bottom: 1px solid var(--line); } .com-mosaic .m2, .com-mosaic .m4 { transform: none; } }
.com-cols { gap: 36px; }
.shipped-list, .thread-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.shipped-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.shipped-list a, .thread-mini a { font-weight: 600; color: var(--text); text-decoration: none; }
.shipped-list a:hover, .thread-mini a:hover { color: var(--accent); }
.ship-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ship-ico svg { width: 18px; height: 18px; }
.thread-mini li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.small-empty { padding: 28px 18px; }
.small-empty p { margin: 0 auto; }
.rank-ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rank-ladder li { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); position: relative; }
.rank-ladder li b { font-family: var(--mono); font-size: 22px; }
.rank-ladder .badge { justify-self: start; }
.rank-ladder li.rank-pilar { border-color: #7c3aed; box-shadow: 0 0 0 3px color-mix(in srgb, #7c3aed 18%, transparent); }
@media (max-width: 1020px) { .rank-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rank-ladder { grid-template-columns: 1fr; } }
.leaders { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.leaders li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.leaders li:nth-child(odd) { background: var(--bg-soft); }
.leaders li.me { background: var(--accent-soft); }
.leaders .pos { font-family: var(--mono); font-weight: 600; color: var(--faint); }
.leaders li:nth-child(-n+3) .pos { color: var(--accent); }
.leaders b { font-family: var(--mono); }
.leaders.big li { padding: 12px 14px; font-size: 16px; }

/* Ideas */
.seg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.seg-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; background: var(--card); display: inline-flex; gap: 6px; align-items: center; }
.seg-tabs a[aria-current="page"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.seg-tabs .count, .cat-nav .count, .rm-col h2 .count { font-family: var(--mono); font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.seg-tabs a[aria-current="page"] .count { background: rgba(255,255,255,.2); color: #fff; }
.com-filters { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; margin-bottom: 20px; }
@media (max-width: 900px) { .com-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .com-filters { grid-template-columns: 1fr; } }
.idea-list { display: grid; gap: 12px; }
.idea-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.idea-row h3 { font-size: 18px; margin: 8px 0 6px; }
.idea-row h3 a { color: var(--text); text-decoration: none; }
.idea-row h3 a:hover { color: var(--accent); }
.idea-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.idea-top .badge { padding: 3px 9px; font-size: 12px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.idea-meta span { display: inline-flex; gap: 4px; align-items: center; }
.idea-meta .prio { color: var(--accent); font-weight: 600; }
.vote-box { width: 64px; min-height: 72px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font: inherit; text-decoration: none; padding: 6px; }
.vote-box svg { width: 20px; height: 20px; color: var(--accent); }
.vote-box b { font-family: var(--mono); font-size: 18px; }
.vote-box:hover { border-color: var(--accent); color: var(--text); }
.vote-box.on { background: var(--btn); border-color: var(--btn); color: #fff; }
.vote-box.on svg { color: #fff; }
.vote-box.closed { cursor: default; opacity: .75; }
.vote-box.closed:hover { border-color: var(--line-strong); }
.badge.st-lanzada { background: var(--ok-soft); color: var(--ok); }
.badge.st-en_desarrollo { background: var(--warn-soft); color: var(--warn); }
.badge.st-planeada, .badge.st-en_revision { background: var(--accent-soft); color: var(--accent); }
.similar-box { margin: -6px 0 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--warn); background: var(--warn-soft); }
.similar-box h3 { font-size: 15px; margin-bottom: 4px; color: var(--warn); }
.similar-box ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.similar-box a { font-weight: 600; }
.similar-box .tiny { color: var(--muted); }
.idea-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 12px; }
.idea-head h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 14px; }
.idea-progress { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: st; }
.idea-progress li { position: relative; padding-top: 14px; font-size: 13px; color: var(--faint); font-weight: 600; }
.idea-progress li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 999px; background: var(--line); }
.idea-progress li.done::before { background: var(--ok); }
.idea-progress li.now::before { background: var(--btn); }
.idea-progress li.now { color: var(--accent); }
.idea-progress li.done { color: var(--ok); }
.idea-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
@media (max-width: 960px) { .idea-layout { grid-template-columns: 1fr; } .idea-layout > aside { position: static; } }
@media (max-width: 560px) { .idea-progress { grid-template-columns: repeat(5, minmax(0, 1fr)); } .idea-progress li span { display: none; } .idea-progress li.now span { display: inline; white-space: nowrap; } }
.official-card { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--card) 120px); }
.official-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.official-h svg.logo { height: 20px; }
.release { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--ok-soft); }
.release b { color: var(--ok); }
.release p { color: var(--text); margin: 6px 0 0; }
.comments { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
.comments li { padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; }
.comments li.official { border-color: var(--accent); background: var(--accent-soft); }
.comments .prose p { color: var(--text); margin: 0 0 8px; }
.reply-form { margin-top: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rm-col { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.rm-col h2 { font-size: 17px; display: flex; gap: 8px; align-items: center; }
.rm-col h2 svg { width: 20px; height: 20px; color: var(--accent); }
.rm-en_desarrollo h2 svg { color: var(--warn); }
.rm-lanzada h2 svg { color: var(--ok); }
.rm-card { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.rm-card:hover { border-color: var(--accent); color: var(--text); }
.rm-card span { display: inline-flex; gap: 4px; align-items: center; }
.rm-empty { padding: 12px 0; }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } }

/* Foro */
.gate { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding: 0; overflow: hidden; }
.gate-photos .ph { border-radius: 0; height: 100%; min-height: 260px; }
.gate-body { padding: 36px; display: grid; gap: 14px; align-content: center; }
.gate-body h1 { font-size: clamp(24px, 3vw, 32px); }
@media (max-width: 760px) { .gate { grid-template-columns: 1fr; } .gate-photos .ph { min-height: 180px; max-height: 220px; } .gate-body { padding: 24px; } }
.forum-layout { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; align-items: start; }
.cat-nav { display: grid; gap: 2px; position: sticky; top: 88px; }
.cat-nav a { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.cat-nav a:hover { background: var(--bg-soft); color: var(--text); }
.cat-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 860px) { .forum-layout { grid-template-columns: 1fr; } .cat-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .cat-nav a { white-space: nowrap; border: 1px solid var(--line); } }
.forum-search { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 14px; align-items: center; }
.forum-search input[type="search"] { flex: 1 1 220px; }
.thread-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.thread-list li { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.thread-list li:last-child { border-bottom: 0; }
.thread-list li.pinned { background: var(--accent-soft); }
.th-main { display: grid; gap: 6px; min-width: 0; }
.th-top { display: flex; gap: 6px; flex-wrap: wrap; }
.th-top .badge { font-size: 12px; padding: 3px 9px; }
.th-title { font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.th-title:hover { color: var(--accent); }
.th-stats { display: flex; gap: 16px; flex: none; }
.th-stats span { display: grid; text-align: center; min-width: 52px; }
.th-stats b { font-family: var(--mono); font-size: 17px; }
.th-stats small { font-size: 12px; color: var(--faint); }
@media (max-width: 640px) { .thread-list li { flex-direction: column; align-items: flex-start; } .th-stats { gap: 12px; } .th-stats span { min-width: 0; display: flex; gap: 4px; align-items: baseline; } }
.th-h1 { font-size: clamp(26px, 3.6vw, 38px); margin-top: 12px; }
.post { list-style: none; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: grid; gap: 14px; }
.post.first { box-shadow: var(--shadow); }
.post.official { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--card) 90px); }
.post.solution { border-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 15%, transparent); }
.post .prose p { color: var(--text); }
.post-h { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.post-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.posts { padding: 0; margin: 0; display: grid; gap: 12px; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.like-btn svg { width: 16px; height: 16px; }
.like-btn:hover { border-color: var(--bad); color: var(--bad); }
.like-btn.on { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.like-btn.on svg { fill: currentColor; }
.like-btn.static { cursor: default; }
.like-btn.static:hover { border-color: var(--line-strong); color: var(--muted); }

/* Perfil del miembro */
.me-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.me-head .author .av { width: 56px; height: 56px; font-size: 20px; }
.me-head .author .nm { font-size: 22px; }
.rank-progress { margin-top: 18px; display: grid; gap: 6px; max-width: 520px; }
.badge-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-grid li { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--partner-soft); }
.badge-grid svg { width: 22px; height: 22px; color: var(--partner); }
.kpi-row.compact { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 0; }
.kpi-row.compact .kpi { box-shadow: none; padding: 12px; }
.kpi-row.compact .kpi .v { font-size: 20px; }
.notify-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* Página /aliados */
.ally-hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #0a0f1c; }
.ally-hero-bg { position: absolute; inset: 0; }
.ally-hero-bg .ph { border-radius: 0; width: 100%; height: 100%; }
.ally-hero-bg img { object-position: 70% 30%; }
.ally-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,26,.94) 0%, rgba(8,12,26,.84) 40%, rgba(8,12,26,.25) 75%, rgba(8,12,26,.05) 100%); }
.ally-hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.ally-hero-text { max-width: 640px; color: #fff; }
.ally-hero .eyebrow { color: #b9bbff; }
.ally-hero h1 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.035em; margin: 14px 0 18px; color: #fff; }
.ally-hero .lead { font-size: clamp(17px, 2vw, 20px); color: #d6d9e6; }
.ally-hero .btn-row { margin-top: 28px; }
.btn.on-photo { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn.on-photo:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.hero-chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 10px 18px; flex-wrap: wrap; }
.hero-chips li { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: #e8eaf5; }
.hero-chips svg { width: 18px; height: 18px; color: #6ee7b7; }
@media (max-width: 760px) { .ally-hero { min-height: 0; } .ally-hero-bg img { object-position: 78% 30%; } .ally-hero-bg::after { background: linear-gradient(180deg, rgba(8,12,26,.72) 0%, rgba(8,12,26,.92) 55%, rgba(8,12,26,.96) 100%); } .ally-hero .wrap { padding-top: 56px; padding-bottom: 48px; } }
.benefit h3 { font-size: 19px; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.path { padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.path .path-ph { border-radius: 0; height: 100%; min-height: 320px; }
.path-body { padding: 24px; display: grid; gap: 8px; align-content: start; }
.path-body .kicker { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.path-body h3 { font-size: 22px; }
.path-body .btn-row { margin-top: 6px; }
@media (max-width: 1100px) { .paths { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .path { grid-template-columns: 1fr; } .path .path-ph { min-height: 0; aspect-ratio: 16 / 10; } .path .path-ph img { object-position: 50% 25%; } }
.cond-table th[scope="row"] { font-weight: 400; }
.cond-table td { white-space: nowrap; }
.proj-form .row2 { gap: 12px; }
.proj-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-top: 18px; padding: 10px 10px 0; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.proj-bars i { flex: 1; background: color-mix(in srgb, var(--btn) 55%, transparent); border-radius: 3px 3px 0 0; min-width: 2px; }
.proj-bars i.mk { background: var(--btn); }
.proj-axis { display: flex; justify-content: space-between; padding: 6px 4px 0; }
.proj-compare { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); }
.proj-compare p { color: var(--text); }
.proj-savings { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--partner-soft); }
.proj-savings .ico { color: var(--partner); flex: none; }
.proj-savings svg { width: 22px; height: 22px; }
.proj-savings p { color: var(--text); }
.switch-band { background: linear-gradient(135deg, #10163a 0%, #1d2280 55%, #3236c8 100%); color: #fff; }
.switch-band .eyebrow { color: #b9bbff; }
.switch-band h2 { font-size: clamp(30px, 3.8vw, 44px); margin: 10px 0 12px; }
.switch-band .lead { color: #d6d9f5; font-size: 18px; max-width: 680px; }
.switch-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 32px; }
.switch-band .btn-primary { background: #fff; color: #2b2fb8; }
.switch-band .btn-primary:hover { background: #eef0ff; color: #2b2fb8; }
.switch-band .tiny.muted { color: #c4c7ea; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.offer { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); display: grid; gap: 6px; align-content: start; }
.offer .ico { background: rgba(255,255,255,.12); color: #fff; }
.offer .big { font-family: var(--mono); font-size: 30px; letter-spacing: -0.02em; }
.offer h3 { font-size: 17px; }
.offer p { color: #c9cdf0 !important; }
aside .offer-grid { grid-template-columns: 1fr; gap: 10px; }
aside .offer { background: var(--bg-soft); border-color: var(--line); color: var(--text); padding: 16px; grid-template-columns: 40px 1fr; column-gap: 12px; }
aside .offer .ico { background: var(--accent-soft); color: var(--accent); width: 40px; height: 40px; grid-row: span 3; }
aside .offer .big { font-size: 20px; }
aside .offer p { color: var(--muted) !important; }
.community-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lead-s { font-size: 18px; max-width: 560px; }
.com-points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.com-points li { display: flex; gap: 14px; align-items: flex-start; }
.com-points .n { width: 34px; height: 34px; border-radius: 10px; background: var(--btn); color: #fff; font-family: var(--mono); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mini-stats { display: flex; gap: 28px; margin: 8px 0 24px; flex-wrap: wrap; }
.mini-stats div { display: grid; }
.mini-stats b { font-family: var(--mono); font-size: 28px; color: var(--accent); }
.idea-peek { margin-top: 28px; }
.photo-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo-wall .ph { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.photo-wall .w2, .photo-wall .w5 { transform: translateY(26px); }
@media (max-width: 900px) { .community-split { grid-template-columns: 1fr; } .photo-wall { max-width: 560px; } }
@media (max-width: 560px) { .photo-wall .w2, .photo-wall .w5 { transform: none; } }
.commit h3 { font-size: 17px; margin-bottom: 6px; }
.kind-pick { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kind-pick legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.kind-opt { position: relative; cursor: pointer; }
.kind-opt input { position: absolute; opacity: 0; }
.kind-opt > span { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); height: 100%; }
.kind-opt svg { width: 24px; height: 24px; color: var(--accent); }
.kind-opt small { color: var(--muted); font-size: 13px; }
.kind-opt input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--accent-soft); }
.kind-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.kind-pick.has-err .kind-opt > span { border-color: var(--bad); }
@media (max-width: 560px) { .kind-pick { grid-template-columns: 1fr; } }
[data-kind-group][hidden] { display: none; }
.thanks { text-align: center; padding: 44px 28px; display: grid; gap: 12px; justify-items: center; }
.thanks .ico { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.thanks .ico.ok { background: var(--ok-soft); color: var(--ok); }
.thanks .ico svg { width: 30px; height: 30px; }
.thanks h1 { font-size: 30px; }
.code-pill.big { font-size: 18px; padding: 5px 12px; }
.activate { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; }
.act-ph { aspect-ratio: 4 / 5; }
@media (max-width: 640px) { .activate { grid-template-columns: 1fr; } .act-ph { max-width: 180px; } }
.prio-pill { display: inline-block; min-width: 40px; text-align: center; padding: 4px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-family: var(--mono); }
.tracks-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.proj-form .row2 { align-items: start; }
.mini-list li > a { flex: 1 1 260px; }
.promo-band .photo-wall { order: 0; } @media (max-width: 900px) { .promo-band .photo-wall { order: 2; } }
.row2, .row3 { align-items: start; }
@media (min-width: 1281px) and (max-width: 1520px) { .site-header .brand .brand-tag { display: none; } .main-nav a { padding: 10px 9px; font-size: 14.5px; } .site-header .wrap { gap: 14px; } }

/* ======================= Red de partners, agenda y contenido (v1.4) ======================= */
.terms-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; margin-bottom: 22px; border-radius: var(--radius); border: 1px solid var(--warn); background: var(--warn-soft); }
.terms-banner h2 { font-size: 17px; display: flex; gap: 8px; align-items: center; color: var(--warn); }
.terms-banner h2 svg { width: 20px; height: 20px; }
.terms-banner ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--text); }
.terms-banner form { display: grid; gap: 10px; justify-items: start; max-width: 300px; }
@media (max-width: 860px) { .terms-banner { grid-template-columns: 1fr; } }
.health { display: inline-flex; align-items: center; gap: 8px; min-width: 92px; }
.health i { display: block; height: 8px; border-radius: 999px; flex: 1; background: currentColor; opacity: .85; max-width: 56px; }
.health b { font-family: var(--mono); font-size: 13px; color: var(--text); }
.health.ok { color: var(--ok); } .health.warn { color: var(--warn); } .health.bad { color: var(--bad); }
.mini-bar { height: 6px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; width: 100%; min-width: 70px; }
.mini-bar i { display: block; height: 100%; background: var(--btn); }
.mini-bar i.done { background: var(--ok); }
.goal-cell { display: grid; gap: 4px; min-width: 80px; }
.net-table .pos { font-weight: 700; color: var(--faint); }
.net-table tbody tr:nth-child(-n+3) .pos { color: var(--accent); }
.net-top { gap: 20px; }
.attack .panel-head h2, .panel-head h2 { display: flex; gap: 8px; align-items: center; }
.panel-head h2 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alert-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.alert-item .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--warn); }
.alert-item.k-expiring .dot, .alert-item.k-inactive .dot { background: var(--bad); }
.alert-item.k-invite_pending .dot { background: var(--accent); }
.alert-item p { font-size: 14px; }
.alert-actions { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.alert-actions .btn svg { width: 16px; height: 16px; }
.links-body .h4 { margin-top: 2px; }
.links-body .copy-row { margin-top: 8px; }
.link-stats { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 10px 0; font-size: 14px; color: var(--muted); }
.link-stats b { color: var(--text); font-family: var(--mono); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row .btn svg { width: 16px; height: 16px; }
.slug-edit { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.slug-edit summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }
.inline-slug { margin-top: 12px; display: grid; gap: 10px; justify-items: start; }
.slug-input { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; }
.slug-input input { flex: 1 1 160px; }
.net-empty { border: 0; padding: 28px 12px; }
.legal-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.legal-note svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.legal-note p { color: var(--muted); }
.legal-inline { margin: -4px 0 6px; }
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .agenda-layout { grid-template-columns: 1fr; } }
.slot-picker { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; background: var(--bg); }
.slot-picker legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.slot-picker.has-err { border-color: var(--bad); }
.slot-days { display: grid; gap: 14px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.slot-day h3 { font-size: 14px; margin-bottom: 8px; color: var(--muted); } .slot-day h3::first-letter { text-transform: uppercase; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 14px; background: var(--card); }
.slot:hover span { border-color: var(--accent); }
.slot input:checked + span { background: var(--btn); border-color: var(--btn); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.slot.full { cursor: not-allowed; }
.slot.full span { opacity: .5; text-decoration: line-through; }
.meet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meet-item { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--warn); background: var(--bg); }
.meet-item.st-confirmada { border-left-color: var(--ok); }
.meet-item.st-cancelada { border-left-color: var(--line-strong); opacity: .75; }
.meet-item.st-realizada { border-left-color: var(--accent); }
.meet-when { display: grid; gap: 2px; }
.meet-when b { font-size: 15px; } .meet-when b::first-letter { text-transform: uppercase; }
.meet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.meet-actions .btn svg { width: 16px; height: 16px; }
.content-link { display: grid; grid-template-columns: auto minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent-soft); margin-bottom: 18px; }
.content-link > svg { width: 24px; height: 24px; color: var(--accent); }
@media (max-width: 860px) { .content-link { grid-template-columns: auto 1fr; } .content-link .copy-row { grid-column: 1 / -1; } }
.content-filter { border: 0; padding: 0 0 16px; }
.seg-tabs a svg { vertical-align: -2px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.asset { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.asset.featured { border-color: var(--accent); }
.asset .media { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0b1220; border: 0; }
.asset .media.tall { aspect-ratio: 4 / 5; object-fit: cover; }
.asset video.media.tall { object-fit: contain; }
.asset .media.audio { aspect-ratio: auto; display: grid; gap: 12px; justify-items: center; padding: 26px 16px; background: linear-gradient(135deg, #1d2280, #4245e6); color: #fff; }
.asset .media.audio svg { width: 40px; height: 40px; }
.asset .media.audio audio { width: 100%; }
.asset .media.placeholder { display: flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); }
.asset .media.placeholder svg { width: 44px; height: 44px; }
.asset-body { padding: 16px; display: grid; gap: 10px; align-content: start; flex: 1; }
.asset-body h3 { font-size: 17px; }
.asset-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.asset-tags .badge { font-size: 12px; padding: 3px 8px; }
.caption summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.caption textarea { width: 100%; margin: 8px 0; font-size: 14px; }
.asset-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.asset-actions .btn svg { width: 16px; height: 16px; }
.asset-preview .media { width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; background: #0b1220; display: block; }
.asset-preview .media.audio { padding: 24px; display: grid; gap: 10px; justify-items: center; color: #fff; background: linear-gradient(135deg, #1d2280, #4245e6); }
.asset-preview .media.audio svg { width: 36px; height: 36px; }
.upload-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 14px; margin: 0; display: grid; gap: 8px; }
.upload-box legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.upload-box progress { width: 100%; }
.upload-status { color: var(--muted); }
.upload-status.ok { color: var(--ok); } .upload-status.bad { color: var(--bad); }
.net-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 14px; margin-bottom: 24px; }
.ns-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); min-width: 0; flex-wrap: wrap; }
.ns-item > div { display: grid; gap: 2px; }
.ns-item b { font-size: 16px; }
.ns-item b.num { font-family: var(--mono); font-size: 20px; }
.ns-item .btn { margin-left: auto; }
.ns-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ns-ico svg { width: 22px; height: 22px; }
.ns-item .copy-row { margin-top: 4px; }
@media (max-width: 1200px) { .net-strip { grid-template-columns: 1fr 1fr; } .ns-item.wide { grid-column: 1 / -1; } }
@media (max-width: 700px) { .net-strip { grid-template-columns: 1fr; } }
/* Página personalizada del partner */
.pl-hero { padding: 48px 0 56px; background: radial-gradient(900px 380px at 0% 0%, var(--accent-soft), transparent 70%); border-bottom: 1px solid var(--line); }
.pl-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.rec-badge { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 14px; }
.rec-badge svg { width: 18px; height: 18px; }
.pl-text h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.035em; margin: 18px 0 14px; }
.pl-text .lead { font-size: 18px; color: var(--muted); }
.pl-photo { margin-top: 24px; }
.pl-photo .ph { aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.pl-form { display: grid; gap: 14px; position: sticky; top: 88px; }
.pl-form .btn-block { width: 100%; }
@media (max-width: 960px) { .pl-hero .wrap { grid-template-columns: 1fr; } .pl-form { position: static; } }
.alert-item { grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; padding: 10px 12px; }
.alert-item .dot { margin-top: 0; }
.alert-actions { grid-column: 3; flex-wrap: nowrap; }
@media (max-width: 1280px) { .alert-item { grid-template-columns: 10px minmax(0, 1fr); } .alert-actions { grid-column: 2; flex-wrap: wrap; } }
table.data.net-table th, table.data.net-table td { padding: 11px 10px; font-size: 14px; }
table.data.net-table td:has(> .cell-title) { min-width: 180px; }
.net-table .badge.lvl { font-size: 12px; padding: 2px 8px; }
.asset .media, .asset .media.tall { aspect-ratio: 1 / 1; object-fit: contain; background: #0b1220; }
.asset img.media[src*="poster"], .asset img.media.doc { background: var(--bg-soft); }
.net-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ns-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px 14px; align-items: start; flex-wrap: nowrap; }
.ns-body { display: grid; gap: 4px; min-width: 0; }
.ns-body b.num { font-size: 22px; }
.ns-body b small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); }
.ns-body b.when { font-size: 15px; }
.ns-body b.when::first-letter { text-transform: uppercase; }
.ns-foot { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.ns-foot .copy-row { width: 100%; margin: 0; }
.ns-item .btn { margin-left: 0; }
.ns-foot .btn svg { width: 16px; height: 16px; }
@media (max-width: 1200px) { .net-strip { grid-template-columns: 1fr 1fr; } .net-strip .ns-item:last-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .net-strip { grid-template-columns: 1fr; } }

/* ======================= Menú lateral fijo de las consolas (v1.5) ======================= */
.app { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; flex-wrap: nowrap; }
.side { position: sticky; top: 0; height: 100vh; max-width: none; flex: none; overflow: hidden; display: flex; flex-direction: column; gap: 0; padding: 0; border-right: 1px solid var(--line); background: var(--bg-soft); z-index: 30; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.side-head .brand { padding: 0; }
.side-close { display: none; }
.side-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 16px; display: grid; gap: 2px; align-content: start; scrollbar-width: thin; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 40px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14.5px; position: relative; }
.side-nav a svg { width: 18px; height: 18px; flex: none; }
.side-nav a:hover { background: var(--card); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--card); color: var(--accent); box-shadow: var(--shadow); font-weight: 600; }
.side-nav a[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--btn); }
.side-nav .count { margin-left: auto; font-family: var(--mono); font-size: 12px; background: var(--btn); color: #fff; border-radius: 999px; padding: 1px 8px; }
.nav-group { display: grid; gap: 2px; margin-top: 10px; }
.nav-group:first-child { margin-top: 0; }
.nav-h { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 12px 4px; }
.side .who-box { margin: 0 12px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; flex: none; }
.who-name { font-weight: 600; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.side-open { display: none; }
.side-backdrop { display: none; }
@media (max-width: 1023px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: 100%; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 0 10px 40px rgba(0,0,0,.25); max-width: none; flex-basis: auto; border-bottom: 0; }
  .side nav, .side-nav { display: grid; overflow-y: auto; overflow-x: hidden; }
  .side nav a, .side-nav a { white-space: normal; }
  .side .who-box { display: block; }
  .side-is-open .side { transform: none; }
  .side-is-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(5, 8, 18, .5); z-index: 25; }
  .side-is-open { overflow: hidden; }
  .side-close, .side-open { display: inline-flex; }
}
@media (max-width: 560px) { .hide-sm { display: none; } .app-top .lang-switch a { padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
.locked-field { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--bg-soft); color: var(--text); font-weight: 600; }
.locked-field svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.country-chip { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); }
.country-chip svg { width: 14px; height: 14px; }

/* ================= v1.5: red, gráficas, agenda semanal, novedades y contenido multilenguaje ================= */
.parent-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, var(--accent-soft), var(--card) 70%); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.parent-card > div:not(.btn-row) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.parent-card b { font-size: 17px; }
.parent-card .btn-row { margin-left: auto; }

/* Mapa de la red */
.net-map { display: flex; flex-direction: column; align-items: center; gap: 0; overflow-x: auto; padding: 4px 2px 8px; }
.tree-root { position: relative; padding-bottom: 22px; }
.tree-root::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 22px; background: var(--line-strong); }
.tree-level { list-style: none; margin: 0; padding: 22px 0 0; display: flex; gap: 14px; justify-content: center; position: relative; flex-wrap: nowrap; }
.tree-level > li { position: relative; display: flex; flex-direction: column; align-items: center; }
.tree-level > li::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--line-strong); }
.tree-level > li::after { content: ""; position: absolute; top: -22px; height: 2px; background: var(--line-strong); left: -7px; right: -7px; }
.tree-level > li:first-child::after { left: 50%; }
.tree-level > li:last-child::after { right: 50%; }
.tree-level > li:only-child::after { display: none; }
.tree-level.sub { padding-top: 22px; gap: 8px; }
.tree-level.sub::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 0; }
.node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 128px; max-width: 168px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); border-top-width: 4px; background: var(--card); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
a.node:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.node .nm { font-weight: 600; font-size: 14px; line-height: 1.25; }
.node.root { border-top-color: var(--accent); background: var(--accent-soft); }
.node.ok { border-top-color: var(--ok); } .node.warn { border-top-color: var(--warn); } .node.bad { border-top-color: var(--bad); }
.nstats { display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.nstats span { display: inline-flex; align-items: center; gap: 3px; }

/* Gráficas */
figure.chart { margin: 0; }
figure.chart svg { width: 100%; height: auto; display: block; }
figure.chart .b1 { fill: var(--accent); }
figure.chart .b2 { fill: var(--ok); }
figure.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
figure.chart .v { font: 600 11px var(--mono); fill: var(--text); }
figure.chart .m { font: 500 11px var(--sans, inherit); fill: var(--muted); text-transform: capitalize; }
figure.chart .legend { display: flex; gap: 16px; justify-content: center; margin-top: 6px; color: var(--muted); }
figure.chart .legend span { display: inline-flex; align-items: center; gap: 6px; }
figure.chart .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
figure.chart .legend i.b1 { background: var(--accent); } figure.chart .legend i.b2 { background: var(--ok); }
ol.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ol.funnel li { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 10px; font-size: 14px; }
ol.funnel .fl { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
ol.funnel .fb { height: 12px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
ol.funnel .fb i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
ol.funnel .st-ganado .fb i { background: var(--ok); }
ol.funnel .st-perdido .fb i { background: var(--bad); }
ol.funnel b { text-align: right; font-family: var(--mono); }

/* Agenda semanal */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.wday { border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: flex; flex-direction: column; min-height: 132px; overflow: hidden; }
.wday.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.wh { font-size: 13px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); }
.wh::first-letter { text-transform: uppercase; }
.wday.today .wh { background: var(--accent-soft); color: var(--accent); }
.wcell { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wchip { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 8px; font-size: 12px; line-height: 1.3; text-decoration: none; color: var(--text); background: var(--warn-soft); border-left: 3px solid var(--warn); }
.wchip.st-confirmada { background: var(--ok-soft); border-left-color: var(--ok); }
.wchip b { font-family: var(--mono); font-size: 12px; }
.wchip .tiny { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wchip:hover { filter: brightness(.97); color: var(--text); }
.wempty { color: var(--line-strong); text-align: center; margin: auto; font-size: 20px; }
@media (max-width: 900px) {
  .week { grid-template-columns: 1fr; gap: 6px; }
  .wday { min-height: 0; flex-direction: row; }
  .wh { border-bottom: 0; border-right: 1px solid var(--line); min-width: 92px; display: flex; align-items: center; }
  .wcell { flex-direction: row; flex-wrap: wrap; }
  .wempty { margin: 0; }
}

/* Novedades */
ul.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
ul.feed .fi + .fi { border-top: 1px solid var(--line); }
ul.feed .fi > a, ul.feed .fi > div { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; color: var(--text); text-decoration: none; border-radius: 10px; }
ul.feed .fi > a:hover { background: var(--bg-soft); }
.fi-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--muted); }
.fi-ico svg { width: 17px; height: 17px; }
.fi-ico.k-net_won, .fi-ico.k-won, .fi-ico.k-paid, .fi-ico.k-paid_net, .fi-ico.k-meeting_realizada { background: var(--ok-soft); color: var(--ok); }
.fi-ico.k-net_lead, .fi-ico.k-net_joined, .fi-ico.k-content, .fi-ico.k-content_for_you, .fi-ico.k-meeting_confirmada { background: var(--accent-soft); color: var(--accent); }
.fi-ico.k-meeting_cancelada, .fi-ico.k-creq_rechazada { background: var(--bad-soft); color: var(--bad); }
.fi-ico.k-creq_en_produccion, .fi-ico.k-lead_meeting { background: var(--warn-soft); color: var(--warn); }
.fi-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; }
.fi.unread .fi-text { font-weight: 600; }
.fi-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }
.feed-day { margin-bottom: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 6px; }
.feed-day h2 { margin: 0 0 4px; color: var(--muted); }
.feed-day h2::first-letter { text-transform: uppercase; }

/* Contenido: alcance, idioma, kits y solicitudes */
.content-scope { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); margin: 6px 0 18px; flex-wrap: wrap; }
.content-scope a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; min-height: 42px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.content-scope a svg { width: 16px; height: 16px; }
.content-scope a[aria-current="page"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.content-scope .count { font-family: var(--mono); font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; }
.content-filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 14px 0 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.content-filters .inline-form { margin-left: auto; }
.lang-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lang-chips > .tiny { margin-right: 4px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.lang-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; background: var(--card); }
.lang-chips a:hover { border-color: var(--accent); }
.lang-chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.lang-chips a .count { font-family: var(--mono); font-size: 11px; opacity: .8; }
.req-zone { margin-bottom: 24px; }
.req-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.req-form select, .req-form input { min-height: 36px; padding: 4px 8px; font-size: 13px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); }
.req-form input { min-width: 160px; }
.badge.lang-b { font-family: var(--mono); letter-spacing: .04em; background: var(--bg-soft); color: var(--text); border-color: var(--line-strong); }
.badge.partner-b { background: var(--accent); color: #fff; border-color: var(--accent); }
.asset.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.warn-text { color: var(--warn); }
@media (max-width: 640px) {
  .content-filters .inline-form { margin-left: 0; width: 100%; }
  ol.funnel li { grid-template-columns: 90px 1fr 30px; }
  .node { min-width: 112px; }
}
.side-nav { min-height: 0; }
.side .who-box { padding: 10px 12px; font-size: 13px; }
.side .who-box .tiny { font-size: 12px; }
@media (min-width: 1024px) and (max-height: 820px) { .side-nav a { min-height: 36px; padding: 6px 12px; } .nav-group { margin-top: 6px; } .nav-h { padding: 6px 12px 2px; } }
/* Tablas anchas de la red: encabezados en dos líneas y celdas más compactas para que quepan sin cortar. */
.net-table th, .net-leads th { white-space: normal; line-height: 1.25; font-size: 11px; vertical-align: bottom; }
.net-table th, .net-table td, .net-leads th, .net-leads td { padding: 11px 10px; }
.net-leads td .tiny { white-space: nowrap; }
table.data.net-table th, table.data.net-leads th { white-space: normal; min-width: 0; }
table.data.net-table th, table.data.net-table td, table.data.net-leads th, table.data.net-leads td { padding: 11px 9px; }
table.data.net-table .goal-cell { min-width: 84px; }
table.data.net-table .health { min-width: 0; }
table.data.net-table .health i { max-width: 40px; }
table.data.net-leads td:first-child { min-width: 150px; }
table.data.net-table .health i { flex: none; width: 36px; }
.week.compact { grid-template-columns: 1fr; gap: 6px; margin-bottom: 0; }
.week.compact .wday { min-height: 0; flex-direction: row; }
.week.compact .wh { border-bottom: 0; border-right: 1px solid var(--line); min-width: 96px; display: flex; align-items: center; }
.week.compact .wcell { flex-direction: row; flex-wrap: wrap; }
.week.compact .wchip { min-width: 150px; }
.week.compact .wempty { margin: 0 4px; }
.req-zone table.data td .badge { white-space: normal; }

/* ======================= v2.0: operación 24/7 ======================= */
/* Campana y avisos */
.icon-btn.bell { position: relative; }
.bell-n { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font: 600 11px/18px var(--mono); text-align: center; }
.notif-layout { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); }
ul.nt-list { list-style: none; margin: 0; padding: 0; }
.nt + .nt { border-top: 1px solid var(--line); }
.nt > a { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; color: var(--text); text-decoration: none; }
.nt > a:hover { background: var(--bg-soft); }
.nt-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.nt-ico svg { width: 18px; height: 18px; }
.nt.sev-ok .nt-ico { background: var(--ok-soft); color: var(--ok); }
.nt.sev-warn .nt-ico { background: var(--warn-soft); color: var(--warn); }
.nt.sev-bad .nt-ico { background: var(--bad-soft); color: var(--bad); }
.nt-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nt-text b { font-size: 15px; }
.nt.unread { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.nt.sev-bad.unread { box-shadow: inset 3px 0 0 var(--bad); }
.nt.sev-warn.unread { box-shadow: inset 3px 0 0 var(--warn); }

/* Metas y desempeño */
.score-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 110px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.score-pill b { font-size: 30px; line-height: 1.1; }
.score-pill.ok b { color: var(--ok); } .score-pill.warn b { color: var(--warn); }
.goals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.goal-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.goal-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--accent); transition: stroke-dasharray .6s ease; }
.ring.ok .fg { stroke: var(--ok); } .ring.warn .fg { stroke: var(--warn); }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-c b { font-size: 19px; }
details.raise { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
details.raise summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details.raise .form { margin-top: 12px; align-items: end; }
.rank-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.rank-big b { font-size: 42px; color: var(--accent); line-height: 1; }
ul.bench { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.bench li { display: grid; grid-template-columns: 130px 60px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
ul.bench li .tiny.muted:last-child { grid-column: 3 / -1; margin-top: -8px; }
.bl { color: var(--muted); }
.mbar { display: block; height: 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; min-width: 60px; }
.mbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.mbar.ok i { background: var(--ok); } .mbar.warn i { background: var(--warn); } .mbar.bad i { background: var(--bad); }
figure.chart.fcast .band { fill: var(--accent); opacity: .12; }
figure.chart.fcast .l1 { fill: none; stroke: var(--accent); stroke-width: 2.5; }
figure.chart.fcast .l2 { fill: none; stroke: var(--ok); stroke-width: 2.5; }
figure.chart.fcast .dash { stroke-dasharray: 6 5; }
figure.chart.fcast .p1 { fill: var(--accent); } figure.chart.fcast .p1.f { fill: var(--card); stroke: var(--accent); stroke-width: 2; }
figure.chart.fcast .now { stroke: var(--line-strong); stroke-dasharray: 3 4; }
figure.chart .legend i.bd { background: var(--accent); opacity: .2; }

/* Pagos e impuestos */
.pay-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 20px; background: var(--card); }
.pay-status.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok-soft) 60%, var(--card)); }
.pay-status.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 60%, var(--card)); }
.pay-status > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.pay-status .r { display: flex; flex-direction: column; align-items: flex-end; }
.pay-status .r b { font-size: 22px; }
.pay-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
fieldset.fs { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 6px; margin: 4px 0; display: grid; gap: 12px; }
fieldset.fs legend { font-weight: 600; padding: 0 6px; font-size: 14px; }
fieldset.fs.accept { background: var(--bg-soft); }
.check.plain.has-err span { color: var(--bad); }
.radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: var(--card); }
.radio-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.radio-card > span { display: flex; flex-direction: column; gap: 2px; }
table.data.compact-t th, table.data.compact-t td { padding: 9px 10px; font-size: 14px; }
table.data.compact-t tr.tot td { border-top: 2px solid var(--line-strong); }
.upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-msg.ok { color: var(--ok); } .upload-msg.bad { color: var(--bad); }

/* Academia y artículos */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.art-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.art-card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.art-card.featured { border-top: 4px solid var(--accent); }
.art-card h3 { font-size: 18px; margin: 0; line-height: 1.3; }
.art-card .badge { align-self: flex-start; }
.article { max-width: 760px; }
.article h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 12px; }
.article .lead { font-size: 18px; color: var(--muted); }
.article .prose h2 { font-size: 22px; margin: 28px 0 10px; }
.article .prose p, .article .prose li { font-size: 16px; line-height: 1.7; }
.art-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
aside.art-cta { display: block; max-width: 760px; }
.art-wrap { max-width: 960px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.pkg-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.pkg-card h3 { font-size: 17px; margin: 0; }
.pkg-price b { font-size: 26px; color: var(--accent); display: block; }
.prod-hero { background: radial-gradient(900px 340px at 90% -20%, var(--accent-soft), transparent 70%), linear-gradient(180deg, var(--bg-soft), var(--bg)); }

/* Cumplimiento, suspensión y marca */
.risk-meter { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-bottom: 14px; }
.risk-meter b { font-size: 40px; grid-row: span 2; }
.risk-meter.ok b { color: var(--ok); } .risk-meter.warn b { color: var(--warn); } .risk-meter.bad b { color: var(--bad); }
ul.issue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.issue-list li { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
ul.issue-list li.bad { background: var(--bad-soft); color: var(--bad); }
ul.issue-list li.warn { background: var(--warn-soft); color: var(--warn); }
ul.rules { padding-left: 18px; display: grid; gap: 6px; }
.susp { max-width: 820px; margin: 10px auto; text-align: left; }
.susp-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--bad-soft); color: var(--bad); display: inline-flex; align-items: center; justify-content: center; }
.susp-ico svg { width: 28px; height: 28px; }
.susp h1 { margin: 14px 0 8px; }
.susp-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; margin: 22px 0; align-items: start; }
.disclosure-line { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); margin: 10px 0 0; }
.disclosure-line svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }

/* Lead: atención, siguiente acción y CRM */
.lead-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sla-box, .nba-box { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.sla-box > div, .nba-box { flex-direction: column; align-items: flex-start; }
.sla-box > div { display: flex; flex-direction: column; gap: 2px; }
.sla-box.running { border-color: var(--warn); background: var(--warn-soft); }
.sla-box.breached { border-color: var(--bad); background: var(--bad-soft); }
.sla-box.breached b { color: var(--bad); }
.sla-box.done { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.nba-box { display: flex; gap: 2px; border-left: 4px solid var(--accent); }
.touch-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); background: var(--bg-soft); grid-column: 1 / -1; }
.touch-form select, .touch-form input { min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font-size: 14px; }
.touch-form input { flex: 1; min-width: 180px; }
ol.crm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
ol.crm-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; color: var(--muted); }
ol.crm-steps li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--line); }
ol.crm-steps li:first-child::before { display: none; }
ol.crm-steps .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); position: relative; z-index: 1; }
ol.crm-steps li.done .dot { background: var(--ok); border-color: var(--ok); }
ol.crm-steps li.done::before, ol.crm-steps li.now::before { background: var(--ok); }
ol.crm-steps li.now .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
ol.crm-steps li.now { color: var(--text); font-weight: 600; }
ol.crm-steps.lost li.done .dot { background: var(--bad); border-color: var(--bad); }
ul.crm-tl { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
ul.crm-tl li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.crm-k { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); text-align: center; align-self: start; }
.crm-k.k-etapa { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.crm-k.k-propuesta { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
@media (max-width: 760px) { ol.crm-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; } ol.crm-steps li::before { display: none; } }

/* Reserva: lead nuevo e invitados */
.seg-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 10px; flex-wrap: wrap; }
.seg-switch label { position: relative; }
.seg-switch input { position: absolute; opacity: 0; }
.seg-switch span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg-switch span svg { width: 15px; height: 15px; }
.seg-switch input:checked + span { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.seg-switch input:focus-visible + span { outline: 3px solid var(--accent); }
fieldset.lead-mode { border: 0; padding: 0; margin: 0; }
.new-lead { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); display: grid; gap: 10px; }
.live-note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); margin: 0; }
.live-note svg { width: 16px; height: 16px; flex: none; }
.live-note.ok { background: var(--ok-soft); color: var(--ok); }

/* Centro de mando IA */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.agent { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.agent.off { opacity: .6; }
.agent.err { border-color: var(--bad); }
.agent header { display: flex; gap: 12px; align-items: center; }
.agent header > div { flex: 1; min-width: 0; }
.agent h3 { font-size: 16px; margin: 0; }
.ag-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ag-ico svg { width: 19px; height: 19px; }
.ag-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.ag-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); animation: agpulse 2.4s ease-in-out infinite; }
.ag-dot.bad { background: var(--bad); }
@keyframes agpulse { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .ag-dot.ok { animation: none; } }
.ag-last { color: var(--muted); background: var(--bg-soft); padding: 8px 10px; border-radius: 8px; margin: 0; min-height: 34px; }
.agent footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.agent footer .inline-form { display: flex; gap: 4px; flex-wrap: wrap; }
.esc-table tr.sev-bad td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.esc-table tr.sev-warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.inb-top { align-items: start; }
@media (max-width: 1100px) { .notif-layout, .pay-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .goals-grid { grid-template-columns: 1fr; }
  ul.bench li { grid-template-columns: 1fr auto; }
  ul.bench li .mbar { grid-column: 1 / -1; }
  .susp-grid, .radio-cards { grid-template-columns: 1fr; }
  .pay-status .r { align-items: flex-start; }
}
figure.chart.fcast { display: block; width: 100%; }
figure.chart.fcast svg { width: 100%; height: auto; max-width: none; }
figure.chart.fcast .legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.touch-form select { width: auto; flex: 0 0 auto; }
.touch-form input { width: auto; }
@media (min-width: 1024px) and (max-height: 1000px) { .side-nav a { min-height: 34px; padding: 5px 12px; font-size: 14px; } .nav-group { margin-top: 4px; gap: 0; } .nav-h { padding: 6px 12px 2px; } .side .who-box .country-chip { display: none; } .side-head { padding: 14px 16px 10px; } }
/* Barra "Hoy" */
.today { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.today-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.today-tile:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--text); }
.tt-ico { grid-row: span 3; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.tt-ico svg { width: 20px; height: 20px; }
.tt-k { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tt-v { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.tt-s { color: var(--muted); }
.today-tile.ok .tt-ico { background: var(--ok-soft); color: var(--ok); }
.today-tile.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.today-tile.warn .tt-ico { background: var(--warn-soft); color: var(--warn); }
.today-tile.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad-soft) 55%, var(--card)); }
.today-tile.bad .tt-ico { background: var(--bad-soft); color: var(--bad); }
.admin-today .tt-ico { grid-row: span 2; }
table.data thead th { white-space: normal; }
.ops-band { background: radial-gradient(900px 400px at 10% 0%, var(--accent-soft), transparent 70%); }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ops-card { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.ops-card h3 { font-size: 18px; margin: 12px 0 6px; }
.ops-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ops-ico svg { width: 22px; height: 22px; }
.tt-v.txt { font-size: 16px; line-height: 1.3; }
.admin-today { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (min-width: 1200px) { .admin-today { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
