/* ──────────────────────────────────────────────────────────────────────────
   IN-HOUSE EN RODAJE · con el aspecto de Bulx            (18/10/2026)

   La pantalla era la única de Personal que seguía con la cara vieja: bloques
   numerados en cuadrados, campos a canto vivo y las pestañas como texto
   subrayado. Al lado del resto de Bulx cantaba.

   Esto es una CAPA: no toca el pintor de `app.js`, solo viste lo que ya pinta.
   Quitar el <link> de index.html deja la pantalla exactamente como estaba, y
   —más importante— el día que alguien reescriba el pintor, esto no estorba.

   El idioma es el de bulx.css: tinta y amarillo, esquinas de 14 a 24, chips en
   píldora, Inter, y el hexágono como sello de la casa. El número de cada
   bloque no se esconde —dice por dónde se empieza— pero deja de ser un
   cuadrado negro y pasa a ser un panal, que es lo que distingue a Bulx.
   ────────────────────────────────────────────────────────────────────────── */

#page-inhouse {
  --ih-tinta: #1D1F1C;
  --ih-am: #FEC833;
  --ih-papel: var(--surface);
  --ih-hundido: var(--surface-2);
  --ih-linea: var(--border);
  --ih-suave: var(--text-soft);
}

/* ── Las pestañas: de texto subrayado a píldoras ──────────────────────────
   En una barra hundida, como los filtros del resto de Bulx. Así se lee que
   son opciones entre las que se elige, no enlaces sueltos. */
#page-inhouse .ih-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  background: var(--ih-hundido);
  border: 0 !important;
  border-radius: 999px !important;
}
#page-inhouse .ih-tab {
  height: 36px;
  padding: 0 18px;
  border: 0 !important;
  border-radius: 999px !important;
  background: none;
  color: var(--text-2);
  font: 600 13.5px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
#page-inhouse .ih-tab::after { display: none !important; }   /* el subrayado viejo */
#page-inhouse .ih-tab:hover { color: var(--text); }
#page-inhouse .ih-tab.activa { background: var(--ih-tinta); color: var(--ih-am); }

/* El enlace a Dirección no es una pestaña más: es una salida. Va al final,
   despegado, y sin la píldora, para que no se confunda con las otras dos. */
#page-inhouse .ih-tab-ir {
  margin-inline-start: 10px;
  color: var(--ih-suave);
}
#page-inhouse .ih-tab-ir:hover { color: var(--text); background: none; }

/* ── Los bloques ────────────────────────────────────────────────────────── */
#page-inhouse .pf-sec {
  background: var(--ih-papel);
  border: 1px solid var(--ih-linea);
  border-radius: var(--bx-r-xl, 24px) !important;
  padding: 4px 4px 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(29, 31, 28, .04);
}
#page-inhouse .pf-sec > *:not(.pn-auto) { padding-inline: 24px; }

/* El número, de cuadrado negro a panal. Bulx es un panal: el hexágono es su
   sello y aquí hace el mismo trabajo que hacía el cuadrado. */
#page-inhouse .pn-auto { padding: 22px 24px 0 !important; gap: 13px !important; }
#page-inhouse .pn-num {
  width: 24px; height: 21px;
  background: var(--ih-am) !important;
  color: var(--ih-tinta) !important;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  border-radius: 0 !important;
  font: 800 11px/1 Inter, system-ui, sans-serif !important;
  margin-top: 2px !important;
}
#page-inhouse .pn-auto-txt h2 {
  font: 800 19px/1.2 Inter, system-ui, sans-serif !important;
  letter-spacing: -.03em !important;
}
#page-inhouse .pn-auto-txt p { font-size: 13px !important; line-height: 1.5 !important; }

/* El contador de la cabecera y el interruptor de «los de todos» */
#page-inhouse .pf-sec-n {
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: var(--ih-hundido) !important;
  font: 700 11.5px/1 Inter, system-ui, sans-serif !important;
  letter-spacing: 0 !important;
}
#page-inhouse .ih-todas {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--ih-linea);
  border-radius: 999px !important;
  font: 600 12.5px/1 Inter, system-ui, sans-serif;
  color: var(--text-2);
  cursor: pointer;
}
#page-inhouse .ih-todas:hover { border-color: var(--border-med); color: var(--text); }

/* ── El formulario ──────────────────────────────────────────────────────── */
#page-inhouse .ih-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  align-items: end;
}
#page-inhouse .ih-ancho { grid-column: 1 / -1; }

#page-inhouse .aj-campo { display: flex; flex-direction: column; gap: 6px; }
#page-inhouse .aj-campo > span {
  font: 600 12.5px/1.3 Inter, system-ui, sans-serif;
  color: var(--text-2);
  letter-spacing: 0;
  text-transform: none;
}
#page-inhouse .aj-campo > span em {
  font-style: normal;
  color: var(--text-xsoft);
  font-weight: 500;
}
#page-inhouse .aj-campo input,
#page-inhouse .aj-campo select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ih-linea);
  border-radius: var(--bx-r-m, 14px) !important;
  background-color: var(--ih-papel);
  color: var(--text);
  font: 500 13.5px Inter, system-ui, sans-serif;
}
#page-inhouse .aj-campo select { padding-inline-end: 34px; }
#page-inhouse .aj-campo input:focus,
#page-inhouse .aj-campo select:focus {
  border-color: var(--ih-am);
  box-shadow: 0 0 0 3px rgba(254, 200, 51, .22);
  outline: none;
}

/* El pie: el botón que hace la cosa, y a nombre de quién se hace. */
#page-inhouse .ih-form-pie {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--ih-linea);
}
#page-inhouse .ih-form-pie .btn-primary {
  height: 44px;
  padding: 0 26px;
  border-radius: 999px !important;
  font: 700 13.5px/1 Inter, system-ui, sans-serif;
}
#page-inhouse .ih-quien { font-size: 13px; color: var(--ih-suave); }
#page-inhouse .ih-quien b { color: var(--text); font-weight: 700; }

/* ── El recuento de días ──────────────────────────────────────────────────
   Una tarjeta por rodaje (o por persona, con «los de todos» puesto). Filas
   como tarjetas, que es como se lee el resto de Bulx. */
#page-inhouse .ihd-grupos { display: grid; gap: 10px; }
#page-inhouse .ihd-grupo {
  background: var(--ih-hundido);
  border: 1px solid transparent;
  border-radius: var(--bx-r-l, 18px) !important;
  overflow: hidden;
}
#page-inhouse .ihd-grupo:hover { border-color: var(--ih-linea); }
#page-inhouse .ihd-cab {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
}
#page-inhouse .ihd-que { font: 700 14.5px/1.25 Inter, system-ui, sans-serif; }

/* Los días, en una teja amarilla. Es la cifra que se viene a mirar. */
#page-inhouse .ihd-dias {
  margin-inline-start: auto;
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 13px;
  background: var(--ih-am);
  color: var(--ih-tinta);
  border-radius: 999px !important;
  font: 800 13px/1 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#page-inhouse .ihd-filas { background: var(--ih-papel); }
#page-inhouse .ihd-fila {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--ih-linea);
  font-size: 13px;
}
#page-inhouse .ihd-cuando { color: var(--text-2); }
#page-inhouse .ihd-n { font-variant-numeric: tabular-nums; color: var(--ih-suave); }
#page-inhouse .ihh-x {
  margin-inline-start: auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; background: none;
  border-radius: 999px !important;
  color: var(--text-xsoft); cursor: pointer;
}
#page-inhouse .ihh-x:hover { background: var(--ih-hundido); color: var(--red, #D92D20); }

#page-inhouse .pf-nada {
  padding: 26px 24px;
  text-align: center;
  color: var(--ih-suave);
  font-size: 13.5px;
}

/* ── El héroe ─────────────────────────────────────────────────────────────
   Lo pone `inhouse-bulx.js`. Tarjeta de tinta con el panal tenue, como el
   veredicto de «¿Compensa?»: la cifra que se viene a ver, en grande, antes de
   cualquier formulario. */
#page-inhouse .ihb-heroe {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding: 30px 34px;
  margin-bottom: 16px;
  border-radius: 28px !important;
  background: var(--ih-tinta);
  color: #FBFBFB;
}
@media (max-width: 860px) { #page-inhouse .ihb-heroe { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

#page-inhouse .ihb-panal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#page-inhouse .ihb-panal polygon { fill: rgba(251, 251, 251, .02); stroke: rgba(254, 200, 51, .07); stroke-width: 1; }
#page-inhouse .ihb-panal polygon.lleno { fill: rgba(254, 200, 51, .22); stroke: none; }

#page-inhouse .ihb-texto, #page-inhouse .ihb-cifras { position: relative; }
#page-inhouse .ihb-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  font: 700 12.5px/1 Inter, system-ui, sans-serif;
  color: rgba(251, 251, 251, .62);
}
#page-inhouse .ihb-hexito {
  width: 14px; height: 12px;
  background: var(--ih-am);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
#page-inhouse .ihb-heroe h2 {
  margin: 0;
  font: 900 clamp(26px, 3.2vw, 40px)/1.03 Inter, system-ui, sans-serif;
  letter-spacing: -.045em;
  color: #FBFBFB;
  text-wrap: balance;
}
#page-inhouse .ihb-heroe h2 b { color: var(--ih-am); font-weight: 900; }
#page-inhouse .ihb-sub {
  margin: 12px 0 0;
  max-width: 54ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(251, 251, 251, .7);
}
#page-inhouse .ihb-cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#page-inhouse .ihb-cifras div {
  padding: 15px 16px 13px;
  border-radius: 18px !important;
  background: rgba(251, 251, 251, .06);
  display: flex; flex-direction: column; gap: 5px;
}
#page-inhouse .ihb-cifras b {
  font: 900 25px/1 Inter, system-ui, sans-serif;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: #FBFBFB;
}
#page-inhouse .ihb-cifras span { font-size: 11.5px; line-height: 1.3; color: rgba(251, 251, 251, .58); }
#page-inhouse .ihb-cifras .ihb-fuerte { background: var(--ih-am); }
#page-inhouse .ihb-cifras .ihb-fuerte b { color: var(--ih-tinta); }
#page-inhouse .ihb-cifras .ihb-fuerte span { color: rgba(29, 31, 28, .7); }
