/* Papel crema dibujado (Claude, 18-11-2026) — solo se activa con los seis fondos de papel (tema-papel.js).
   Va de ÚLTIMA en index.html. Encima de la paleta de Papel crema (data-fondo="crema"), con lo que Erick aprobó en
   la propuesta de Claude Design: láminas casi llenas con canto de 1 px, tinta café oscura, acento bronce, botones y
   el cuadro destacado en café espresso, contraste firme para pantallas baratas (su HP), y el fondo con rayas vivas. */
html.vidrio[data-tema^="papel-"]:not(#_):not(#_):not(#_) {
  --ink: #22180e; --muted: rgb(34 24 14 / .72);
  --ac: 122 84 32; --ac-hondo: 74 50 22; --ac-tinta: #2a1d08;
  --shadow: 0 22px 40px -26px rgb(92 62 24 / .55), 0 2px 6px -2px rgb(92 62 24 / .16);
  --line: rgb(34 24 14 / .13);
  --papel-espresso: linear-gradient(180deg, #6e4c27, #3d2812);
}
/* Los cuadros (Erick, 19-11: «que se vean transparentes, como en Papel crema, algo parecido al Liquid Glass… a ver qué
   tal se ve»). Por omisión quedan con el vidrio arena de Papel crema (vidrio.css, [data-fondo="crema"]: se ve el fondo
   detrás y llevan su canto de luz arriba). Las láminas casi llenas de la propuesta siguen a un botón en el ensayo
   («Cuadros · Láminas»), para comparar: ponen la clase papel-laminas. */
html.vidrio.papel-laminas[data-tema^="papel-"]:not(#_):not(#_):not(#_) {
  --v-lamina: linear-gradient(180deg, rgb(255 253 248 / .86), rgb(255 250 240 / .74));
  --v-canto: 0 0 0 1px rgb(110 78 36 / .22), inset 0 1px 0 rgb(255 255 255 / .92);
  --v-desen: blur(2px);
  --card: rgb(255 253 248 / .5);
}
/* Mismo día: «muy transparentes… tintarlos un poco más». El vidrio arena de Papel crema con más tinte: brillo .36→.24 y
   arena .41 en el punto de siempre (antes .22→.12 y .30); sigue el control de transparencia de cada persona (--v-a). */
html.vidrio[data-tema^="papel-"]:not(.papel-laminas):not(#_):not(#_):not(#_) {
  --v-lamina: linear-gradient(180deg, rgb(255 255 255 / calc(var(--v-a) * 1.05)), rgb(255 255 255 / calc(var(--v-a) * .7)) 45%, rgb(255 255 255 / calc(var(--v-a) * .7))), rgb(186 163 126 / calc(var(--v-a) * 1.2));
}
html.vidrio[data-tema^="papel-"]:not(.papel-laminas) .papel-lupa { background: var(--crema-boton); box-shadow: var(--crema-boton-canto); }
html.vidrio[data-tema^="papel-"] .vidrio-cielo, html.vidrio[data-tema^="papel-"] .entrada-cielo { background: #e2d5c8; }

/* ── La fibra del papel encima de las capas vivas (Erick: «que se vea notorio ese texturizado») ── */
html.vidrio[data-tema^="papel-"] .vidrio-cielo::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: url("fondos-papel/fibra.svg?v=1") repeat; background-size: 320px; opacity: .75; mix-blend-mode: multiply; }

/* ── Cuadros, letras y botones (todas las pestañas) ── */
html.vidrio[data-tema^="papel-"] :is(.data-area, .detail-panel, .chart-card, .employee-list, .stat-card, .selected-person-bar, .metrics-strip, .pago-fila, .pv-vd, .sidebar, .tel-barra, .agui-overview > article):not(#_):not(#_) {
  background: var(--v-lamina); box-shadow: var(--v-canto), var(--shadow); border-color: transparent;
}
html.vidrio[data-tema^="papel-"] :is(.page-heading h1, .pv-saludo):not(#_) { color: #1f150b; letter-spacing: -.01em; }
html.vidrio[data-tema^="papel-"] :is(.page-heading p, .pv-lema, .pv-fecha):not(#_) { color: rgb(34 24 14 / .78); }
html.vidrio[data-tema^="papel-"] .button.primary:not(#_):not(#_) {
  background: var(--papel-espresso); color: #fff8ec; border: 0;
  box-shadow: 0 10px 18px -12px rgb(40 24 8 / .7), inset 0 1px 0 rgb(255 255 255 / .22);
}
html.vidrio[data-tema^="papel-"] .button.primary:not(#_):not(#_) :is(b, svg, i) { color: inherit; }
/* El primer número de cada pestaña va destacado, como «Bruto de noviembre» en la propuesta. */
html.vidrio[data-tema^="papel-"] .stats > .stat-card:first-child:not(#_):not(#_) { background: var(--papel-espresso); box-shadow: 0 22px 40px -26px rgb(40 24 8 / .8), inset 0 1px 0 rgb(255 255 255 / .2); }
html.vidrio[data-tema^="papel-"] .stats > .stat-card:first-child:not(#_):not(#_) :is(small, strong, .stat-icon, svg) { color: #fff8ec; }
html.vidrio[data-tema^="papel-"] .stats > .stat-card:first-child .stat-icon:not(#_):not(#_) { background: rgb(255 255 255 / .14); box-shadow: none; }
/* La franja de frase en cada pestaña («Revise y confirme cada pago»…) no dice nada que la pantalla no diga. */
html.vidrio[data-tema^="papel-"] .hero:not(#_) { display: none; }
/* El menú: la pestaña abierta, una pastilla de papel claro con su canto. */
html.vidrio.papel-laminas[data-tema^="papel-"] .sidebar .nav-item.active:not(#_):not(#_) { background: #fffdf8; box-shadow: 0 0 0 1px rgb(110 78 36 / .2), 0 8px 16px -12px rgb(40 24 8 / .45); color: #1f150b; }

/* ── Inicio por filas parejas: equipo + avisos, por pagar (destacado) + fechas, aguinaldo a lo ancho ── */
@media (min-width: 1001px) {
  html.vidrio[data-tema^="papel-"] .pv-rejilla:not(#_) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: stretch;
    grid-template-areas: "equipo equipo equipo equipo equipo equipo equipo atender atender atender atender atender" "pagar pagar pagar pagar pagar fechas fechas fechas fechas fechas fechas fechas" "agui agui agui agui agui agui agui agui agui agui agui agui"; }
  html.vidrio[data-tema^="papel-"] .pv-rejilla .pv-col:not(#_) { display: contents; }
  html.vidrio[data-tema^="papel-"] .pv-rejilla .pv-equipo:not(#_) { grid-area: equipo; }
  html.vidrio[data-tema^="papel-"] .pv-rejilla .pv-atender:not(#_) { grid-area: atender; }
  html.vidrio[data-tema^="papel-"] .pv-rejilla .pv-pagar:not(#_) { grid-area: pagar; }
  html.vidrio[data-tema^="papel-"] .pv-rejilla .pv-fechas:not(#_) { grid-area: fechas; }
  html.vidrio[data-tema^="papel-"] .pv-rejilla .pv-agui:not(#_) { grid-area: agui; }
  html.vidrio[data-tema^="papel-"] .pv-rejilla .pv-modulos:not(#_) { display: none; }
}
html.vidrio[data-tema^="papel-"] .pv-pagar:not(#_):not(#_):not(#_) { background: var(--papel-espresso) !important; box-shadow: 0 22px 40px -26px rgb(40 24 8 / .8), inset 0 1px 0 rgb(255 255 255 / .2) !important; }
html.vidrio[data-tema^="papel-"] .pv-pagar:not(#_):not(#_) :is(.pv-sec, .pv-monto, .pv-mut, .pv-tres, .pv-tres b, .pv-tres small, .pv-ver, .pv-ver svg) { color: #fff8ec; }
html.vidrio[data-tema^="papel-"] .pv-pagar .pv-pastilla:not(#_):not(#_) { background: rgb(255 255 255 / .16); color: #fff8ec; box-shadow: none; }
html.vidrio[data-tema^="papel-"] .pv-pagar .pv-ver:not(#_):not(#_) { background: #fff8ec; color: #3d2812; border-radius: 999px; padding: 8px 14px; }
html.vidrio[data-tema^="papel-"] .pv-pagar .pv-ver svg:not(#_):not(#_) { color: #3d2812; }

/* ── La lupa y el buscador universal ── */
.papel-lupa { display: inline-flex; align-items: center; gap: 9px; padding: 9px 10px 9px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgb(255 253 248 / .9); box-shadow: 0 0 0 1px rgb(110 78 36 / .2), 0 6px 14px -10px rgb(40 24 8 / .5); font: 600 13px/1 Inter, system-ui, sans-serif; color: rgb(34 24 14 / .75); }
.papel-lupa svg { width: 16px; height: 16px; color: #22180e; }
.papel-lupa kbd { font: 600 10.5px Inter, system-ui, sans-serif; padding: 3px 6px; border-radius: 6px; background: rgb(34 24 14 / .07); color: rgb(34 24 14 / .6); }
.papel-lupa.en-inicio { min-width: 220px; margin-left: auto; margin-right: 8px; }
.papel-lupa.en-inicio kbd { margin-left: auto; }
.papel-lupa.en-menu { width: calc(100% - 16px); margin: 4px 8px 10px; }
.papel-lupa.en-menu kbd { margin-left: auto; }
@media (max-width: 760px) { .papel-lupa.en-inicio { min-width: 0; padding: 10px; } .papel-lupa.en-inicio :is(span, kbd) { display: none; } }
.papel-buscador { position: fixed; inset: 0; z-index: 9000; background: rgb(60 42 20 / .28); display: flex; justify-content: center; align-items: flex-start; padding-top: min(12vh, 110px); }
.pbz-panel { width: min(640px, calc(100% - 20px)); max-height: min(70vh, 620px); display: flex; flex-direction: column; padding: 10px; border-radius: 26px; background: #fbf7ef;
  box-shadow: 0 0 0 1px rgb(110 78 36 / .2), 0 40px 80px -30px rgb(40 24 8 / .6); font-family: Inter, system-ui, sans-serif; color: #22180e; }
.pbz-campo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgb(34 24 14 / .05); }
.pbz-campo svg { width: 20px; height: 20px; color: #7a5420; }
.pbz-campo input::-webkit-search-cancel-button { display: none; }
.pbz-campo input { flex: 1; border: 0; background: none; outline: none; font: 500 18px Inter, system-ui, sans-serif; color: #22180e; }
.pbz-campo kbd, .pbz-pie kbd { font: 600 10.5px Inter, system-ui, sans-serif; padding: 3px 7px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgb(34 24 14 / .12); color: rgb(34 24 14 / .6); }
.pbz-lista { overflow-y: auto; padding: 6px 4px; }
.pbz-grupo { display: block; padding: 12px 10px 6px; font: 700 11px Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: rgb(34 24 14 / .6); }
.pbz-res { display: flex; gap: 12px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; color: inherit; }
.pbz-res svg { width: 18px; height: 18px; flex: none; color: #7a5420; padding: 9px; box-sizing: content-box; border-radius: 50%; background: #fffdf8; box-shadow: 0 0 0 1px rgb(110 78 36 / .22); }
.pbz-res b { display: block; font: 650 14px Inter, system-ui, sans-serif; } .pbz-res small { display: block; font-size: 12.5px; color: rgb(34 24 14 / .68); }
.pbz-res.on, .pbz-res:hover { background: rgb(122 84 32 / .09); }
.pbz-nada { padding: 18px 12px; color: rgb(34 24 14 / .7); }
.pbz-pie { display: flex; gap: 16px; padding: 10px 12px 4px; margin: 4px 0 0; border-top: 1px solid rgb(34 24 14 / .1); font-size: 12px; color: rgb(34 24 14 / .65); }
@media (max-width: 760px) { .pbz-pie { display: none; } .papel-buscador { padding-top: 60px; } }

/* ── Los botones de abajo para comparar los seis papeles (solo en el ensayo) ── */
.papel-botonera { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 8000; display: flex; align-items: center; gap: 10px;
  padding: 7px 10px 7px 14px; border-radius: 999px; background: rgb(34 24 14 / .82); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .55); font: 600 11px Inter, system-ui, sans-serif; color: #f6ead6; }
.papel-botonera .pb-titulo { letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.papel-botonera .pb-grupo { display: flex; align-items: center; gap: 4px; padding-left: 10px; border-left: 1px solid rgb(255 255 255 / .18); }
.papel-botonera small { font: 600 11px Inter, system-ui, sans-serif; opacity: .75; margin-right: 2px; }
.papel-botonera .pb-boton { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: 70% 40%;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / .35); display: grid; place-items: center; }
.papel-botonera .pb-boton i { font: 700 9px Inter, system-ui, sans-serif; font-style: normal; color: #3d2812; opacity: .75; }
.papel-botonera .pb-boton.on { box-shadow: 0 0 0 2px #f6ead6, 0 0 0 4px #b98a4a; }
.papel-botonera .pb-cuadro { height: 26px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer; background: rgb(255 255 255 / .1); color: #f6ead6; font: 600 11px Inter, system-ui, sans-serif; }
.papel-botonera .pb-cuadro.on { background: #f6ead6; color: #3d2812; }
@media (max-width: 760px) {
  .papel-botonera { bottom: calc(env(safe-area-inset-bottom) + 92px); padding: 6px 8px; gap: 6px; }
  .papel-botonera .pb-titulo { display: none; }
  .papel-botonera .pb-grupo { padding-left: 6px; }
  .papel-botonera small { display: none; }
  .papel-botonera .pb-boton { width: 32px; height: 32px; }
  .papel-botonera { left: 8px; right: 8px; transform: none; width: max-content; margin: 0 auto; max-width: calc(100vw - 16px); flex-wrap: wrap; justify-content: center; row-gap: 6px; border-radius: 22px; }
  .papel-botonera .pb-titulo + .pb-grupo { border-left: 0; padding-left: 0; }
  .papel-botonera .pb-grupo:last-child { flex-basis: 100%; justify-content: center; border-left: 0; padding-left: 0; }
}
@media print { .papel-botonera, .papel-lupa, .papel-buscador { display: none !important; } }
html.vidrio[data-tema^="papel-"] .pv-lema.papel-viva b { color: #1f150b; font-weight: 650; }
html.vidrio[data-tema^="papel-"] .pv-pagar .pv-ver:not(#_):not(#_):not(#_), html.vidrio[data-tema^="papel-"] .pv-pagar .pv-ver *:not(#_):not(#_):not(#_) { color: #3d2812 !important; }
