/* Marca Engagement (manual de imagen): rojo 1815C, naranja 166C, dorado 1375C.
   Jost reemplaza a Century Gothic (propietaria); Raleway es la tipografía de texto del manual.
   Tema claro fijo: el manual es de fondo blanco y la herramienta se usa en oficina. */
:root {
  --red: #761611;
  --red-dark: #5A100C;
  --orange: #E55313;      /* solo en formas y texto grande: 3,76:1 sobre blanco */
  --orange-ink: #B83F0C;  /* variante tonal del naranja para texto pequeño: 5,59:1 */
  --gold: #F59C35;        /* nunca como texto sobre blanco */
  --ink: #221B1A;
  --ink-2: #5F5958;
  --line: #E8E1DC;
  --paper: #FFFFFF;
  --cream: #FBF7F3;
  --arc: #F1EBE6;
  /* series de gráficos (validadas con el validador de dataviz) */
  --s-colgas: #9B1F17;
  --s-abastible: #E55313;
  --s-solgas: #F59C35;
  --font-display: 'Jost', 'Century Gothic', sans-serif;
  --font-body: 'Raleway', system-ui, sans-serif;
  /* nombres usados por las pantallas recreadas */
  --ink-soft: var(--ink-2);
  --ink-faint: #8A8382;
  --accent: var(--orange);
  --rule: var(--line);
  --paper-2: var(--cream);
  --ok: #2F7D52;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 140px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--red); }
:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 2px; }
.on-red :focus-visible, .on-red:focus-visible { outline-color: var(--gold); }
#main:focus { outline: none; } /* destino de foco al cambiar de página, no es un control */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { height: 46px; width: auto; display: block; }
.brand-name { border-left: 1px solid var(--line); padding-left: 18px; line-height: 1.2; }
.brand-name b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--red); }
.brand-name span { font-size: 13px; color: var(--ink-2); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { min-height: 44px; padding: 0 14px; border: none; background: var(--paper); font: 600 14px var(--font-body); color: var(--ink); cursor: pointer; border-left: 1px solid var(--line); }
.seg button:first-child { border-left: none; }
.seg button:hover { background: var(--cream); }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 13px; text-decoration: none; color: var(--ink-2); font-family: var(--font-display); font-size: 18px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a small { font-size: 13px; font-weight: 600; color: var(--orange-ink); }
.tabs a:hover { color: var(--red); }
.tabs a:focus-visible, .seg button:focus-visible, .dv-tab:focus-visible { outline-offset: -3px; } /* la barra recorta lo que sale de su caja */
.seg button[aria-pressed="true"]:focus-visible, .dv-tab:focus-visible { outline-color: var(--gold); }
.dv-tab[aria-selected="true"]:focus-visible { outline-color: var(--orange-ink); }
.tabs a[aria-current="page"] { color: var(--red); border-bottom-color: var(--orange); }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.nav-row .tabs { min-width: 0; }
/* Menú de la cuenta: la inicial abre "Ver como" (Engagement) y "Salir" */
.perfil { position: relative; margin-left: auto; }
.perfil-btn { width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; }
.perfil-btn i { font: 600 18px var(--font-display); font-style: normal; }
.perfil-btn:hover, .perfil-btn[aria-expanded="true"] { background: var(--red-dark); }
.perfil-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 280px; max-width: calc(100vw - 32px); max-height: calc(100vh - 90px); overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 12px 30px rgba(60, 20, 12, .16); /* flota sobre el contenido */ padding: 6px 0; }
.perfil-quien { margin: 0; padding: 10px 16px 12px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.perfil-quien b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.perfil-quien span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.perfil-grupo { padding: 8px 0; border-bottom: 1px solid var(--line); }
.perfil-grupo .mini-h { padding: 2px 16px 4px; color: var(--ink-2); }
.perfil-op { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border: none; background: none; font: 500 15px var(--font-body); color: var(--ink); text-align: left; cursor: pointer; }
.perfil-op small { font-size: 13px; color: var(--ink-2); }
.perfil-op:hover { background: var(--cream); }
.perfil-op:focus-visible { outline-offset: -3px; }
.perfil-op[aria-current="true"] { color: var(--red); font-weight: 700; }
.perfil-op[aria-current="true"]::after { content: "Actual"; font-size: 12px; font-weight: 700; color: var(--red); }
.perfil-op[aria-current="true"] small { display: none; }
.perfil-op.salir { color: var(--red); font-weight: 600; }
/* Ver como: modo poco habitual y de solo lectura, por eso la franja dorada no pasa desapercibida */
.vercomo { background: var(--gold); color: var(--red); }
.vercomo .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 8px; padding-bottom: 8px; }
.vercomo p { margin: 0; font-size: 15px; }
.vercomo .btn { border-color: var(--red); }
.vercomo :focus-visible { outline-color: var(--red); }
.proto { background: var(--cream); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.proto .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 5px; padding-bottom: 5px; }
.proto b { color: var(--ink); }
.demo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.demo select { min-height: 44px; border: 1px solid #CFC5BE; border-radius: 4px; padding: 0 8px; font: 600 13px var(--font-body); color: var(--ink); background: var(--paper); }

/* ---------- Encabezado de página: filetes + título, como en el manual ---------- */
.pg { position: relative; isolation: isolate; overflow: hidden; padding: 52px 0 8px; }
.pg-arcs { position: absolute; z-index: -1; right: -40px; top: -10px; width: 380px; height: 380px; color: var(--arc); pointer-events: none; }
.pg-rule { height: 1px; background: var(--red); opacity: .4; }
.pg-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0 10px; }
.pg h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 6vw, 66px); line-height: 1.02; color: var(--red); letter-spacing: -.01em; }
.pg-num { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--orange); }
.pg-sub { margin: 16px 0 4px; font-family: var(--font-display); font-size: 21px; color: var(--orange-ink); }
.pg-lead { margin: 0; max-width: 680px; color: var(--ink-2); }

/* ---------- Botones y campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 4px; border: 1.5px solid var(--red); font: 600 15px var(--font-body); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: var(--paper); color: var(--red); }
.btn.ghost:hover { background: var(--cream); }
.btn.on-red { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.on-red:hover { background: rgba(255,255,255,.12); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label, .field > span { font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea { min-height: 44px; border: 1px solid #CFC5BE; border-radius: 4px; padding: 8px 12px; font: 15px var(--font-body); color: var(--ink); background: var(--paper); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 0; border-color: var(--orange-ink); }
.err { color: #A3200F; font-size: 14px; font-weight: 600; margin: 0; }
.err:empty { display: none; }
.warn { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 10px 14px; font-size: 14px; border-radius: 4px; }

/* ---------- Cursos ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.tools .field:first-child { flex: 1 1 260px; }
.tools .field { flex: 0 1 220px; }
.tools .count { margin-left: auto; font-size: 14px; color: var(--ink-2); padding-bottom: 10px; }
.co { margin-top: 44px; }
.co-cover { position: relative; overflow: hidden; background: var(--red); color: #fff; border-radius: 4px; padding: 34px 36px 64px; }
.co-cover .arcs { position: absolute; right: -60px; top: -70px; width: 340px; height: 340px; color: rgba(255,255,255,.07); }
.co-cover .wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46px; }
.co-kick { position: relative; font-weight: 700; font-size: 14px; color: var(--gold); }
.co-cover h2 { position: relative; margin: 2px 0 18px; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5.4vw, 56px); line-height: 1; }
.co-campus { position: relative; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.co-campus div { font-size: 14px; line-height: 1.4; }
.co-campus b { display: block; font-size: 16px; }
.co-campus span { opacity: .88; }
.co-note { margin-top: 14px; }
.campus { margin-top: 34px; }
.campus-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.campus-h h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 25px; color: var(--red); }
.campus-h span { font-size: 14px; color: var(--ink-2); }
.campus-h .n { margin-left: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 22px; }
.card { display: flex; flex-direction: column; text-align: left; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font: inherit; color: inherit; overflow: hidden; }
.card:hover { border-color: var(--red); }
.card:hover .c-title { color: var(--red); }
.cover { position: relative; overflow: hidden; display: flex; align-items: flex-end; aspect-ratio: 16 / 8; padding: 16px 18px; }
.cover .arcs { position: absolute; right: -34px; top: -40px; width: 170px; height: 170px; }
.cover b { position: relative; max-width: 78%; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.12; }
.cv0 { background: var(--red); color: #fff; } .cv0 .arcs { color: rgba(255,255,255,.14); }
.cv1 { background: var(--orange); color: #fff; } .cv1 .arcs { color: rgba(255,255,255,.2); }
.cv2 { background: var(--gold); color: var(--red); } .cv2 .arcs { color: rgba(118,22,17,.12); }
.cv3 { background: var(--cream); color: var(--red); box-shadow: inset 0 -1px 0 var(--line); } .cv3 .arcs { color: rgba(229,83,19,.22); }
.c-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.c-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.2; }
.c-desc { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); }
.c-meta em { font-style: normal; font-weight: 700; color: var(--orange-ink); }
.c-ped { font-size: 13px; font-weight: 700; color: var(--ok); }
.empty { text-align: center; padding: 64px 20px; }
.empty h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--red); margin: 0 0 8px; }
.empty p { color: var(--ink-2); margin: 0 0 18px; }

/* ---------- Diálogos ---------- */
dialog { border: none; padding: 0; border-radius: 6px; width: 100%; max-width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink); background: var(--paper); }
dialog.wide { max-width: min(1180px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(40, 12, 10, .55); }
.x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.x:hover { background: #fff; }
.d-cover { aspect-ratio: auto; height: 150px; }
.d-cover b { font-size: 26px; }
.d-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.d-kick { font-size: 14px; font-weight: 700; color: var(--orange-ink); margin: 0; }
.d-body h2 { margin: -10px 0 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; color: var(--red); }
.d-body > p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.facts div { padding: 12px 14px 12px 0; }
.facts dt { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 18px; }
.d-sec h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--red); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.done { background: var(--cream); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; }
.done b { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ok); }
.done ol { margin: 10px 0 0; padding-left: 20px; }
.done li { margin: 4px 0; }
.plain { padding: 30px 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.plain h2 { margin: 0; padding-right: 48px; font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--red); line-height: 1.15; }
.plain .x { background: var(--cream); }

/* ---------- Desarrollos ---------- */
.dv-sum { margin: 22px 0 0; font-size: 15px; color: var(--ink-2); }
.dv-sum b { color: var(--ink); }
.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: center; padding: 46px 0; border-bottom: 1px solid var(--line); }
.feat.flip .feat-media { order: 2; }
.feat-media { position: relative; background: var(--cream); padding: 26px; border-radius: 4px; overflow: hidden; }
.feat-media .arcs { position: absolute; left: -50px; bottom: -80px; width: 300px; height: 300px; color: var(--arc); }
.shot { position: relative; min-height: 200px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(60, 20, 12, .14); /* la captura se lee como una pantalla sobre la mesa */ }
.shot::before { content: "Cargando pantalla…"; position: absolute; font-size: 13px; color: var(--ink-2); }
.shot img { position: relative; display: block; width: 100%; max-height: 440px; object-fit: cover; object-position: top; background: var(--paper); }
.shot.broken::before { content: none; }
.shot-err { padding: 24px; font-size: 14px; color: var(--ink-2); text-align: center; }
.shot-tag { position: absolute; left: 36px; top: 36px; z-index: 2; background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.feat-kick { font-size: 14px; font-weight: 700; color: var(--orange-ink); margin: 0; }
.feat h2 { margin: 4px 0 12px; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; color: var(--red); }
.feat p { margin: 0 0 18px; }
.where { margin: 0 0 22px; border-top: 1px solid var(--line); }
.where div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.where dt { font-weight: 700; }
.where dd { margin: 0; color: var(--ink-2); }
.where div.sel { background: var(--cream); padding-left: 10px; padding-right: 10px; }
.where div.sel dd { color: var(--ink); font-weight: 600; }
.mods-h { margin: 54px 0 4px; font-family: var(--font-display); font-weight: 500; font-size: 32px; color: var(--red); }
.mods-sub { margin: 0 0 18px; color: var(--ink-2); }
.mod-group { margin-top: 30px; }
.mod-group h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--orange-ink); }
.mod { display: grid; grid-template-columns: minmax(180px, 1.1fr) 2fr minmax(160px, 1fr) auto; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mod h4 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.15; }
.mod h4 + span { font-size: 13px; color: var(--ink-2); }
.mod p { margin: 0; font-size: 15px; color: var(--ink-2); }
.mod .use { font-size: 14px; }
.offer { color: var(--orange-ink); font-weight: 700; }
.feat-list-h { margin: 0 0 4px !important; font-size: 14px; font-weight: 700; color: var(--orange-ink); }
.feat .fn { margin: 0 0 22px; }
.dv-foot .form .field { flex: 0 1 200px; }

/* Vitrina del desarrollo (diálogo ancho) */
.dv-head { position: relative; overflow: hidden; background: var(--red); color: #fff; padding: 30px 36px 0; }
.dv-head .arcs { position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; color: rgba(255,255,255,.07); }
.dv-head .kick { position: relative; margin: 0 56px 0 0; font-size: 14px; font-weight: 700; color: var(--gold); }
.dv-head h2 { position: relative; margin: 4px 60px 8px 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 52px); line-height: 1.02; }
.dv-head p { position: relative; margin: 0 0 22px; max-width: 680px; opacity: .92; }
.dv-tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dv-tab { min-height: 44px; border: none; background: rgba(255,255,255,.1); color: #fff; padding: 0 16px; border-radius: 4px 4px 0 0; font: 600 14px var(--font-body); white-space: nowrap; cursor: pointer; }
.dv-tab:hover { background: rgba(255,255,255,.18); }
.dv-tab[aria-selected="true"] { background: var(--cream); color: var(--red); }
.dv-stage { background: var(--cream); padding: 30px 36px 24px; }
.dv-view { display: flex; justify-content: center; align-items: flex-start; min-height: 380px; overflow-x: auto; }
.dv-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; }
.dv-cap p { margin: 0; flex: 1 1 360px; font-size: 14px; color: var(--ink-2); }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 3px; white-space: nowrap; }
.tag.real { background: var(--ok); color: #fff; }
.tag.rec { border: 1px solid #A39A96; color: var(--ink-2); }
.dv-nav { display: flex; gap: 8px; }
.dv-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--red); background: var(--paper); color: var(--red); font-size: 18px; cursor: pointer; }
.dv-nav button:hover { background: var(--red); color: #fff; }
.dv-body { display: grid; grid-template-columns: 5fr 7fr; gap: 52px; padding: 34px 36px; }
.dv-body h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--red); }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.pasos li { counter-increment: p; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pasos li::before { content: counter(p); font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--orange); font-weight: 600; }
.pasos b { display: block; }
.pasos span { font-size: 14px; color: var(--ink-2); }
.fn { list-style: none; margin: 18px 0 0; padding: 0; }
.fn li { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fn li span { color: var(--ink-2); white-space: nowrap; }
.dv-foot { padding: 0 36px 34px; }
.dv-foot .form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }

/* ---------- Gaceta ---------- */
.mast { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 30px; padding: 14px 0; border-top: 3px double var(--red); border-bottom: 1px solid var(--red); }
.mast b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--red); }
.mast span { font-size: 14px; color: var(--ink-2); }
.meta { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.meta b { color: var(--ink); }
.estado { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.estado i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.estado.idea i { background: var(--gold); }
.estado.diseno i { background: var(--orange); }
.estado.desarrollo i { background: var(--red); }
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 34px 0 38px; border-bottom: 1px solid var(--line); }
.lead h2 { margin: 10px 0 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.04; color: var(--red); }
.lead p { margin: 0 0 16px; font-size: 17px; }
.just { text-align: justify; hyphens: auto; }
.stories { display: grid; grid-template-columns: 1fr 1fr; }
.story { padding: 28px 30px 30px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.story:nth-child(even) { padding: 28px 0 30px 30px; border-left: 1px solid var(--line); }
.story h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 25px; line-height: 1.12; color: var(--red); }
.story p { margin: 0; }
.joined { font-size: 14px; color: var(--ink-2); }
.joined b { color: var(--ink); }
.story .btn, .lead .btn { align-self: flex-start; }

/* ---------- Tendencias ---------- */
.sample { margin-top: 26px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 52px; }
.chart { padding: 34px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.chart.full { grid-column: 1 / -1; }
.chart h2 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 500; font-size: 25px; line-height: 1.15; color: var(--ink); }
.chart .note { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(0, 210px) 1fr 34px; gap: 12px; align-items: center; font-size: 14px; padding: 2px 0; }
.hbar .lb { line-height: 1.25; }
.hbar .lb small { display: block; color: var(--ink-2); font-size: 12px; }
.hbar .tr { height: 18px; }
.hbar .tr i { display: block; height: 100%; background: var(--s-colgas); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .v { font-weight: 700; text-align: right; }
.hbar:hover .tr i, .hbar:focus-visible .tr i { background: var(--red); }
.mtx { width: 100%; border-collapse: collapse; font-size: 14px; }
.mtx th { text-align: left; font-size: 13px; color: var(--ink-2); font-weight: 700; padding: 0 8px 8px; border-bottom: 1px solid var(--ink); }
.mtx th.sel { color: var(--ink); }
.mtx td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.mtx td:first-child { padding-left: 0; }
.cell { display: flex; align-items: center; gap: 8px; }
.cell i { display: block; height: 12px; border-radius: 0 4px 4px 0; }
.cell b { min-width: 14px; }
.mtx td.dim .cell i { opacity: .25; }
.mtx td.dim b { color: var(--ink-2); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 4px; border-radius: 2px; }
.line-svg { display: block; width: 100%; max-width: 860px; height: auto; overflow: visible; font-family: var(--font-body); }
.line-svg .hit { fill: transparent; cursor: crosshair; }
details.tbl { margin-top: 14px; font-size: 14px; }
details.tbl summary { cursor: pointer; font-weight: 700; color: var(--red); min-height: 44px; display: flex; align-items: center; }
details.tbl table { border-collapse: collapse; margin-top: 6px; }
details.tbl th, details.tbl td { padding: 5px 12px 5px 0; border-bottom: 1px solid var(--line); text-align: left; }
.tip { position: fixed; z-index: 80; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; padding: 8px 11px; border-radius: 4px; max-width: 260px; opacity: 0; transition: opacity .12s; }
.tip.show { opacity: 1; }

/* ---------- Pie y aviso ---------- */
.foot { margin-top: 72px; background: var(--red); color: #fff; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-size: 14px; }
.foot img { height: 34px; display: block; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 4px; font-size: 15px; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

/* ---------- Pantallas recreadas (vitrina de desarrollos) ---------- */
/* Marcos de pantalla */
.br { width: 100%; max-width: 940px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(40,15,10,.18); border: 1px solid #ddd; color: #1f2430; font-family: var(--font-body); }
.br-bar { height: 34px; background: #eef0f3; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid #dfe2e6; }
.br-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9ccd1; }
.br-bar span { margin-left: 14px; background: #fff; border-radius: 6px; padding: 3px 12px; font-size: 11.5px; color: #6b7280; flex: 1; max-width: 420px; font-family: ui-monospace, monospace; }
.br-screen img { display: block; width: 100%; }
.phones { display: flex; gap: 22px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.ph-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ph-wrap small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.ph-wrap small b { color: var(--accent); margin-right: 4px; }
.ph { width: 200px; height: 400px; border-radius: 30px; background: #15171c; padding: 9px; box-shadow: 0 18px 40px rgba(40,15,10,.25); position: relative; flex: none; }
.ph-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 70px; height: 16px; background: #15171c; border-radius: 0 0 10px 10px; z-index: 2; }
.ph-screen { background: #fff; height: 100%; border-radius: 22px; overflow: hidden; color: #1f2430; font-size: 10.5px; line-height: 1.4; padding: 30px 13px 12px; display: flex; flex-direction: column; gap: 8px; font-family: var(--font-body); }
.m-h { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #111827; line-height: 1.15; }
.m-sub { color: #6b7280; font-size: 10px; }
.m-card { border: 1px solid #e5e7eb; border-radius: 9px; padding: 8px; background: #f9fafb; }
.m-card b { display: block; font-size: 11px; }
.m-row { display: flex; justify-content: space-between; color: #6b7280; font-size: 9.5px; }
.m-in { border: 1.5px solid #d1d5db; border-radius: 7px; padding: 7px 8px; font-size: 11px; color: #111827; background: #fff; }
.m-in.f { border-color: var(--m, #E55313); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m, #E55313) 18%, transparent); }
.m-btn { background: var(--m, #E55313); color: #fff; border-radius: 7px; padding: 8px; text-align: center; font-weight: 700; font-size: 11px; margin-top: auto; }
.m-btn.ghost { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.m-otp { display: flex; gap: 5px; justify-content: center; }
.m-otp span { width: 24px; height: 30px; border: 1.5px solid #d1d5db; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.m-otp span.on { border-color: var(--m, #E55313); }
.m-pad { border: 1.5px dashed #d1d5db; border-radius: 8px; height: 92px; background: #f9fafb; display: grid; place-items: center; }
.m-doc { border: 1px solid #e5e7eb; border-radius: 6px; padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.m-doc i { display: block; height: 4px; border-radius: 2px; background: #e5e7eb; }
.m-doc i.o { background: #E55313; height: 6px; width: 70%; }
.m-ok { width: 54px; height: 54px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: grid; place-items: center; font-size: 26px; margin: 18px auto 4px; }
.m-pill { display: inline-block; background: #dcfce7; color: #166534; font-weight: 700; padding: 2px 8px; border-radius: 999px; font-size: 10px; }
/* App de escritorio recreada */
.app { display: grid; grid-template-columns: 170px 1fr; min-height: 440px; font-size: 12.5px; }
.app-side { background: var(--as, #0f2f66); color: rgba(255,255,255,.85); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-side .lg { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; margin-bottom: 14px; }
.app-side span { padding: 7px 9px; border-radius: 7px; font-size: 12px; }
.app-side span.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.app-main { padding: 20px 24px; background: #f7f8fa; display: flex; flex-direction: column; gap: 14px; }
.app-main h4 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #111827; }
.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.app-kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; }
.app-kpi b { display: block; font-family: var(--font-display); font-size: 24px; color: #111827; }
.app-kpi span { color: #6b7280; font-size: 11px; }
.app-tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; font-size: 12px; }
.app-tbl th { background: #f3f4f6; color: #4b5563; font-family: var(--font-body); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; text-align: left; border: none; }
.app-tbl td { padding: 8px 10px; border-top: 1px solid #f0f1f3; }
.bdg { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.bdg.g { background: #dcfce7; color: #166534; } .bdg.y { background: #fef3c7; color: #92400e; } .bdg.r { background: #fee2e2; color: #991b1b; } .bdg.b { background: #dbeafe; color: #1e40af; }
.bar2 { height: 7px; background: #e5e7eb; border-radius: 4px; overflow: hidden; } .bar2 i { display: block; height: 100%; background: var(--m, #E55313); }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 78%; padding: 9px 12px; border-radius: 14px; font-size: 12px; line-height: 1.45; }
.bub.ai { background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; align-self: flex-start; }
.bub.me { background: var(--m, #0f2f66); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.paper { background: #fff; padding: 14px; border-radius: 6px; box-shadow: 0 18px 40px rgba(40,15,10,.18); max-width: 760px; }
.paper img { display: block; width: 100%; }
.wa { background: #e5ddd5; }
.wa-top { background: #075e54; color: #fff; padding: 30px 12px 9px; margin: -30px -13px 4px; display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 11.5px; }
.wa-top i { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #075e54; font-style: normal; font-size: 12px; }
.wa-msg { overflow-wrap: anywhere; background: #fff; border-radius: 8px; border-top-left-radius: 0; padding: 7px 9px; font-size: 10.5px; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.wa-msg time { display: block; text-align: right; font-size: 9px; color: #999; }
.rank-m { display: flex; flex-direction: column; gap: 6px; }
.rank-m div { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 9px; padding: 8px 10px; }
.rank-m em { font-style: normal; font-family: var(--font-display); font-weight: 700; color: #9ca3af; }
.rank-m div.me { border-color: var(--m); box-shadow: 0 0 0 2px color-mix(in srgb, var(--m) 25%, transparent); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin: 10px 0; }
.stages::before { content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 4px; background: linear-gradient(90deg, #16a34a 45%, #e5e7eb 45%); }
.stg { text-align: center; position: relative; font-size: 11.5px; }
.stg i { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 4px solid #e5e7eb; display: grid; place-items: center; margin: 0 auto 8px; font-style: normal; font-weight: 700; color: #9ca3af; font-family: var(--font-display); font-size: 16px; }
.stg.done i { border-color: #16a34a; color: #16a34a; } .stg.now i { border-color: var(--m); color: var(--m); }
.stg b { display: block; font-size: 12px; color: #111827; }
.vit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vit div { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; font-size: 11.5px; }
.vit div i { display: block; height: 70px; background: var(--g); }
.vit div b { display: block; padding: 8px 10px 2px; }
.vit div span { display: block; padding: 0 10px 10px; color: #6b7280; font-size: 10.5px; }
.rub { width: 100%; border-collapse: collapse; font-size: 11.5px; background: #fff; }
.rub th, .rub td { border: 1px solid #e5e7eb; padding: 8px; text-align: center; }
.rub th { background: #f3f4f6; font-family: var(--font-body); font-weight: 700; font-size: 10.5px; }
.rub td:first-child { text-align: left; font-weight: 600; }
.rub td.sel { background: color-mix(in srgb, var(--m) 16%, #fff); outline: 2px solid var(--m); outline-offset: -2px; font-weight: 700; }

/* ---------- Pantallas medianas y móvil ---------- */
@media (min-width: 640px) { .just-md { text-align: justify; hyphens: auto; } }
@media (max-width: 980px) {
  .feat, .lead, .dv-body { grid-template-columns: 1fr; gap: 28px; }
  .feat.flip .feat-media { order: 0; }
  .charts { grid-template-columns: 1fr; }
  .mod { grid-template-columns: 1fr auto; gap: 8px 18px; }
  .mod > div:first-child { grid-column: 1 / -1; }
  .mod p { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top-row { gap: 10px; }
  .brand { gap: 12px; }
  .brand img { height: 34px; }
  .brand-name { padding-left: 12px; }
  .brand-name b { font-size: 16px; }
  .brand-name span { display: none; }
  .top { position: static; } /* en celular la cabecera completa taparía media pantalla */
  .nav-row .tabs { width: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 6px; font-size: 13px; }
  .tabs a { padding: 10px 12px 11px; font-size: 16px; }
  .pg { padding-top: 34px; }
  .pg-arcs { width: 240px; height: 240px; right: -70px; }
  .co-cover { padding: 26px 22px 56px; }
  .tools .field, .tools .field:first-child { flex: 1 1 100%; }
  .tools .count { margin-left: 0; padding-bottom: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .d-body, .plain { padding: 24px 20px 26px; }
  .dv-head { padding: 24px 20px 0; }
  .dv-stage { padding: 22px 16px 18px; }
  .dv-body { padding: 26px 20px; }
  .dv-foot { padding: 0 20px 26px; }
  .feat-media { padding: 14px; }
  .shot-tag { left: 22px; top: 22px; }
  .stories { grid-template-columns: 1fr; }
  .story, .story:nth-child(even) { padding: 24px 0; border-left: none; }
  .hbar { grid-template-columns: minmax(0, 130px) 1fr 30px; gap: 8px; }
  .where div { grid-template-columns: 90px 1fr; }
  .fn li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 420px) {
  .brand-name { display: none; } /* el logo ya dice Engagement; así el botón de la cuenta cabe en la misma fila */
}

/* ---------- App real: piezas que no estaban en el dummy ---------- */
[hidden] { display: none !important; }
.card { text-decoration: none; }
.seg a { min-height: 44px; display: flex; align-items: center; padding: 0 14px; background: var(--paper); font: 600 14px var(--font-body); color: var(--ink); text-decoration: none; border-left: 1px solid var(--line); }
.seg a:first-child { border-left: none; }
.seg a:hover { background: var(--cream); }
.seg a[aria-pressed="true"] { background: var(--red); color: #fff; }
.seg a:focus-visible { outline-offset: -3px; }
.seg a[aria-pressed="true"]:focus-visible { outline-color: var(--gold); }

/* Ingreso */
.login { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 52px; }
.login-cover { position: relative; overflow: hidden; background: var(--red); color: #fff; border-radius: 4px; padding: 44px 40px; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.login-cover .arcs { position: absolute; right: -60px; top: -70px; width: 340px; height: 340px; color: rgba(255,255,255,.08); }
.login-cover h1 { position: relative; margin: 4px 0 12px; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 54px); line-height: 1; }
.login-cover p { position: relative; margin: 0; max-width: 440px; }
.login-form h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 32px; color: var(--red); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }

/* Fichas a página completa y desarrollos sin captura */
.pagina-ficha { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pagina-ficha [data-close] { display: none; } /* a página completa no hay diálogo que cerrar: se vuelve con el enlace */
.shot-marca { min-height: 260px; background: var(--red); color: #fff; }
.shot-marca::before { content: none; }
.shot-marca b { position: relative; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 40px); padding: 24px; text-align: center; }

/* Gaceta: sumar una empresa (Engagement) */
.form-inline { display: flex; gap: 8px; align-items: center; }
.form-inline select { min-height: 44px; border: 1px solid #CFC5BE; border-radius: 4px; padding: 0 8px; font: 600 14px var(--font-body); color: var(--ink); background: var(--paper); }

/* Tendencias internas */
.art { padding: 26px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.art h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.15; }
.art h3 a { color: var(--red); text-decoration: none; }
.art h3 a:hover { text-decoration: underline; }
.art p { margin: 0; max-width: 820px; }
.etq { display: flex; flex-wrap: wrap; gap: 6px; }
.etq span { font-size: 12px; font-weight: 700; color: var(--orange-ink); border: 1px solid var(--line); border-radius: 3px; padding: 2px 8px; }
.fuente-nueva { margin-top: 30px; padding: 24px; background: var(--cream); border-radius: 4px; }
.fuente-nueva h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--red); }
.fuente-nueva .fila { display: grid; grid-template-columns: 1fr 2fr 1fr 120px; gap: 14px; }
.paginas { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.paginas span[aria-disabled] { opacity: .45; cursor: default; }

@media (max-width: 720px) {
  .login { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .login-cover { min-height: 0; padding: 28px 22px; }
  .seg { overflow-x: auto; }
  .seg a { flex: 1; padding: 0 8px; font-size: 13px; justify-content: center; white-space: nowrap; }
  .fuente-nueva .fila { grid-template-columns: 1fr; }
  .form-inline { flex-wrap: wrap; }
}

/* ---------- Administración ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.subnav a { min-height: 44px; display: flex; align-items: center; padding: 0 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--red); }
.subnav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--orange); }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.tabla-wrap { position: relative; overflow-x: auto; margin-top: 18px; } /* relative: así recorta también los .sr de la tabla */
.tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla th { text-align: left; font-size: 13px; color: var(--ink-2); font-weight: 700; padding: 0 12px 8px 0; border-bottom: 1px solid var(--ink); }
.tabla td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla td small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.tabla td small em { font-style: normal; font-weight: 700; color: var(--orange-ink); }
.tabla input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--red); }
.tabla .form { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.tabla select, .tabla input:not([type=checkbox]), .lote select { min-height: 44px; border: 1px solid #CFC5BE; border-radius: 4px; padding: 0 10px; font: 14px var(--font-body); color: var(--ink); background: var(--paper); }
.tabla details.en-tabla .form { flex-direction: column; align-items: stretch; min-width: 280px; margin-top: 10px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.pill.pend { background: #FDF0DD; color: #8A4B06; }
.pill.ok { background: #E3F1E8; color: #24643F; } /* --ok sobre este verde da 4,31:1; así da 6,07:1 */
.lote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; background: var(--cream); border-radius: 4px; font-weight: 600; font-size: 14px; }
.admin-form { margin-top: 26px; max-width: 920px; gap: 26px; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px 20px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.admin-form legend { padding: 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 21px; color: var(--red); }
.fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.opciones { display: flex; flex-wrap: wrap; gap: 0 24px; }
.check input[type=radio] { width: 20px; height: 20px; accent-color: var(--red); }
.seleccion { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 14px 16px; background: var(--cream); border-radius: 4px; }
.mini-h { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.dato { margin: 0; font-size: 14px; color: var(--ink-2); }
.admin-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.caja { background: var(--cream); border-radius: 4px; padding: 20px 22px; }
.caja h3, .empresa-admin h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--red); }
.lista { margin: 10px 0 16px; padding-left: 18px; font-size: 14px; }
.empresa-admin { margin-top: 40px; }
.empresa-admin details { margin-top: 10px; }
.empresa-admin details > summary, .en-tabla > summary { cursor: pointer; font-weight: 700; color: var(--red); min-height: 44px; display: inline-flex; align-items: center; }
.empresa-admin details > .form { margin-top: 8px; padding: 16px 18px; background: var(--cream); border-radius: 4px; }
@media (max-width: 720px) {
  .admin-dos, .seleccion { grid-template-columns: 1fr; }
}

.facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.enviados { list-style: none; margin: 0 0 16px; padding: 0; }
.enviados li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.enviados li span { color: var(--ink-2); }
.c-ped.estado-rechazado { color: #A3200F; }
.c-ped.estado-en_proceso, .c-ped.estado-nuevo { color: var(--orange-ink); }
.st { font-size: 13px; font-weight: 700; white-space: nowrap; }
.st-impl { color: var(--ok); }
.st-curso { color: var(--orange-ink); }
.st-disp { color: var(--ink-2); font-weight: 600; }
.st-na { color: var(--ink-2); font-weight: 500; }
.tabla input.ancho { width: 100%; min-width: 260px; }
.tabla.funciones td:not(:first-child), .tabla.funciones th:not(:first-child) { text-align: center; }
.img-actual { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.img-actual img { max-width: 260px; max-height: 160px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 4px; }
.tabla.funciones td:first-child { width: 60%; }
.kpis { margin-top: 26px; }
.kpis dd { font-size: 30px; color: var(--red); }
