/* generado por tools/v9/recursos/preparar.py: las fuentes de los programas recreados (solo se descargan si se ven) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/demos/fuentes/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/demos/fuentes/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/demos/fuentes/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/demos/fuentes/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/demos/fuentes/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/demos/fuentes/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/demos/fuentes/inter-400_700.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/demos/fuentes/jost-300_600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/demos/fuentes/nunito-400_800.woff2") format("woff2"); }
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("/demos/fuentes/pinyon-script-400.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/demos/fuentes/playfair-display-400_500.woff2") format("woff2"); }

/* generado por tools/v9/recursos/preparar.py: Bootstrap Icons 1.11.3 (MIT), solo los iconos que usan las demos */
@font-face { font-family: "bootstrap-icons"; font-display: block; src: url("/demos/fuentes/iconos.woff2") format("woff2"); }
.bi::before, [class^="bi-"]::before, [class*=" bi-"]::before { display: inline-block; font-family: bootstrap-icons !important; font-style: normal; font-weight: normal !important; font-variant: normal; text-transform: none; line-height: 1; vertical-align: -.125em; -webkit-font-smoothing: antialiased; }
.bi-arrow-clockwise::before { content: "\f116"; }
.bi-arrow-repeat::before { content: "\f130"; }
.bi-arrow-right::before { content: "\f138"; }
.bi-building::before { content: "\f1dd"; }
.bi-buildings::before { content: "\f87d"; }
.bi-calendar-fill::before { content: "\f1e9"; }
.bi-calendar-week::before { content: "\f1f3"; }
.bi-calendar3::before { content: "\f214"; }
.bi-cart-check::before { content: "\f23a"; }
.bi-cash-coin::before { content: "\f632"; }
.bi-chat-dots::before { content: "\f24a"; }
.bi-check-circle::before { content: "\f26b"; }
.bi-chevron-down::before { content: "\f282"; }
.bi-chevron-left::before { content: "\f284"; }
.bi-chevron-right::before { content: "\f285"; }
.bi-clipboard::before { content: "\f290"; }
.bi-clock::before { content: "\f293"; }
.bi-clock-history::before { content: "\f292"; }
.bi-code-slash::before { content: "\f2c6"; }
.bi-diagram-3::before { content: "\f2ee"; }
.bi-download::before { content: "\f30a"; }
.bi-envelope::before { content: "\f32f"; }
.bi-exclamation-circle::before { content: "\f333"; }
.bi-eye::before { content: "\f341"; }
.bi-files::before { content: "\f3c2"; }
.bi-gear::before { content: "\f3e5"; }
.bi-gear-fill::before { content: "\f3e2"; }
.bi-geo-alt::before { content: "\f3e8"; }
.bi-graph-up::before { content: "\f3f2"; }
.bi-hash::before { content: "\f40a"; }
.bi-house::before { content: "\f425"; }
.bi-info-circle::before { content: "\f431"; }
.bi-journal-text::before { content: "\f444"; }
.bi-list::before { content: "\f479"; }
.bi-list-ul::before { content: "\f478"; }
.bi-moon-stars-fill::before { content: "\f495"; }
.bi-pencil::before { content: "\f4cb"; }
.bi-people::before { content: "\f4d0"; }
.bi-person-badge::before { content: "\f4d3"; }
.bi-person-circle::before { content: "\f4d7"; }
.bi-plus-circle::before { content: "\f4fa"; }
.bi-plus-lg::before { content: "\f64d"; }
.bi-qr-code::before { content: "\f6ae"; }
.bi-question-circle::before { content: "\f505"; }
.bi-search::before { content: "\f52a"; }
.bi-shield-check::before { content: "\f52f"; }
.bi-speedometer2::before { content: "\f580"; }
.bi-table::before { content: "\f5aa"; }
.bi-telephone::before { content: "\f5c1"; }
.bi-three-dots-vertical::before { content: "\f5d3"; }
.bi-x-circle::before { content: "\f623"; }
.bi-x-lg::before { content: "\f659"; }

/* <app-demo>: la caja de un programa recreado en HTML (app-demo.js). El montaje de cada programa trae sus propios estilos:
   demo-denova.css (.dn), demo-apartes.css (.ap), demo-acofit.css (.af) y demo-bodega.css (.bd). */
app-demo { display: block; position: relative; overflow: hidden; background: #fbfbfc; --curva: cubic-bezier(.2, .7, .2, 1); }
app-demo[app="apartes"] { background: #f6f6f4; }
app-demo[app="acofit"] { background: #16171A; }
app-demo[app="bodega"] { background: #f1ece4; }
/* la primera vista de cada visita (app-demo.js le pone .de-golpe): todo entra a la vez y enseguida, sin el escalonado de las
   siguientes, para que la pantalla nunca se vea vacía al llegar */
app-demo.de-golpe .vista.activa, app-demo.de-golpe .vista.activa :not(.lento, .lento *) { animation-delay: 0s !important; }
/* ritmo="rapido" (el aparato de la portada de cada proyecto, app-demo.js): el cursor también va más deprisa */
app-demo[ritmo="rapido"] .dn-cursor { transition-duration: .5s; }

/* El CRM Denova recreado en HTML (<app-demo app="denova">, app-demo.js): «pc» a 1440 × 900 (denova-pc.html) y «movil» a 390 × 844
   (denova-movil.html). Nada se puede pulsar: sus animaciones arrancan cuando una vista recibe .activa. */
.dn { --navy: #06305f; --azul: #0d6efd; --verde: #198754; --rojo: #dc3545; --amarillo: #ffc107; --cian: #0dcaf0; --grisb: #6c757d; --negro: #212529; --rosa: #e8204f;
  position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform: scale(var(--escala, .5)); transform-origin: 0 0;
  display: grid; grid-template-columns: 196px 1fr; background: #fff; color: #212529; font: 400 15px/1.5 Nunito, system-ui, sans-serif; pointer-events: none; user-select: none; }
.dn b { font-weight: 700; }
.dn a { color: var(--azul); text-decoration: none; }
.dn .gris { color: var(--grisb); }
.dn .azul { color: var(--azul); }

/* el lado: logo, menú con su marca (se desliza al activo) y el usuario abajo */
.dn-lado { position: relative; display: flex; flex-direction: column; padding: 22px 14px 18px; background: #fff; box-shadow: 4px 0 14px -6px rgba(20, 30, 70, .12); z-index: 2; }
.dn-logo { width: 136px; margin: 0 auto 30px 16px; }
.dn-menu { position: relative; display: flex; flex-direction: column; }
.dn-menu li { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; font-size: 16px; color: var(--navy); transition: color .35s; }
.dn-menu li i { font-size: 16px; width: 18px; }
.dn-menu li.activo { color: #fff; }
.dn-menu-marca { position: absolute; left: 0; right: 0; top: 0; height: 40px; --curva: cubic-bezier(.2, .7, .2, 1); border-radius: 6px; background: var(--navy); opacity: 0; transform: translateY(var(--y, 0px));
  transition: transform .55s var(--curva), opacity .3s; }
.dn-menu.con-activo .dn-menu-marca { opacity: 1; }
.dn-yo { margin-top: auto; padding-top: 22px; border-top: 1px solid #e6e6e6; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dn-yo b { margin-top: 8px; font-size: 14px; }
.dn-yo small { font-size: 12px; color: var(--grisb); }
.dn-yo small i { margin-left: 44px; }
.dn-yo p { margin-top: 18px; font-size: 13px; color: var(--grisb); }
/* el avatar: un recorte de la captura del panel (/demos/img/denova-caratula.png, 2201 × 1281: la foto del Admin está en 2036, 74, 84 px) */
.dn-avatar { --s: 44px; display: block; width: var(--s); height: var(--s); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9ccd3;
  background: url("/demos/img/denova-caratula.png") no-repeat; background-size: calc(var(--s) * 2201 / 84) auto; background-position: calc(var(--s) * -2036 / 84) calc(var(--s) * -74 / 84); }
.dn-avatar.grande { --s: 58px; }

.dn-main { position: relative; overflow: hidden; background: #fbfbfc; }
.dn .vista { position: absolute; inset: 0; padding: 16px 16px 0 34px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.dn .vista.activa { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }

/* las entradas: cada pieza con su retraso (--i) */
@keyframes dn-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dn-aparece { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes dn-baja { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes dn-fila { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes dn-salta { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: none; } }
.activa .dash-cab { animation: dn-baja .7s var(--curva) both; }
.activa .dash-carta { animation: dn-aparece .6s var(--curva) both; animation-delay: calc(200ms + var(--i) * 80ms); }
.activa .dash-carta .dash-icono { animation: dn-salta .6s var(--curva) both; animation-delay: calc(380ms + var(--i) * 80ms); }
.activa .dash-info { animation: dn-sube .7s var(--curva) both; animation-delay: 900ms; }
.activa .dn-caja { animation: dn-sube .6s var(--curva) both; }
.activa .dn-tabla tbody tr { animation: dn-fila .55s var(--curva) both; animation-delay: calc(250ms + var(--i) * 70ms); }
.activa .dn-tabla .ins { animation: dn-salta .45s var(--curva) both; animation-delay: calc(420ms + var(--i) * 70ms); }

/* el panel */
.dash-cab { display: flex; justify-content: space-between; align-items: center; height: 127px; padding: 0 24px; border-radius: 6px; background: var(--navy); color: #fff; }
.dash-cab h2 { display: flex; align-items: center; gap: 18px; font-size: 40px; font-weight: 700; line-height: 1; }
.dash-cab h2 i { font-size: 36px; }
.dash-cab p { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .75); }
.dash-cab p i { margin-right: 8px; }
.dash-usuario { display: flex; align-items: center; gap: 18px; text-align: right; }
.dash-usuario b { display: block; font-size: 19px; }
.dash-usuario small { font-size: 13px; color: rgba(255, 255, 255, .65); }
.dash-cartas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.dash-carta { display: flex; flex-direction: column; align-items: center; padding: 26px 24px 24px; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .07); text-align: center; }
.dash-icono { font-size: 42px; line-height: 1; color: var(--c); }
.dash-carta h4 { margin-top: 16px; font-size: 20px; font-weight: 700; }
.dash-carta p { margin-top: 10px; font-size: 14px; color: var(--grisb); }
.dash-boton { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 37px; margin-top: 16px; border-radius: 4px; background: var(--c); color: #fff; font-size: 16px; }
.dash-info { margin-top: 24px; }
.dash-info h3 { display: flex; align-items: center; gap: 12px; padding: 16px 24px; font-size: 20px; font-weight: 600; border-bottom: 1px solid #e6e6e6; }
.dash-info h3 i { color: var(--azul); }
.dash-info-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 16px 24px; }
.dash-info-dos > div { padding: 14px 18px; border-radius: 6px; background: #f6f7f9; }
.dash-info h5 { font-size: 16px; font-weight: 600; color: var(--azul); }
.dash-info p { display: flex; gap: 40px; margin-top: 10px; font-size: 15px; }

/* las cajas y tablas */
.dn-caja { border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); overflow: hidden; }
.dn-caja + .dn-caja { margin-top: 18px; }
.dn-caja-cab { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #f8f9fa; border-bottom: 1px solid #e3e5e8; }
.dn-caja-cab h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; }
.dn-caja-cab > span { font-size: 14px; }
.dn-barra { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 8px 16px; background: #f8f9fa; border-bottom: 1px solid #e3e5e8; font-size: 14px; }
.dn-paginas { display: flex; margin-left: auto; border: 1px solid #dee2e6; border-radius: 5px; overflow: hidden; }
.dn-paginas span { display: grid; place-items: center; min-width: 24px; height: 28px; padding: 0 6px; border-left: 1px solid #dee2e6; color: var(--azul); font-size: 14px; background: #fff; }
.dn-paginas span:first-child { border-left: 0; }
.dn-paginas span.activa { background: var(--azul); color: #fff; }
.dn-paginas span.gris { background: #e9ecef; }
.dn-tabla { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dn-tabla th { padding: 14px 8px 8px; text-align: left; font-weight: 700; vertical-align: bottom; line-height: 1.25; }
.dn-tabla td { padding: 9px 8px; border-top: 1px solid #e9ebee; vertical-align: top; line-height: 1.45; }
.dn-tabla tbody tr { transition: background .3s; }
.dn-tabla tbody tr.encima { background: #f3f6fb; }
.dn-tabla .derecha { text-align: right; }
.dn-tabla .col-com { max-width: 200px; }
.dn-tabla .fuerte { font-weight: 700; }
.vista-tabla .dn-tabla td:first-child, .vista-tabla .dn-tabla th:first-child { padding-left: 12px; }
.ins { display: inline-block; padding: 2px 7px; border-radius: 5px; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: #fff; white-space: nowrap; }
.ins.peq { margin-top: 5px; font-size: 11px; padding: 1px 6px; }
.ins-azul { background: var(--azul); } .ins-verde { background: var(--verde); } .ins-rojo { background: var(--rojo); } .ins-gris { background: var(--grisb); }
.ins-amarillo { background: var(--amarillo); color: #212529; } .ins-cian { background: var(--cian); } .ins-negro { background: var(--negro); } .ins-rosa { background: var(--rosa); }
.acciones { white-space: nowrap; }
.dn-accion { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 6px; border: 1px solid currentColor; border-radius: 6px; font-size: 14px; }
.dn-accion.azul { color: var(--azul); } .dn-accion.cian { color: var(--cian); } .dn-accion.amarillo { color: var(--amarillo); }
.dn-ver { display: inline-block; padding: 4px 18px; border: 1px solid var(--azul); border-radius: 5px; color: var(--azul); text-align: center; line-height: 1.3; }
.dn-teclea { white-space: normal; }
.usuario { display: flex; align-items: center; gap: 10px; }
.usuario .ini { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grisb); color: #fff; font-size: 14px; }

/* el seguimiento: la gráfica se dibuja (cada serie, una tras otra) y luego aparecen sus puntos */
.seg-anios { display: flex; align-items: center; gap: 12px; }
.dn-campo { display: inline-block; width: 78px; padding: 4px 10px; border: 1px solid #ced4da; border-radius: 5px; background: #fff; color: #212529; }
.dn-check { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border: 1px solid #ced4da; border-radius: 3px; }
.seg-graf { padding: 34px 20px 4px; }
.graf { display: block; width: 100%; height: auto; overflow: visible; font-family: Arial, sans-serif; }
.graf-titulo { font-size: 13px; font-weight: 700; fill: #666; }
.graf-marca { font-size: 12px; fill: #666; }
.graf-rejilla { stroke: #e6e6e6; stroke-width: 1; }
.graf-eje { font-size: 11px; fill: #666; }
.graf-leyenda { font-size: 12px; }
.serie path { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.serie circle { fill: #fff; stroke: var(--c); stroke-width: 1.4; }
@keyframes dn-trazo { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.activa .serie path { animation: dn-trazo 1.8s cubic-bezier(.45, 0, .2, 1) both; animation-delay: calc(400ms + var(--k) * 120ms); }
.activa .serie circle { animation: dn-salta .4s var(--curva) both; animation-delay: calc(900ms + var(--k) * 120ms + var(--j) * 60ms); transform-box: fill-box; transform-origin: center; }
.vista-seg .dn-tabla td { vertical-align: middle; }

/* el cursor: va al menú, pulsa (un anillo que se abre) y luego pasea por la vista */
.dn-cursor { position: absolute; z-index: 5; left: 0; top: 0; width: 26px; height: 26px; transform: translate(var(--cx, 700px), var(--cy, 600px));
  transition: transform .75s cubic-bezier(.6, .05, .25, 1); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.dn-cursor svg { width: 100%; height: 100%; }
.dn-cursor path { fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.dn-clic { position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--azul); opacity: 0; }
.dn-cursor.pulsa .dn-clic { animation: dn-clic .5s ease-out; }
.dn-cursor.pulsa svg { animation: dn-aprieta .25s ease; }
@keyframes dn-clic { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
@keyframes dn-aprieta { 50% { transform: scale(.85); } }


@media (prefers-reduced-motion: reduce) {
  .dn *, .dn *::before, .dn *::after { animation: none !important; transition: none !important; }
}

/* ================= la versión de móvil (390 × 844) ================= */
/* una barra arriba (logo y botón del menú); el menú es un cajón que sale por la izquierda sobre un velo; las tablas son tarjetas.
   El cursor es un dedo: un círculo que pulsa */
.dn.dn-movil { width: 390px; height: 844px; display: block; font-size: 14px; }
.m-barra { position: absolute; z-index: 2; inset: 0 0 auto; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  background: #fff; box-shadow: 0 2px 10px -4px rgba(20, 30, 70, .18); }
.m-logo { width: 96px; }
.m-hamb { display: grid; place-items: center; width: 44px; height: 36px; border: 1px solid #dee2e6; border-radius: 6px; font-size: 26px; color: var(--navy); }
.dn-movil .dn-main { position: absolute; inset: 58px 0 0; }
.dn-movil .vista { padding: 12px; }
.dn-movil .dn-lado { position: absolute; z-index: 4; inset: 0 auto 0 0; width: 276px; box-shadow: 12px 0 30px -12px rgba(0, 0, 0, .35); transform: translateX(-104%); transition: transform .45s var(--curva); }
.dn-movil.menu-abierto .dn-lado { transform: none; }
.m-velo { position: absolute; z-index: 3; inset: 0; background: rgba(10, 16, 30, .42); opacity: 0; transition: opacity .4s; }
.dn-movil.menu-abierto .m-velo { opacity: 1; }
.dn-movil .dn-cursor svg { display: none; }
.dn-movil .dn-cursor::before { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(13, 110, 253, .22); border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.dn-movil .dn-cursor.pulsa::before { animation: dn-aprieta .25s ease; }

/* el panel, compacto: dos tarjetas por fila */
.dn-movil .dash-cab { height: auto; padding: 16px 16px 18px; }
.dn-movil .dash-cab h2 { gap: 10px; font-size: 26px; }
.dn-movil .dash-cab h2 i { font-size: 24px; }
.dn-movil .dash-cab p { margin-top: 8px; font-size: 13px; }
.dn-movil .dash-cartas { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.dn-movil .dash-carta { padding: 14px 12px 12px; }
.dn-movil .dash-icono { font-size: 30px; }
.dn-movil .dash-carta h4 { margin-top: 8px; font-size: 16px; }
.dn-movil .dash-carta p { margin-top: 2px; font-size: 12px; }
.dn-movil .dash-boton { height: 30px; margin-top: 10px; font-size: 14px; gap: 6px; }

/* las listas: la cabecera y las tarjetas */
.m-cab { padding: 12px 14px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.m-cab h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.m-cab p { margin-top: 2px; font-size: 13px; }
.m-cab .dn-paginas { display: inline-flex; margin: 8px 0 0; }
.m-cab .dn-paginas span { min-width: 22px; height: 26px; font-size: 13px; }
.m-lista { display: grid; gap: 10px; margin-top: 10px; }
.m-item { padding: 12px 14px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); transition: background .3s, box-shadow .3s; }
.m-item.encima { background: #f3f6fb; box-shadow: 0 0 0 1.5px rgba(13, 110, 253, .35); }
.m-item p { margin-top: 4px; line-height: 1.4; }
.m-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.m-fila b, .m-fila a { font-size: 15px; }
.m-ins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.m-com { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-pie { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.m-acc { margin-left: auto; }
.m-acc .dn-accion { width: 28px; height: 28px; margin: 0 0 0 6px; }
.m-agente .ini { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grisb); color: #fff; font-size: 13px; }
.m-cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.m-cifras span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.m-cifras small { font-size: 11px; color: var(--grisb); }
.m-graf { margin-top: 10px; padding: 18px 6px 2px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.m-graf .graf-eje { font-size: 17px; } .m-graf .graf-titulo { font-size: 24px; } .m-graf .graf-leyenda, .m-graf .graf-marca { display: none; }
.m-graf .serie path { stroke-width: 4; } .m-graf .serie circle { r: 7; stroke-width: 3; }
.m-sub { display: flex; align-items: center; gap: 10px; margin: 14px 2px 0; font-size: 17px; font-weight: 600; }
.activa .m-cab, .activa .m-graf { animation: dn-sube .6s var(--curva) both; }
.activa .m-item { animation: dn-sube .55s var(--curva) both; animation-delay: calc(250ms + var(--i) * 80ms); }
.activa .m-item .ins { animation: dn-salta .45s var(--curva) both; animation-delay: calc(420ms + var(--i) * 80ms); }

/* AcoFit recreado en HTML (<app-demo app="acofit">, app-demo.js): «pc» a 1440 × 900 (acofit-pc.html) y «movil» a 390 × 844
   (acofit-movil.html). Tokens, letra y medidas copiados de la app (~/acofit/frontend/src/styles.css). Nada se puede pulsar:
   sus animaciones arrancan cuando una vista recibe .activa; la serie guardada, cuando el programa recibe .serie-guardada. */
.af { --bg: #16171A; --surface: #202226; --surface-2: #2A2D33; --bar: #1B1C20; --line: #2E3137; --line-2: #3A3E45; --line-3: #4A4F57; --faint: #5A5F66;
  --text: #EDEAE6; --soft: #C9CCD1; --desc: #B5B9BF; --muted: #9BA0A6; --accent: #E8542C; --on-accent: #16171A; --green: #4CAF7A;
  --done-bg: #1F2A24; --done-line: #2F5B43; --curva: cubic-bezier(.2, .7, .2, 1);
  position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform: scale(var(--escala, .5)); transform-origin: 0 0; overflow: hidden;
  background: var(--bg); color: var(--text); font: 400 15px/1.35 Barlow, system-ui, sans-serif; pointer-events: none; user-select: none; -webkit-font-smoothing: antialiased; }
.af svg.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.af .big, .af .h1, .af .section { font-family: "Barlow Condensed", sans-serif; font-weight: 700; line-height: 1.1; }
.af .h1 { font-size: 36px; }
.af .section { font-weight: 600; font-size: 22px; letter-spacing: .5px; text-transform: uppercase; }
.af .muted { color: var(--muted); }
.af .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.af .lead { font-size: 15px; line-height: 1.4; color: var(--muted); }
.af .small { font-size: 13px; }
.af .between { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.af .fila { display: flex; gap: 8px; }
.af .card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: var(--surface); }
.af .card.tight { padding: 16px; }
.af .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; padding: 0 16px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 18px; font-weight: 600; }
.af .btn.lg { height: 60px; font-size: 19px; }
.af .btn.outline { height: 48px; border-radius: 12px; background: transparent; border: 1px solid var(--line-2); color: var(--text); font-size: 15px; }
.af .btn.outline-accent { height: 48px; border-radius: 12px; background: transparent; border: 1px solid var(--accent); color: var(--accent); font-size: 15px; }
.af .chip { display: grid; place-items: center; flex: 1; min-width: 0; height: 44px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af .chip.sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.af .seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); }
.af .seg span { display: grid; place-items: center; flex: 1; height: 44px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.af .seg.dense span { font-size: 13px; color: var(--soft); }
.af .seg span.sel { background: var(--accent); color: var(--on-accent); }
.af .tile { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.af .tile .k { font-size: 13px; color: var(--muted); }
.af .tile .v { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 30px; line-height: 1.2; white-space: nowrap; }
.af .dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 5px; background: var(--c); }
.af .dot.aro { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }

/* la navegación: en el ordenador, la barra lateral (logo, Entrenar y el menú con su marca); en el móvil, la barra de abajo con el botón redondo */
.af-lado { position: absolute; z-index: 2; inset: 0 auto 0 0; width: 232px; padding: 32px 16px; border-right: 1px solid var(--line); background: var(--bar); }
.af-logo { padding: 0 14px 24px; font-size: 24px; font-weight: 700; }
.af-menu { position: relative; display: flex; flex-direction: column; gap: 4px; }
.af-menu li { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .3s; }
.af-menu li.activo { color: var(--accent); }
.af-menu li.af-fab { height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 16px; }
.af-marca { position: absolute; left: 0; right: 0; top: 0; height: var(--h, 48px); border-radius: 12px; background: var(--surface-2); opacity: 0;
  transform: translateY(var(--y, 0px)); transition: transform .55s var(--curva), opacity .3s; }
.af-menu.con-activo .af-marca { opacity: 1; }
.af-menu:has(.af-fab.activo) .af-marca { opacity: 0; }
.af-main { position: absolute; inset: 0 0 0 232px; }
.af .vista { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 16px; padding: 40px 364px 0 132px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.af .vista.activa { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.af .vista > * { flex: none; }

/* las entradas */
@keyframes af-sube { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes af-salta { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes af-trazo { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes af-funde { from { opacity: 0; } to { opacity: 1; } }
@keyframes af-llena { from { transform: scaleX(0); } to { transform: none; } }
.af .activa > * { animation: af-sube .6s var(--curva) both; animation-delay: calc(var(--i, 0) * 90ms); }
.activa .af-linea { animation: af-trazo 1.4s cubic-bezier(.45, 0, .2, 1) both; animation-delay: 450ms; }
.activa .af-area { animation: af-funde .8s ease both; animation-delay: 1.1s; }
.activa .af-punto { animation: af-salta .4s var(--curva) both; animation-delay: calc(700ms + var(--j) * 110ms); transform-box: fill-box; transform-origin: center; }
.activa .af-dia .dot { animation: af-salta .4s var(--curva) both; animation-delay: calc(350ms + var(--j) * 25ms); }
.activa .af-segmento.hecho { animation: af-llena .6s var(--curva) both; animation-delay: 300ms; transform-origin: left; }

/* inicio */
.af-hola { display: flex; justify-content: space-between; align-items: center; }
.af-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); font-size: 18px; font-weight: 600; }
.af-hoy { padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.af-graf { display: block; width: 100%; height: auto; overflow: visible; }
.af-graf text { font-size: 11px; fill: var(--muted); font-family: Barlow, sans-serif; }
.af-graf .rej { stroke: var(--line); }
.af-linea { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.af-area { fill: var(--accent); fill-opacity: .14; }
.af-punto { fill: var(--text); stroke: var(--surface); stroke-width: 2; }
.af-punto.ultimo { fill: var(--accent); }

/* entreno */
.af-top { display: flex; justify-content: space-between; align-items: center; }
.af-top > div { display: flex; align-items: center; gap: 12px; }
.af-terminar { height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 600; display: grid; place-items: center; }
.af-segmentos { display: flex; gap: 6px; }
.af-segmento { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); }
.af-segmento.hecho { background: var(--accent); }
.af-arte { position: relative; display: grid; place-items: center; height: 180px; border-radius: 16px; background: var(--surface); overflow: hidden; }
.af-arte img { height: 160px; width: auto; }
.af-arte span { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); font-size: 12px; font-weight: 600; }
.af-desc { font-size: 15px; line-height: 1.4; color: var(--desc); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.af-ultima { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.af-ultima svg { width: 18px; height: 18px; color: var(--muted); }
.af-series { display: flex; gap: 8px; }
.af-serie { position: relative; flex: 1; height: 60px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .35s, border-color .35s; }
.af-serie b { font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.af-serie i { font-style: normal; font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 17px; }
.af-serie.sel { background: var(--surface-2); border: 2px solid var(--accent); }
.af-paso { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 20px; font-weight: 600; }
.af-paso.ancho { width: 64px; height: 48px; font-size: 16px; }
.af-deslizador { position: relative; height: 34px; }
.af-deslizador::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: var(--line-2); }
.af-deslizador i { position: absolute; top: 3px; left: calc(70% - 16px); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.af-pie { position: absolute; z-index: 2; left: 108px; right: 340px; bottom: 0; padding: 12px 24px 28px; background: var(--bar); border-top: 1px solid var(--line); }
/* la serie guardada: lo de antes y lo de después están los dos en el HTML; .serie-guardada cambia cuál se ve */
.af .despues { display: none; }
.af.serie-guardada .antes { display: none; }
.af.serie-guardada .despues { display: revert; }
.af.serie-guardada .af-serie.s1 { background: var(--done-bg); border: 1px solid var(--done-line); }
.af.serie-guardada .af-serie.s2 { background: var(--surface-2); border: 2px solid var(--accent); }
.af.serie-guardada .af-serie.s1 .despues { animation: af-salta .45s var(--curva) both; }
.af.serie-guardada .af-tarjeta-serie { animation: af-sube .5s var(--curva) both; }

/* calendario */
.af-mes { display: flex; justify-content: space-between; align-items: center; }
.af-cuadro { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); }
.af-letras, .af-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.af-letras { font-size: 12px; font-weight: 600; color: var(--muted); }
.af-dias { gap: 2px; }
.af-dia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 52px; border-radius: 12px; font-size: 15px; font-weight: 500; border: 1px solid transparent; }
.af-dia.fuera { color: var(--faint); }
.af-dia.sel { background: var(--surface-2); border-color: var(--accent); font-weight: 700; }
.af-dia .vacio { width: 10px; height: 10px; }
.af-leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.af-leyenda span { display: inline-flex; align-items: center; gap: 6px; }

/* entrenamientos */
.af-rutina-cab { display: flex; align-items: center; gap: 12px; }
.af-rutina-cab .big { flex: 1; font-size: 30px; }
.af-rutina-cab .dot { width: 14px; height: 14px; border-radius: 7px; }
.af-rutina p { font-size: 14px; line-height: 1.4; color: var(--soft); }
.af-rutina .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }

/* el cursor */
.af .dn-cursor { position: absolute; z-index: 9; left: 0; top: 0; width: 26px; height: 26px; transform: translate(var(--cx, 700px), var(--cy, 600px));
  transition: transform .75s cubic-bezier(.6, .05, .25, 1); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.af .dn-cursor svg { width: 100%; height: 100%; }
.af .dn-cursor path { fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; }
.af .dn-clic { position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.af .dn-cursor.pulsa .dn-clic { animation: af-clic .5s ease-out; }
.af .dn-cursor.pulsa svg { animation: af-aprieta .25s ease; }
@keyframes af-clic { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
@keyframes af-aprieta { 50% { transform: scale(.85); } }

/* ================= el móvil (390 × 844): la barra de abajo con el botón redondo; el entreno ocupa la pantalla entera ================= */
.af.af-movil { width: 390px; height: 844px; }
.af-movil .af-main { inset: 0 0 84px; }
.af-movil .vista { padding: 40px 24px 16px; }
.af-movil .vista[data-vista="entreno"] { z-index: 3; inset: 0 0 -84px; padding-top: 32px; background: var(--bg); }
.af-movil .af-lado { inset: auto 0 0; width: auto; height: 84px; padding: 0 8px 20px; border-right: 0; border-top: 1px solid var(--line); }
.af-movil .af-logo, .af-movil .af-marca { display: none; }
.af-movil .af-menu { flex-direction: row; align-items: center; justify-content: space-around; height: 64px; gap: 0; }
.af-movil .af-menu li { flex-direction: column; justify-content: center; gap: 2px; width: 64px; min-height: 48px; padding: 0; font-size: 11px; }
.af-movil .af-menu li.af-fab { width: 56px; height: 56px; margin: -18px 0 0; border-radius: 28px; }
.af-movil .af-menu li.af-fab span { display: none; }
.af-movil .af-pie { left: 0; right: 0; }
.af-movil .dn-cursor svg { display: none; }
.af-movil .dn-cursor::before { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(232, 84, 44, .3); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 3px 10px rgba(0, 0, 0, .5); }

@media (prefers-reduced-motion: reduce) {
  .af *, .af *::before, .af *::after { animation: none !important; transition: none !important; }
}

/* Apartes recreado en HTML (<app-demo app="apartes">, app-demo.js): «pc» a 1440 × 900 (apartes-pc.html) y «movil» a 390 × 844
   (apartes-movil.html), a partir de las capturas de assets/capturas apartes/ y assets/capturas movil apartes/ (cuenta demo).
   Nada se puede pulsar: sus animaciones arrancan cuando una vista recibe .activa; el QR, cuando el programa recibe .con-qr. */
.ap { --fondo: #f6f6f4; --tinta: #262f3a; --gris: #5f6873; --gris2: #8a929b; --azul: #2563eb; --azul2: #e3eafb; --verde: #10b981; --verde2: #a7dcc4;
  --azul-claro: #a9bfe8; --borde: #e7e7e3; --gris-caja: #ececea; --boton: #e9e9e6; --naranja: #d97706; --curva: cubic-bezier(.2, .7, .2, 1);
  position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform: scale(var(--escala, .5)); transform-origin: 0 0; overflow: hidden;
  background: var(--fondo); color: var(--tinta); font: 400 15px/1.5 Inter, system-ui, sans-serif; pointer-events: none; user-select: none; }
.ap h1, .ap h2, .ap h3, .ap h4 { font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; }
.ap .gris { color: var(--gris); }
.ap i.bi { line-height: 1; }

/* la barra de arriba: logo, menú (con su marca, una píldora azul clara que se desliza) y la cuenta */
.ap-nav { position: absolute; z-index: 2; inset: 0 0 auto; height: 66px; display: flex; align-items: center; gap: 26px; padding: 0 130px; }
.ap-logo { width: 116px; }
.ap-menu { position: relative; display: flex; gap: 4px; }
.ap-menu li { position: relative; z-index: 1; padding: 8px 14px; border-radius: 10px; font-size: 15.5px; color: #3b4450; transition: color .35s; }
.ap-menu li.activo { color: var(--azul); font-weight: 500; }
.ap-marca { position: absolute; left: 0; top: 0; width: var(--w, 0px); height: var(--h, 0px); border-radius: 10px; background: var(--azul2); opacity: 0;
  transform: translate(var(--x, 0px), var(--y, 0px)); transition: transform .55s var(--curva), width .55s var(--curva), opacity .3s; }
.ap-menu.con-activo .ap-marca { opacity: 1; }
.ap-cuenta { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15.5px; }
.ap-cuenta .bi-moon-stars-fill { font-size: 19px; }
.ap-cuenta span { display: flex; align-items: center; gap: 9px; }
.ap-cuenta .bi-question-circle { font-size: 21px; }
.ap-cuenta .bi-chevron-down { font-size: 11px; color: var(--gris); }

.ap-main { position: absolute; inset: 66px 0 0; }
.ap .vista { position: absolute; inset: 0; padding: 30px 130px 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.ap .vista.activa { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.ap-miga { font-size: 14px; color: var(--gris); }
.ap-titulo { margin-top: 6px; font-size: 44px; }
.ap-sub { margin-top: 10px; font-size: 16px; color: var(--gris); }
.ap-caja { margin-top: 26px; padding: 28px 30px; border-radius: 16px; background: #fff; }
.ap-caja-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ap-caja-cab small { display: block; font-size: 13.5px; color: var(--tinta); }
.ap-caja-cab h2 { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 22px; }
.ap-caja-cab h2 i { font-size: 21px; color: var(--gris); }
.ap-botones { display: flex; gap: 10px; }
.ap-boton { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 9px; background: var(--boton); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.ap-boton.azul { background: var(--azul); color: #fff; }

/* las entradas */
@keyframes ap-sube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ap-aparece { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
@keyframes ap-fila { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes ap-barra { from { transform: scaleX(0); } to { transform: none; } }
@keyframes ap-crece { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ap-salta { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.activa .ap-miga, .activa .ap-titulo, .activa .ap-sub { animation: ap-sube .6s var(--curva) both; }
.activa .ap-titulo { animation-delay: 60ms; } .activa .ap-sub { animation-delay: 120ms; }
.activa .ap-caja { animation: ap-sube .7s var(--curva) both; animation-delay: 160ms; }
.activa .ap-aloj { animation: ap-aparece .7s var(--curva) both; animation-delay: calc(380ms + var(--i) * 140ms); }
.activa .ap-tabla tbody tr, .activa .apm-parte { animation: ap-fila .55s var(--curva) both; animation-delay: calc(320ms + var(--i) * 80ms); }
.activa .ap-estado { animation: ap-salta .45s var(--curva) both; animation-delay: calc(560ms + var(--i) * 80ms); }
.activa .ap-evento { animation: ap-barra .7s var(--curva) both; animation-delay: calc(450ms + var(--i) * 70ms); transform-origin: left; }
.activa .ap-barras rect { animation: ap-crece .8s var(--curva) both; animation-delay: calc(400ms + var(--i) * 45ms); transform-box: fill-box; transform-origin: bottom; }
.activa .ap-chip { animation: ap-salta .45s var(--curva) both; animation-delay: calc(260ms + var(--i) * 40ms); }

/* el panel: las tarjetas de los alojamientos (la foto es un recorte de la captura: /demos/img/apartes-portada.png) */
.ap-foto { display: block; background: url("/demos/img/apartes-portada.png") no-repeat; }
.ap-alojs { display: flex; gap: 20px; margin-top: 24px; }
.ap-aloj { width: 360px; }
.ap-aloj .ap-foto { width: 360px; height: 203px; border-radius: 12px 12px 0 0; }
.ap-aloj-cab { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 0; }
.ap-aloj-cab > div { flex: 1; min-width: 0; }
.ap-aloj h4 { font-size: 18px; letter-spacing: -0.035em; }
.ap-aloj p { margin-top: 4px; font-size: 13.5px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-verqr { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--azul2); color: var(--azul); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ap-kebab { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--borde); border-radius: 8px; }
.ap-acciones { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 0 4px; text-align: center; font-size: 12.5px; color: var(--gris); }
.ap-acciones i { display: block; margin-bottom: 4px; font-size: 17px; color: #4b5563; }

/* el QR: un velo sobre todo y la ventana en el centro */
.ap-qr { position: absolute; z-index: 6; inset: 0; display: grid; place-items: start center; padding-top: 54px; background: rgba(20, 22, 28, .45); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.ap.con-qr .ap-qr { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.ap-modal { width: 484px; border-radius: 16px; background: #fff; overflow: hidden; transform: translateY(24px) scale(.96); opacity: 0; transition: transform .5s var(--curva), opacity .35s; }
.ap.con-qr .ap-modal { transform: none; opacity: 1; transition-delay: .08s; }
.ap-modal-cab { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 0; }
.ap-modal-cab h3 { font-size: 19px; letter-spacing: -0.035em; }
.ap-qr-cerrar { display: grid; place-items: center; width: 30px; height: 30px; font-size: 20px; color: var(--gris); }
.ap-modal-cuerpo { padding: 14px 26px 18px; text-align: center; }
.ap-modal-cuerpo h4 { font-size: 21px; letter-spacing: -0.035em; }
.ap-modal-cuerpo > p { margin-top: 8px; font-size: 14.5px; color: var(--gris); }
.ap-qr-caja { width: 256px; margin: 18px auto 0; padding: 20px; border: 1px solid var(--borde); border-radius: 12px; }
.ap-qr-caja svg { display: block; width: 100%; height: auto; }
.ap-qr-caja rect { opacity: 0; }
.ap.con-qr .ap-qr-caja rect { opacity: 1; animation: ap-salta .3s ease both; animation-delay: calc(300ms + var(--d) * 1ms); }
.ap-enlace { margin-top: 20px; text-align: left; font-size: 14px; font-weight: 600; }
.ap-enlace div { display: flex; gap: 8px; margin-top: 8px; }
.ap-enlace span { flex: 1; padding: 8px 10px; border-radius: 8px; background: var(--gris-caja); font-weight: 400; color: #3b4450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-enlace b { display: grid; place-items: center; width: 34px; border: 1px solid var(--borde); border-radius: 8px; }
.ap-nota { margin-top: 12px; text-align: left; font-size: 13.5px; color: var(--gris); }
.ap-modal-pie { display: flex; justify-content: flex-end; gap: 30px; padding: 16px 26px; background: #f0f0ee; font-size: 14.5px; font-weight: 600; }
.ap-modal-pie span { display: flex; align-items: center; gap: 8px; }
.ap-modal-pie i { color: var(--azul); }

/* los partes: la tabla */
.ap-tabla { width: 100%; margin-top: 22px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.ap-tabla th { padding: 14px 16px; background: var(--gris-caja); text-align: left; font-weight: 500; color: #4b5563; }
.ap-tabla th:first-child { border-radius: 10px 0 0 10px; } .ap-tabla th:last-child { border-radius: 0 10px 10px 0; text-align: right; }
.ap-tabla td { padding: 14px 16px; border-bottom: 2px solid #f0f0ee; vertical-align: middle; }
.ap-tabla tbody tr { transition: background .3s; }
.ap-tabla tbody tr.encima { background: #f7f8fb; }
.ap-quien { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.ap-quien .ap-foto { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #3b82f6; }
.ap-quien .ap-foto.v2 { border-color: var(--verde); }
.ap-viajeros b { display: block; max-width: 250px; font-weight: 600; line-height: 1.4; }
.ap-viajeros small { display: block; margin-top: 4px; font: 12.5px/1 ui-monospace, monospace; letter-spacing: .04em; color: var(--gris); }
.ap-fecha { white-space: nowrap; font-weight: 600; }
.ap-fecha i { margin-right: 8px; color: var(--gris); font-weight: 400; }
.ap-fecha.suave { font-weight: 500; }
.ap-estado { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--borde); border-radius: 8px; color: #15803d; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ap-estado.dup { color: var(--naranja); }
.ap-estado .bi-three-dots-vertical { color: var(--gris); }
.ap-acc { display: flex; justify-content: flex-end; gap: 10px; }
.ap-acc span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--gris-caja); color: #4b5563; font-size: 14px; white-space: nowrap; }

/* el calendario */
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ap-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 9px; background: var(--boton); font-size: 14.5px; white-space: nowrap; }
.ap-chip.sel { background: var(--azul2); box-shadow: inset 0 0 0 2px var(--azul); font-weight: 600; }
.ap-chip i.punto { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #4b5563); }
.ap-cal-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 18px; }
.ap-cal-nav > div { display: flex; gap: 6px; }
.ap-cal-nav span { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--boton); font-size: 14px; }
.ap-cal-nav span.hoy { color: #a1a6ad; background: #f0f0ee; }
.ap-cal-nav h3 { font-size: 23px; letter-spacing: -0.04em; }
.ap-cal { margin-top: 14px; border: 1px solid #dcdcd8; }
.ap-cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--gris-caja); }
.ap-cal-dias span { padding: 10px; text-align: center; font-size: 14.5px; font-weight: 500; color: #4b5563; border-left: 1px solid #dcdcd8; }
.ap-cal-dias span:first-child { border-left: 0; }
.ap-semana { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); height: 96px; border-top: 1px solid #dcdcd8; }
.ap-semana > span { padding: 8px 10px; text-align: right; font-size: 15px; border-left: 1px solid #dcdcd8; }
.ap-semana > span:first-child { border-left: 0; }
.ap-semana > span.fuera { color: #b5b9be; }
.ap-semana > span.hoy b { display: inline-grid; place-items: center; min-width: 28px; height: 26px; border-radius: 6px; background: var(--tinta); color: #fff; }
.ap-evento { position: absolute; display: flex; align-items: center; justify-content: space-between; height: 27px; padding: 0 8px; border-radius: 5px; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.ap-evento.sigue { border-radius: 5px 0 0 5px; }
.ap-evento.a { background: #3b82f6; } .ap-evento.v { background: var(--verde); }
.ap-evento.a.pasado { background: var(--azul-claro); } .ap-evento.v.pasado { background: var(--verde2); }
.ap-evento small { display: flex; align-items: center; gap: 6px; font-size: 11px; opacity: .95; }

/* la contabilidad */
.ap-filtros { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 18px; }
.ap-filtros > div > small { display: block; margin-bottom: 6px; font-size: 13.5px; color: var(--tinta); }
.ap-filtros .ap-chips { margin-top: 0; }
.ap-total { text-align: right; }
.ap-total small { font-size: 13px; color: var(--gris); }
.ap-total b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ap-graf { margin-top: 20px; padding: 22px 26px 18px; border-radius: 16px; background: #eeeeec; }
.ap-graf h4 { font-size: 18px; letter-spacing: -0.035em; }
.ap-graf > p { margin-top: 4px; font-size: 14px; color: var(--gris); }
.ap-graf svg { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.ap-graf .eje { font-size: 13px; fill: #6b7280; }
.ap-graf .rej { stroke: #dddcd8; }
.ap-leyenda { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ap-leyenda span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: #fff; font-size: 13.5px; }
.ap-leyenda i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }

/* el cursor (las mismas piezas que en Denova: .dn-cursor) */
.ap .dn-cursor { position: absolute; z-index: 9; left: 0; top: 0; width: 26px; height: 26px; transform: translate(var(--cx, 700px), var(--cy, 600px));
  transition: transform .75s cubic-bezier(.6, .05, .25, 1); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.ap .dn-cursor svg { width: 100%; height: 100%; }
.ap .dn-cursor path { fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.ap .dn-clic { position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--azul); opacity: 0; }
.ap .dn-cursor.pulsa .dn-clic { animation: dn-clic .5s ease-out; }
.ap .dn-cursor.pulsa svg { animation: dn-aprieta .25s ease; }
@keyframes dn-clic { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
@keyframes dn-aprieta { 50% { transform: scale(.85); } }

/* ================= la versión de móvil (390 × 844) ================= */
.ap.ap-movil { width: 390px; height: 844px; font-size: 14px; }
.ap-movil .ap-nav { height: 60px; padding: 0 14px; gap: 0; }
.ap-movil .ap-logo { width: 86px; }
.ap-movil .ap-cuenta { gap: 16px; }
.ap-hamb { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--boton); font-size: 22px; }
/* el menú: una hoja que baja bajo la barra, sobre un velo */
.ap-movil .ap-menu { position: absolute; z-index: 5; top: 60px; left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 8px; border-radius: 16px; background: #fff;
  box-shadow: 0 20px 40px -16px rgba(20, 22, 28, .35); opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top; transition: opacity .3s, transform .4s var(--curva); }
.ap-movil.menu-abierto .ap-menu { opacity: 1; transform: none; }
.ap-movil .ap-menu li { padding: 11px 14px; font-size: 16px; }
.ap-velo { position: absolute; z-index: 4; inset: 60px 0 0; background: rgba(20, 22, 28, .3); opacity: 0; transition: opacity .35s; }
.ap-movil.menu-abierto .ap-velo { opacity: 1; }
.ap-movil .ap-main { inset: 60px 0 0; }
.ap-movil .vista { padding: 18px 14px 0; }
.ap-movil .ap-titulo { font-size: 27px; }
.ap-movil .ap-sub { margin-top: 8px; font-size: 14.5px; }
.ap-movil .ap-caja { margin-top: 18px; padding: 18px 14px; border-radius: 16px; }
.ap-movil .ap-caja-cab h2 { font-size: 19px; }
.ap-movil .ap-boton { height: 32px; padding: 0 12px; font-size: 13.5px; }
/* panel: lista con la foto a la izquierda */
.apm-aloj { display: grid; grid-template-columns: 63px 1fr; gap: 12px; margin-top: 14px; }
.apm-aloj .ap-foto { width: 63px; height: 84px; border-radius: 12px 0 0 12px; }
.apm-aloj .ap-aloj-cab { padding: 2px 0 0; }
.apm-aloj h4 { font-size: 16px; }
.apm-aloj p { font-size: 12px; }
.apm-aloj .ap-verqr { width: 30px; height: 30px; justify-content: center; padding: 0; font-size: 16px; }
.apm-aloj .ap-kebab { width: 30px; height: 30px; }
.apm-aloj .ap-acciones { padding: 10px 0 0; font-size: 11px; }
.apm-aloj .ap-acciones i { font-size: 14px; }
.activa .apm-aloj { animation: ap-aparece .7s var(--curva) both; animation-delay: calc(380ms + var(--i) * 140ms); }
/* partes: tarjetas con el borde verde */
.apm-partes { display: grid; gap: 10px; margin-top: 16px; }
.apm-parte { padding: 10px 12px; border: 1px solid var(--borde); border-left: 3px solid #22c55e; border-radius: 12px; background: #fff; transition: background .3s, box-shadow .3s; }
.apm-parte.encima { background: #f7f8fb; box-shadow: 0 0 0 1.5px rgba(37, 99, 235, .3); }
.apm-parte.dup { border-left-color: #f59e0b; }
.apm-parte-cab { display: flex; justify-content: space-between; align-items: center; }
.apm-parte-cab > span:last-child { display: flex; gap: 6px; }
.apm-parte .ap-estado { padding: 3px 8px; font-size: 13px; }
.apm-ver { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--gris-caja); font-size: 13px; }
.apm-parte b { display: block; margin-top: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apm-parte p { margin-top: 4px; font-size: 13px; color: var(--gris); }
.apm-parte p strong { color: var(--tinta); font-weight: 600; }
.apm-parte small { display: block; margin-top: 3px; font: 11.5px/1.2 ui-monospace, monospace; color: var(--gris); }
.apm-parte .ap-quien { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--borde); font-size: 12.5px; font-weight: 400; color: var(--gris); }
.apm-parte .ap-quien .ap-foto { width: 22px; height: 22px; border-width: 1.5px; }
/* calendario y contabilidad, compactos */
.ap-movil .ap-chip { height: 30px; padding: 0 10px; font-size: 13px; }
.ap-movil .ap-cal-nav { grid-template-columns: auto 1fr; gap: 10px; }
.ap-movil .ap-cal-nav span { min-width: 30px; height: 30px; padding: 0 8px; }
.ap-movil .ap-cal-nav h3 { font-size: 18px; text-align: right; }
.ap-movil .ap-cal-dias span { padding: 6px 2px; font-size: 12px; }
.ap-movil .ap-semana { height: 70px; }
.ap-movil .ap-semana > span { padding: 4px 5px; font-size: 12.5px; }
.ap-movil .ap-semana > span.hoy b { min-width: 20px; height: 20px; border-radius: 5px; }
.ap-movil .ap-evento { height: 18px; padding: 0 4px; font-size: 10.5px; border-radius: 4px; }
.ap-movil .ap-evento small { font-size: 8.5px; }
.ap-movil .ap-filtros { gap: 10px 14px; }
.ap-movil .ap-graf { margin-top: 14px; padding: 14px 12px; }
.ap-movil .ap-graf h4 { font-size: 15.5px; }
.ap-movil .ap-graf > p { font-size: 12px; }
.ap-movil .ap-graf .eje { font-size: 22px; }
.ap-movil .ap-leyenda span { padding: 4px 8px; font-size: 11.5px; }
.ap-movil .ap-qr { padding-top: 70px; }
.ap-movil .ap-modal { width: 356px; }
.ap-movil .ap-qr-caja { width: 210px; }
/* el dedo */
.ap-movil .dn-cursor svg { display: none; }
.ap-movil .dn-cursor::before { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(37, 99, 235, .22); border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }

@media (prefers-reduced-motion: reduce) {
  .ap *, .ap *::before, .ap *::after { animation: none !important; transition: none !important; }
  .ap-qr-caja rect { opacity: 1; }
}

/* ---- la landing (la web pública de apartes.es, de la captura landing.png): una capa encima del programa, como la web de la bodega.
   Se ve mientras su vista está activa; el cursor pulsa «Acceder» y entra al panel (app-demo.js, «entra»). Lo que tiene .lento no
   se adelanta en la primera vista (app-demo.css, .de-golpe) */
.apw { position: absolute; inset: 0; z-index: 7; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s;
  background: radial-gradient(560px 380px at 30% 6%, #fcefd9, transparent 70%), radial-gradient(640px 560px at 80% 42%, #e2e8fb, transparent 70%),
    radial-gradient(560px 320px at 66% 104%, #e3f3e7, transparent 70%), #f5f6f8; }
.apw:has(.vista.activa) { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.apw-nav { position: absolute; z-index: 1; inset: 0 0 auto; height: 88px; display: flex; align-items: center; padding: 0 130px; }
.apw-nav .ap-logo { width: 142px; }
.apw-nav ul { display: flex; gap: 28px; margin: 0 auto; padding-left: 150px; font-size: 16px; color: #3b4450; }
.apw-sol { width: 21px; height: 21px; color: #3b4450; margin-right: 26px; }
.apw-acceder { padding: 10px 16px; border-radius: 8px; background: #ebecee; font-size: 16px; font-weight: 600; }
.apw .vista { inset: 0; padding: 0; }
.apw-texto { position: absolute; left: 120px; top: 300px; width: 620px; }
.apw-titulo { font-size: 112px; line-height: 1.02; letter-spacing: -0.065em; }
.apw-titulo > span { display: block; }
.apw-qr { display: inline-block; width: 86px; height: 86px; margin: 0 16px; padding: 6px; border-radius: 8px; background: #fff; vertical-align: -4px; }
.apw-qr svg { display: block; width: 100%; height: 100%; }
.apw-qr rect { fill: #111; }
.apw-lead { width: 450px; margin-top: 30px; font-size: 19px; line-height: 1.6; color: #3b4450; }
.apw-botones { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.apw-crear { height: 46px; padding: 0 22px; border-radius: 8px; background: var(--azul); color: #fff; font-size: 16.5px; font-weight: 600; line-height: 46px; }
.apw-cuenta { color: var(--azul); font-size: 17px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
/* el móvil del huésped rellenando su parte */
.apw-aparato { position: absolute; left: 812px; top: 140px; width: 272px; transform-origin: 0 0; }
.apw-movil { height: 610px; padding: 9px; border-radius: 46px; background: #121316; box-shadow: 0 40px 70px -30px rgba(20, 30, 60, .45), inset 0 0 0 2px #2b2d33; }
.apw-pantalla { position: relative; height: 100%; overflow: hidden; padding: 26px 16px 0; border-radius: 38px; background: #fff; color: #1c232c; }
.apw-m-titulo { font-size: 27px; font-weight: 700; letter-spacing: -0.06em; }
.apw-progreso { display: block; height: 7px; margin-top: 14px; border-radius: 4px; background: #e8e9ec; overflow: hidden; }
.apw-progreso i { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--azul); }
.apw-m-sub { margin-top: 22px; font-size: 19.5px; font-weight: 600; line-height: 1.25; letter-spacing: -0.04em; }
.apw-escaner { position: relative; margin-top: 14px; padding: 14px 14px 16px; border-radius: 14px; background: #ececea; overflow: hidden; }
.apw-escaner p { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; }
.apw-escaner p svg { width: 15px; height: 15px; }
.apw-escaner small { display: block; margin-top: 8px; font-size: 12.5px; }
.apw-escanear { display: block; margin-top: 24px; height: 36px; border-radius: 7px; background: var(--azul); color: #fff; font-size: 13px; font-weight: 600; line-height: 36px; text-align: center; }
.apw-escaner u { display: block; margin-top: 12px; font-size: 11px; text-align: center; }
.apw-raya { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .7), transparent); opacity: 0; }
.apw-etq { margin-top: 14px; font-size: 13.5px; font-weight: 500; }
.apw-etq b { color: #dc2626; font-weight: 500; }
.apw-campo { display: block; height: 40px; margin-top: 6px; padding: 0 10px; border: 1px solid #cfd3d8; border-radius: 6px; font-size: 15px; line-height: 38px; }
/* las entradas y lo que se mueve */
@keyframes apw-llega { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: none; } }
@keyframes apw-flota { 50% { translate: 0 -10px; } }
@keyframes apw-avanza { from { width: 6%; } }
@keyframes apw-escanea { 0% { opacity: 0; top: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
.activa .apw-l1 { animation: ap-sube .8s var(--curva) both .05s; }
.activa .apw-l2 { animation: ap-sube .8s var(--curva) both .15s; }
.activa .apw-lead { animation: ap-sube .8s var(--curva) both .25s; }
.activa .apw-botones { animation: ap-sube .8s var(--curva) both .32s; }
.activa .apw-qr rect { animation: ap-salta .3s ease both; animation-delay: calc(150ms + var(--d) * .6ms); }
.activa .apw-aparato { animation: apw-llega .9s var(--curva) both .1s; }
.activa .apw-movil { animation: apw-flota 5s ease-in-out infinite 1s; }
.activa .apw-progreso i { animation: apw-avanza 1.4s var(--curva) both .4s; }
.activa .apw-raya { animation: apw-escanea 2.2s ease-in-out infinite .6s; }
/* en el móvil (390 × 844): el titular arriba y el teléfono del huésped asomando por abajo */
.ap-movil .apw-nav { height: 60px; padding: 0 14px; }
.ap-movil .apw-nav .ap-logo { width: 86px; }
.ap-movil .apw-sol { margin: 0 14px 0 auto; width: 19px; height: 19px; }
.ap-movil .apw-acceder { padding: 7px 12px; font-size: 14px; }
.ap-movil .apw-texto { left: 18px; top: 92px; width: 354px; }
.ap-movil .apw-titulo { font-size: 58px; }
.ap-movil .apw-qr { width: 48px; height: 48px; margin: 0 8px; padding: 4px; border-radius: 6px; vertical-align: -2px; }
.ap-movil .apw-lead { width: auto; margin-top: 18px; font-size: 15px; }
.ap-movil .apw-botones { gap: 16px; margin-top: 20px; }
.ap-movil .apw-crear { height: 42px; padding: 0 18px; font-size: 15px; line-height: 42px; }
.ap-movil .apw-cuenta { font-size: 15px; }
.ap-movil .apw-aparato { left: 88px; top: 420px; scale: .78; }
@media (prefers-reduced-motion: reduce) {
  .activa .apw-movil, .activa .apw-raya { animation: none; }
}

/* La Bodega David Fernández recreada en HTML (<app-demo app="bodega">, app-demo.js): «pc» a 1440 × 900 (bodega-pc.html).
   Dos caras: la web pública (la reserva de una cata: personas, fecha y hora) y el panel de administración (calendario, clientes,
   estadísticas, correos automáticos, bonos y horario). Colores y letra sacados de las capturas (assets/captura bodega david
   fernandez/): papel cálido, verde botella, oliva; Playfair Display en los títulos y Jost en lo demás. Los datos son inventados.
   Nada se puede pulsar: cada vista anima su entrada cuando recibe .activa; las capas (.mas-uno, .con-hora) las pone el recorrido. */
.bd { --papel: #f1ece4; --papel-2: #f8f6f1; --linea: #dcd5c9; --linea-2: #c9c1b3; --tinta: #1f1d1a; --gris: #6f6a62; --suave: #9a948a;
  --botella: #12291b; --oliva: #6b7a3c; --oliva-2: #8a9a55; --verde: #3a7d2c; --verde-claro: #dde6d0; --etiqueta: #e3e9d6; --rojo: #a33b2b;
  --serif: "Playfair Display", Georgia, serif; --curva: cubic-bezier(.2, .7, .2, 1);
  position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform: scale(var(--escala, .5)); transform-origin: 0 0; overflow: hidden;
  background: var(--papel); color: var(--tinta); font: 400 15px/1.45 Jost, system-ui, sans-serif; pointer-events: none; user-select: none; -webkit-font-smoothing: antialiased; }
.bd svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bd .etq { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.bd .titulo { font: 400 44px/1.1 var(--serif); letter-spacing: -.01em; }
.bd .nota { font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--gris); }
.bd .boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 36px; border: 1.5px solid var(--tinta);
  font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.bd .tag { display: inline-block; padding: 3px 9px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--etiqueta); color: #4c5d27; }
.bd .tag.gris { background: #e8e2d8; color: #7a6f5f; }
.bd .tag.fuera { background: none; color: var(--tinta); }
.bd .pais { display: inline-block; padding: 2px 8px; border: 1px solid var(--linea-2); font-size: 12.5px; font-weight: 300; color: var(--gris); }

/* las entradas: cada pieza con --i sube con un poco de retraso */
@keyframes bd-sube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bd-funde { from { opacity: 0; } to { opacity: 1; } }
@keyframes bd-salta { 0% { opacity: 0; transform: scale(.85); } 70% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes bd-ancho { from { transform: scaleX(0); } to { transform: none; } }
@keyframes bd-alto { from { transform: scaleY(0); } to { transform: none; } }
@keyframes bd-fila { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.bd .activa .an { animation: bd-sube .65s var(--curva) both; animation-delay: calc(var(--i, 0) * 80ms); }
.bd .activa tbody tr { animation: bd-fila .5s var(--curva) both; animation-delay: calc(250ms + var(--f, 0) * 70ms); }
.bd tbody tr:nth-child(1) { --f: 0; } .bd tbody tr:nth-child(2) { --f: 1; } .bd tbody tr:nth-child(3) { --f: 2; } .bd tbody tr:nth-child(4) { --f: 3; }
.bd tbody tr:nth-child(5) { --f: 4; } .bd tbody tr:nth-child(6) { --f: 5; } .bd tbody tr:nth-child(7) { --f: 6; } .bd tbody tr:nth-child(8) { --f: 7; }

/* ================= la web pública: la reserva ================= */
.bd-web { position: absolute; inset: 0; z-index: 3; background: var(--papel); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
.bd-web:has(.vista.activa) { opacity: 1; visibility: visible; transition: opacity .4s ease, visibility 0s; }
.bd-nav { position: absolute; left: 0; right: 0; top: 0; height: 120px; display: flex; align-items: center; justify-content: center; gap: 24px;
  font-size: 13px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.bd-nav-logo { display: flex; flex-direction: column; align-items: center; margin: -18px 14px 0; letter-spacing: .18em; }
.bd-nav-logo svg { width: 40px; height: 50px; margin-bottom: 2px; color: var(--tinta); }
.bd-nav-logo b { font-weight: 400; font-size: 17px; } .bd-nav-logo b small { font-size: 12px; color: var(--gris); margin-right: 8px; }
.bd-nav-logo span { font-size: 10px; color: var(--suave); letter-spacing: .24em; }
.bd-nav .boton { height: 50px; padding: 0 22px; margin-left: 10px; font-size: 14px; }
.bd-web .vista { position: absolute; inset: 120px 0 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.bd-web .vista.activa { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
/* la landing: tapa también el menú de la web (la captura ya lo lleva); el hero un momento y un scroll rápido hasta «Las Visitas»
   (900 px antes del final de la captura). La tarjeta de la visita (x 352, y 5359, 736 × 415 en la web) es a donde va el cursor */
.bd-web .vista[data-vista="landing"] { inset: 0; z-index: 2; overflow: hidden; background: #e7e5c6; }
.bd-land { position: relative; height: var(--alto); }
.bd-land img { display: block; width: 1440px; height: var(--alto); }
.bd-land-tarjeta { position: absolute; left: 352px; top: calc(var(--alto) - 486px); width: 736px; height: 415px; }
.bd-web .vista[data-vista="landing"].activa .bd-land { animation: bd-landing 3.2s cubic-bezier(.6, 0, .3, 1) 1s both; }
@keyframes bd-landing { from { transform: none; } to { transform: translateY(calc(900px - var(--alto))); } }
@media (prefers-reduced-motion: reduce) { .bd-web .vista[data-vista="landing"].activa .bd-land { animation-duration: 0s; animation-delay: 0s; } }
.bd-res-cab { padding: 20px 96px 18px; border-bottom: 1px solid var(--linea); }
.bd-res-cab em { font: 400 22px/1 "Pinyon Script", cursive; color: var(--gris); font-style: normal; }
.bd-res-cab h3 { font: 400 56px/1.1 var(--serif); }
.bd-res { display: grid; grid-template-columns: 160px 640px 380px; gap: 0 44px; padding: 28px 0 0 96px; align-items: start; }
.bd-pasos { border-left: 1px solid var(--linea-2); }
.bd-pasos li { display: flex; gap: 14px; padding: 16px 0 16px 20px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.bd-pasos li i { font: 400 18px/1 var(--serif); font-style: normal; padding-top: 2px; }
.bd-pasos li.ya { color: var(--tinta); box-shadow: -2px 0 0 var(--tinta); }
.bd-caja { padding: 40px 42px; border: 1px solid var(--linea-2); background: rgba(255, 255, 255, .12); }
.bd-caja h4 { font: 400 34px/1.2 var(--serif); }
.bd-fila-p { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-bottom: 34px; border-bottom: 1px solid var(--linea-2); }
.bd-fila-p b { display: block; font-size: 18px; font-weight: 400; } .bd-fila-p small { font-size: 13px; font-weight: 300; color: var(--gris); }
.bd-contador { display: flex; align-items: center; gap: 26px; }
.bd-contador > span { display: grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--tinta); font-size: 24px; font-weight: 300; }
.bd-contador b { font: 400 26px/1 var(--serif); min-width: 16px; text-align: center; }
.bd-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 40px; }
.bd-total small { font-size: 13px; font-weight: 300; color: var(--gris); } .bd-total b { font: 400 34px/1 var(--serif); }
.bd-caja .nota { margin-top: 18px; font-size: 13px; }
.bd-caja .boton { width: 100%; margin-top: 40px; height: 60px; }
.bd-resumen { padding: 50px 48px 44px; background: var(--botella); color: #e9e4da; }
.bd-resumen h4 { font: 400 30px/1.2 var(--serif); color: #fff; margin-bottom: 34px; }
.bd-resumen dl div { display: flex; justify-content: space-between; padding: 10px 0; font-size: 16px; font-weight: 300; }
.bd-resumen dl dt { color: #b9c0b5; } .bd-resumen dl dd { margin: 0; }
.bd-resumen .tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 38px; border-top: 1px solid rgba(255, 255, 255, .16); }
.bd-resumen .tot span { font-size: 14px; letter-spacing: .2em; } .bd-resumen .tot b { font: 400 36px/1 var(--serif); color: #fff; }
.bd-resumen .igic { text-align: right; font-size: 13px; color: #b9c0b5; margin-top: 14px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.bd-resumen .info { margin-top: 26px; font-size: 14px; font-weight: 300; line-height: 2; color: #cfd4cb; }
/* el cambio de personas (paso 1) y de hora (paso 2): dos versiones de cada dato, la capa decide cuál se ve */
.bd .v2 { display: none; }
.bd.mas-uno .vista[data-vista="personas"] .v1, .bd.con-hora .vista[data-vista="fecha"] .v1 { display: none; }
.bd.mas-uno .vista[data-vista="personas"] .v2, .bd.con-hora .vista[data-vista="fecha"] .v2 { display: inline; animation: bd-salta .45s var(--curva) both; }
.bd.mas-uno .bd-mas { background: var(--tinta); color: var(--papel); transition: background .2s, color .2s; }
/* la fecha: el calendario y los horarios */
.bd-fecha { display: grid; grid-template-columns: 370px 1fr; gap: 36px; }
.bd-mes { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 14px; font: 400 21px/1 var(--serif); }
.bd-mes span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--linea-2); font: 300 20px/1 Jost, sans-serif; }
.bd-mes span:first-child { color: var(--linea-2); }
.bd-dias { display: grid; grid-template-columns: repeat(7, 48px); gap: 6px; justify-content: space-between; text-align: center; }
.bd-dias b { font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--gris); padding-bottom: 8px; }
.bd-dias span { display: grid; place-items: center; height: 48px; font-size: 17px; font-weight: 300; }
.bd-dias span.pasado { color: var(--linea-2); }
.bd-dias span.libre { border: 1.5px solid var(--gris); }
.bd-dias span.sel { background: var(--botella); border-color: var(--botella); color: #fff; }
.bd-horas { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.bd-hora { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 76px; border: 1.5px solid var(--gris); font-size: 17px; transition: background .3s, color .3s; }
.bd-hora small { font-size: 11px; font-weight: 500; letter-spacing: .14em; }
.bd.con-hora .bd-hora.h19 { background: var(--botella); border-color: var(--botella); color: #fff; }
.bd-botones { display: flex; gap: 20px; margin-top: 34px; }
.bd-botones .boton { margin: 0; height: 60px; }
.bd-botones .boton:first-child { width: 120px; flex: none; padding: 0; border-color: var(--linea-2); color: var(--gris); }

/* ================= el panel de administración ================= */
.bd-cab { position: absolute; left: 0; right: 0; top: 0; height: 80px; display: flex; align-items: center; gap: 40px; padding: 0 34px 0 22px; border-bottom: 1px solid var(--linea); }
.bd-cab-logo { display: flex; align-items: center; gap: 14px; }
.bd-cab-logo svg { width: 30px; height: 40px; }
.bd-cab-logo b { display: block; font: 400 25px/1.1 var(--serif); }
.bd-cab-logo small { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--oliva); }
.bd-cab .etq { font-weight: 600; }
.bd-cab-der { display: flex; align-items: center; gap: 28px; margin-left: auto; color: var(--gris); }
.bd-cab-der .boton { height: 40px; padding: 0 22px; border: 1px solid var(--linea-2); font-size: 12.5px; color: var(--gris); }
.bd-lado { position: absolute; left: 18px; top: 112px; bottom: 30px; width: 238px; padding-right: 20px; border-right: 1px solid var(--linea); }
.bd-menu { position: relative; display: flex; flex-direction: column; }
.bd-menu li { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; min-height: 47px; padding: 0 0 0 24px;
  font-size: 14px; font-weight: 400; letter-spacing: .18em; line-height: 1.05; text-transform: uppercase; color: var(--gris); transition: color .3s, font-weight .3s; }
.bd-menu li.activo { color: var(--tinta); font-weight: 600; }
.bd-marca { position: absolute; left: 0; top: 0; width: 2px; height: var(--h, 47px); background: var(--oliva); opacity: 0;
  transform: translateY(var(--y, 0px)); transition: transform .55s var(--curva), height .55s var(--curva), opacity .3s; }
.bd-menu.con-activo .bd-marca { opacity: 1; }
.bd-menu hr { margin: 14px 0; border: 0; border-top: 1px solid var(--linea); }
.bd-main { position: absolute; left: 300px; right: 30px; top: 80px; bottom: 0; }
.bd-main .vista { position: absolute; inset: 0; padding: 34px 26px 0 22px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.bd-main .vista.activa { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.bd-encab { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.bd-encab .etq { font-weight: 600; margin-bottom: 8px; }
.bd-encab .nota { max-width: 560px; margin-top: 8px; }
.bd-papel { border: 1px solid var(--linea); background: var(--papel-2); }

/* las tablas */
.bd-tabla { width: 100%; border-collapse: collapse; border: 1px solid var(--linea); background: var(--papel-2); font-size: 14.5px; font-weight: 300; }
.bd-tabla th { padding: 16px 16px; background: #ece6dc; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #5a554d; }
.bd-tabla td { padding: 14px 16px; border-top: 1px solid var(--linea); vertical-align: middle; transition: background .3s; }
.bd-tabla td.fuerte { font-weight: 500; }
.bd-tabla tr.encima td { background: #efeadf; }
.bd-tabla .mini { display: inline-block; padding: 5px 12px; border: 1px solid var(--linea-2); font-size: 13px; color: var(--gris); }
.bd-tabla .idiomas { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .08em; color: var(--suave); }
.bd-acciones { display: flex; gap: 6px; }
.bd-acciones span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--linea-2); color: var(--gris); }
.bd-acciones span.borrar { color: var(--rojo); }
.bd-acciones svg.ic { width: 16px; height: 16px; }
.bd-filtros { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding: 13px 18px; border: 1px solid var(--linea); background: var(--papel-2); }
.bd-filtros .etq { font-weight: 600; }

/* el calendario del mes */
.bd-cal { padding: 22px 32px 0; height: 790px; }
.bd-cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bd-cal-cab span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--linea-2); font-size: 16px; }
.bd-cal-cab b { font: 400 30px/1 var(--serif); }
.bd-semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bd-semana b { padding-bottom: 10px; text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--gris); }
.bd-semana > span { position: relative; min-height: 104px; padding: 6px 6px 6px; border: 1px solid var(--linea); font-size: 12px; color: var(--gris); }
.bd-semana > span.vacio { border-color: transparent; }
.bd-semana > span.con { border-color: #8c8576; }
.bd-semana > span.hoy { background: #e8e9df; border-color: #6b7a3c; }
.bd-semana > span.hoy::before { content: "HOY"; display: block; margin: -6px -6px 6px; padding: 5px 0; background: #6e7d48; color: #fff; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.bd-ev { display: block; margin-top: 6px; padding: 6px 7px 5px; background: var(--verde-claro); color: #3e4a1f; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; }
.bd-ev.en { background: #ece2d4; }
.bd-ev em { float: right; font-style: normal; }
.bd-ev i { display: block; height: 3px; margin: 5px 0; background: var(--verde); font-style: normal; }
.bd-ev small { display: flex; justify-content: space-between; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #6e6a5c; }
.bd .activa .bd-ev { animation: bd-salta .5s var(--curva) both; animation-delay: calc(350ms + var(--e, 0) * 90ms); }

/* las estadísticas: cuatro cartas con sus gráficas (las barras crecen al entrar) */
.bd-cartas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bd-carta { height: 384px; padding: 28px 28px 0; border: 1px solid var(--linea); background: var(--papel-2); }
.bd-carta .etq { font-size: 10.5px; font-weight: 600; color: #5a554d; }
.bd-carta h4 { margin: 8px 0 22px; font: 400 21px/1.2 var(--serif); }
.bd-barras { display: grid; grid-template-columns: 60px 1fr; gap: 9px 10px; align-items: center; font-size: 11.5px; font-weight: 300; color: var(--gris); }
.bd-barras span { text-align: right; }
.bd-barras div { display: flex; flex-direction: column; gap: 3px; }
.bd-barras i { display: block; height: 9px; width: calc(var(--v) * 1%); background: var(--c); transform-origin: left; }
.bd-barras i + i { opacity: .35; }
.bd-barras.gordas i { height: 18px; }
.bd .activa .bd-barras i { animation: bd-ancho .9s var(--curva) both; animation-delay: calc(400ms + var(--b, 0) * 60ms); }
.bd-leyenda { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 18px; font-size: 11px; font-weight: 300; color: var(--gris); }
.bd-leyenda i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; background: var(--c); vertical-align: -1px; }
.bd-columnas { display: flex; align-items: flex-end; justify-content: space-around; height: 200px; padding: 0 20px; border-bottom: 1px solid var(--linea-2);
  background: repeating-linear-gradient(to top, transparent 0 24px, #ebe6dd 24px 25px); }
.bd-columnas > div { display: flex; flex-direction: column-reverse; width: 112px; transform-origin: bottom; }
.bd-columnas i { display: block; height: calc(var(--v) * 12px); background: var(--c); }
.bd .activa .bd-columnas > div { animation: bd-alto 1s var(--curva) both; animation-delay: calc(400ms + var(--b, 0) * 120ms); }
.bd-meses { display: flex; justify-content: space-around; padding: 8px 20px 0; font-size: 12px; font-weight: 300; color: var(--gris); }
.bd-calor { width: 100%; border-collapse: collapse; font-size: 12.5px; font-weight: 300; }
.bd-calor th { padding: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--gris); }
.bd-calor td { height: 33px; border: 1px solid #ebe6dd; text-align: center; color: var(--suave); }
.bd-calor td:first-child { width: 150px; padding-left: 8px; text-align: left; color: var(--tinta); }
.bd-calor td:first-child i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c); }
.bd-calor td.n1 { background: #dfe2cf; color: var(--tinta); } .bd-calor td.n2 { background: #c5cba9; color: var(--tinta); }
.bd-calor td.n3 { background: #7d8a55; color: #fff; }
.bd .activa .bd-calor td[class] { animation: bd-funde .6s ease both; animation-delay: calc(500ms + var(--b, 0) * 60ms); }

/* el horario semanal */
.bd-horario { padding: 26px 32px 0; height: 790px; }
.bd-semanal { display: grid; grid-template-columns: 60px repeat(7, 1fr); margin-top: 18px; border: 1px solid var(--linea); background: var(--papel-2); }
.bd-semanal > b { padding: 8px 0; border-left: 1px solid var(--linea); background: #ece6dc; text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .2em; color: #5a554d; }
.bd-semanal > b:first-child { border-left: 0; }
.bd-horas-col { display: flex; flex-direction: column; font-size: 11px; color: var(--suave); }
.bd-horas-col span { height: 42px; padding: 0 8px 0 0; text-align: right; border-top: 1px dashed var(--linea-2); }
.bd-dia-col { position: relative; height: 588px; border-left: 1px solid var(--linea); }
.bd-franja { position: absolute; left: 3px; right: 3px; top: calc(var(--t) * 42px); height: calc(max(var(--d, 1.5), 1) * 42px); padding: 6px 8px; overflow: hidden; border-left: 4px solid var(--verde);
  background: #d6e3cc; color: #3e4a1f; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bd-franja b { display: block; overflow: hidden; padding-right: 22px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.bd-franja em { position: absolute; right: 8px; top: 6px; font-style: normal; } .bd-franja small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 400; letter-spacing: 0; color: #5a6a45; }
.bd .activa .bd-franja { animation: bd-salta .5s var(--curva) both; animation-delay: calc(350ms + var(--e, 0) * 100ms); }

/* el cursor (las mismas piezas que en las otras demos: .dn-cursor) */
.bd .dn-cursor { position: absolute; z-index: 9; left: 0; top: 0; width: 26px; height: 26px; transform: translate(var(--cx, 760px), var(--cy, 560px));
  transition: transform .75s cubic-bezier(.6, .05, .25, 1); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.bd .dn-cursor svg { width: 100%; height: 100%; }
.bd .dn-cursor path { fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.bd .dn-clic { position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--oliva); opacity: 0; }
.bd .dn-cursor.pulsa .dn-clic { animation: bd-clic .5s ease-out; }
.bd .dn-cursor.pulsa svg { animation: bd-aprieta .25s ease; }
@keyframes bd-clic { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
@keyframes bd-aprieta { 50% { transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .bd *, .bd .activa * { animation: none !important; transition: none !important; } }

