/* La hoja del día (hoja-dia.js, 18-10). El trabajo va en el oro del programa; las pausas en el
   azul noche que Erick escogió para el descanso (09-10). El reloj grande en Didot, como los
   títulos. */
.marcas { --hd-pausa:51 80 138; }

.marcas .hd-hoja { display:flex; flex-direction:column; gap:16px; min-height:100%; }
.marcas .hd-cabeza { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.marcas .hd-cabeza h3 { margin:2px 0 0; font:400 24px/1.2 var(--v-didot, Georgia, serif); letter-spacing:-.01em; text-wrap:balance; }

.marcas .hd-cifras { display:grid; grid-template-columns:repeat(auto-fit,minmax(78px,1fr)); gap:10px; margin:0; padding:14px 0; border-block:1px solid var(--line); }
.marcas .hd-cifras div { min-width:0; }
.marcas .hd-cifras dt { font-size:11px; color:var(--muted); line-height:1.4; }
.marcas .hd-cifras dd { margin:4px 0 0; font-size:15px; font-weight:650; font-variant-numeric:tabular-nums; }
.marcas .hd-cifras .hd-cifra-total dd { font:600 26px/1.1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; }

.marcas .hd-tramos { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.marcas .hd-tramo { position:relative; padding:12px 14px 10px 18px; border-radius:16px; background:var(--ma-lamina, rgb(var(--tinte) / .5)); box-shadow:var(--ma-boton-canto); overflow:hidden; }
.marcas .hd-tramo::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:rgb(var(--ac) / .9); }
.marcas .hd-tramo[data-tipo="pausa"]::before { background:rgb(var(--hd-pausa)); }
.marcas .hd-tramo[data-abierto] { box-shadow:var(--ma-boton-canto),inset 0 0 0 1.5px rgb(var(--ac) / .55); }
.marcas .hd-tramo-cabeza { display:flex; align-items:center; gap:8px; min-height:32px; }
.marcas .hd-trabajo, .marcas button.hd-pausa-tipo { display:inline-flex; align-items:center; gap:7px; font-size:14px; }
.marcas .hd-trabajo svg { width:16px; height:16px; color:rgb(var(--ac)); }
.marcas button.hd-pausa-tipo { min-height:32px; padding:0 10px; border-radius:999px; font-weight:600; color:rgb(var(--hd-pausa)); background:rgb(var(--hd-pausa) / .1); box-shadow:inset 0 0 0 1px rgb(var(--hd-pausa) / .22); }
html[data-theme="dark"] .marcas button.hd-pausa-tipo { color:#a9bfec; }
.marcas button.hd-pausa-tipo svg { width:15px; height:15px; }
.marcas button.hd-pausa-tipo svg:last-child { width:13px; height:13px; opacity:.55; }
.marcas button.hd-pausa-tipo small { font-size:11px; font-weight:500; opacity:.8; }
.marcas .hd-dur { margin-left:auto; font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; }
.marcas button.hd-quitar { min-height:32px; width:32px; padding:0; border-radius:10px; background:transparent; box-shadow:none; color:var(--muted); }
.marcas button.hd-quitar:hover:not(:disabled) { color:#a13a2c; background:rgb(161 58 44 / .08); }
.marcas .hd-quitar svg { width:15px; height:15px; }

.marcas .hd-tramo-horas { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; gap:8px; margin-top:8px; }
.marcas .hd-flecha { display:grid; place-items:center; color:var(--muted); }
.marcas .hd-flecha svg { width:16px; height:16px; }
.marcas button.hd-hora, .marcas .hd-hora { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:1px; min-height:58px; padding:6px 12px; border-radius:12px; white-space:normal; text-align:left; font-weight:500; }
.marcas .hd-hora time { display:flex; align-items:baseline; gap:6px; font:600 24px/1.1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; font-variant-numeric:tabular-nums; color:var(--ink); }
.marcas .hd-hora time small { font:600 10px/1 system-ui, sans-serif; color:var(--muted); letter-spacing:.04em; }
.marcas .hd-hora > span { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--muted); }
.marcas .hd-ajustada svg { width:12px; height:12px; color:rgb(var(--ac)); }
.marcas button.hd-hora:hover:not(:disabled) { box-shadow:var(--ma-boton-canto),inset 0 0 0 1.5px rgb(var(--ac) / .5); }
.marcas button.hd-hora:focus-visible { outline:2px solid rgb(var(--ac)); outline-offset:2px; }
.marcas button.hd-falta { background:rgb(var(--ac) / .1); box-shadow:inset 0 0 0 1.5px rgb(var(--ac) / .45); }
.marcas button.hd-falta time svg { width:20px; height:20px; color:rgb(var(--ac)); }
.marcas button.hd-falta > span { color:var(--ink); font-weight:650; }
.marcas .hd-en-curso { background:rgb(var(--vt, 120 110 90) / .06); }
.marcas .hd-en-curso time { font-size:18px; color:var(--muted); }

.marcas .hd-hora small.hd-lugar { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10.5px; color:var(--muted); opacity:.85; }
.marcas .hd-hora small.hd-lugar.fuera { color:#a13a2c; opacity:1; font-weight:600; }

/* El mapa ficticio: crema y oro, como un plano dibujado. */
.marcas .hd-mapa { margin:10px 0 2px; border-radius:12px; overflow:hidden; background:linear-gradient(160deg,#f3ecdc,#ebe2cd); box-shadow:inset 0 0 0 1px rgb(120 100 60 / .18); }
html[data-theme="dark"] .marcas .hd-mapa { background:linear-gradient(160deg,#2a2722,#221f1b); }
.marcas .hd-mapa svg { display:block; width:100%; height:auto; }
.marcas .hd-mapa-calles line { stroke:rgb(255 255 255 / .85); stroke-width:9; stroke-linecap:round; }
html[data-theme="dark"] .marcas .hd-mapa-calles line { stroke:rgb(255 255 255 / .07); }
.marcas .hd-mapa-lugar { fill:rgb(var(--ac) / .16); stroke:rgb(var(--ac) / .75); stroke-width:1.5; stroke-dasharray:4 3; }
.marcas .hd-mapa-centro { fill:rgb(var(--ac)); }
.marcas .hd-mapa-punto circle:last-child { fill:#3d6b52; stroke:#fff; stroke-width:2; }
.marcas .hd-mapa-punto.fuera circle:last-child { fill:#b0412f; }
.marcas .hd-mapa-halo { fill:rgb(61 107 82 / .16); }
.marcas .hd-mapa-punto.fuera .hd-mapa-halo { fill:rgb(176 65 47 / .16); }
.marcas .hd-mapa figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:2px 10px; padding:8px 12px; font-size:11px; color:var(--muted); background:rgb(var(--tinte, 255 255 255) / .55); }
.marcas .hd-mapa figcaption strong { color:var(--ink); font-weight:650; }
.marcas .hd-mapa-sin { display:flex; align-items:center; gap:10px; padding:12px 14px; font-size:12px; color:var(--muted); }
.marcas .hd-mapa-sin p { margin:0; }
.marcas .hd-mapa-sin svg { width:18px; height:18px; flex:none; }

.marcas .hd-sueltas h4 { margin:4px 0 2px; font-size:13px; }
.marcas .hd-sueltas ul { list-style:none; margin:8px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px; }
.marcas .hd-vacio { display:grid; justify-items:center; gap:8px; padding:34px 12px; color:var(--muted); text-align:center; }
.marcas .hd-vacio svg { width:30px; height:30px; opacity:.6; }
.marcas .hd-vacio p { margin:0; font-size:13px; }

.marcas .hd-todas { font-size:12px; }
.marcas .hd-todas summary { cursor:pointer; color:var(--muted); font-weight:600; }
.marcas .hd-todas .ma-per-marcas { margin-top:10px; }
.marcas .hd-barra { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.marcas .hd-barra p { display:flex; align-items:center; gap:7px; margin:0; font-size:12px; color:var(--muted); }
.marcas .hd-barra p svg { width:14px; height:14px; color:rgb(var(--ac)); }
.marcas button.hd-editar-dia { min-height:40px; padding:0 16px; gap:8px; }
.marcas button.hd-editar-dia svg { width:15px; height:15px; }

/* Fija hasta tocar «Editar día»: entonces las horas se vuelven botones con su lápiz y su
   borde punteado de oro, aparecen los botes de basura y la casilla de añadir. */
.marcas .hd-hora time > svg { display:none; }
.marcas .hd-editando .hd-hora time > svg { display:inline-block; width:13px; height:13px; margin-left:auto; color:rgb(var(--ac)); opacity:.75; align-self:center; }
.marcas .hd-editando button.hd-hora { box-shadow:var(--ma-boton-canto),inset 0 0 0 1.5px rgb(var(--ac) / .38); cursor:pointer; }
.marcas .hd-editando button.hd-hora time { width:100%; }
.marcas .hd-editando .hd-tramo { box-shadow:var(--ma-boton-canto),0 0 0 1px rgb(var(--ac) / .18); }
.marcas div.hd-hora { background:transparent; box-shadow:none; padding-inline:4px; }
.marcas .hd-sin-cierre time { color:var(--muted); }
.marcas .hd-sin-cierre > span { color:#a13a2c; font-weight:600; }
.marcas span.hd-pausa-tipo { display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:0 10px; border-radius:999px; font-size:14px; font-weight:600; color:rgb(var(--hd-pausa)); background:rgb(var(--hd-pausa) / .1); }
html[data-theme="dark"] .marcas span.hd-pausa-tipo { color:#a9bfec; }
.marcas span.hd-pausa-tipo svg { width:15px; height:15px; }
.marcas span.hd-pausa-tipo small { font-size:11px; font-weight:500; opacity:.8; }
.marcas button.hd-anadir { width:100%; min-height:52px; gap:8px; border-radius:16px; background:transparent; box-shadow:none; border:1.5px dashed rgb(var(--ac) / .6); color:var(--ink); font-weight:650; }
.marcas button.hd-anadir:hover:not(:disabled) { background:rgb(var(--ac) / .08); }
.marcas button.hd-anadir svg { width:17px; height:17px; color:rgb(var(--ac)); }

/* ── El cuadro de editar / añadir ──────────────────────────────────────── */
.hd-dialogo { width:min(460px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:0; border:0; border-radius:24px; color:var(--ink); background:linear-gradient(160deg,rgb(var(--ac-luz, 255 248 230) / .1),transparent 60%),var(--crema-hoja, #fbf7ee); box-shadow:0 30px 80px rgb(30 22 10 / .35),inset 0 1px 0 rgb(255 255 255 / .8); overflow:auto; }
html[data-theme="dark"] .hd-dialogo { background:#1d1c1a; box-shadow:0 30px 80px rgb(0 0 0 / .6),inset 0 1px 0 rgb(255 255 255 / .06); }
.hd-dialogo::backdrop { background:rgb(28 22 12 / .32); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); }
.hd-dialogo .hd-editor { display:flex; flex-direction:column; gap:16px; padding:22px 22px 18px; }
.hd-dialogo header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.hd-dialogo header h3 { margin:3px 0 0; font:400 24px/1.2 var(--v-didot, Georgia, serif); }
.hd-dialogo .ma-per-ceja { font-size:10px; font-weight:650; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.marcas.hd-dialogo button.hd-cerrar { min-height:36px; width:36px; padding:0; border-radius:999px; }
.hd-dialogo .hd-cerrar svg { width:16px; height:16px; }

/* El reloj de la compu */
.hd-reloj-compu { display:flex; flex-direction:column; align-items:center; gap:12px; }
.hd-casillas { display:grid; grid-template-columns:auto auto auto; grid-template-rows:auto auto auto; align-items:center; justify-items:center; column-gap:6px; }
.hd-casillas .hd-flechita:nth-of-type(1) { grid-area:1/1; } .hd-casillas .hd-flechita:nth-of-type(2) { grid-area:1/3; }
.hd-casillas .hd-flechita:nth-of-type(3) { grid-area:3/1; } .hd-casillas .hd-flechita:nth-of-type(4) { grid-area:3/3; }
.hd-casillas .hd-casilla[data-parte="h"] { grid-area:2/1; } .hd-casillas b { grid-area:2/2; } .hd-casillas .hd-casilla[data-parte="m"] { grid-area:2/3; }
.hd-casilla { display:grid; place-items:center; min-width:96px; height:84px; padding:0 8px; border-radius:18px; font:600 60px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; font-variant-numeric:tabular-nums; background:var(--ma-boton); box-shadow:var(--ma-boton-canto); cursor:ns-resize; user-select:none; outline:none; transition:box-shadow .15s; }
.hd-casilla:focus { box-shadow:var(--ma-boton-canto),0 0 0 2px rgb(var(--ac)); }
.hd-casillas b { font:600 50px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; color:var(--muted); padding-bottom:8px; }
.marcas.hd-dialogo button.hd-flechita { min-height:28px; width:96px; padding:0; border-radius:10px; background:transparent; box-shadow:none; color:var(--muted); }
.marcas.hd-dialogo button.hd-flechita:hover:not(:disabled) { background:rgb(var(--ac) / .1); color:var(--ink); }
.hd-flechita svg { width:18px; height:18px; }
.hd-pasos { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.marcas.hd-dialogo .hd-pasos button { min-height:34px; min-width:48px; padding:0 10px; border-radius:999px; font-size:13px; font-variant-numeric:tabular-nums; }
.hd-pasos button:nth-child(3) { margin-right:10px; }
.hd-ayuda { margin:0; font-size:11px; color:var(--muted); text-align:center; }

/* El reloj del teléfono: dos ruedas con imán */
.hd-reloj-ruedas { position:relative; display:flex; justify-content:center; align-items:center; gap:4px; height:200px; }
.hd-ruedas-marco { position:absolute; left:12%; right:12%; top:80px; height:40px; border-radius:12px; background:var(--ma-boton); box-shadow:var(--ma-boton-canto); pointer-events:none; }
.hd-rueda { position:relative; width:84px; height:200px; overflow-y:scroll; scroll-snap-type:y mandatory; scrollbar-width:none; padding:80px 0; box-sizing:border-box; -webkit-mask-image:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent); mask-image:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent); outline:none; overscroll-behavior:contain; }
.hd-rueda::-webkit-scrollbar { display:none; }
.hd-rueda span { display:grid; place-items:center; height:40px; scroll-snap-align:center; font:600 28px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; font-variant-numeric:tabular-nums; color:var(--muted); }
.hd-rueda span[aria-selected="true"] { color:var(--ink); }
.hd-reloj-ruedas b { position:relative; font:600 28px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; }

.hd-efecto { padding:12px 14px; border-radius:14px; background:rgb(var(--ac) / .07); font-size:13px; }
.hd-efecto p { margin:0 0 6px; color:var(--muted); }
.hd-efecto p strong { color:var(--ink); font-size:15px; }
.hd-efecto dl { margin:0; display:grid; gap:4px; }
.hd-efecto dl div { display:flex; justify-content:space-between; gap:10px; }
.hd-efecto dt { color:var(--muted); }
.hd-efecto dd { margin:0; display:flex; align-items:center; gap:5px; font-variant-numeric:tabular-nums; }
.hd-efecto dd svg { width:13px; height:13px; color:var(--muted); }
.hd-efecto dd small { font-size:11px; color:rgb(var(--ac)); font-weight:650; }
.hd-donde-marco { margin:-4px 0 0; font-size:12px; color:var(--muted); }
.hd-donde-marco summary { display:flex; align-items:center; gap:7px; cursor:pointer; list-style:none; }
.hd-donde-marco summary::-webkit-details-marker { display:none; }
.hd-donde-marco summary small { margin-left:auto; font-size:11px; font-weight:600; color:rgb(var(--ac)); }
.hd-donde-marco[open] summary small { visibility:hidden; }
.hd-donde-marco summary svg { width:14px; height:14px; flex:none; }
.hd-dialogo .hd-mapa { margin:10px 0 0; border-radius:12px; overflow:hidden; background:linear-gradient(160deg,#f3ecdc,#ebe2cd); box-shadow:inset 0 0 0 1px rgb(120 100 60 / .18); }
.hd-explica { margin:0; font-size:13px; color:var(--muted); }

.hd-motivos { margin:0; padding:0; border:0; display:flex; flex-direction:column; gap:8px; }
.hd-motivos legend { padding:0; margin-bottom:8px; font-size:12px; font-weight:650; }
.hd-motivos legend small { margin-left:6px; font-size:11px; font-weight:500; opacity:.55; }
.hd-motivos > div { display:flex; flex-wrap:wrap; gap:6px; }
.hd-dialogo .ma-av-chip { position:relative; display:inline-flex; }
.hd-dialogo .ma-av-chip input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.hd-dialogo .ma-av-chip span { display:inline-flex; align-items:center; min-height:34px; padding:0 13px; border-radius:999px; background:var(--ma-boton); box-shadow:var(--ma-boton-canto); font-size:12px; font-weight:600; color:var(--muted); transition:background-color .15s,color .15s; }
.hd-dialogo .ma-av-chip input:checked + span { background:rgb(var(--ac) / .2); color:var(--ink); box-shadow:var(--ma-boton-canto),inset 0 0 0 1.5px rgb(var(--ac) / .65); }
.hd-dialogo .ma-av-chip input:focus-visible + span { outline:2px solid rgb(var(--ac)); outline-offset:2px; }
.hd-nota { min-height:40px; padding:0 12px; border:0; border-radius:12px; background:var(--ma-boton); box-shadow:var(--ma-boton-canto); color:var(--ink); font:inherit; font-size:13px; }
.hd-error { margin:0; padding:9px 12px; border-radius:10px; font-size:12px; color:#8a2a1e; background:rgb(176 65 47 / .1); }
html[data-theme="dark"] .hd-error { color:#f0a597; }
.hd-historial { font-size:12px; }
.hd-historial summary { cursor:pointer; color:var(--muted); font-weight:600; }
.hd-historial ul { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:6px; max-height:140px; overflow:auto; }
.hd-historial li { display:grid; gap:1px; padding:6px 0; border-bottom:1px solid var(--line); }
.hd-historial time, .hd-historial em { color:var(--muted); font-style:normal; font-size:11px; }

.hd-dialogo footer { display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:8px; padding-top:4px; }
.marcas.hd-dialogo button.hd-quitar-marca { min-height:40px; padding:0 10px; gap:6px; background:transparent; box-shadow:none; color:#a13a2c; font-size:12px; }
.marcas.hd-dialogo button.hd-quitar-marca:hover:not(:disabled) { background:rgb(161 58 44 / .08); }
.hd-quitar-marca svg { width:14px; height:14px; }
.marcas.hd-dialogo .ma-guardar.hd-peligro { background:#a13a2c; color:#fff; }

.hd-pestanas { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:4px; border-radius:14px; background:rgb(var(--vt, 120 110 90) / .08); }
.marcas.hd-dialogo .hd-pestanas button { min-height:38px; gap:6px; padding:0 8px; border-radius:11px; background:transparent; box-shadow:none; font-size:13px; color:var(--muted); }
.marcas.hd-dialogo .hd-pestanas button[aria-selected="true"] { background:var(--ma-boton); box-shadow:var(--ma-boton-canto); color:var(--ink); }
.hd-pestanas svg { width:15px; height:15px; }
.hd-campos { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.marcas.hd-dialogo button.hd-campo { flex-direction:column; align-items:flex-start; gap:0; min-height:62px; padding:6px 14px; border-radius:14px; }
.hd-campo small { font-size:11px; font-weight:600; color:var(--muted); }
.hd-campo strong { font:600 26px/1.15 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; font-variant-numeric:tabular-nums; }
.marcas.hd-dialogo button.hd-campo[aria-pressed="true"] { box-shadow:var(--ma-boton-canto),inset 0 0 0 2px rgb(var(--ac) / .75); background:rgb(var(--ac) / .1); }
.hd-con-almuerzo { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; cursor:pointer; }
.hd-con-almuerzo input { width:18px; height:18px; accent-color:rgb(var(--ac)); }
.hd-almuerzo { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:10px; }
.hd-almuerzo label { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.hd-almuerzo input { width:64px; min-height:40px; padding:0 8px; border:0; border-radius:10px; text-align:center; background:var(--ma-boton); box-shadow:var(--ma-boton-canto); color:var(--ink); font:inherit; font-size:15px; font-weight:650; }
.hd-tipo-pausa { display:flex; gap:6px; }
.hd-total { margin:0; font-size:13px; color:var(--muted); text-align:center; }
.hd-total strong { color:var(--ink); font-size:16px; }
.hd-permiso { display:grid; justify-items:center; gap:12px; padding:14px 6px 8px; text-align:center; }
.hd-permiso > svg { width:30px; height:30px; color:rgb(var(--ac)); }
.hd-permiso p { margin:0; font-size:13px; line-height:1.6; }

/* Teléfono: el cuadro sube desde abajo, como una hoja de iPhone. */
@media (max-width: 480px) {
  .hd-dialogo, .hd-dialogo.hd-telefono { width:100vw; max-width:100vw; max-height:92dvh; margin:auto 0 0; border-radius:24px 24px 0 0; }
  .hd-dialogo .hd-editor { padding:18px 16px calc(16px + env(safe-area-inset-bottom)); gap:14px; }
  .hd-dialogo footer { grid-template-columns:1fr 1fr; }
  .hd-dialogo footer > span { display:none; }
  .marcas.hd-dialogo button.hd-quitar-marca { grid-column:1 / -1; order:3; }
  .marcas .hd-tramo-horas { gap:4px; }
  .marcas button.hd-hora, .marcas .hd-hora { padding:6px 9px; }
  .marcas .hd-hora time { font-size:21px; }
}

/* ── 19-10: el mes junto a sus semanas, Períodos compacto, Correcciones con la hoja arriba ── */
.marcas .ma-per-selector { display:grid; grid-template-columns:auto auto minmax(0,1fr); align-items:center; gap:14px 22px; margin:18px 0; padding:14px 18px; }
.marcas .ma-per-selector .ma-identidad { display:flex; align-items:center; gap:10px; min-width:0; }
.marcas .ma-per-selector .ma-identidad strong { display:block; font-size:14px; white-space:nowrap; }
.marcas .ma-per-selector .ma-identidad small { display:block; font-size:11px; color:var(--muted); white-space:nowrap; }
.marcas .ma-per-selector .ma-iniciales { width:38px; height:38px; flex:0 0 38px; }
.marcas .ma-per-mes { display:flex; align-items:center; gap:4px; padding-left:18px; border-left:1px solid var(--line); }
/* 27-10 (Erick): el nombre del mes tiene ancho fijo (cabe «Septiembre de 2026»); antes las flechas y las semanas corrían según el mes. */
.marcas .ma-per-mes strong { flex:0 0 196px; width:196px; overflow:hidden; text-align:center; font:600 19px/1.2 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; white-space:nowrap; }
.marcas .ma-per-mes button { min-height:36px; width:36px; padding:0; border-radius:999px; }
.marcas .ma-per-mes svg { width:16px; height:16px; }
.marcas .ma-per-selector .ma-per-periodos { margin:0; justify-content:flex-end; }
.marcas .ma-per-selector .ma-per-periodos button { padding:8px 14px; }
@media (max-width: 1100px) { .marcas .ma-per-selector { grid-template-columns:auto minmax(0,1fr); } .marcas .ma-per-selector .ma-per-periodos { grid-column:1 / -1; justify-content:flex-start; } }
@media (max-width: 560px) { .marcas .ma-per-selector { grid-template-columns:minmax(0,1fr); } .marcas .ma-per-mes { padding-left:0; border-left:0; justify-content:space-between; } .marcas .ma-per-mes strong { flex:1 1 auto; width:auto; } }

/* Períodos: el balance en una tira, que se vea al entrar. */
.marcas .ma-per-balance { padding:16px 20px; }
.marcas .ma-per-balance-resumen { grid-template-columns:minmax(180px,auto) minmax(0,1fr); gap:20px; }
.marcas .ma-per-gran-total { margin-top:4px; font:600 30px/1.15 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; }
.marcas .ma-per-balance-resumen>.ma-per-balance-datos dd { margin-top:4px; font-size:17px; }

/* Correcciones: la hoja y la lista ocupan la pantalla; las solicitudes van plegadas abajo. */
.marcas .ma-cor-historial { margin-top:20px; padding:14px 18px; }
.marcas .ma-cor-historial > summary { cursor:pointer; font-size:13px; font-weight:650; color:var(--muted); }
.marcas .ma-cor-historial[open] > summary { margin-bottom:12px; }

/* Lo que dejó el colaborador, dentro de la hoja. */
.marcas .hd-colaborador { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.marcas .hd-colaborador > li { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 14px; padding:12px 14px; border-radius:14px; background:rgb(var(--ac) / .09); box-shadow:inset 0 0 0 1px rgb(var(--ac) / .3); }
.marcas .hd-colaborador > li > div:first-child { display:flex; gap:10px; min-width:0; flex:1 1 220px; }
.marcas .hd-colaborador > li > div:first-child svg { width:17px; height:17px; flex:none; margin-top:2px; color:rgb(var(--ac)); }
.marcas .hd-colaborador p { margin:0; display:grid; gap:2px; font-size:13px; }
.marcas .hd-colaborador p span { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.marcas .hd-pedida-botones { display:flex; gap:6px; }
.marcas .hd-pedida-botones button { min-height:36px; padding:0 13px; font-size:12px; }
.marcas .hd-pedida-botones svg { width:14px; height:14px; }
.marcas .hd-colaborador .hd-nota-revisada { background:transparent; box-shadow:inset 0 0 0 1px var(--line); }
.marcas .hd-nota-lista { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:#3d6b52; }
html[data-theme="dark"] .marcas .hd-nota-lista { color:#8fc4a5; }
.marcas .hd-nota-lista svg { width:14px; height:14px; }

/* El cuadro de quitar: qué pasó en ese rato y cómo quedará el día. */
.hd-previa { padding:12px 14px; border-radius:14px; background:rgb(var(--ac) / .07); font-size:13px; }
.hd-previa > p:first-child { margin:0 0 8px; color:var(--muted); }
.hd-previa > p:first-child strong { color:var(--ink); }
.hd-previa ul { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.hd-previa li { display:grid; grid-template-columns:minmax(0,1fr) auto 52px; gap:10px; padding:4px 0 4px 10px; border-left:3px solid rgb(var(--ac) / .8); font-variant-numeric:tabular-nums; }
.hd-previa li[data-tipo="pausa"] { border-left-color:rgb(var(--hd-pausa, 51 80 138)); }
.hd-previa li strong { text-align:right; }
.hd-previa-vacia { margin:0; color:var(--muted); }
.hd-vacio-aviso { display:flex; align-items:center; gap:7px; margin:8px 0 0; font-size:12px; font-weight:600; color:#8a5a12; }
html[data-theme="dark"] .hd-vacio-aviso { color:#e8c27a; }
.hd-vacio-aviso svg { width:14px; height:14px; flex:none; }
.hd-dialogo { --hd-pausa:51 80 138; }

/* 19-10 (Erick): en el Resumen el nombre salía dentro de una «burbujita» con el borde pegado a la
   primera letra (botón de vidrio sin relleno). El nombre va limpio, como título de la ficha; al pasar
   el ratón se subraya en oro y la flechita avanza. */
.marcas button.ma-persona-nombre, html.vidrio .marcas button.ma-persona-nombre { min-height:28px; padding:0; gap:5px; border-radius:6px; background:none; box-shadow:none; font-size:15px; font-weight:650; color:var(--ink); }
.marcas button.ma-persona-nombre:hover:not(:disabled), html.vidrio .marcas button.ma-persona-nombre:hover:not(:disabled) { background:none; box-shadow:none; text-decoration:underline; text-decoration-color:rgb(var(--ac) / .7); text-underline-offset:4px; }
.marcas button.ma-persona-nombre svg { width:14px; height:14px; color:rgb(var(--ac)); transition:transform .15s; }
.marcas button.ma-persona-nombre:hover svg { transform:translateX(2px); }
.marcas button.ma-persona-nombre:focus-visible { outline:2px solid rgb(var(--ac)); outline-offset:3px; }
/* El navegador «ancla» la página a algo visible y la corre cuando se repinta; Marcas devuelve la posición
   por su cuenta (marcas.js pintar), así que el ancla automática sobra. */
.marcas[data-modulo="administracion"] { overflow-anchor:none; }
.marcas .ma-per-selector .ma-per-periodos { gap:6px; }
.marcas .ma-per-selector .ma-per-periodos button { min-height:40px; padding:5px 11px; gap:1px; font-size:12px; }
.marcas .ma-per-selector .ma-per-periodos button span { font-size:10px; }
.marcas .hd-cifras { grid-template-columns:repeat(auto-fit,minmax(64px,1fr)); }
.marcas .hd-cifras dt { font-size:10.5px; }
.marcas button.ma-per-ir-revisar { min-height:30px; padding:0 10px; gap:4px; border-radius:999px; font-size:13px; background:rgb(var(--ac) / .14); box-shadow:inset 0 0 0 1px rgb(var(--ac) / .45); }
.marcas button.ma-per-ir-revisar svg { width:13px; height:13px; }
/* .ma-per-contexto ahora es la identidad dentro del selector: sin el margen de cuando iba sola. */
.marcas .ma-per-selector .ma-per-contexto { margin:0; justify-content:flex-start; }

/* ── Agarrar un tramo y pasarlo (Erick, 27-10) ─────────────────────────────────────────────────── */
.marcas .hd-editando .hd-tramo[data-arrastrable] { cursor:grab; user-select:none; -webkit-user-select:none; touch-action:pan-y; transition:transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s; }
.marcas button.hd-agarre { display:inline-flex; align-items:center; justify-content:center; min-height:36px; width:26px; margin:-4px -2px -4px -8px; padding:0; border-radius:8px; background:transparent; box-shadow:none; color:var(--muted); opacity:.5; touch-action:none; cursor:grab; transition:opacity .15s, background .15s; }
.marcas button.hd-agarre:hover:not(:disabled), .marcas button.hd-agarre:focus-visible { opacity:1; background:rgb(var(--ac) / .1); }
.marcas .hd-tramos.hd-guardando { pointer-events:none; }
.marcas .hd-hoja.hd-llega { animation:hd-llega .28s ease-out; }
@keyframes hd-llega { from { opacity:.55; } to { opacity:1; } }
.marcas .hd-agarre svg { width:16px; height:16px; }
.marcas .hd-tramo.hd-arrastrado { cursor:grabbing; z-index:3; transition:none; will-change:transform; background:rgb(var(--tinte) / .97); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); box-shadow:0 16px 38px rgb(0 0 0 / .2), 0 0 0 1.5px rgb(var(--ac) / .55); }
.marcas .hd-tramo.hd-asentando { z-index:2; background:rgb(var(--tinte) / .97); }
.marcas .hd-tramos.hd-en-arrastre { position:relative; z-index:2; }
.marcas .hd-tramos.hd-en-arrastre .hd-tramo { overflow:visible; }
.marcas .hd-tramo.hd-aparta { transition:transform .24s cubic-bezier(.22,1,.36,1); will-change:transform; }
html.hd-arrastrando-pagina, html.hd-arrastrando-pagina * { cursor:grabbing !important; user-select:none !important; -webkit-user-select:none !important; }
/* Al tocar almuerzo ↔ descanso la pastilla no se atenúa (Erick, 29-10): espera tal cual y, cuando quedó,
   su tarjeta da el saltito de abajo. */
.marcas button.hd-pausa-tipo.hd-cambiando { opacity:1; cursor:default; }
/* La tarjeta que cambió (29-10): crece un poquito, vuelve con un rebote corto y el canto se le enciende con su
   color y se apaga. Nada más de la pantalla se mueve ni se destiñe. */
.marcas .hd-tramo { --hd-listo-color:var(--ac); }
.marcas .hd-tramo[data-tipo="pausa"] { --hd-listo-color:var(--hd-pausa); }
html[data-theme="dark"] .marcas .hd-tramo[data-tipo="pausa"] { --hd-listo-color:169 191 236; }   /* el azul de la pastilla en oscuro */
.marcas .hd-tramo.hd-listo { animation:hd-listo .62s cubic-bezier(.33,0,.25,1) var(--hd-listo-ya, 0ms) both; }
.marcas .hd-tramo.hd-listo::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; box-shadow:inset 0 0 0 1.5px rgb(var(--hd-listo-color) / .7), inset 0 0 22px rgb(var(--hd-listo-color) / .16); animation:hd-listo-canto .9s ease-out var(--hd-listo-ya, 0ms) both; }
@keyframes hd-listo { 0% { transform:scale(1); } 32% { transform:scale(1.022); } 62% { transform:scale(.995); } 82% { transform:scale(1.003); } 100% { transform:scale(1); } }
@keyframes hd-listo-canto { 0% { opacity:0; } 22% { opacity:1; } 100% { opacity:0; } }
@media (prefers-reduced-motion: reduce) { .marcas .hd-tramo, .marcas .hd-tramo.hd-aparta, .marcas .hd-hoja.hd-llega, .marcas .hd-tramo.hd-listo::after { transition:none !important; animation:none !important; } .marcas .hd-tramo.hd-listo::after { display:none; } }

/* ── Período personalizado (Erick, 27-10) ──────────────────────────────────────────────────────── */
.marcas .ma-libre { display:grid; gap:14px; margin:0 0 20px; padding:16px 20px; }
.marcas .ma-libre-cabeza { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:14px 28px; }
.marcas .ma-libre-cabeza h2 { margin:4px 0 0; font:600 24px/1.15 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter PT", system-ui, sans-serif; font-variant-numeric:tabular-nums; }
.marcas .ma-libre-campos { display:flex; align-items:flex-end; gap:12px; }
.marcas .ma-libre-campos .ma-campo { display:grid; gap:4px; font-size:11px; color:var(--muted); }
.marcas .ma-libre-campos input[type="date"] { min-height:42px; min-width:156px; padding:0 12px; border-radius:12px; font:inherit; font-size:14px; color:inherit; }
.marcas .ma-libre-guion { padding-bottom:11px; color:var(--muted); }
.marcas .ma-libre-atajos { display:flex; flex-wrap:wrap; gap:6px; }
.marcas button.ma-libre-atajo { min-height:34px; padding:0 13px; border-radius:999px; font-size:12px; }
.marcas .ma-libre-aviso { margin:0 0 20px; padding:18px 20px; }
.marcas .ma-libre-aviso p { margin:0; color:var(--muted); }
.marcas .ma-libre-balance { margin-bottom:20px; }
.marcas .ma-libre-dias .ma-per-fila { display:grid; grid-template-columns:66px minmax(0,1fr) 142px 12px; align-items:center; gap:14px; min-height:68px; padding:12px 4px; border-bottom:1px solid var(--line); }
.marcas .ma-libre-dias .ma-per-lista { max-height:520px; }
@media (max-width: 760px) {
  .marcas .ma-libre-campos { width:100%; }
  .marcas .ma-libre-campos .ma-campo { flex:1; }
  .marcas .ma-libre-campos input[type="date"] { min-width:0; width:100%; }
  .marcas .ma-libre-dias .ma-per-fila { grid-template-columns:54px minmax(0,1fr) 104px 10px; gap:8px; }
}

/* El período personalizado va siempre en su propia fila, a la derecha: así el selector no cambia de alto entre meses de 4 y 5 semanas. */
.marcas .ma-per-selector .ma-per-periodos button.ma-per-libre { flex-direction:row; align-items:center; min-height:34px; padding:0 14px; gap:7px; }
.marcas .ma-per-selector .ma-per-periodos button.ma-per-libre svg { width:15px; height:15px; opacity:.7; }
.marcas .ma-per-selector .ma-per-periodos button.ma-per-libre span { font-size:11px; }

/* El aviso del arrastre (28-10): flota abajo de la pantalla, encima de todo, sin empujar las tarjetas. */
.hd-aviso-hoja { position:fixed; z-index:2147483000; left:50%; bottom:max(24px, env(safe-area-inset-bottom)); transform:translateX(-50%); width:max-content; max-width:min(440px, calc(100vw - 32px)); margin:0; padding:12px 16px; border-radius:14px; font-size:13px; line-height:1.45; color:#8a2f23; background:rgb(255 250 248 / .96); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); box-shadow:0 12px 32px rgb(0 0 0 / .16), inset 0 0 0 1px rgb(161 58 44 / .25); transition:opacity .35s; animation:hd-aviso-entra .25s ease-out; pointer-events:none; }
html[data-theme="dark"] .hd-aviso-hoja:not([data-tono="bien"]) { color:#f0b4aa; background:rgb(40 22 20 / .94); box-shadow:0 12px 32px rgb(0 0 0 / .4), inset 0 0 0 1px rgb(240 180 170 / .25); }
.hd-aviso-hoja[data-tono="bien"] { color:var(--ink, #1d2433); background:rgb(var(--tinte, 255 255 255) / .94); box-shadow:0 12px 32px rgb(0 0 0 / .14), inset 0 0 0 1px rgb(var(--ac, 120 100 60) / .32); }
.hd-aviso-hoja.hd-aviso-sale { opacity:0; }
@media (max-width: 480px) { .hd-aviso-hoja { bottom:calc(88px + env(safe-area-inset-bottom)); } }
@keyframes hd-aviso-entra { from { opacity:0; transform:translate(-50%, 8px); } to { opacity:1; transform:translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .hd-aviso-hoja { animation:none; } }

/* Todas las marcas del día con sus cambios (28-10): las quitadas siguen ahí, tachadas. */
.marcas .hd-registro .hd-reg-cambios { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:3px; font-size:10.5px; line-height:1.45; color:var(--muted); }
.marcas .hd-registro .hd-reg-cambios em { font-style:normal; }
.marcas .hd-registro li.hd-reg-quitada > div > strong, .marcas .hd-registro li.hd-reg-quitada > time { text-decoration:line-through; text-decoration-color:rgb(161 58 44 / .55); opacity:.7; }
.marcas .hd-registro .hd-reg-marca { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px; font-size:9.5px; font-weight:600; letter-spacing:.02em; color:#8a2f23; background:rgb(161 58 44 / .1); text-decoration:none; vertical-align:1px; }
html[data-theme="dark"] .marcas .hd-registro .hd-reg-marca { color:#f0b4aa; background:rgb(240 180 170 / .12); }

/* ── 01-11 (Erick): Períodos es UNA tarjeta. Arriba quién y cuándo, en medio las cifras en casillas, abajo la aprobación con la
   descarga en PDF. Las jornadas y el día se corrigen en Correcciones. ── */
.marcas .ma-per-balance { margin-bottom:14px; }
.marcas .ma-per-unido { margin-top:14px; padding:14px 20px 16px; }
.marcas .ma-per-unido .ma-per-selector { margin:0; padding:0 0 14px; border-bottom:1px solid var(--line); }
.marcas .ma-per-unido .ma-per-balance-resumen { grid-template-columns:minmax(170px,auto) minmax(0,1fr); gap:20px; align-items:stretch; margin-top:14px; }
.marcas .ma-per-descanso { display:block; margin-top:4px; font-size:11px; line-height:1.3; color:var(--muted); font-variant-numeric:tabular-nums; }
.marcas .ma-per-balance-resumen > .ma-per-balance-datos { grid-template-columns:repeat(auto-fit,minmax(118px,1fr)); gap:8px; }
.marcas .ma-per-balance-resumen > .ma-per-balance-datos > div { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; padding:10px 12px; border:0; border-radius:12px; background:rgb(var(--tinte) / calc(var(--v-a) * .35)); box-shadow:inset 0 0 0 1px var(--line); }
.marcas .ma-per-balance-resumen > .ma-per-balance-datos dt { font-size:11px; line-height:1.3; color:var(--muted); }
.marcas .ma-per-balance-resumen > .ma-per-balance-datos dd { margin:0; font-size:19px; font-weight:600; line-height:1.15; }
.marcas .ma-per-balance-resumen > .ma-per-balance-datos small { font-size:11px; line-height:1.3; color:var(--muted); }
.marcas .ma-per-balance-resumen > .ma-per-balance-datos > div[data-alerta] { background:rgb(var(--ac) / .08); box-shadow:inset 0 0 0 1px rgb(var(--ac) / .5); }
.marcas .ma-per-balance-datos .ma-per-ir-revisar { margin-top:auto; min-height:26px; padding:0 9px; font-size:12px; }
.marcas .ma-per-pie { margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.marcas .ma-per-pie > .ma-botones { margin:0; padding:0; border:0; }
.marcas .ma-per-pie .ma-cierre { margin:0; padding:0; }
.marcas .ma-per-pie .ma-cierre-fechas { margin-top:12px; padding-bottom:16px; }
.marcas[data-modulo="administracion"] .ma-cierre-cabecera .ma-identidad { display:none; }
.marcas .ma-per-pie .ma-cierre[data-fase="disponible"] { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px 16px; }
.marcas .ma-per-pie .ma-cierre[data-fase="disponible"] .ma-cierre-cabecera h2 { margin-top:3px; font-size:18px; }
.marcas .ma-per-pie .ma-cierre[data-fase="disponible"] .ma-cierre-fechas { display:none; }
.marcas .ma-per-pie .ma-cierre[data-fase="disponible"] .ma-botones { margin:0; padding:0; border:0; flex-wrap:nowrap; gap:10px; }
.marcas .ma-per-pie .ma-cierre[data-fase="disponible"] .ma-cierre-mensaje { grid-column:1 / -1; order:3; margin:0; max-width:none; font-size:12px; }
.marcas .ma-per-pie .ma-cierre[data-fase="disponible"] .ma-cierre-aviso { grid-column:1 / -1; margin:0; }
.marcas .ma-descargar { min-height:40px; padding:0 16px; gap:7px; white-space:nowrap; }
.marcas .ma-descargar svg { width:15px; height:15px; }
/* El selector (quién, mes, semanas) se acomoda al ancho del módulo, no al de la ventana:
   con la barra lateral, 1160 px de ventana dejan ~860 al módulo. En una fila cabe desde ~940; debajo, las semanas pasan a una segunda. */
.marcas .ma-per-selector { grid-template-columns:fit-content(190px) auto minmax(0,1fr); gap:10px 16px; }
.marcas .ma-per-selector .ma-iniciales { display:none; }
.marcas .ma-per-selector .ma-identidad > div { min-width:0; }
.marcas .ma-per-selector .ma-identidad strong { overflow:hidden; text-overflow:ellipsis; }
.marcas .ma-per-mes { gap:2px; padding-left:16px; }
.marcas .ma-per-mes-centro { display:flex; flex-direction:column; align-items:center; flex:0 0 166px; width:166px; min-width:0; }
.marcas .ma-per-mes .ma-per-mes-centro strong { flex:none; width:auto; max-width:100%; font-size:17px; line-height:1.15; }
.marcas .ma-per-mes-centro small { margin-top:2px; font-size:11px; line-height:1.2; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
.marcas .ma-per-selector .ma-per-periodos { flex-wrap:wrap; gap:5px; }
.marcas .ma-per-selector .ma-per-periodos button { min-height:34px; padding:0 11px; flex-direction:row; align-items:center; white-space:nowrap; }
.marcas .ma-per-selector .ma-per-periodos button.ma-per-libre { min-width:34px; padding:0 9px; margin-left:3px; }
@container marcas (max-width:940px) {
  .marcas .ma-per-selector { grid-template-columns:minmax(0,1fr) auto; }
  .marcas .ma-per-selector .ma-per-mes { justify-self:end; }
  .marcas .ma-per-selector .ma-per-periodos { grid-column:1 / -1; justify-content:flex-start; }
}
@container marcas (max-width:800px) {
  .marcas .ma-per-unido .ma-per-balance-resumen { grid-template-columns:minmax(0,1fr); gap:12px; }
}
@container marcas (max-width:600px) {
  .marcas .ma-per-selector { grid-template-columns:minmax(0,1fr); }
  .marcas .ma-per-selector .ma-per-mes { justify-self:stretch; padding-left:0; border-left:0; justify-content:space-between; }
  .marcas .ma-per-mes-centro { flex:1 1 auto; width:auto; }
  .marcas .ma-per-selector .ma-per-periodos { display:grid; grid-template-columns:repeat(auto-fit,minmax(88px,1fr)); }
  .marcas .ma-per-selector .ma-per-periodos button { justify-content:center; }
  .marcas .ma-per-selector .ma-per-periodos button.ma-per-libre { margin-left:0; }
  .marcas .ma-per-balance-resumen > .ma-per-balance-datos { grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); }
  .marcas .ma-per-balance-resumen > .ma-per-balance-datos dd { font-size:17px; }
  .marcas .ma-per-pie .ma-cierre[data-fase="disponible"] { grid-template-columns:minmax(0,1fr); }
  .marcas .ma-per-pie .ma-cierre[data-fase="disponible"] .ma-botones { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .marcas .ma-per-pie > .ma-botones { display:grid; grid-template-columns:minmax(0,1fr); }
}

/* La vista previa del PDF: una hoja grande en el centro, con «Cerrar» y «Descargar PDF» abajo. */
/* Toma el color del tema que tenga puesto cada persona: la misma lámina de vidrio que los paneles (--v-lamina), no un crema fijo. */
.ma-pdf-dialogo { width:min(880px,calc(100vw - 32px)); height:min(920px,calc(100dvh - 32px)); max-height:none; padding:0; border:0; border-radius:24px; color:var(--ink); background:var(--v-lamina, var(--crema-hoja, #fbf7ee)); box-shadow:var(--v-canto, inset 0 1px 0 rgb(255 255 255 / .6)),0 30px 80px rgb(10 8 4 / .38); -webkit-backdrop-filter:blur(24px) saturate(150%); backdrop-filter:blur(24px) saturate(150%); overflow:hidden; }
.ma-pdf-dialogo[open] { display:flex; flex-direction:column; }
.ma-pdf-dialogo::backdrop { background:rgb(var(--tinte, 28 22 12) / .42); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
.ma-pdf-dialogo header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:18px 22px 12px; }
.ma-pdf-dialogo header h3 { margin:3px 0 0; font:400 22px/1.2 var(--v-didot, Georgia, serif); }
.ma-pdf-dialogo .ma-per-ceja { font-size:10px; font-weight:650; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.marcas.ma-pdf-dialogo button.ma-pdf-x { min-height:36px; width:36px; padding:0; border-radius:999px; }
.ma-pdf-dialogo .ma-pdf-x svg { width:16px; height:16px; }
.ma-pdf-hoja { flex:1 1 auto; min-height:0; margin:0 22px; border-radius:14px; overflow:hidden; background:var(--v-pozo, #e9e7e2); box-shadow:var(--v-pozo-canto, inset 0 0 0 1px rgb(0 0 0 / .08)); }
.ma-pdf-hoja iframe { display:block; width:100%; height:100%; border:0; background:#fff; }
.ma-pdf-dialogo footer { display:flex; justify-content:flex-end; gap:10px; padding:14px 22px 18px; }
.marcas.ma-pdf-dialogo footer button { min-height:40px; padding:0 18px; }
.ma-pdf-dialogo footer svg { width:15px; height:15px; }
@media (max-width: 560px) {
  .ma-pdf-dialogo { width:100vw; height:100dvh; max-width:100vw; margin:0; border-radius:0; }
  .ma-pdf-dialogo header, .ma-pdf-dialogo footer { padding-left:16px; padding-right:16px; }
  .ma-pdf-hoja { margin:0 12px; }
  .marcas.ma-pdf-dialogo footer { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding-bottom:calc(14px + env(safe-area-inset-bottom)); }
}
