/* ═══════════════════════════════════════════════════════════════════════════
   RENOVO · FAMILIA DEL PIN — la base común de todas las pantallas rehechas (05/10/2026)

   Imágenes aprobadas: docs/diseno-aprobado/. Este archivo es la versión en código.
   Lo usan Claude y ChatGPT por igual: una pantalla nueva SOLO usa clases `fam-*` y
   variables `--f-*`. Nada de .btn, .qbtn, .card ni <section> (app.css y elite.css las
   pisan con !important). Si falta una pieza, se añade AQUÍ, no en el módulo.

   Leyes (higiene.sh las vigila en este archivo): ni blanco ni negro puros; ningún fondo
   plano detrás del contenido (siempre la luz cálida de .fam::before); contraste AA.
   Se carga el último (después de acabado.css).
   ═══════════════════════════════════════════════════════════════════════════ */

.fam,
#main > .con-view,
#main > .account-view:has(.set-group,#bizFormTitle) {
  /* Tema claro (cálido) */
  --f-acc: #b54b27;          /* botón principal (AA con --f-acc-ink) */
  --f-acc-txt: #a8402b;      /* acento en texto. Medido 28/10: #b04a27 daba 4,25:1 sobre el cristal; este da 4,77:1 */
  --f-acc-ink: #fff6ee;      /* texto sobre el botón */
  --f-bad: #a8402b;          /* lo que va mal (AA sobre cristal) */
  --f-good: #47703a;         /* lo que va bien */
  --f-star: #86601f;         /* la nota ES el dato: a #a7782a daba 3,75:1 y no se leía al sol */
  --f-ink: #2a2420;          /* texto principal */
  --f-ink2: #4d443c;         /* texto secundario */
  --f-soft: #64594e;         /* texto suave. Medido 28/10: el #6f655a anterior daba 4,34:1 sobre el cristal de la barra */
  --f-line: rgba(74, 52, 32, .11);
  --f-glass: rgba(253, 248, 241, .58);
  --f-glass-hi: rgba(255, 252, 247, .72);
  --f-edge: rgba(255, 250, 243, .85);
  --f-tint: rgba(214, 190, 160, .22);
  --f-glow: rgba(255, 252, 246, .95);
  --f-shadow: 0 30px 70px -40px rgba(96, 62, 30, .38), 0 2px 6px -4px rgba(96, 62, 30, .12);
  --f-btn-shadow: 0 12px 24px -14px rgba(96, 62, 30, .55);
  --f-r: 24px;
  --f-ease: cubic-bezier(.2, .7, .2, 1);

  max-width: 1100px; margin: 0 auto; padding: 8px 0 40px;
  position: relative; isolation: isolate; color: var(--f-ink);
  font-variant-numeric: lining-nums;
}
:root:not([data-theme="light"]) :is(.fam, #main > .con-view, #main > .account-view:has(.set-group,#bizFormTitle)) {
  /* Tema oscuro (cálido, nunca negro) */
  --f-acc: #e07a52; --f-acc-txt: #ec8a5f; --f-acc-ink: #1c130d;
  --f-bad: #e2856d; --f-good: #93b37f; --f-star: #d9a650;
  --f-ink: #f3ebe1; --f-ink2: #d6ccbf; --f-soft: #b0a596;
  --f-line: rgba(243, 235, 225, .1);
  --f-glass: rgba(36, 30, 24, .7); --f-glass-hi: rgba(48, 40, 32, .8);
  --f-edge: rgba(255, 240, 220, .08); --f-tint: rgba(255, 220, 180, .07);
  --f-glow: rgba(255, 214, 170, .07);
  --f-shadow: 0 30px 70px -36px rgba(8, 5, 2, .65);
  /* En oscuro, una sombra del color del acento se convierte en halo de neón: sombra, no luz. */
  --f-btn-shadow: 0 14px 28px -16px rgba(0, 0, 0, .8);
}

/* La luz del pin: nunca un fondo plano detrás del contenido. */
:is(.fam, #main > .con-view, #main > .account-view:has(.set-group,#bizFormTitle))::before { content: ""; position: absolute; inset: -60px -12% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 45% at 45% 22%, var(--f-glow), transparent 72%); }

/* ── Cabecera de pantalla ─────────────────────────────────────────────────── */
.fam .fam-eyebrow { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--f-soft); }
.fam .fam-h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; color: var(--f-ink); }
.fam .fam-h1 em { font-style: italic; color: var(--f-acc-txt); }
.fam .fam-lede { margin: 10px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.5; color: var(--f-soft); }

/* ── Rejilla: principal + lateral ─────────────────────────────────────────── */
.fam .fam-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 24px; }
.fam .fam-stack > * + * { margin-top: 24px; }

/* ── Cristal ──────────────────────────────────────────────────────────────── */
.fam .fam-panel { background: var(--f-glass); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid var(--f-edge); border-radius: var(--f-r); box-shadow: var(--f-shadow); }
.fam .fam-pad { padding: 22px 26px; }
.fam .fam-cap { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--f-soft); }
.fam .fam-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--f-ink); }

/* ── Filas de lista (decisiones, reseñas, facturas) ──────────────────────── */
.fam .fam-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 26px; }
.fam .fam-row + .fam-row { border-top: 1px solid var(--f-line); }
.fam .fam-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--f-tint); font-family: var(--font-display); font-size: 20px; color: var(--f-ink2); }
.fam .fam-av img { width: 100%; height: 100%; object-fit: contain; }
.fam .fam-row b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.25; color: var(--f-ink); }
.fam .fam-row small { display: block; margin-top: 2px; font-size: 14px; color: var(--f-soft); }
.fam .fam-num { font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--f-ink); }

/* ── Clave → valor (lateral, fichas) ─────────────────────────────────────── */
.fam .fam-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; }
.fam .fam-kv + .fam-kv { border-top: 1px solid var(--f-line); }
.fam .fam-kv span { font-size: 14px; color: var(--f-ink2); }
.fam .fam-kv small { display: block; font-size: 12.5px; color: var(--f-soft); }
.fam .fam-kv strong { font-size: 20px; font-weight: 600; color: var(--f-ink); white-space: nowrap; }

/* ── Cita (reseñas) ───────────────────────────────────────────────────────── */
.fam .fam-quote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--f-ink); }
.fam .fam-note { margin-top: 14px; padding: 16px 20px; border-radius: 16px; background: var(--f-tint); border: 1px solid var(--f-line); font-size: 15px; line-height: 1.6; color: var(--f-ink); }

/* ── Estados de una cifra ─────────────────────────────────────────────────── */
.fam .is-bad { color: var(--f-bad); }
.fam .is-good { color: var(--f-good); }
.fam .is-acc { color: var(--f-acc-txt); }

/* ── Acciones: un botón principal por decisión, lo demás es texto ────────── */
.fam .fam-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.fam .fam-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--f-acc); color: var(--f-acc-ink); font: 600 15px/1.2 var(--font-ui); text-decoration: none;
  box-shadow: var(--f-btn-shadow); }
.fam .fam-btn:hover { filter: brightness(1.06); }
.fam .fam-btn:active { transform: translateY(1px); }
.fam .fam-link { padding: 4px 0; border: 0; background: none; cursor: pointer; font: 500 15px/1.2 var(--font-ui); color: var(--f-ink2); text-decoration: none; }
.fam .fam-link:hover { color: var(--f-acc-txt); }
.fam :is(.fam-btn, .fam-link):focus-visible { outline: 2px solid var(--f-acc-txt); outline-offset: 3px; }

/* Campos: elite.css los fuerza con !important y 2 ids; aquí se gana con una clase más. */
html body.page-app #main .fam :is(textarea, input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]), select):not(#reportBody *) {
  background: var(--f-glass-hi) !important; color: var(--f-ink) !important; border: 1px solid var(--f-line) !important;
  border-radius: 14px !important; padding: 12px 14px !important; font-size: 15px !important; line-height: 1.55 !important; }

/* 28/10 · Suelo de 11 px. Un `<small>` suelto hereda 0,8333 em y caía a 10,8 px en Locales
   y Ajustes; el repo ya había fijado 11 px como mínimo el 27/10. Nadie lee a 10,8 px al sol. */
:is(.fam, .hoy-atl, .hesc, #main > .con-view, #main > .account-view) small { font-size: max(11px, .8333em); }

/* ── Aviso de demo, discreto ──────────────────────────────────────────────── */
.fam .fam-demo { margin: 16px 0 0; font-size: 12.5px; color: var(--f-soft); }

/* ═══════════════════════════════════════════════════════════════════════════
   LA CAPA VIVA (27/10/2026) · «sigue siendo un software muy muerto» — David

   Measured before writing this: the app shipped **7 different easing curves** and
   **10+ durations**, one of them an overshoot (`cubic-bezier(.2,.9,.3,1.2)`) — that
   bounce is what reads as «videojuego». The craft rule is ONE curve and ≤3 durations.
   Here they are, as tokens, and everything below is built only on them.

   The one law of this layer: **a figure in euros never animates its digits.**
   Interpolating money is lying for 240 ms. What moves is geometry (a bar growing
   from zero, a row settling into place) and light — never the number itself.
   ═══════════════════════════════════════════════════════════════════════════ */
.fam, .hoy-atl, .hesc {
  --f-t1: 120ms;   /* answer to a finger: press, hover */
  --f-t2: 240ms;   /* one element arriving */
  --f-t3: 420ms;   /* a panel or a section arriving */
}

/* Entrada: la pantalla se posa, no aparece de golpe. 8 px y luz, nunca escala. */
@keyframes famEntra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Proporción honesta: la barra crece desde cero porque su largo ES el dato. */
@keyframes famCrece { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* app.css ya levantaba `#main > *` con otra curva, pero cada pantalla pinta UN solo hijo:
   subía el bloque entero de una pieza y dentro no se movía nada. Esa es la sensación de
   muerto. Aquí se apaga ese nivel en las pantallas de la familia y se escalona lo de dentro;
   dos sistemas de movimiento a la vez emborronan. */
#main > :is(.fam, .hoy-atl, .hesc) { animation: none !important; }

:is(.fam, .hoy-atl, .hesc) > :is(header, .fam-grid, .fam-rep-bar, .fam-panel, .hoy-grid, .atl-list, .atl-ficha),
#main #reportSheet > * {
  animation: famEntra var(--f-t3, 420ms) var(--f-ease, cubic-bezier(.2, .7, .2, 1)) both;
}
/* El escalonado se nota y no se espera: 7 pasos de 45 ms y para. */
:is(.fam, .hoy-atl, .hesc) > :nth-child(2), #main #reportSheet > :nth-child(2) { animation-delay: 45ms; }
:is(.fam, .hoy-atl, .hesc) > :nth-child(3), #main #reportSheet > :nth-child(3) { animation-delay: 90ms; }
:is(.fam, .hoy-atl, .hesc) > :nth-child(4), #main #reportSheet > :nth-child(4) { animation-delay: 135ms; }
:is(.fam, .hoy-atl, .hesc) > :nth-child(5), #main #reportSheet > :nth-child(5) { animation-delay: 180ms; }
:is(.fam, .hoy-atl, .hesc) > :nth-child(6), #main #reportSheet > :nth-child(6) { animation-delay: 225ms; }
:is(.fam, .hoy-atl, .hesc) > :nth-child(n+7), #main #reportSheet > :nth-child(n+7) { animation-delay: 270ms; }

/* Las filas de una lista entran una tras otra, pero solo las que se ven sin rodar. */
.fam-rep-list > .fam-rep-item { animation: famEntra var(--f-t2) var(--f-ease) both; }
.fam-rep-list > .fam-rep-item:nth-child(2) { animation-delay: 60ms; }
.fam-rep-list > .fam-rep-item:nth-child(3) { animation-delay: 110ms; }
.fam-rep-list > .fam-rep-item:nth-child(n+4) { animation-delay: 150ms; }

/* Cualquier barra de proporción de la familia crece desde cero. */
.fam [data-crece], .fam-report-bar > span, .hoy-atl [data-crece] {
  transform-origin: left center;
  animation: famCrece var(--f-t3) var(--f-ease) both;
}

/* Respuesta al dedo: lo que se puede tocar se mueve 1 px y aclara. Nada rebota. */
:is(.fam, .hoy-atl, .hesc) :is(button, a, [role="button"]):not(:disabled) {
  transition: background var(--f-t1) var(--f-ease), color var(--f-t1) var(--f-ease),
              filter var(--f-t1) var(--f-ease), transform var(--f-t1) var(--f-ease);
}
:is(.fam, .hoy-atl, .hesc) :is(button, a, [role="button"]):not(:disabled):active { transform: translateY(1px); }
.fam-rep-item { transition: background var(--f-t2) var(--f-ease); }
.fam-rep-item:hover { background: var(--f-glass-hi); }

/* Nada de esto es obligatorio: quien pide menos movimiento, no lo recibe. */
@media (prefers-reduced-motion: reduce) {
  .fam *, .hoy-atl *, .hesc * { transition: none !important; }
  .fam, .hoy-atl, .hesc, .fam *, .hoy-atl *, .hesc *, #main #reportSheet > * {
    animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── Móvil ────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fam .fam-grid { grid-template-columns: minmax(0, 1fr); }
  .fam .fam-pad { padding: 18px; }
  .fam .fam-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 14px 18px; }
  .fam .fam-av { width: 40px; height: 40px; font-size: 17px; }
  .fam .fam-row b { font-size: 17px; }
  .fam .fam-quote { font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PIEZAS PROPIAS DE CADA MÓDULO — cada IA escribe SOLO dentro de su bloque
   (bloques separados = sin choques de git). Lo que sirva a dos módulos sube arriba.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Barra superior · Claude ──────────────────────────────────────────────── */

/* ── Reputación · Claude ──────────────────────────────────────────────────── */
/* 20/10/2026 · Reputación joins the family. It used to be a sheet of flat text:
   acabado.css flattens .qcard to `display:block; padding:24px 0`, so there was no
   card, no glass, no light — and the actions read as underlined links. Measured in
   Chromium at 1440 px against docs/diseno-aprobado/03-hoy-boceto-aprobado.webp. */
.fam-rep { padding-bottom: 120px; overflow-x: clip; } /* the .fam::before glow must not widen the page */
.fam-rep .fam-h1 b { font-weight: 400; font-style: italic; color: var(--f-acc-txt); }

/* Filter: lives OUTSIDE the glass, because it filters the content, it is not content. */
.fam-rep-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 26px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--f-line); }
.fam-rep-tabs { display: flex; gap: 24px; }
.fam-rep-tab { padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; font: 500 14px/1.2 var(--font-ui); color: var(--f-soft); }
.fam-rep-tab .n { margin-left: 7px; font-variant-numeric: tabular-nums; color: var(--f-soft); }
.fam-rep-tab.on { color: var(--f-ink); border-bottom-color: var(--f-acc); }
.fam-rep-tab:focus-visible { outline: 2px solid var(--f-acc-txt); outline-offset: 3px; }
.fam-rep-tools { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--f-soft); }
.fam-rep-tools label { display: inline-flex; align-items: center; gap: 8px; }
html body.page-app #main .fam-rep-tools select { padding: 7px 10px !important; font-size: 13px !important; }
.fam-rep .fam-grid { margin-top: 20px; }

/* One review = one decision. Glass, not a text row. */
.fam-rep-list { overflow: hidden; }
.fam-rep-item + .fam-rep-item { border-top: 1px solid var(--f-line); }
.fam-rep-item.is-wait { background: var(--f-glass-hi); }
.fam-rep-top { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 26px; }
.fam-rep-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--f-glass-hi), var(--f-tint)); border: 1px solid var(--f-edge);
  font-family: var(--font-display); font-size: 21px; color: var(--f-ink2); }
.fam-rep-who b { display: block; font: 400 20px/1.2 var(--font-display); color: var(--f-ink); overflow-wrap: anywhere; }
.fam-rep-who small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: 13px; color: var(--f-soft); }
.fam-rep-who svg { width: 14px; height: 14px; display: block; }
.fam-stars { letter-spacing: 1px; white-space: nowrap; }
.fam-stars i { font-style: normal; color: var(--f-star); }
.fam-stars i.off { color: var(--f-soft); opacity: .4; }
.fam-rep-new { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--f-acc-txt); }
.fam-rep-state { font-size: 13px; white-space: nowrap; color: var(--f-soft); }
.fam-rep-state.wait { color: var(--f-acc-txt); font-weight: 500; }
.fam-rep-state.care { color: var(--f-bad); font-weight: 500; }

.fam-rep-body { padding: 0 26px 22px 88px; }
.fam-rep-body .fam-quote { font-size: 19px; }
.fam-rep-draft { margin-top: 14px; padding: 16px 18px 14px; border-radius: 16px; background: var(--f-tint); border: 1px solid var(--f-line); }
.fam-rep-draft .fam-cap { margin: 0 0 8px; font-size: 11px; }
.fam-rep-draft p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--f-ink); }
html body.page-app #main .fam .rep-human-ta { display: block; width: 100% !important; min-height: 6lh !important; max-height: 22lh; resize: vertical; margin: 0 !important; }
.fam-rep-guard { margin-left: auto; font-size: 12.5px; line-height: 1.4; color: var(--f-soft); }
.fam-rep-answer { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--f-ink2); }

/* Side panel: the same figures as the rest of the app, never different ones. */
.fam-rep-star { color: var(--f-star); font-size: 16px; }
.fam-rep-aside .fam-kv strong.soft { font-size: 14px; font-weight: 500; color: var(--f-soft); white-space: normal; text-align: right; }
.fam-rep-aside .fam-kv + .fam-cap { margin-top: 20px; }
.fam-rep-sync { margin: 14px 0 0; font-size: 12.5px; color: var(--f-soft); }
.fam-rep-sync .fam-btn { margin-top: 10px; }
.fam-rep-bridge blockquote { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.35; color: var(--f-ink); }
.fam-rep-bridge blockquote b { font-weight: 400; font-style: italic; color: var(--f-acc-txt); }
.fam-rep-bridge .who { margin: 8px 0 14px; font-size: 13px; line-height: 1.5; color: var(--f-soft); }
.fam-rep-bridge .src { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--f-soft); }
.fam-rep-bridge .fam-link { margin-top: 12px; display: inline-block; color: var(--f-acc-txt); }

/* The four states, none of them borrowed from another screen. */
.fam-rep-skel { padding: 20px 26px; }
.fam-rep-skel + .fam-rep-skel { border-top: 1px solid var(--f-line); }
.fam-rep-skel i { display: block; height: 10px; border-radius: 6px; background: var(--f-tint); animation: famSkel 1.5s ease infinite; }
.fam-rep-skel i + i { margin-top: 10px; }
.fam-rep-skel i.w40 { width: 40%; } .fam-rep-skel i.w90 { width: 90%; } .fam-rep-skel i.w70 { width: 70%; }
@keyframes famSkel { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fam-rep-skel i { animation: none; } }
.fam-rep-void { padding: 30px 26px; }
.fam-rep-void b { display: block; font: 400 21px/1.25 var(--font-display); color: var(--f-ink); }
.fam-rep-void p { margin: 8px 0 0; max-width: 54ch; font-size: 14px; line-height: 1.6; color: var(--f-soft); }
.fam-rep-void .fam-acts { margin-top: 16px; }
.fam-rep-done { display: flex; align-items: flex-start; gap: 12px; padding: 26px; font-size: 15px; line-height: 1.5; color: var(--f-ink2); }
.fam-rep-done svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--f-good); }

@media (max-width: 900px) {
  .fam-rep .fam-grid { grid-template-columns: minmax(0, 1fr); }
  .fam-rep-top { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 18px; }
  .fam-rep-av { width: 40px; height: 40px; font-size: 18px; }
  .fam-rep-who b { font-size: 18px; }
  .fam-rep-state { grid-column: 2; margin-top: 2px; }
  .fam-rep-body { padding: 0 18px 20px; }
  .fam-rep-guard { margin-left: 0; width: 100%; }
  .fam-rep-bar { gap: 10px 16px; }
  .fam-rep-tools { margin-left: 0; width: 100%; }
}

/* ── Facturas · Claude ────────────────────────────────────────────────────── */

/* ── Contenido · ChatGPT ──────────────────────────────────────────────────── */
/* Adaptadores de las vistas existentes: mismos tokens, datos y callbacks intactos (Codex, 27/10).
   28/10 · Sin anidado CSS nativo. Codex lo anidó para caber en el presupuesto de peso de
   `studio/` y lo dejó anotado como deuda: el anidado necesita Chrome 120, Safari 17.2 o
   Firefox 117, así que en un iPhone con iOS 16 el bloque ENTERO no se aplicaba y estas tres
   pantallas volvían al aspecto viejo. Escrito plano cuesta ~1 KB de los 28 KB libres medidos.
   28/10 · Y los campos entran en la familia: faltaban. En la misma fila de Ajustes convivían
   un input de radio 2 px y un botón de radio 99 px. */
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view,.account-view){overflow-x:clip;--f-t1:120ms;--f-t2:240ms}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .account-view>:is(.subpane,.set-group),html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .con-view #subview>.subpane,html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .con-view .hoja .pad{background:var(--f-glass)!important;border:1px solid var(--f-edge)!important;border-radius:24px!important;box-shadow:var(--f-shadow)!important;padding:24px!important;-webkit-backdrop-filter: blur(20px) saturate(1.15)!important; backdrop-filter: blur(20px) saturate(1.15)!important;margin-bottom:20px}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .account-view .set-group>.subpane{background:none!important;border:0!important;border-top:1px solid var(--f-line)!important;box-shadow:none!important;padding:20px 0!important}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .account-view .set-sum{font:400 25px/1.3 var(--font-display)!important;color:var(--f-ink)!important;padding:0 0 18px!important}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .account-view .set-group:not([open]) .set-sum{padding:0!important}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view,.account-view) :is(button,input,textarea,select,summary):focus-visible{outline:2px solid var(--f-acc);outline-offset:4px}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view,.account-view) :is(textarea,input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),select){background:var(--f-glass-hi)!important;color:var(--f-ink)!important;border:1px solid var(--f-line)!important;border-radius:14px!important;padding:12px 14px!important;font-size:15px!important;line-height:1.55!important;min-height:44px}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view .tabbtn,.account-view .vchip){min-height:44px!important;border-radius:24px!important;padding:10px 18px!important}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view .tabbtn,.account-view .vchip).on{background:var(--f-tint)!important;color:var(--f-ink)!important}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view,.account-view) .btn-primary{background:var(--f-acc)!important;color:var(--f-acc-ink)!important;border-radius:99px!important;box-shadow:var(--f-btn-shadow)!important;min-height:44px!important;padding:12px 22px!important}
html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .con-view #hCal .day[aria-pressed=true]{background:var(--f-tint);border-color:var(--f-acc)}
@media(hover:hover){html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view,.account-view) button{transition:background 120ms var(--f-ease),filter 120ms var(--f-ease)}html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view,.account-view) .btn-primary:hover{filter:brightness(1.06)}}
@media(prefers-reduced-motion:no-preference){html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .account-view>.set-group,html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .account-view>.subpane,html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .account-view details[open]>.subpane,html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .con-view #subview>:is(.hoja,.subpane){animation:famEntra 240ms var(--f-ease) both}}
@media(prefers-reduced-motion:reduce){html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view,.account-view),html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view,.account-view) *{animation:none!important;transition:none!important;transform:none!important}}
@media(max-width:700px){html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .account-view .list-item{flex-wrap:wrap}html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) .con-view .hoja .two{grid-template-columns:minmax(0,1fr)}html body.page-app #main#main:has(>.con-view,.set-group,#bizFormTitle):not(#reportBody) :is(.con-view .tabbtn,.account-view .vchip){padding:10px 12px!important;font-size:13px!important}}

/* ── Informe · ChatGPT ────────────────────────────────────────────────────── */
.fam-report { padding-bottom: 140px; overflow: clip; }
:root[data-theme="light"] .fam-report { --f-soft: #655a50; }
.fam-report .fam-report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.fam-report-toolbar .fam-acts { margin: 0; }
#main #reportSheet.fam-report-sheet { background: var(--f-glass) !important; color: var(--f-ink) !important; border: 1px solid var(--f-edge); border-radius: var(--f-r); padding: clamp(22px, 4vw, 48px); box-shadow: var(--f-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.fam-report-header { padding-bottom: 32px; border-bottom: 1px solid var(--f-line); }
.fam-report-menu { padding-top: 28px; }
.fam-report-menu > .fam-lede { font-size: 14px; }
.fam-report-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 44px; margin-top: 28px; align-items: start; }
.fam-report-columns > * { min-width: 0; }
#main #reportSheet .fam-report-row { display: grid !important; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid var(--f-line) !important; border-radius: 0 !important; background: transparent !important; color: var(--f-ink) !important; box-shadow: none !important; text-align: left; cursor: pointer; font: inherit; transition: background .18s var(--f-ease); }
#main #reportSheet .fam-report-row:hover { background: var(--f-tint) !important; }
#main #reportSheet .fam-report-row:focus-visible { outline: 2px solid var(--f-acc-txt); outline-offset: 4px; }
#main #reportSheet .fam-report-row[hidden] { display: none !important; }
.fam-report-row img { width: 48px; height: 48px; object-fit: contain; }
.fam-report-row:not(:has(img)) .fam-report-dish { grid-column: 1 / 3; }
.fam-report-dish b { display: block; font: 400 18px/1.3 var(--font-display); overflow-wrap: anywhere; }
.fam-report-dish small { display: block; color: var(--f-soft); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.fam-report-value { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.fam-report-value > span { color: var(--f-soft); font-weight: 400; }
.fam-report-value.is-bad { color: var(--f-bad); }
.fam-report-value.is-warn, .fam-report-value.is-soft { color: var(--f-soft); }
.fam-report-next { padding: 20px 22px; background: var(--f-tint); border-radius: 18px; }
.fam-report-next .fam-report-row { grid-template-columns: minmax(0, 1fr) auto !important; }
.fam-report-next .fam-report-row img { display: none; }
.fam-report-next .fam-report-row:not(:has(img)) .fam-report-dish { grid-column: auto; }
.fam-report-next .fam-report-value { max-width: 12ch; font-size: 13px; }
.fam-report-steps { padding-top: 28px; }
.fam-report-steps ol { padding-left: 20px; margin: 16px 0 0; color: var(--f-ink2); font-size: 14px; line-height: 1.65; }
.fam-report-steps li + li { margin-top: 16px; }
.fam-report-activity { margin-top: 32px; border-top: 1px solid var(--f-line); }
.fam-report-activity > summary { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; cursor: pointer; list-style: none; }
.fam-report-activity > summary::-webkit-details-marker { display: none; }
.fam-report-activity > summary::after { content: none !important; }
.fam-report-activity > summary .fam-cap { display: block; margin-bottom: 6px; }
.fam-report-chevron { font-size: 24px; color: var(--f-soft); }
.fam-report-activity[open] .fam-report-chevron { transform: rotate(45deg); }
.fam-report-activity > summary:focus-visible { outline: 2px solid var(--f-acc-txt); outline-offset: 4px; }
.fam-report-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.fam-report-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--f-line); padding: 14px 0; }
.fam-report-metrics dt { font-size: 14px; color: var(--f-ink2); }
.fam-report-metrics dd { font-size: 21px; font-weight: 600; margin: 0; }
.fam-report-method { margin: 28px 0 0; }
.fam-report-method .fam-title { font-size: 20px; }
.fam-report-method .fam-lede { font-size: 13px; }
.fam-report-time { font-size: 24px; margin: 12px 0; }
.fam-report-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--f-line); font-size: 12.5px; line-height: 1.6; color: var(--f-soft); }
#main #reportSheet .fam-report-footer { display: block !important; }
.fam-report-error { padding: 28px 0; }
.fam-report-error .fam-link { margin-top: 16px; }
.fam-report .fam-btn:disabled, .fam-report .fam-link:disabled { opacity: .5; cursor: wait; }
@media (max-width: 700px) {
  .fam-report-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fam-report-toolbar { flex-wrap: wrap; }
  .fam-report-toolbar .fam-acts { gap: 16px; }
  #main #reportSheet .fam-report-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .fam-report-row img { width: 40px; height: 40px; }
  .fam-report-value { font-size: 15px; }
  .fam-report-metrics { grid-template-columns: minmax(0, 1fr); }
}
/* Exporta la misma composición completa, con tinta cálida sobre papel. */
#main.fam-report-export { padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; background: none !important; }
.fam-report-export > .fam { padding: 0; margin: 0; }
#main.fam-report-export *, #main.fam-report-export *::before, #main.fam-report-export *::after { animation: none !important; transition: none !important; }
#main #reportSheet.pdf-mode { --f-ink: #2a2420; --f-ink2: #4d443c; --f-soft: #64594e; --f-bad: #a8402b; --f-acc-txt: #a8402b; --f-line: rgba(74,52,32,.18); --f-tint: rgba(214,190,160,.22); background: #faf6ef !important; color: var(--f-ink) !important; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#main #reportSheet.pdf-mode { --ink: #2a2420; --ink-2: #4d443c; --ink-soft: #64594e; padding: 22px; border: 0; border-radius: 0; }
#main #reportSheet.pdf-mode :is(h1, h2, h3) { color: var(--f-ink) !important; }
#main #reportSheet.pdf-mode h1 { font-size: 34px !important; }
#main #reportSheet.pdf-mode .fam-report-row { min-height: 58px; padding: 6px 0 !important; }
.fam-report-sheet.pdf-mode .fam-report-header { padding-bottom: 22px; }
.fam-report-sheet.pdf-mode .fam-report-menu { padding-top: 22px; }
.fam-report-sheet.pdf-mode .no-print { display: none !important; }
.fam-report-sheet.pdf-mode .fam-report-columns { grid-template-columns: minmax(0, 1fr); }
.fam-report-sheet.pdf-mode .fam-report-chevron { display: none; }
.fam-report-sheet.pdf-mode .fam-report-row, .fam-report-sheet.pdf-mode li, .fam-report-sheet.pdf-mode .fam-report-metrics > div { break-inside: avoid; }
@media print {
  .fam-report::before { display: none; }
  .fam-report { padding: 0; }
  #main #reportSheet.fam-report-sheet { border: 0; border-radius: 0; padding: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ── Ajustes y Locales · ChatGPT ──────────────────────────────────────────── */
