/* ══════════════════════════════════════════════════════════════════════════
   Novedades del empleador — hoja de estilos de la app real.

   Esta app NO linkea `_ds.css` completo (5300+ líneas: es el design-system de
   TODA la Suite, cargado desde un celular con señal mala en una superficie
   PÚBLICA sin nada del resto de la Suite alrededor — cada KB cuenta).
   En su lugar, acá viven SÓLO los tokens y los primitivos que este formulario
   usa de verdad, copiados de `docs-estudio/mockups/_ds.css` (fuente): las
   variables de :root, el reset mínimo, `input/select/textarea/label`,
   `.btn`+variantes, `.card`, `.badge`+variantes, `.banner`+`.banner__body`+
   variantes, y `.ds-segmented-control`. El resto (geometría/densidad táctil
   de esta pantalla) es local, igual que en el mockup aprobado.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --font-family: -apple-system, 'SF Pro Display', 'Inter', BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --accent: #d4a017;
  --accent-hover: #b8860b;
  --accent-light: #fef9ec;
  --accent-dark: #996f00;
  --accent-subtle: rgba(212, 160, 23, 0.08);

  --bg-body: #fafaf9;
  --bg-card: #ffffff;
  --bg-muted: #f5f5f4;
  --bg-main: #f5f5f4;

  --border: #e7e5e4;
  --border-strong: #d6d3d1;

  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --text-on-accent: #1c1917;

  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #ea580c;
  --warning-bg: #fff7ed;
  --warning-border: #fed7aa;
  --info: #0891b2;
  --info-bg: #ecfeff;
  --info-border: #a5f3fc;

  --sidebar-bg: #1c1917;
  --sidebar-text: #a8a29e;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.05), 0 1px 2px rgba(28, 25, 23, 0.03);
  --shadow-lg: 0 16px 48px rgba(28, 25, 23, 0.10), 0 4px 12px rgba(28, 25, 23, 0.05);
  --shadow-gold: 0 4px 16px rgba(212, 160, 23, 0.15);
  --shadow-gold-lg: 0 8px 32px rgba(212, 160, 23, 0.20);

  --transition-fast: 120ms ease;
  --transition: 200ms ease;
}

/* -- Reset mínimo (de _ds.css) --------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; text-size-adjust: 100%; }
body {
  height: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-main);
}

/* -- Forms (de _ds.css) ----------------------------------------------- */
input[type="text"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; color: var(--text-primary); background: var(--bg-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.10); background: #fff;
}
input::placeholder, textarea::placeholder { color: var(--border-strong); }
label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: var(--text-secondary); }

/* -- Buttons (de _ds.css) ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; font-size: 13px; font-weight: 600; font-family: inherit;
  border-radius: var(--radius); border: none; cursor: pointer; text-decoration: none;
  transition: all var(--transition); background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--text-on-accent); box-shadow: var(--shadow-gold); letter-spacing: 0.01em; white-space: nowrap;
}
.btn:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent-dark)); box-shadow: var(--shadow-gold-lg); transform: translateY(-1px); color: var(--text-on-accent); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-gold); }
.btn-secondary { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--bg-muted); border-color: var(--border-strong); box-shadow: var(--shadow-sm); color: var(--text-primary); }
.btn-success { background: linear-gradient(135deg, #10B981, #059669); color: white; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2); }
.btn-success:hover { background: linear-gradient(135deg, #059669, #047857); box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3); }
.btn-danger { background: linear-gradient(135deg, #EF4444, #DC2626); color: white; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15); }
.btn-danger:hover { background: linear-gradient(135deg, #DC2626, #B91C1C); box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25); }
.btn i { font-size: 14px; }

/* -- Card (de _ds.css) --------------------------------------------------- */
.card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }

/* -- Badges (de _ds.css) --------------------------------------------------- */
.badge, .pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 11px; font-weight: 700; border-radius: 100px; letter-spacing: 0.02em; white-space: nowrap; }
.badge-info { background: var(--info-bg); color: var(--info); border: 1px solid var(--info-border); }
.badge-muted { background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--border); }

/* -- Banner (de _ds.css) --------------------------------------------------- */
.banner { border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.banner .bi { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.banner__body { flex: 1; }
.banner b, .banner strong { color: inherit; }
.banner--info    { background: var(--info-bg);    border: 1px solid var(--info-border);    color: var(--info); }
.banner--warning { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning); }
.banner--danger  { background: var(--danger-bg);  border: 1px solid var(--danger-border);  color: var(--danger); }

/* -- Segmented control (de _ds.css) --------------------------------------- */
.ds-segmented-control { display: flex; gap: 6px; }
.ds-segmented-control__option {
  flex: 1; padding: 10px 11px; border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--radius);
  font-size: 12.8px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: 140ms;
  display: flex; align-items: center; gap: 9px; text-align: left;
}
.ds-segmented-control__option.is-active { border-color: var(--accent); background: var(--accent-light); color: var(--text-primary); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ══════════════════════════════════════════════════════════════════════════
   GEOMETRÍA de esta pantalla — local, portada del mockup aprobado. El look
   (color/tipografía/radio/sombra) sale de los tokens de arriba: cero hex
   hardcodeado nuevo.
   ══════════════════════════════════════════════════════════════════════════ */
.app-invalido { max-width: 480px; margin: 40px auto; padding: 0 16px; }

/* La app ocupa la pantalla completa: en un celular real no hay marco de
   teléfono alrededor. El max-width es sólo para no estirar el formulario en
   una pantalla de escritorio (testing/tablet); en un celular real
   (viewport < 480px) ya ocupa el ancho entero. */
.app {
  width: 100%; max-width: 480px; margin: 0 auto;
  height: 100vh; height: 100dvh;
  background: var(--bg-card); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.nv-top { background: var(--sidebar-bg); color: #fff; padding: 13px 16px; display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.nv-top.ok { background: var(--success); }
.nv-top .ico { font-size: 21px; color: var(--accent); }
.nv-top.ok .ico { color: #fff; }
.nv-top .who { font-size: 12.5px; color: var(--sidebar-text); }
.nv-top.ok .who { color: rgba(255,255,255,.8); }
.nv-top .per { font-size: 17px; font-weight: 700; }
.nv-top .back { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 0 4px 0 0; line-height: 1; }

/* El cuerpo scrollea; el encabezado y la barra de acción NO — con una
   nómina larga el botón de enviar no puede vivir al final del scroll. */
.nv-body { padding: 16px; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.scr { display: none; }
.scr.on { display: flex; flex-direction: column; gap: 13px; flex: 1; min-height: 0; }
.scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 13px; padding-right: 2px; }
.scroll::-webkit-scrollbar { width: 5px; }
.scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.actionbar { flex: 0 0 auto; padding-top: 11px; margin-top: 2px; border-top: 1px solid var(--border); background: var(--bg-card); display: flex; flex-direction: column; gap: 8px; }
.stickytop { flex: 0 0 auto; padding-bottom: 10px; display: flex; flex-direction: column; gap: 9px; }

/* .big = modificador táctil de .btn (siempre junto a "btn btn-secondary big"). El target mínimo de 60px es restricción de diseño. */
.big { min-height: 60px; padding: 13px 15px; width: 100%; justify-content: flex-start; gap: 12px; font-size: 15.5px; text-align: left; white-space: normal; line-height: 1.35; }
.big > i:first-child { font-size: 24px; flex: 0 0 auto; }
.big .sub2 { display: block; font-size: 12.5px; font-weight: 400; opacity: .72; margin-top: 2px; }
.big--go { justify-content: center; font-size: 17px; }
.big--sm { min-height: 50px; font-size: 14.5px; }

/* .emp = modificador de .card para la fila táctil de un empleado. */
.emp { display: flex; align-items: center; gap: 11px; padding: 11px 13px; width: 100%; text-align: left; font-family: inherit; cursor: pointer; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.emp:hover { border-color: var(--accent); box-shadow: var(--shadow-xs); }
.emp.done { border-color: var(--success-border); background: var(--success-bg); }
.emp .av { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-muted); display: grid; place-items: center; font-weight: 700; color: var(--text-secondary); flex: 0 0 auto; font-size: 14px; }
.emp.done .av { background: var(--success-border); color: var(--success); }
.emp .nm { font-size: 15.5px; font-weight: 700; color: var(--text-primary); }
.emp .st { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.emp .st.ok { color: var(--success); font-weight: 600; }
.emp .chev { margin-left: auto; color: var(--text-muted); font-size: 19px; flex: 0 0 auto; }

.prog { font-size: 13.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 9px; }
.prog .bar { flex: 1; height: 8px; background: var(--bg-muted); border-radius: 999px; overflow: hidden; }
.prog .bar > span { display: block; height: 100%; background: var(--success); transition: width .25s; }

.grp { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 8px 0 -4px; }
.buscar { position: relative; }
.buscar input { min-height: 44px; font-size: 15px; padding-left: 34px; }
.buscar > i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 15px; }
.filtro { display: flex; gap: 5px; }
.filtro .ds-segmented-control__option { padding: 7px 8px; font-size: 11.8px; justify-content: center; }
.vacio { text-align: center; color: var(--text-muted); font-size: 14px; padding: 26px 10px; }

/* Campos: input/select/textarea/label ya estilados arriba. Acá sólo se
   agranda el target táctil para móvil. */
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld > label { font-size: 14.5px; font-weight: 700; color: var(--text-secondary); }
.fld > label .rq { color: var(--danger); }
.fld .hint { font-size: 12.5px; color: var(--text-muted); }
.fld input, .fld select, .fld textarea { min-height: 50px; font-size: 16.5px; }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: var(--danger); }
.fld.bad .stepper button { border-color: var(--danger); }
.fld .err { font-size: 12.5px; color: var(--danger); font-weight: 600; display: none; }
.fld.bad .err { display: block; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 52px; height: 52px; font-size: 24px; font-weight: 700; }
.stepper .val { font-size: 27px; font-weight: 800; min-width: 58px; text-align: center; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-secondary); min-height: 50px; padding: 0 2px; cursor: pointer; font-weight: 400; }
.chk input { width: 26px; height: 26px; min-height: 0; }

/* .nvchip = modificador de .card para una novedad ya cargada. */
.nvchip { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.nvchip > i:first-child { font-size: 19px; color: var(--accent-dark); flex: 0 0 auto; }
.nvchip .t { font-size: 14.5px; font-weight: 700; color: var(--text-primary); }
.nvchip .d { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.nvchip .x { margin-left: auto; background: none; border: none; color: var(--danger); font-size: 19px; cursor: pointer; padding: 0 2px; flex: 0 0 auto; }

.lnk { background: none; border: none; color: var(--accent-dark); font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 9px 0; text-align: left; font-family: inherit; }
.lnk:hover { color: var(--accent-hover); }

.rcpt { text-align: center; padding: 16px 4px 4px; }
.rcpt .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 38px; margin: 0 auto 12px; }
.rcpt h2 { font-size: 21px; margin: 0 0 5px; color: var(--text-primary); }
.rcpt p { color: var(--text-muted); font-size: 14.5px; margin: 0 0 3px; }

.banner--tight { font-size: 12.5px; }

/* Ocultar por CLASE, no por estilo inline. `el.style.display=''` NO es "visible":
   es "usa la hoja", y si la hoja dice none el elemento queda oculto con el test en
   verde. Eso paso dos veces en el prototipo de este mismo canal. */
.oculto { display: none !important; }

/* El logo del estudio en el header (variante A, owner 2026-07-31). Alto igual al del ícono
   que reemplaza (21px) para no mover la barra. `flex:0 0 auto` porque el contenedor es flex
   y sin eso el logo se comprime cuando la razón social es larga — que es el caso real
   (CONSTRUCCIONES Y MANTENIMIENTOS BONAERENSES S.A. parte en tres líneas). */
.nv-top .ico-logo { height: 21px; width: auto; display: block; flex: 0 0 auto; }
