/* CAMPUS NIKA — Atlas de acreditaciones */
:root {
  --acr-primary: #0d9488; --acr-accent: #06b6d4; --acr-dark: #134e4a;
  --acr-bg: #ffffff; --acr-page: #f2faf9; --acr-card: #f8fffe; --acr-mesa: #f0fdfa;
  --acr-line: #cfeae6; --acr-text: #334155; --acr-ttl: #134e4a; --acr-muted: #64748b;
  --acr-ok: #16a34a; --acr-bad: #dc2626; --acr-warn: #f59e0b;
}
body.dark-mode {
  --acr-bg: #0f172a; --acr-page: #0b1220; --acr-card: #14213a; --acr-mesa: #101c33;
  --acr-line: #24344f; --acr-text: #cbd5e1; --acr-ttl: #99f6e4; --acr-muted: #94a3b8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.acr-page { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--acr-page); color: var(--acr-text); min-height: 100vh; line-height: 1.5; }
.acr-nav { background: var(--acr-bg); border-bottom: 2px solid var(--acr-primary); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 50; }
.acr-nav a.brand { font-weight: 800; color: var(--acr-ttl); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.acr-nav a.brand img { height: 38px; }
.acr-back { color: var(--acr-primary); font-weight: 700; text-decoration: none; font-size: .9rem; }
.acr-main { max-width: 1280px; margin: 0 auto; padding: 22px 18px 60px; }
.acr-h1 { font-size: 1.6rem; font-weight: 800; color: var(--acr-ttl); }
.acr-sub { color: var(--acr-muted); margin: 4px 0 18px; font-size: .95rem; }

/* listado */
.acr-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.acr-card { background: var(--acr-bg); border: 1px solid var(--acr-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.acr-card.on { cursor: pointer; }
.acr-card.on:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(13,148,136,.35); border-color: var(--acr-primary); }
.acr-card.off { opacity: .55; }
.acr-card .ico { font-size: 2rem; }
.acr-card h3 { font-size: 1.05rem; color: var(--acr-ttl); }
.acr-card small { color: var(--acr-muted); }
.acr-pill { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(13,148,136,.14); color: var(--acr-primary); align-self: flex-start; }
.acr-pill.bad { background: rgba(220,38,38,.12); color: var(--acr-bad); }
.acr-pill.ok { background: rgba(22,163,74,.14); color: var(--acr-ok); }

/* cabecera del atlas */
.acr-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.acr-crit-box { background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.25); color: var(--acr-text); border-radius: 12px; padding: 10px 14px; font-size: .82rem; max-width: 560px; }
.acr-crit-box b { color: var(--acr-bad); }
.acr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.acr-tab { border: 1px solid var(--acr-line); background: var(--acr-bg); color: var(--acr-text); padding: 9px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .9rem; font-family: inherit; }
.acr-tab.on { background: linear-gradient(135deg, var(--acr-accent), var(--acr-primary)); color: #fff; border-color: transparent; }
.acr-sexo { display: inline-flex; gap: 4px; margin-left: auto; }
.acr-sexo button { border: 1px solid var(--acr-line); background: var(--acr-bg); color: var(--acr-text); padding: 7px 12px; border-radius: 10px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .85rem; }
.acr-sexo button.on { background: var(--acr-primary); color: #fff; border-color: var(--acr-primary); }

/* grilla escena + panel */
.acr-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.acr-escena { background: var(--acr-bg); border: 1px solid var(--acr-line); border-radius: 16px; padding: 8px; min-width: 0; }
.acr-panel { background: var(--acr-bg); border: 1px solid var(--acr-line); border-radius: 16px; padding: 16px; min-width: 0; max-height: 80vh; overflow-y: auto; }
.acr-panel h3 { color: var(--acr-ttl); font-size: 1.05rem; margin-bottom: 6px; }
.acr-panel p { font-size: .9rem; margin-bottom: 8px; }
.acr-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 6px 4px; }
.acr-chip { font-size: .72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--acr-line); color: var(--acr-muted); }
.acr-chip.on { background: rgba(22,163,74,.14); color: var(--acr-ok); border-color: rgba(22,163,74,.4); font-weight: 700; }

.acr-btn { border: none; cursor: pointer; font-family: inherit; font-weight: 800; padding: 10px 18px; border-radius: 12px; font-size: .9rem; background: linear-gradient(135deg, var(--acr-accent), var(--acr-primary)); color: #fff; }
.acr-btn.sec { background: var(--acr-bg); color: var(--acr-primary); border: 1px solid var(--acr-primary); }
.acr-btn.bad { background: var(--acr-bad); }
.acr-btn:disabled { opacity: .45; cursor: not-allowed; }
.acr-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }

.acr-fase { font-size: .72rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--acr-muted); margin: 14px 0 6px; }
.acr-paso { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; border: 1px solid var(--acr-line); background: var(--acr-card); color: var(--acr-text); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; font-family: inherit; font-size: .84rem; }
.acr-paso:hover { border-color: var(--acr-primary); }
.acr-paso.sel { border-color: var(--acr-primary); box-shadow: 0 0 0 2px rgba(13,148,136,.25); }
.acr-paso .n { font-weight: 800; color: var(--acr-primary); min-width: 22px; }
.acr-crit { color: var(--acr-bad); font-weight: 800; font-size: .72rem; white-space: nowrap; }
.acr-info { background: rgba(13,148,136,.08); border: 1px solid rgba(13,148,136,.28); border-radius: 12px; padding: 12px; margin: 10px 0; font-size: .88rem; }
.acr-info.mal { background: rgba(220,38,38,.07); border-color: rgba(220,38,38,.3); }
.acr-info.bien { background: rgba(22,163,74,.09); border-color: rgba(22,163,74,.35); }
.acr-prog { height: 8px; background: var(--acr-line); border-radius: 999px; overflow: hidden; margin: 8px 0 12px; }
.acr-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--acr-accent), var(--acr-primary)); transition: width .3s; }
.acr-goal { font-size: 1.02rem; font-weight: 700; color: var(--acr-ttl); margin: 6px 0 4px; }

/* evaluación */
.acr-banco { display: flex; flex-direction: column; gap: 6px; }
.acr-opt { text-align: left; border: 1px solid var(--acr-line); background: var(--acr-card); color: var(--acr-text); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-family: inherit; font-size: .83rem; }
.acr-opt:hover:not(:disabled) { border-color: var(--acr-primary); }
.acr-opt:disabled { opacity: .35; cursor: default; }
.acr-seq { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 5px; margin: 6px 0 10px; }
.acr-seq li { counter-increment: s; display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; background: rgba(13,148,136,.08); border-radius: 8px; padding: 6px 8px; }
.acr-seq li::before { content: counter(s); font-weight: 800; color: var(--acr-primary); min-width: 20px; }
.acr-seq li button { margin-left: auto; border: none; background: none; color: var(--acr-bad); cursor: pointer; font-size: 1rem; }

/* resultado */
.acr-res { text-align: center; padding: 14px; border-radius: 14px; margin-bottom: 12px; }
.acr-res.ap { background: rgba(22,163,74,.12); border: 1px solid rgba(22,163,74,.4); }
.acr-res.de { background: rgba(220,38,38,.1); border: 1px solid rgba(220,38,38,.4); }
.acr-res h2 { font-size: 1.5rem; }
.acr-res.ap h2 { color: var(--acr-ok); } .acr-res.de h2 { color: var(--acr-bad); }
.acr-tabla { width: 100%; border-collapse: collapse; font-size: .8rem; }
.acr-tabla td { padding: 5px 6px; border-bottom: 1px solid var(--acr-line); vertical-align: top; }
.st-SI { color: var(--acr-ok); font-weight: 800; } .st-NO { color: var(--acr-bad); font-weight: 800; } .st-M { color: var(--acr-warn); font-weight: 800; }

/* SVG */
.acr-svg { width: 100%; height: auto; display: block; }
.acr-svg .marco { fill: var(--acr-bg); stroke: var(--acr-line); }
.acr-svg text { font-family: inherit; fill: var(--acr-text); }
.acr-svg .ttl { font-size: 13px; font-weight: 800; fill: var(--acr-ttl); }
.acr-svg .lbl { font-size: 11px; }
.acr-svg .lbl-v { font-size: 13px; font-weight: 700; fill: #92400e; } .acr-svg .lbl-v.sm { font-size: 10px; font-weight: 400; }
.acr-svg .emo { font-size: 26px; fill: initial; }
.acr-svg .ok { font-size: 14px; fill: var(--acr-ok); opacity: 0; font-weight: 800; }
.acr-svg .hs { cursor: pointer; outline: none; }
.acr-svg.estatica .hs { cursor: default; pointer-events: none; }
.acr-svg .hs-bg { fill: var(--acr-card); stroke: var(--acr-line); stroke-width: 1.5; transition: stroke .15s, fill .15s; }
.acr-svg .hs:hover .hs-bg, .acr-svg .hs:focus-visible .hs-bg { stroke: var(--acr-primary); stroke-width: 2.5; }
.acr-svg .mesa-bg { fill: var(--acr-mesa); }
.acr-svg .lado-bg { fill: transparent; stroke-dasharray: 6 5; }
.acr-svg .ur-hit { fill: none; stroke: transparent; stroke-width: 22; stroke-linecap: round; pointer-events: stroke; }
.acr-svg .bal-hit, .acr-svg .prep-hit, .acr-svg .pac-hit, .acr-svg .gan-hit { fill: transparent; stroke: transparent; }
.acr-svg .hs:hover .ur-hit { stroke: rgba(13,148,136,.3); }
.acr-svg .hs:hover .bal-hit, .acr-svg .hs:hover .prep-hit, .acr-svg .hs:hover .pac-hit, .acr-svg .hs:hover .gan-hit { stroke: var(--acr-primary); stroke-width: 2; }
.acr-svg .hs.sel .hs-bg { stroke: var(--acr-primary); stroke-width: 3; }
.acr-svg .hs.hl .hs-bg { stroke: var(--acr-warn); stroke-width: 3.5; animation: acr-pulse 1s ease-in-out infinite; }
.acr-svg .hs.hl .ur-hit { stroke: rgba(245,158,11,.75); }
.acr-svg .hs.used .card { opacity: .55; }
.acr-svg .hs.used .ok { opacity: 1; }
.acr-svg .hs.mal .hs-bg { stroke: var(--acr-bad); stroke-width: 3.5; animation: acr-shake .35s; }
@keyframes acr-pulse { 50% { stroke-width: 6; opacity: .75; } }
@keyframes acr-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.acr-svg .bone { fill: #e8dcc6; stroke: #a8946b; stroke-width: 2; }
.acr-svg .sacro { fill: none; stroke: #e8dcc6; stroke-width: 12; stroke-linecap: round; }
.acr-svg .recto { fill: none; stroke: #d6a27a; stroke-width: 20; stroke-linecap: round; opacity: .85; }
.acr-svg .vejiga { fill: #fde68a; stroke: #d97706; stroke-width: 3; }
.acr-svg .utero { fill: #fbcfe8; stroke: #db2777; stroke-width: 2; }
.acr-svg .vagina { fill: none; stroke: #f9a8d4; stroke-width: 16; stroke-linecap: round; opacity: .8; }
.acr-svg .uretra { fill: none; stroke: #fb7185; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.acr-svg .prostata { fill: #fdba74; stroke: #ea580c; stroke-width: 2; }
.acr-svg .pene, .acr-svg .escroto { fill: #fed7aa; stroke: #ea580c; stroke-width: 2; }
.acr-svg .cat { fill: none; stroke: #0ea5e9; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.4s ease; }
.acr-svg.s-ins .cat { stroke-dashoffset: 0; }
.acr-svg .balon { transform-box: fill-box; transform-origin: center; transition: transform .7s ease; opacity: 0; }
.acr-svg.s-ins .balon { opacity: 1; }
.acr-svg .bal { fill: #7dd3fc; stroke: #0369a1; stroke-width: 1.5; }
.acr-svg.s-infl .balon { transform: scale(3.4); }
.acr-svg .bolsa-dibujo { opacity: 0; transition: opacity .5s; }
.acr-svg.s-bag .bolsa-dibujo { opacity: 1; }
.acr-svg .tubo { stroke: #0ea5e9; stroke-width: 4; fill: none; }
.acr-svg .bolsa-r { fill: #e0f2fe; stroke: #0284c7; stroke-width: 2; }
.acr-svg .bolsa-o { fill: #fde047; opacity: .85; }
.acr-svg .piso { stroke: var(--acr-muted); stroke-dasharray: 4 3; }
.acr-svg.s-hook .piso { opacity: 0; }
.acr-svg .cama { fill: #94a3b8; } .acr-svg .cama-pata { fill: #64748b; }
.acr-svg .cabeza, .acr-svg .cuerpo, .acr-svg .pierna { fill: #fcd9b6; stroke: #c08457; stroke-width: 1.5; }
.acr-svg .rodilla { fill: none; stroke: #c08457; stroke-width: 3; opacity: 0; }
.acr-svg.s-pos.sx-F .rodilla { opacity: 1; } .acr-svg.s-pos.sx-F .pierna { opacity: .25; }
.acr-svg .gancho { fill: none; stroke: var(--acr-muted); stroke-width: 3; }

@media (max-width: 900px) {
  .acr-grid { grid-template-columns: minmax(0, 1fr); }
  .acr-panel { max-height: none; }
  .acr-nav { padding: 10px 14px; }
  .acr-sexo { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .acr-svg * { animation: none !important; transition: none !important; } }
/* Celulares: el dibujo mantiene un tamaño legible y se desplaza en horizontal */
@media (max-width: 700px) {
  .acr-escena { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .acr-escena .acr-svg { min-width: 760px; }
  .acr-escena::before { content: '↔ Deslizá para ver toda la escena'; display: block; font-size: .72rem; color: var(--acr-muted); padding: 2px 6px 6px; }
  .acr-h1 { font-size: 1.3rem; }
}

/* ===== Escena 3D ===== */
.acr-escena { padding: 0; overflow: hidden; }
.acr3d { display: flex; flex-direction: column; }
.acr3d-vp { position: relative; height: clamp(360px, 52vh, 560px); background: radial-gradient(ellipse at 50% 40%, #12285a 0%, #0a1530 70%); border-radius: 16px 16px 0 0; overflow: hidden; touch-action: none; }
.acr3d-vp canvas { width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
.acr3d-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #cbd5e1; font-size: .9rem; }
.acr3d-tools { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; pointer-events: none; }
.acr3d-tools button { pointer-events: auto; border: 1px solid rgba(148,163,184,.4); background: rgba(10,21,48,.72); backdrop-filter: blur(6px); color: #e2e8f0; border-radius: 999px; padding: 6px 12px; font-size: .74rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.acr3d-tools button.on { background: rgba(6,182,212,.28); border-color: #22d3ee; color: #fff; }
.acr3d-tools .sep { width: 1px; height: 18px; background: rgba(148,163,184,.35); }
.acr3d-hint { position: absolute; left: 12px; bottom: 8px; font-size: .68rem; color: rgba(203,213,225,.7); pointer-events: none; }
.acr3d-pins { position: absolute; inset: 0; pointer-events: none; }
.acr3d .pin { position: absolute; left: 0; top: 0; pointer-events: auto; border: none; background: none; padding: 0; display: flex; align-items: center; gap: 6px; color: #e2e8f0; font-family: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; will-change: transform; white-space: nowrap; }
.acr3d .pin i { width: 13px; height: 13px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(239,68,68,.3); margin-left: -7px; flex: none; }
.acr3d .pin span { background: rgba(10,21,48,.78); border: 1px solid rgba(148,163,184,.4); padding: 2px 8px; border-radius: 999px; }
.acr3d .pin.oculto { display: none; }
.acr3d .pin:hover span, .acr3d .pin.sel span { border-color: #22d3ee; color: #fff; }
.acr3d .pin.sel i { background: #14b8a6; box-shadow: 0 0 0 4px rgba(20,184,166,.4); }
.acr3d .pin.hl i { background: #f59e0b; animation: acr-pin 1s ease-in-out infinite; }
.acr3d .pin.hl span { border-color: #f59e0b; color: #fff; }
.acr3d .pin.mal i { background: #dc2626; animation: acr-shake .35s; }
.acr3d.estatica .pin { pointer-events: none; }
@keyframes acr-pin { 50% { box-shadow: 0 0 0 9px rgba(245,158,11,.15); } }
.acr3d-zona { padding: 10px 12px 4px; }
.acr3d-tit { font-size: .74rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--acr-muted); margin-bottom: 8px; }
.acr3d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.acr3d .mesa { border: 1px dashed var(--acr-line); border-radius: 14px; padding: 8px; background: var(--acr-mesa); cursor: pointer; }
.acr3d .mesa.hl { border-color: var(--acr-warn); animation: acr-pulse 1s ease-in-out infinite; }
.acr3d .mesa.sel { border-color: var(--acr-primary); }
.acr3d .carta { position: relative; display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--acr-line); background: var(--acr-card); color: var(--acr-text); border-radius: 12px; padding: 8px 9px; cursor: pointer; font-family: inherit; font-size: .72rem; line-height: 1.25; }
.acr3d .carta .emo { font-size: 1.35rem; }
.acr3d .carta .ok { position: absolute; top: 3px; right: 6px; color: var(--acr-ok); font-weight: 800; font-size: .8rem; opacity: 0; }
.acr3d .carta:hover { border-color: var(--acr-primary); }
.acr3d .carta.sel { border-color: var(--acr-primary); box-shadow: 0 0 0 2px rgba(13,148,136,.3); }
.acr3d .carta.hl { border-color: var(--acr-warn); box-shadow: 0 0 0 3px rgba(245,158,11,.35); animation: acr-pulse 1s ease-in-out infinite; }
.acr3d .carta.mal { border-color: var(--acr-bad); animation: acr-shake .35s; }
.acr3d .carta.used { opacity: .55; }
.acr3d .carta.used .ok { opacity: 1; }
.acr3d.estatica .carta, .acr3d.estatica .mesa { pointer-events: none; }
@media (max-width: 700px) {
  .acr-escena .acr-svg { min-width: 0; }
  .acr-escena::before { content: none !important; }
  .acr3d-vp { height: 380px; }
  .acr3d-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

.acr3d-cred { padding: 8px 14px 12px; font-size: .68rem; color: var(--acr-muted); }
.acr3d-cred a { color: var(--acr-primary); }
.acr3d-msg[hidden] { display: none; }

/* ===== Modos Práctica / Examen ===== */
.acr-subtabs-wrap, .acr-sub-tabs { margin-top: -4px; }
.acr-sub-tabs[hidden] { display: none; }
.acr-tab.sm { padding: 6px 13px; font-size: .8rem; }
.acr-perla { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: .85rem; }
.acr-refs { margin: 6px 0 6px 18px; font-size: .84rem; }
.acr-refs li { margin-bottom: 4px; }
.acr-examen-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.acr-reloj { font-size: 1.4rem; font-weight: 800; color: var(--acr-ttl); font-variant-numeric: tabular-nums; }
.acr-reloj.urge { color: var(--acr-bad); animation: acr-pulse 1s ease-in-out infinite; }
.acr-caso { font-size: .84rem; background: rgba(13,148,136,.08); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.acr-alerta { font-weight: 700; animation: acr-shake .4s; }

/* ===== Portada y carga diferida ===== */
.acr-grid.sin-escena { grid-template-columns: minmax(0, 1fr); }
.acr-grid.sin-escena #acr-escena:empty, .acr-grid.sin-escena .acr-escena:empty { display: none; }
.acr-portada { padding: 34px 26px; text-align: center; max-width: 560px; margin: 0 auto; }
.acr-portada .ico { font-size: 3rem; }
.acr-portada h2 { color: var(--acr-ttl); margin: 6px 0; }
.acr-portada p { color: var(--acr-muted); font-size: .92rem; }
.acr-portada .acr-refs { text-align: left; display: inline-block; }
.acr-portada .acr-row { justify-content: center; }
.acr-peso { margin-top: 10px; font-size: .8rem !important; }
.acr3d-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(10,15,29,.92); color: #cbd5e1; z-index: 5; padding: 20px; text-align: center; }
.acr3d-load[hidden] { display: none; }
.acr3d-load-t b { color: #22d3ee; }
.acr3d-load-bar { width: min(320px, 80%); height: 8px; background: rgba(148,163,184,.25); border-radius: 999px; overflow: hidden; }
.acr3d-load-bar i { display: block; height: 100%; background: linear-gradient(90deg, #06b6d4, #0d9488); transition: width .2s; }
.acr3d-load-s { font-size: .72rem; color: #94a3b8; }
.acr-panel:empty { display: none; }

/* ===== Etiquetas separadas con línea guía ===== */
.acr3d-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.acr3d-lines line { stroke: rgba(148,163,184,.6); stroke-width: 1; }
.acr3d .pin span { transform: translate(var(--dx, 70px), var(--dy, -30px)); }
.acr3d-vp { background: #0a0f1d; }

/* ===== Mesa de instrumental inmersiva (ProcedureWorkbench) ===== */
.wb { padding: 14px; position: relative; transition: opacity .65s ease, filter .65s ease, transform .65s cubic-bezier(.16,1,.3,1); }
.wb.saliendo { opacity: 0; filter: blur(9px); transform: scale(1.03); pointer-events: none; }
.wb-cab { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; }
.wb-cab h2 { color: var(--acr-ttl); font-size: 1.15rem; }
.wb-cab p { color: var(--acr-muted); font-size: .85rem; max-width: 680px; }
.wb-caso { font-size: .84rem; background: rgba(0,168,150,.09); border: 1px solid rgba(0,168,150,.3); border-radius: 12px; padding: 8px 12px; margin: 8px 0 0; }

/* mesa: paño quirúrgico estéril verde/azul petróleo */
.wb-escena { position: relative; margin-top: 12px; border-radius: 20px; padding: 22px 18px 24px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(0,168,150,.34), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #0b5563 0%, #028090 38%, #0b3b4a 72%, #0f172a 100%);
  box-shadow: inset 0 0 60px rgba(2,19,26,.65), 0 18px 40px -18px rgba(2,19,26,.7); }
.wb-pano { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.1) 0%, transparent 30%, transparent 70%, rgba(255,255,255,.05) 100%); pointer-events: none; }
.wb-zona { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 14px 10px; position: relative; }
.wb-centro { display: flex; flex-direction: column; align-items: center; gap: 16px; position: sticky; top: 74px; }

/* insumos */
.wb-obj { width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 1px solid transparent; border-radius: 14px; padding: 6px 4px 4px; cursor: grab; font-family: inherit; color: #e6f7f5;
  transform: rotate(var(--r, 0deg)); transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s, background .28s, opacity .3s, filter .3s; animation: wb-entra .5s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d, 0ms); }
.wb-obj img { width: 100%; height: 78px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(2,19,26,.55)); pointer-events: none; transition: filter .28s; }
.wb-nom { font-size: .64rem; font-weight: 700; line-height: 1.15; text-align: center; text-shadow: 0 1px 3px rgba(2,19,26,.8); }
.wb-obj:hover, .wb-obj:focus-visible { transform: translateY(-6px) scale(1.03) rotate(0deg); background: rgba(255,255,255,.08); border-color: rgba(103,232,249,.55); box-shadow: 0 10px 25px -5px rgba(0,168,150,.25), 0 0 0 1px rgba(0,168,150,.35), 0 0 18px rgba(34,211,238,.28); outline: none; }
.wb-obj:hover img { filter: drop-shadow(0 16px 12px rgba(2,19,26,.6)); }
.wb-obj:active { cursor: grabbing; }
.wb-obj.ausente { opacity: .22; filter: grayscale(.8); cursor: default; border: 1px dashed rgba(255,255,255,.35); pointer-events: none; }
.wb-obj.vuelve { animation: wb-vuelve .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes wb-entra { from { opacity: 0; transform: translateY(14px) scale(.94) rotate(var(--r, 0deg)); } to { opacity: 1; } }
@keyframes wb-vuelve { 0% { transform: scale(.7); } 60% { transform: scale(1.1); } 100% { transform: scale(1) rotate(var(--r, 0deg)); } }

/* bandeja de acero */
.wb-bandeja { position: relative; width: 100%; max-width: 640px; filter: drop-shadow(0 22px 20px rgba(2,19,26,.65)); transition: transform .3s; }
.wb-bandeja-img { width: 100%; display: block; user-select: none; }
.wb-bandeja-in { position: absolute; left: 9%; right: 9%; top: 16%; bottom: 17%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px 6px; }
.wb-vacia { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .8rem; font-weight: 700; color: rgba(15,23,42,.45); letter-spacing: .2px; }
.wb-vacia[hidden] { display: none; }
.wb-bi { position: relative; width: 22%; min-width: 74px; cursor: pointer; transform: rotate(var(--r, 0deg)); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.wb-bi img { width: 100%; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(15,23,42,.5)); pointer-events: none; }
.wb-bi:hover { transform: translateY(-4px) scale(1.06) rotate(0deg); }
.wb-bi.oculto { visibility: hidden; }
.wb-bi.asienta { animation: wb-asienta .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes wb-asienta { 0% { transform: scale(1.22) rotate(var(--r, 0deg)); } 55% { transform: scale(.93) rotate(var(--r, 0deg)); } 100% { transform: scale(1) rotate(var(--r, 0deg)); } }
.wb-contador { position: absolute; left: 50%; bottom: 3.2%; transform: translateX(-50%); background: rgba(15,23,42,.82); color: #e6f7f5; font-size: .72rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(103,232,249,.4); }
.wb-contador span { display: inline-block; min-width: 16px; text-align: center; color: #5eead4; }
.wb-contador span.pop { animation: wb-pop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes wb-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.wb-bandeja.sobre { transform: scale(1.015); filter: drop-shadow(0 22px 20px rgba(2,19,26,.65)) drop-shadow(0 0 16px rgba(34,211,238,.55)); }
.wb-bandeja.pulso-ok { animation: wb-ok .7s ease-out; }
.wb-bandeja.pulso-neutro { animation: wb-neutro .6s ease-out; }
.wb-bandeja.sacude { animation: wb-shake .5s cubic-bezier(.36,.07,.19,.97), wb-rojo .8s ease-out; }
@keyframes wb-ok { 0% { filter: drop-shadow(0 22px 20px rgba(2,19,26,.65)) drop-shadow(0 0 0 rgba(0,168,150,0)); } 35% { filter: drop-shadow(0 22px 20px rgba(2,19,26,.65)) drop-shadow(0 0 22px rgba(0,229,200,.9)); } 100% { filter: drop-shadow(0 22px 20px rgba(2,19,26,.65)) drop-shadow(0 0 0 rgba(0,168,150,0)); } }
@keyframes wb-neutro { 35% { filter: drop-shadow(0 22px 20px rgba(2,19,26,.65)) drop-shadow(0 0 16px rgba(255,255,255,.55)); } }
@keyframes wb-rojo { 0%, 100% { filter: drop-shadow(0 22px 20px rgba(2,19,26,.65)); } 30% { filter: drop-shadow(0 22px 20px rgba(2,19,26,.65)) drop-shadow(0 0 24px rgba(239,68,68,.95)); } }
@keyframes wb-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-9px); } 40%, 60% { transform: translateX(9px); } }

/* botón principal */
.wb-pasar { position: relative; overflow: hidden; border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: .95rem; color: #fff; padding: 13px 24px; border-radius: 14px; background: linear-gradient(135deg, #028090, #00A896); box-shadow: 0 10px 22px -8px rgba(0,168,150,.7); transition: transform .2s, box-shadow .2s, filter .2s; }
.wb-pasar:hover { transform: translateY(-2px); filter: brightness(1.07); }
.wb-pasar.listo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: wb-shimmer 2.2s ease-in-out infinite; }
@keyframes wb-shimmer { to { transform: translateX(120%); } }

/* ficha de inspección: glassmorphism médico */
.wb-ficha { position: fixed; z-index: 9000; width: min(420px, calc(100vw - 20px)); display: flex; gap: 12px; padding: 14px; border-radius: 14px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(2,128,144,.28); box-shadow: 0 18px 40px -10px rgba(2,19,26,.55); color: #0f172a; pointer-events: auto; }
.wb-ficha[hidden] { display: none; }
.wb-ficha.entra { animation: wb-ficha .38s cubic-bezier(.16,1,.3,1) both; }
@keyframes wb-ficha { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wb-f-img { flex: none; width: 128px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 25%, #ffffff, #cfe3ea); border-radius: 12px; padding: 8px; }
.wb-f-img img { width: 100%; max-height: 150px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(15,23,42,.3)); }
.wb-f-txt h3 { font-size: .92rem; color: #0f172a; margin-bottom: 2px; }
.wb-f-det { font-size: .7rem; font-weight: 700; color: #028090; margin-bottom: 6px; }
.wb-f-txt table { border-collapse: collapse; width: 100%; font-size: .72rem; margin-bottom: 6px; }
.wb-f-txt td { padding: 2px 4px; border-bottom: 1px solid rgba(15,23,42,.08); vertical-align: top; }
.wb-f-txt td:first-child { color: #64748b; white-space: nowrap; }
.wb-f-txt td:last-child { font-weight: 700; }
.wb-f-txt p { font-size: .72rem; color: #334155; margin-bottom: 8px; }
.wb-f-btn { width: 100%; border: none; cursor: pointer; font-family: inherit; font-weight: 800; padding: 9px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #028090, #00A896); }

/* diálogo de errores */
.wb-modal { position: absolute; inset: 0; background: rgba(15,23,42,.6); display: flex; align-items: center; justify-content: center; padding: 14px; z-index: 20; border-radius: 16px; backdrop-filter: blur(3px); }
.wb-modal[hidden] { display: none; }
.wb-dlg { background: var(--acr-bg); border-radius: 16px; max-width: 560px; width: 100%; max-height: 88%; overflow-y: auto; padding: 18px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.55); animation: wb-ficha .35s cubic-bezier(.16,1,.3,1) both; }
.wb-dlg h3 { color: var(--acr-bad); margin-bottom: 6px; }
.wb-err { display: flex; gap: 10px; align-items: center; background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.3); border-radius: 12px; padding: 8px 10px; margin: 6px 0; font-size: .84rem; }
.wb-err.leve { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.35); }
.wb-err img { width: 54px; height: 54px; object-fit: contain; flex: none; }

/* vuelo de los insumos hacia / desde la bandeja */
.wb-vuelo { position: fixed; z-index: 9999; pointer-events: none; object-fit: contain; filter: drop-shadow(0 18px 14px rgba(2,19,26,.55)); will-change: transform; }

/* entrada del 3D */
.acr3d { animation: acr3d-entra .8s cubic-bezier(.16,1,.3,1) both; }
@keyframes acr3d-entra { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .wb-escena { grid-template-columns: minmax(0, 1fr); padding: 14px 10px; }
  .wb-centro { order: -1; position: static; }
  .wb-obj { width: 92px; }
}
@media (prefers-reduced-motion: reduce) { .wb *, .wb-vuelo, .acr3d { animation: none !important; transition: none !important; } }

/* ===== v3: tiles contenidos, caso clínico, bitácora, tutorial ===== */
.wb-obj { overflow: hidden; }
.wb-obj .wb-foto { display: flex; align-items: center; justify-content: center; width: 100%; height: 80px; overflow: hidden; }
.wb-obj .wb-foto img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.wb-obj { min-height: 124px; }
.wb-caso-btn { border: 1px solid var(--acr-primary); background: var(--acr-bg); color: var(--acr-primary); border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: .8rem; cursor: pointer; font-family: inherit; }
.wb .rojo, .wb-hoja .rojo { color: var(--acr-bad); }
.wb-caso-pant { display: flex; justify-content: center; padding: 24px 14px; }
.wb-hoja { width: min(680px, 100%); background: #fff; color: #0f172a; border-radius: 16px; padding: 22px 24px; box-shadow: 0 24px 50px -20px rgba(2,19,26,.55); border-top: 6px solid #00A896; animation: wb-ficha .5s cubic-bezier(.16,1,.3,1) both; }
body.dark-mode .wb-hoja { background: #14213a; color: #e2e8f0; }
.wb-hoja-cab { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.wb-hoja-cab span { font-size: 2rem; }
.wb-hoja-cab h2 { font-size: 1.3rem; color: var(--acr-ttl); }
.wb-hoja-cab p { font-size: .8rem; color: var(--acr-muted); }
.wb-hoja-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.wb-hoja label { display: block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--acr-muted); margin-bottom: 2px; }
.wb-hoja-grid b { font-size: .98rem; }
.wb-hoja-bloque { border-top: 1px solid var(--acr-line); padding: 8px 0; }
.wb-hoja-bloque p { font-size: .92rem; }
.wb-hoja-nota { font-size: .8rem; color: var(--acr-muted); margin: 8px 0 4px; }
.wb-dlg-sub { font-size: .85rem; margin-bottom: 6px; }
.wb-err img { object-fit: contain; }

/* bitácora tipo chat */
.acr-chat-log { max-height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: rgba(13,148,136,.06); border: 1px solid var(--acr-line); border-radius: 12px; }
.acr-chat-log .m { font-size: .8rem; padding: 6px 10px; border-radius: 12px; max-width: 92%; line-height: 1.35; }
.acr-chat-log .m.yo { align-self: flex-end; background: linear-gradient(135deg, #028090, #00A896); color: #fff; border-bottom-right-radius: 4px; }
.acr-chat-log .m.sis { align-self: flex-start; background: var(--acr-bg); border: 1px solid var(--acr-line); border-bottom-left-radius: 4px; }
.acr-chat-log .m.sis.ok { border-color: rgba(22,163,74,.5); background: rgba(22,163,74,.1); }
.acr-chat-log .m.sis.mal { border-color: rgba(220,38,38,.45); background: rgba(220,38,38,.08); }
.acr-chat-log .m.sis.neutro { color: var(--acr-muted); }
.acr-chat-log .m.vacio { align-self: stretch; text-align: center; color: var(--acr-muted); background: none; }
#acr-chat-f { display: flex; gap: 6px; margin-top: 8px; }
#acr-chat-i { flex: 1; min-width: 0; border: 1px solid var(--acr-line); background: var(--acr-bg); color: var(--acr-text); border-radius: 12px; padding: 9px 12px; font-family: inherit; font-size: .85rem; }
#acr-chat-i:focus { outline: 2px solid var(--acr-primary); }

/* tutorial 3D */
.acr-tut { position: fixed; inset: 0; z-index: 10000; background: rgba(2,19,26,.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: wb-ficha .3s ease both; }
.acr-tut-card { position: relative; width: min(460px, 100%); background: var(--acr-bg); border-radius: 20px; padding: 26px 24px 20px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.acr-tut-ico { font-size: 2.6rem; }
.acr-tut-card h3 { color: var(--acr-ttl); margin: 6px 0; font-size: 1.15rem; }
.acr-tut-card p { font-size: .9rem; color: var(--acr-text); min-height: 90px; }
.acr-tut-dots { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.acr-tut-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--acr-line); }
.acr-tut-dots i.on { background: var(--acr-primary); transform: scale(1.3); }
.acr-tut-no { display: block; font-size: .74rem; color: var(--acr-muted); margin: 6px 0 10px; }
.acr-tut-x { position: absolute; top: 10px; right: 12px; border: none; background: none; font-size: 1.1rem; cursor: pointer; color: var(--acr-muted); }

/* ===== v4: navegación del guiado, timeline, bitácora, demostración, microanimaciones ===== */
.acr-gnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.acr-gnav .acr-btn { flex: 1 1 auto; padding: 9px 12px; font-size: .8rem; }
.acr-btn { transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s, filter .18s; }
.acr-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(0,168,150,.55); filter: brightness(1.05); }
.acr-btn:active:not(:disabled) { transform: translateY(0) scale(.97); }
.acr-opt, .acr-tab, .acr-paso { transition: transform .18s cubic-bezier(.16,1,.3,1), border-color .18s, box-shadow .18s, background .18s; }
.acr-opt:hover:not(:disabled), .acr-paso:hover { transform: translateX(3px); }
.acr-tl { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 10px; }
.acr-tl .tl { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--acr-line); background: var(--acr-card); color: var(--acr-muted); font: 800 .68rem inherit; font-family: inherit; cursor: pointer; transition: transform .15s, background .2s, border-color .2s; }
.acr-tl .tl:hover { transform: translateY(-2px); border-color: var(--acr-primary); }
.acr-tl .tl.ok { background: rgba(22,163,74,.16); border-color: rgba(22,163,74,.55); color: var(--acr-ok); }
.acr-tl .tl.sk { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.5); color: #b45309; }
.acr-tl .tl.cur { background: linear-gradient(135deg, #028090, #00A896); color: #fff; border-color: transparent; transform: scale(1.12); box-shadow: 0 6px 12px -6px rgba(0,168,150,.8); }
.acr-hecho { display: inline-block; font-size: .7rem; font-weight: 800; color: var(--acr-ok); background: rgba(22,163,74,.12); border-radius: 999px; padding: 2px 9px; animation: acr-pop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes acr-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.acr-prog i { transition: width .6s cubic-bezier(.16,1,.3,1); }
.acr-panel.pn-in > * { animation: pn-in .42s cubic-bezier(.16,1,.3,1) both; }
.acr-panel.pn-in > *:nth-child(2) { animation-delay: .04s; } .acr-panel.pn-in > *:nth-child(3) { animation-delay: .08s; } .acr-panel.pn-in > *:nth-child(4) { animation-delay: .12s; } .acr-panel.pn-in > *:nth-child(5) { animation-delay: .16s; }
@keyframes pn-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.acr-info.bien { animation: acr-pop .35s cubic-bezier(.34,1.56,.64,1); }
.acr-info.mal { animation: acr-shake .35s; }

/* avisos flotantes */
.acr-toast { position: fixed; top: 76px; right: 18px; z-index: 10001; padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: .84rem; color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); animation: toast-in .4s cubic-bezier(.34,1.56,.64,1) both; }
.acr-toast.ok { background: linear-gradient(135deg, #15803d, #16a34a); }
.acr-toast.mal { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.acr-toast.neutro { background: linear-gradient(135deg, #0f766e, #028090); }
.acr-toast.sale { animation: toast-out .5s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

/* final / demostración */
.acr-final { text-align: center; padding: 6px 2px; }
.acr-final-ico { font-size: 3rem; animation: acr-pop .6s cubic-bezier(.34,1.56,.64,1); }
.acr-final .acr-refs { text-align: left; }
.acr-demo-tag { display: inline-block; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-weight: 800; font-size: .7rem; letter-spacing: .4px; padding: 4px 12px; border-radius: 999px; animation: wb-neutro 2.4s ease-in-out infinite; }

/* portada: acceso a la acreditación modelo */
.acr-modelo { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 440px; margin: 10px auto 12px; text-align: left; border: none; cursor: pointer; font-family: inherit; color: #fff; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #f59e0b, #ef4444 90%); box-shadow: 0 14px 26px -12px rgba(239,68,68,.7); transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s; overflow: hidden; }
.acr-modelo:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 20px 30px -12px rgba(239,68,68,.8); }
.acr-modelo .p { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.acr-modelo b { display: block; font-size: 1rem; }
.acr-modelo small { display: block; opacity: .9; font-size: .74rem; }
.acr-modelo em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: .6rem; font-weight: 800; background: #fff; color: #b91c1c; padding: 2px 8px; border-radius: 999px; }
.acr-build { position: fixed; right: 10px; bottom: 6px; z-index: 5; font-size: .62rem; color: var(--acr-muted); opacity: .6; pointer-events: none; }
.acr3d-tools button.ayuda { background: rgba(245,158,11,.25); border-color: #fbbf24; color: #fff; }

/* botón de ayuda siempre visible */
.acr-ayuda-fab { position: fixed; left: 12px; bottom: 12px; z-index: 9500; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); cursor: pointer; font: 800 .95rem Plus Jakarta Sans, sans-serif; color: #fff; background: linear-gradient(135deg, #028090, #00A896); box-shadow: 0 8px 18px -6px rgba(0,168,150,.8); transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.acr-ayuda-fab:hover { transform: scale(1.18) rotate(-8deg); box-shadow: 0 10px 22px -6px rgba(0,168,150,.95); }
.acr-ayuda-fab:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }

/* ===== Demostración: banner de la mesa y panel con controles ===== */
.wb-demo-banner { position: sticky; top: 64px; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(2,60,70,.96), rgba(10,21,48,.96)); backdrop-filter: blur(8px); color: #e2f4f4; border: 1px solid rgba(0,168,150,.55); border-radius: 16px; padding: 10px 14px; margin-bottom: 12px; font-size: .86rem; box-shadow: 0 14px 28px -16px rgba(2,128,144,.8); animation: pn-in .45s cubic-bezier(.16,1,.3,1) both; }
.wb-demo-banner.en-pausa { border-color: #fbbf24; }
.wb-demo-fila { display: flex; gap: 10px; align-items: center; flex: 1 1 320px; min-width: 0; }
.wb-demo-banner .tag { flex: none; background: linear-gradient(135deg, #028090, #00A896); color: #fff; font-weight: 800; font-size: .66rem; letter-spacing: .4px; padding: 4px 11px; border-radius: 999px; }
.wb-demo-banner #wb-demo-txt { flex: 1; line-height: 1.35; }
.wb-demo-banner #wb-demo-txt.nuevo { animation: pn-in .45s cubic-bezier(.16,1,.3,1) both; }
.wb-demo-ctl { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-demo-ctl button, .demo-bar .db { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: 6px 13px; cursor: pointer; font: 700 .76rem 'Plus Jakarta Sans', system-ui, sans-serif; transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .2s, box-shadow .2s; }
.wb-demo-ctl button:hover, .demo-bar .db:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); background: rgba(0,168,150,.5); box-shadow: 0 8px 16px -8px rgba(0,168,150,.9); }
.wb-demo-ctl button:active, .demo-bar .db:active { transform: scale(.95); }
.wb-demo-ctl button.on, .demo-bar .db.on { background: #f59e0b; border-color: #fbbf24; color: #1f1300; }
.wb-demo-ctl button.x:hover, .demo-bar .db.x:hover { background: rgba(220,38,38,.8); box-shadow: 0 8px 16px -8px rgba(220,38,38,.9); }

.acr-panel.demo { display: flex; flex-direction: column; gap: 10px; height: min(82vh, 680px); max-height: none; overflow: hidden; }
.demo-cab .acr-demo-tag { font-size: .66rem; }
.demo-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 14px; background: linear-gradient(135deg, #04323a, #0a1530); border: 1px solid rgba(0,168,150,.5); }
.demo-bar.en-pausa { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.18); }
.demo-bar .db:disabled { opacity: .35; cursor: default; }
.demo-bar .db.pri { background: linear-gradient(135deg, #028090, #00A896); }
.demo-bar .db.x { margin-left: auto; }
.demo-info .acr-prog { margin: 6px 0 8px; }
.demo-chat { flex: 1 1 auto; min-height: 120px; display: flex; flex-direction: column; }
.demo-chat .acr-chat-log { flex: 1 1 auto; min-height: 0; max-height: none; }
#demo-expl { flex: none; max-height: 30%; overflow-y: auto; margin: 0; font-size: .82rem; }
@media (max-width: 900px) { .acr-panel.demo { height: auto; overflow: visible; } .demo-chat .acr-chat-log { min-height: 160px; max-height: 280px; } }

/* ===== Navegación de cámara del visor 3D (sin mouse ni gestos) ===== */
.acr3d-nav { position: absolute; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end; max-width: calc(100% - 20px); padding: 5px; border-radius: 999px; background: rgba(10,21,48,.72); backdrop-filter: blur(6px); border: 1px solid rgba(148,163,184,.35); z-index: 6; }
.acr3d-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(148,163,184,.4); background: rgba(255,255,255,.08); color: #e2f4f4; font: 700 .95rem 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0; touch-action: none; user-select: none; transition: transform .15s cubic-bezier(.34,1.56,.64,1), background .2s; }
.acr3d-nav button:hover { background: rgba(0,168,150,.55); transform: scale(1.12); }
.acr3d-nav button:active { transform: scale(.92); background: #00A896; }
.acr3d-nav .sep { width: 1px; height: 20px; background: rgba(148,163,184,.35); }
.acr3d-hint { max-width: 45%; }

/* ===== Efectos de juego sobre el visor 3D ===== */
.acr-fx { position: absolute; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
.fx-escena { position: absolute; inset: 0; }
.fx-card { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 20px 10px; min-width: 190px; max-width: 80%; text-align: center; color: #e2f4f4; background: linear-gradient(145deg, rgba(2,60,70,.92), rgba(10,21,48,.94)); border: 1px solid rgba(0,168,150,.6); border-radius: 18px; box-shadow: 0 22px 40px -18px rgba(0,0,0,.8), 0 0 0 4px rgba(0,168,150,.12); backdrop-filter: blur(6px); animation: fx-in .35s cubic-bezier(.34,1.56,.64,1) both, fx-out .3s ease var(--d) both; }
.fx-ico { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); display: inline-block; }
.fx-cap { font-size: .8rem; font-weight: 700; line-height: 1.3; }
.fx-cc { font: 800 1.5rem 'Plus Jakarta Sans', sans-serif; color: #67e8f9; }
.fx-cap-fija { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); width: max-content; max-width: 86%; text-align: center; padding: 8px 16px; font-size: .8rem; font-weight: 700; color: #fff; border-radius: 14px; background: rgba(2,60,70,.92); border: 1px solid rgba(0,168,150,.6); animation: fx-in .35s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes fx-in { from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.8); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes fx-out { to { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.95); } }
.fx-svg { position: absolute; inset: 0; }
.fx-iodo { fill: none; stroke: #d97706; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; filter: blur(2px) drop-shadow(0 0 4px rgba(180,83,9,.6)); }
.fx-gasa { position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; font-size: 2rem; filter: drop-shadow(0 6px 6px rgba(0,0,0,.5)); }
.a-rebota .fx-ico { animation: fx-rebota .6s ease-in-out 3; }
.a-pop .fx-ico { animation: fx-pop .5s cubic-bezier(.34,1.56,.64,1) 3 alternate; }
.a-rueda .fx-ico { animation: fx-rueda calc(var(--d) * .8) ease-in-out both; }
.a-escribe .fx-ico { animation: fx-escribe .35s ease-in-out infinite alternate; }
.a-baja .fx-ico { animation: fx-baja calc(var(--d) * .7) cubic-bezier(.16,1,.3,1) both; }
.a-guante .fx-ico { animation: fx-guante .55s cubic-bezier(.34,1.56,.64,1) 3; }
.a-vuela .fx-ico { animation: fx-vuela calc(var(--d) * .8) ease-in both; }
.a-burbujas .fx-ico { animation: fx-frota 1s ease-in-out infinite alternate; }
.a-abre .fx-ico { animation: fx-abre .6s ease-in-out 3 alternate; }
.a-tira .fx-ico { animation: fx-tira .4s ease-in-out 4 alternate; }
.a-cuelga .fx-ico { transform-origin: 50% 0; animation: fx-cuelga .8s ease-in-out 3 alternate; }
.a-cae .fx-ico { animation: fx-cae calc(var(--d) * .6) ease-in both; }
.a-cinta .fx-ico { animation: fx-pop .4s ease-in-out 4 alternate; }
.a-gotas .fx-ico { animation: fx-gota .7s ease-in infinite; }
.a-balon .fx-ico { animation: fx-balon calc(var(--d) * .9) ease-in-out both; }
.a-jeringa .fx-ico { animation: fx-jeringa .5s ease-in-out 5 alternate; }
.a-gel .fx-ico { animation: fx-gel calc(var(--d) * .8) ease-in-out both; }
.a-inserta .fx-ico { animation: fx-inserta calc(var(--d) * .8) ease-in-out both; }
@keyframes fx-rebota { 50% { transform: translateY(-14px) scale(1.1); } }
@keyframes fx-pop { from { transform: scale(.85) rotate(-6deg); } to { transform: scale(1.15) rotate(6deg); } }
@keyframes fx-rueda { from { transform: translateX(-70px); } to { transform: translateX(70px); } }
@keyframes fx-escribe { from { transform: translate(-10px, 2px) rotate(-12deg); } to { transform: translate(12px, -3px) rotate(8deg); } }
@keyframes fx-baja { from { transform: translateY(-60px) scaleY(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fx-guante { 0% { transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes fx-vuela { 0% { transform: none; } 40% { transform: translateY(-14px) rotate(-10deg); } 100% { transform: translate(60px, 90px) rotate(60deg) scale(.4); opacity: 0; } }
@keyframes fx-frota { from { transform: translateY(4px) scale(.95); } to { transform: translateY(-8px) scale(1.1); } }
@keyframes fx-abre { from { transform: scaleX(1) rotate(0); } to { transform: scaleX(1.25) rotate(-8deg); } }
@keyframes fx-tira { from { transform: translateX(0); } to { transform: translateX(-16px); } }
@keyframes fx-cuelga { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes fx-cae { 0% { transform: translateY(-40px); opacity: 0; } 70% { transform: translateY(6px); opacity: 1; } 100% { transform: translateY(0) scale(1.05); } }
@keyframes fx-gota { 0% { transform: translateY(-14px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes fx-balon { 0% { transform: scale(.4); } 45% { transform: scale(1.6); } 60% { transform: scale(1.6); } 100% { transform: scale(.5); } }
@keyframes fx-jeringa { from { transform: translateX(10px) rotate(-8deg); } to { transform: translateX(-10px) rotate(-8deg); } }
@keyframes fx-gel { 0% { transform: translateY(-24px) scale(.7); } 50% { transform: translateY(6px) scale(1.2, .85); } 100% { transform: translateY(0) scale(1); } }
@keyframes fx-inserta { 0% { transform: translateX(-60px) scale(.8); opacity: .3; } 100% { transform: translateX(40px) scale(1.1); opacity: 1; } }
.acr-snd-fab { left: 52px; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .fx-card, .fx-ico { animation: none !important; } }

/* ===== Caso clínico renovado ===== */
.cc { width: min(760px, 100%); border-radius: 22px; overflow: hidden; background: var(--acr-bg); box-shadow: 0 30px 60px -24px rgba(2,19,26,.6); border: 1px solid var(--acr-line); animation: cc-in .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes cc-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
.cc-top { position: relative; display: flex; gap: 16px; align-items: center; padding: 22px 24px 30px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(0,230,200,.35), transparent 45%), linear-gradient(135deg, #04323a, #028090 70%, #00A896); overflow: hidden; }
.cc-ecg { position: absolute; left: 0; right: 0; bottom: 4px; width: 100%; height: 34px; opacity: .4; }
.cc-ecg path { fill: none; stroke: #b6fff2; stroke-width: 2; stroke-dasharray: 700; animation: cc-ecg 3s linear infinite; }
@keyframes cc-ecg { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
.cc-av { flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.55); animation: cc-pulso 2.2s ease-in-out infinite; }
@keyframes cc-pulso { 50% { box-shadow: 0 0 0 10px rgba(255,255,255,.1); } }
.cc-top small { text-transform: uppercase; letter-spacing: 1px; font-weight: 800; font-size: .66rem; opacity: .85; }
.cc-top h2 { font-size: 1.5rem; margin: 2px 0 6px; color: #fff; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.cc-chip.rojo { background: #dc2626; border-color: #fecaca; animation: cc-alerta 1.2s ease-in-out infinite; }
.cc-chip.verde { background: rgba(22,163,74,.7); }
@keyframes cc-alerta { 50% { transform: scale(1.07); box-shadow: 0 0 14px rgba(220,38,38,.8); } }
.cc-cuerpo { padding: 16px 22px 8px; display: grid; gap: 10px; }
.cc-fila { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(13,148,136,.07); border: 1px solid var(--acr-line); opacity: 0; animation: cc-fila .5s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 120ms + 250ms); }
@keyframes cc-fila { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.cc-fila .i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: linear-gradient(135deg, #028090, #00A896); }
.cc-fila label { display: block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--acr-muted); }
.cc-fila p { margin: 2px 0 0; font-size: .95rem; color: var(--acr-text); }
.cc-mision { margin: 6px 22px 6px; padding: 12px 14px; border-radius: 14px; border: 1px dashed #f59e0b; background: rgba(245,158,11,.1); font-size: .86rem; opacity: 0; animation: cc-fila .5s ease 1.1s both; }
.cc-mision b { color: #b45309; }
.cc-mision ul { margin: 6px 0 0 18px; }
.cc .acr-row { padding: 6px 22px 20px; }
@media (max-width: 560px) { .cc-top { flex-direction: column; text-align: center; } .cc-chips { justify-content: center; } }
.wb-demo-banner { position: static; }

.acr-full-fab { left: 92px; font-size: 1rem; }
.acr-full-fab.on { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.acr-ex-x { position: fixed; right: 14px; top: 76px; z-index: 9400; border: 1px solid #fecaca; background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; font: 800 .78rem 'Plus Jakarta Sans', sans-serif; padding: 8px 16px; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 22px -8px rgba(185,28,28,.8); transition: transform .2s cubic-bezier(.34,1.56,.64,1); animation: pn-in .4s ease both; }
.acr-ex-x:hover { transform: scale(1.06); }

/* ===== Informe de examen (NikaMed+) ===== */
.acr-panel.informe { max-height: none; overflow: visible; padding: 0; background: none; border: none; }
.acr-grid.sin-escena .acr-panel.informe { max-width: 980px; margin: 0 auto; width: 100%; }
.inf { display: grid; gap: 14px; animation: cc-in .6s cubic-bezier(.16,1,.3,1) both; }
.inf-cab { position: relative; display: flex; gap: 22px; align-items: center; padding: 28px 26px 22px; border-radius: 22px; color: #fff; overflow: hidden; }
.inf-cab.ap { background: linear-gradient(135deg, #064e3b, #059669 70%, #10b981); }
.inf-cab.de { background: linear-gradient(135deg, #450a0a, #b91c1c 70%, #ef4444); }
.inf-cab h2 { font-size: 1.9rem; color: #fff; margin-bottom: 4px; letter-spacing: .5px; }
.inf-cab p { color: rgba(255,255,255,.92); font-size: .92rem; margin: 2px 0; }
.inf-sub { font-weight: 700; }
.inf-ribbon { position: absolute; top: 10px; right: 14px; font-size: .68rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3b2300; }
.inf-anillo { flex: none; width: 130px; height: 130px; transform: rotate(-90deg); }
.inf-anillo circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.inf-anillo .fondo { stroke: rgba(255,255,255,.22); }
.inf-anillo .ok, .inf-anillo .mal { stroke: #fff; transition: stroke-dashoffset 1.4s cubic-bezier(.16,1,.3,1); animation: inf-anillo 1.4s cubic-bezier(.16,1,.3,1) both; }
@keyframes inf-anillo { from { stroke-dashoffset: 340; } }
.inf-anillo text { transform: rotate(90deg); transform-origin: 65px 65px; fill: #fff; font: 800 28px 'Plus Jakarta Sans', sans-serif; }
.inf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.inf-stats > div { background: var(--acr-bg); border: 1px solid var(--acr-line); border-radius: 14px; padding: 12px; text-align: center; }
.inf-stats b { display: block; font-size: 1.5rem; color: var(--acr-ttl); }
.inf-stats span { font-size: .72rem; color: var(--acr-muted); font-weight: 700; }
.inf-stats .ok b { color: #16a34a; } .inf-stats .med b { color: #d97706; } .inf-stats .mal b { color: #dc2626; }
.inf-calculo { font-size: .84rem; padding: 12px 14px; border-radius: 14px; background: rgba(13,148,136,.08); border: 1px solid var(--acr-line); }
.inf-h { font-size: 1.1rem; color: var(--acr-ttl); margin: 8px 0 0; }
.inf-prio { display: grid; gap: 10px; }
.inf-card { background: var(--acr-bg); border: 1px solid var(--acr-line); border-left: 5px solid #dc2626; border-radius: 14px; padding: 14px 16px; }
.inf-card.med { border-left-color: #f59e0b; }
.inf-card h4 { font-size: .95rem; margin-bottom: 6px; color: var(--acr-ttl); }
.inf-card p, .inf-det p { font-size: .88rem; margin: 4px 0; }
.inf-mejora { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.35); }
.inf-mejora p { margin: 3px 0; }
.inf-frase { font-style: italic; color: var(--acr-muted); }
.inf-pasos { display: grid; gap: 8px; }
.inf-paso { background: var(--acr-bg); border: 1px solid var(--acr-line); border-left: 5px solid #16a34a; border-radius: 12px; }
.inf-paso.med { border-left-color: #f59e0b; } .inf-paso.mal { border-left-color: #dc2626; }
.inf-paso summary { display: flex; gap: 10px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.inf-paso summary::-webkit-details-marker { display: none; }
.inf-paso .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .78rem; background: var(--acr-line); }
.inf-paso .t { flex: 1; font-size: .88rem; font-weight: 600; }
.inf-paso .b { flex: none; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.inf-paso .b.ok { background: rgba(22,163,74,.15); color: #15803d; } .inf-paso .b.med { background: rgba(245,158,11,.18); color: #b45309; } .inf-paso .b.mal { background: rgba(220,38,38,.15); color: #b91c1c; }
.inf-det { padding: 0 16px 14px 52px; }
@media (max-width: 640px) { .inf-cab { flex-direction: column; text-align: center; } .inf-det { padding-left: 16px; } }

/* ===== Lectura previa: lista de cotejo desplegable ===== */
#acr-lectura:empty { display: none; }
#acr-lectura { margin: 0 0 12px; display: grid; gap: 8px; }
.lect-aviso { padding: 10px 14px; border-radius: 14px; font-size: .86rem; background: rgba(245,158,11,.12); border: 1px dashed #f59e0b; animation: pn-in .45s ease both; }
.lect { border: 1px solid var(--acr-line); border-radius: 16px; background: var(--acr-bg); overflow: hidden; }
.lect summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; font-weight: 800; color: var(--acr-ttl); list-style: none; transition: background .2s; }
.lect summary::-webkit-details-marker { display: none; }
.lect summary:hover { background: rgba(0,168,150,.08); }
.lect summary em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--acr-primary); }
.lect[open] summary { border-bottom: 1px solid var(--acr-line); background: rgba(0,168,150,.06); }
.lect-lista { list-style: none; margin: 0; padding: 10px 16px; max-height: 340px; overflow-y: auto; display: grid; gap: 4px; animation: pn-in .35s ease both; }
.lect-lista li { font-size: .86rem; padding: 6px 10px; border-radius: 10px; }
.lect-lista li:nth-child(odd) { background: rgba(13,148,136,.06); }
.lect-lista li.cri { border-left: 4px solid #dc2626; }
.lect-nota { font-size: .76rem; color: var(--acr-muted); padding: 0 16px 12px; margin: 0; }

/* ===== Criterios a lo ancho ===== */
.acr-head { display: block; }
.acr-crit-wrap { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(220,38,38,.08), rgba(245,158,11,.07)); border: 1px solid rgba(220,38,38,.28); }
.acr-crit-tit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; font-size: .84rem; }
.acr-crit-tit b { color: var(--acr-bad); font-size: .95rem; }
.acr-crit-tit span { color: var(--acr-muted); font-weight: 600; }
.acr-crit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.acr-crit-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--acr-bg); border: 1px solid rgba(220,38,38,.25); transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.acr-crit-card:hover { transform: translateY(-3px); box-shadow: 0 12px 20px -12px rgba(220,38,38,.6); }
.acr-crit-card .ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(220,38,38,.12); }
.acr-crit-card small { display: block; font-size: .64rem; font-weight: 800; text-transform: uppercase; color: var(--acr-bad); letter-spacing: .5px; }
.acr-crit-card b { font-size: .84rem; line-height: 1.25; color: var(--acr-ttl); }

/* ===== Lista de cotejo como hoja ===== */
.lect-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--acr-line); background: var(--acr-bg); cursor: pointer; font-family: inherit; color: var(--acr-text); transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, border-color .2s; }
.lect-btn:hover { transform: translateY(-2px); border-color: var(--acr-primary); box-shadow: 0 14px 24px -14px rgba(0,168,150,.7); }
.lect-btn .ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: linear-gradient(135deg, #028090, #00A896); }
.lect-btn b { display: block; color: var(--acr-ttl); }
.lect-btn small { color: var(--acr-muted); font-size: .76rem; }
.lect-btn > span:nth-child(2) { flex: 1; }
.lect-btn em { font-style: normal; font-weight: 800; font-size: .78rem; color: var(--acr-primary); }
.lect-modal { position: fixed; inset: 0; z-index: 9800; background: rgba(2,19,26,.72); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: wb-ficha .25s ease both; }
.lect-modal.sale { opacity: 0; transition: opacity .25s; }
.lect-hoja { width: min(1000px, 100%); max-height: 92vh; display: flex; flex-direction: column; background: var(--acr-bg); border-radius: 22px; box-shadow: 0 40px 80px -24px rgba(0,0,0,.7); overflow: hidden; animation: cc-in .45s cubic-bezier(.16,1,.3,1) both; }
.lect-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; color: #fff; background: linear-gradient(135deg, #04323a, #028090 70%, #00A896); }
.lect-cab > div:first-child { flex: 1 1 260px; }
.lect-cab h2 { font-size: 1.15rem; color: #fff; margin: 0; }
.lect-cab p { margin: 2px 0 0; font-size: .8rem; opacity: .9; }
.lect-sx { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.16); }
.lect-sx button { border: none; background: none; color: #fff; font: 800 .8rem 'Plus Jakarta Sans', sans-serif; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, transform .15s; }
.lect-sx button:hover { transform: scale(1.05); }
.lect-sx button.on { background: #fff; color: #028090; }
.lect-x { border: none; background: rgba(255,255,255,.18); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; cursor: pointer; transition: transform .2s, background .2s; }
.lect-x:hover { background: #dc2626; transform: rotate(90deg); }
.lect-cuerpo { overflow-y: auto; padding: 8px 20px 4px; }
.lect-cuerpo section { margin: 14px 0; animation: cc-fila .45s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 70ms); }
.lect-cuerpo h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; color: var(--acr-primary); margin: 0 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--acr-line); }
.lect-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.lect-p { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--acr-line); background: rgba(13,148,136,.05); font-size: .84rem; line-height: 1.35; transition: transform .18s, border-color .18s; }
.lect-p:hover { transform: translateX(3px); border-color: var(--acr-primary); }
.lect-p.cri { border-left: 4px solid #dc2626; background: rgba(220,38,38,.05); }
.lect-p .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .74rem; background: var(--acr-primary); color: #fff; }
.lect-solo { display: inline-block; margin-left: 6px; font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(245,158,11,.2); color: #b45309; }
.lect-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--acr-line); font-size: .78rem; color: var(--acr-muted); }

/* ===== Barra superior: marca y volver con recuadro y animaciones ===== */
.acr-nav a.brand { padding: 6px 16px 6px 8px; border-radius: 14px; border: 1px solid var(--acr-line); background: linear-gradient(135deg, rgba(0,168,150,.07), rgba(2,128,144,.04)); letter-spacing: .4px; position: relative; overflow: hidden; transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, border-color .22s; }
.acr-nav a.brand img { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.acr-nav a.brand::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); }
.acr-nav a.brand:hover { transform: translateY(-2px); border-color: var(--acr-primary); box-shadow: 0 12px 22px -12px rgba(0,168,150,.75); }
.acr-nav a.brand:hover img { transform: rotate(-8deg) scale(1.12); }
.acr-nav a.brand:hover::after { left: 130%; transition: left .6s ease; }
.acr-nav a.brand:active, .acr-back:active { transform: scale(.95); }
.acr-back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--acr-primary); background: var(--acr-bg); box-shadow: 0 6px 14px -8px rgba(0,168,150,.6); transition: transform .22s cubic-bezier(.34,1.56,.64,1), background .2s, color .2s, box-shadow .2s; }
.acr-back .fl { display: inline-block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.acr-back:hover { background: linear-gradient(135deg, #028090, #00A896); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 22px -10px rgba(0,168,150,.9); }
.acr-back:hover .fl { transform: translateX(-5px); }
.acr-back:focus-visible, .acr-nav a.brand:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }

/* ===== Barra superior celeste con degradado (igual que las hojas) ===== */
.acr-nav { background: linear-gradient(135deg, #04323a, #028090 70%, #00A896); border-bottom: none; box-shadow: 0 10px 24px -14px rgba(2,128,144,.8); }
.acr-nav a.brand { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
.acr-nav a.brand:hover { border-color: #fff; background: rgba(255,255,255,.22); box-shadow: 0 12px 22px -12px rgba(0,0,0,.6); }
.acr-nav a.brand img { background: #fff; border-radius: 10px; padding: 3px; height: 36px; }
.acr-back { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.14); box-shadow: none; }
.acr-back:hover { background: #fff; color: #028090; box-shadow: 0 14px 22px -10px rgba(0,0,0,.5); }

.a-escanea .fx-ico { animation: fx-escanea 1.1s ease-in-out infinite alternate; }
.a-presiona .fx-ico { animation: fx-presiona 1s ease-in-out infinite alternate; }
.a-gira .fx-ico { animation: fx-gira 1.2s linear infinite; }
.a-aprieta .fx-ico { animation: fx-aprieta .5s ease-in-out infinite alternate; }
@keyframes fx-escanea { from { transform: translateX(-26px) rotate(-10deg); } to { transform: translateX(26px) rotate(10deg); } }
@keyframes fx-presiona { from { transform: translateY(-8px); } to { transform: translateY(10px) scale(.92); } }
@keyframes fx-gira { to { transform: rotate(360deg); } }
@keyframes fx-aprieta { from { transform: scale(1); } to { transform: scale(1.35); } }

/* ===== Chat privado fuera del examen · sin pantalla completa · caso en columna ===== */
body.acr-examen .cf-fab, body.acr-examen .cf-panel, body.acr-examen #nika-assistant-btn { display: none !important; }
body.acr-sin-fs .acr-full-fab, body.acr-sin-fs [data-tool="full"] { display: none !important; }
.wb-caso-pant { flex-direction: column; align-items: center; }
.wb-caso-pant > .wb-demo-banner { width: 100%; max-width: 760px; }

/* ===== Celular ===== */
@media (max-width: 640px) {
  .acr-main { padding-bottom: 84px; }
  .acr-crit-wrap { padding: 10px; margin-top: 10px; }
  .acr-crit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .acr-crit-card { padding: 8px; gap: 8px; }
  .acr-crit-card .ic { width: 30px; height: 30px; font-size: 1rem; border-radius: 9px; }
  .acr-crit-card b { font-size: .74rem; }
  .acr-crit-tit span { font-size: .72rem; }
  .acr-crit-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .acr-ex-x { top: 70px; right: 8px; font-size: .7rem; padding: 6px 12px; }
  .lect-hoja { max-height: 96vh; border-radius: 16px; }
  .lect-pasos { grid-template-columns: 1fr; }
  .cc-cuerpo { padding: 12px; } .cc-top { padding: 16px 14px 26px; }
  .cc-mision { margin: 6px 12px; }
  .wb-caso-pant { padding: 10px 0; }
}

/* ===== Intubación: monitor de saturación y vista laringoscópica sobre el visor ===== */
.a-fuelle .fx-ico { animation: fx-fuelle 1.1s ease-in-out infinite; }
@keyframes fx-fuelle { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.35); } }
.acr3d-vp .hud-sat { position: absolute; right: 12px; top: 96px; display: none; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 14px; background: rgba(2,12,20,.82); border: 1px solid rgba(74,222,128,.5); color: #bbf7d0; z-index: 5; font: 700 .7rem 'Plus Jakarta Sans', sans-serif; box-shadow: 0 10px 20px -12px rgba(0,0,0,.8); animation: pn-in .4s ease both; }
.acr3d.s-sat .hud-sat { display: flex; }
.hud-sat .v { font-size: 1.5rem; font-weight: 800; color: #4ade80; text-shadow: 0 0 10px rgba(74,222,128,.6); }
.hud-sat .lat { width: 9px; height: 9px; border-radius: 50%; background: #f87171; animation: hud-lat .85s ease-in-out infinite; }
@keyframes hud-lat { 50% { transform: scale(1.7); opacity: .4; } }
.acr3d-vp .inset-lar { position: absolute; left: 12px; bottom: 66px; width: min(220px, 40%); border-radius: 16px; background: #0b0f1d; border: 1px solid rgba(34,211,238,.55); box-shadow: 0 18px 30px -14px rgba(0,0,0,.9), 0 0 24px -6px rgba(34,211,238,.35); z-index: 5; opacity: 0; transform: translateY(12px) scale(.94); pointer-events: none; transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1); overflow: hidden; }
.acr3d.s-lar_palanca .inset-lar { opacity: 1; transform: none; }
.acr3d.s-lar_fuera .inset-lar { opacity: 0; transform: translateY(12px) scale(.94); }
.inset-lar .inset-tit { font: 800 .64rem 'Plus Jakarta Sans', sans-serif; color: #67e8f9; padding: 6px 10px 0; letter-spacing: .5px; text-transform: uppercase; }
.inset-lar svg { display: block; width: 100%; height: auto; }
.inset-lar .vl-epi { transition: transform 1.2s cubic-bezier(.16,1,.3,1); transform: translateY(46px); }
.acr3d.s-lar_45 .inset-lar .vl-epi, .acr3d.s-cuerdas .inset-lar .vl-epi { transform: translateY(-6px); }
.inset-lar .vl-glotis { opacity: .15; transition: opacity 1.2s ease; }
.acr3d.s-lar_palanca .inset-lar .vl-glotis { opacity: .5; }
.acr3d.s-lar_45 .inset-lar .vl-glotis, .acr3d.s-cuerdas .inset-lar .vl-glotis { opacity: 1; }
.inset-lar .vl-tubo { transform: translateY(150px); transition: transform 1.6s cubic-bezier(.16,1,.3,1); }
.acr3d.s-tet .inset-lar .vl-tubo { transform: translateY(8px); }
.acr3d.s-tetp .inset-lar .vl-tubo { transform: translateY(-28px); }
.inset-lar .vl-cd, .inset-lar .vl-ci { transition: transform .9s ease; transform-origin: 100px 62px; }
.acr3d.s-tet .inset-lar .vl-cd { transform: rotate(-4deg); } .acr3d.s-tet .inset-lar .vl-ci { transform: rotate(4deg); }
@media (max-width: 640px) { .acr3d-vp .inset-lar { width: 150px; bottom: 76px; } .acr3d-vp .hud-sat { top: 128px; } }

/* ===== Dictado por voz ===== */
.acr-mic { flex: none; width: 40px; border-radius: 12px; border: 1px solid var(--acr-line); background: var(--acr-bg); cursor: pointer; font-size: 1.05rem; transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s, box-shadow .2s; }
.acr-mic:hover { transform: scale(1.1); background: rgba(0,168,150,.12); }
.acr-mic.on { background: #dc2626; border-color: #fecaca; color: #fff; animation: mic-pulso 1.1s ease-in-out infinite; }
.acr-mic.sin { opacity: .45; }
@keyframes mic-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); } 50% { box-shadow: 0 0 0 9px rgba(220,38,38,0); } }

/* ===== Aviso para usar en horizontal + diseño de computadora a menor escala en celulares y tablets apaisados ===== */
.acr-rotar { position: fixed; left: 10px; right: 10px; bottom: 64px; z-index: 9600; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #04323a, #028090 70%, #00A896); box-shadow: 0 18px 34px -14px rgba(0,0,0,.7); animation: pn-in .5s cubic-bezier(.16,1,.3,1) both; }
.acr-rotar .ph { flex: none; font-size: 1.8rem; display: inline-block; animation: rotar-tel 2.4s ease-in-out infinite; }
@keyframes rotar-tel { 0%, 25% { transform: rotate(0); } 55%, 100% { transform: rotate(-90deg); } }
.acr-rotar .tx { flex: 1; min-width: 0; line-height: 1.25; }
.acr-rotar b { display: block; font-size: .9rem; }
.acr-rotar small { font-size: .74rem; opacity: .92; }
.acr-rotar button { flex: none; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 6px 12px; font: 700 .72rem 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.acr-rotar button:hover { background: #fff; color: #028090; }
.acr-rotar #acr-rotar-x { width: 30px; height: 30px; padding: 0; border-radius: 50%; }
@media (orientation: landscape) and (max-height: 560px) {
  .acr-nav { padding: 5px 12px !important; }
  .acr-nav a.brand { padding: 3px 12px 3px 6px; font-size: .85rem; } .acr-nav a.brand img { height: 26px; }
  .acr-back { padding: 5px 12px; font-size: .78rem; }
  .acr-main { padding-top: 8px; padding-bottom: 60px; }
  .acr-head .acr-h1 { font-size: 1.05rem; } .acr-head .acr-sub { display: none; }
  .acr-crit-wrap { padding: 6px 10px; margin-top: 6px; } .acr-crit-tit span { display: none; }
  .acr-crit-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .acr-crit-card { padding: 5px 7px; gap: 6px; } .acr-crit-card .ic { width: 24px; height: 24px; font-size: .85rem; } .acr-crit-card b { font-size: .64rem; } .acr-crit-card small { font-size: .55rem; }
  .acr-grid { grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr) !important; gap: 10px; }
  .acr-panel { max-height: calc(100vh - 78px) !important; padding: 10px; }
  .acr3d-vp { height: calc(100vh - 118px) !important; min-height: 220px; }
  .acr-escena .acr-svg { min-width: 0 !important; } .acr-escena::before { content: none !important; }
  .acr3d-tools button { padding: 4px 9px; font-size: .64rem; } .acr3d-nav button { width: 28px; height: 28px; }
  .acr-rotar { display: none; }
}

@media (orientation: landscape) and (max-height: 560px) {
  body.acr-en-escena .acr-head .acr-sub, body.acr-en-escena .acr-crit-wrap { display: none; }
  body.acr-en-escena .acr-head { margin-bottom: 4px; }
  body.acr-en-escena .acr-h1 { font-size: .95rem; margin: 0; }
  .acr-tabs { gap: 6px; margin: 4px 0; } .acr-tabs .acr-tab { padding: 5px 12px; font-size: .74rem; } .acr-sexo button { padding: 5px 10px; font-size: .72rem; }
  #acr-lectura { margin-bottom: 4px; }
  .acr3d-vp { height: calc(100vh - 150px) !important; }
}

/* ===== RCP avanzado: monitor multiparamétrico, desfibrilador, ciclo de 2 minutos ===== */
.acr3d-vp .mon { position: absolute; right: 10px; top: 84px; width: min(330px, 47%); z-index: 6; border-radius: 14px; background: #050a12; border: 1px solid rgba(74,222,128,.45); box-shadow: 0 18px 30px -14px rgba(0,0,0,.9), 0 0 24px -8px rgba(74,222,128,.3); overflow: hidden; transition: filter .15s; }
.mon.flash { filter: brightness(3.2) saturate(.2); }
.mon-top { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: #0b1424; color: #86efac; font: 800 .6rem 'Plus Jakarta Sans', sans-serif; letter-spacing: .6px; }
.mon-t { flex: 1; }
.mon-alarma { display: none; padding: 2px 8px; border-radius: 4px; background: #facc15; color: #111; font-weight: 800; }
.mon-alarma.on { display: inline-block; animation: mon-alarma .55s steps(2) infinite; }
.mon-alarma.alta { background: #ef4444; color: #fff; }
@keyframes mon-alarma { 50% { opacity: .25; } }
.mon-top button { pointer-events: auto; border: 1px solid rgba(148,163,184,.4); background: rgba(255,255,255,.06); color: #fff; width: 24px; height: 22px; border-radius: 6px; font-size: .75rem; cursor: pointer; padding: 0; }
.mon-top button.on { background: rgba(74,222,128,.3); border-color: #4ade80; }
.mon-top button:hover { background: rgba(255,255,255,.2); }
.mon-ecg { display: block; width: 100%; height: auto; background: radial-gradient(ellipse at 50% 50%, #08140f, #030706); }
.mon-num { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(74,222,128,.25); }
.mon-num > div { padding: 3px 4px; text-align: center; border-right: 1px solid rgba(74,222,128,.18); }
.mon-num > div:last-child { border-right: none; }
.mon-num small { display: block; font: 700 .5rem 'Plus Jakarta Sans', sans-serif; color: #94a3b8; }
.mon-num b { font: 800 1.1rem 'Plus Jakarta Sans', sans-serif; text-shadow: 0 0 8px currentColor; }
.mon-fc b { color: #4ade80; } .mon-spo2 b { color: #67e8f9; } .mon-pa b { color: #f87171; font-size: .85rem; } .mon-co2 b { color: #facc15; }
.acr3d-vp .defi { position: absolute; left: 10px; bottom: 66px; width: 190px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(145deg, #1f2937, #0b1220); border: 1px solid rgba(250,204,21,.5); color: #fde68a; z-index: 6; text-align: center; transition: border-color .2s, box-shadow .2s, opacity .3s; opacity: .55; }
.defi[data-est="carga"], .defi[data-est="listo"], .defi[data-est="descarga"], .defi[data-est="espera"] { opacity: 1; }
.defi[data-est="listo"] { border-color: #ef4444; box-shadow: 0 0 22px rgba(239,68,68,.6); animation: defi-listo .5s steps(2) infinite; }
.defi[data-est="descarga"] { border-color: #fff; box-shadow: 0 0 34px rgba(255,255,255,.9); }
@keyframes defi-listo { 50% { box-shadow: 0 0 6px rgba(239,68,68,.3); } }
.defi-tit { font: 800 .62rem 'Plus Jakarta Sans', sans-serif; letter-spacing: .6px; color: #fbbf24; }
.defi-est { font: 800 .8rem 'Plus Jakarta Sans', sans-serif; margin: 2px 0 4px; color: #fff; }
.defi-barra { height: 7px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; }
.defi-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f59e0b, #ef4444); }
.defi-j { margin-top: 4px; font: 700 .58rem 'Plus Jakarta Sans', sans-serif; color: #94a3b8; }
.acr3d-vp .cron { position: absolute; left: 10px; top: 84px; padding: 4px 12px; border-radius: 12px; background: rgba(2,12,20,.85); border: 1px solid rgba(34,211,238,.45); color: #a5f3fc; z-index: 6; text-align: center; opacity: 0; transition: opacity .3s; }
.acr3d-vp .rcp-hud[data-on="1"] ~ .cron, .acr3d.s-rcp .cron { opacity: 1; }
.cron small { display: block; font: 800 .5rem 'Plus Jakarta Sans', sans-serif; letter-spacing: .5px; }
.cron b { font: 800 1.5rem 'Plus Jakarta Sans', sans-serif; font-variant-numeric: tabular-nums; }
.cron.fin { border-color: #f59e0b; color: #fde68a; } .cron.relevo { border-color: #ef4444; color: #fff; background: rgba(185,28,28,.85); animation: defi-listo .5s steps(2) infinite; }
.acr3d-vp .rcp-hud { position: absolute; left: 10px; bottom: 126px; padding: 4px 12px; border-radius: 999px; background: rgba(220,38,38,.88); color: #fff; font: 700 .7rem 'Plus Jakarta Sans', sans-serif; z-index: 6; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.rcp-hud[data-on="1"] { opacity: 1; transform: none; animation: rcp-late .545s ease-in-out infinite; }
@keyframes rcp-late { 50% { transform: scale(1.07); } }
.acr3d-vp.sacudon { animation: sacudon .45s ease; }
@keyframes sacudon { 0%, 100% { transform: none; } 15% { transform: translate(-6px, 3px); } 35% { transform: translate(6px, -3px); } 60% { transform: translate(-3px, 2px); } }
.a-latido .fx-ico { animation: fx-latido .545s ease-in-out infinite; }
@keyframes fx-latido { 0%, 100% { transform: scale(.9); } 40% { transform: scale(1.4); } }
@media (max-width: 640px) { .acr3d-vp .mon { top: 120px; width: 62%; } .acr3d-vp .cron { top: 120px; } .acr3d-vp .defi { bottom: 76px; width: 150px; } .acr3d-vp .rcp-hud { bottom: 136px; } }
@media (orientation: landscape) and (max-height: 560px) { .acr3d-vp .mon { top: 70px; width: 38%; } .acr3d-vp .cron { top: 70px; } .acr3d-vp .defi { bottom: 50px; } .acr3d-vp .rcp-hud { bottom: 104px; } }
/* algoritmo */
.lect-btn.alg { margin-top: 8px; }
.alg-hoja .lect-cuerpo { padding: 14px 18px; }
.alg-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.alg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 4px 0; }
.alg-col { border-radius: 16px; padding: 12px; border: 1px solid var(--acr-line); background: rgba(13,148,136,.04); }
.alg-col.fv { border-color: rgba(220,38,38,.5); background: rgba(220,38,38,.05); } .alg-col.nd { border-color: rgba(100,116,139,.5); background: rgba(100,116,139,.06); }
.alg-col h3 { margin: 0 0 8px; font-size: .9rem; color: var(--acr-ttl); }
.alg-n { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--acr-line); background: var(--acr-bg); animation: cc-fila .45s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 60ms); transition: transform .2s, border-color .2s, background .2s; }
.alg-n:hover { transform: translateY(-2px); border-color: var(--acr-primary); }
.alg-n b { display: block; font-size: .86rem; color: var(--acr-ttl); } .alg-n span { font-size: .78rem; color: var(--acr-text); }
.alg-n.hecho { background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.6); } .alg-n.hecho b::before { content: '✔ '; color: #16a34a; }
.alg-flecha { text-align: center; font-weight: 800; color: var(--acr-primary); margin: 8px 0; font-size: .8rem; } .alg-flecha.chica { margin: 4px 0; }

/* ===== Minijuego: ritmo de las compresiones ===== */
.acr3d-vp .rcp-juego { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(320px, 88%); padding: 14px 16px; border-radius: 20px; text-align: center; color: #fff; z-index: 9; background: linear-gradient(145deg, rgba(4,50,58,.96), rgba(10,21,48,.97)); border: 1px solid rgba(0,168,150,.7); box-shadow: 0 30px 50px -20px rgba(0,0,0,.9); animation: pn-in .4s cubic-bezier(.16,1,.3,1) both; }
.rj-tit { font: 800 .76rem 'Plus Jakarta Sans', sans-serif; color: #99f6e4; margin-bottom: 8px; }
.rj-pecho { width: 104px; height: 104px; border-radius: 50%; border: 3px solid rgba(255,255,255,.6); background: radial-gradient(circle at 35% 30%, #ef4444, #991b1b); cursor: pointer; font-size: 2.8rem; box-shadow: 0 14px 26px -10px rgba(220,38,38,.9); transition: transform .08s; }
.rj-pecho:active { transform: scale(.88); } .rj-pecho.late { animation: rj-late .22s ease; }
@keyframes rj-late { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
.rj-bpm { margin: 8px 0 4px; font: 700 .86rem 'Plus Jakarta Sans', sans-serif; color: #cbd5e1; } .rj-bpm b { font-size: 2rem; font-weight: 800; }
.rj-bpm.ok b { color: #4ade80; text-shadow: 0 0 12px rgba(74,222,128,.7); } .rj-bpm.lento b { color: #60a5fa; } .rj-bpm.rapido b { color: #f87171; }
.rj-barra { position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; margin: 4px 6px 8px; }
.rj-barra i { display: block; height: 100%; width: 4%; background: #f59e0b; transition: width .12s; } .rj-barra i.ok { background: #22c55e; } .rj-barra i.mal { background: #f59e0b; }
.rj-barra u { position: absolute; top: 0; bottom: 0; left: 40%; width: 20%; border-left: 2px solid #fff; border-right: 2px solid #fff; opacity: .5; }
.rj-info { min-height: 36px; font-size: .78rem; color: #e2e8f0; line-height: 1.3; }
.rj-fin { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.rj-fin button { border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 5px 14px; font: 700 .72rem 'Plus Jakarta Sans', sans-serif; cursor: pointer; } .rj-fin button.on { background: #f59e0b; border-color: #fbbf24; color: #1f1300; } .rj-fin button:hover { background: #fff; color: #028090; }

/* ===== RCP: el monitor y el desfibrilador van en un panel debajo del visor (no tapan el 3D) ===== */
.mon-dock { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; padding: 8px 10px; background: #060b14; border-top: 1px solid rgba(74,222,128,.25); }
.mon-dock .mon { position: relative; top: auto; right: auto; width: auto; z-index: 1; }
.mon-dock .defi { position: relative; left: auto; bottom: auto; width: auto; align-self: stretch; display: flex; flex-direction: column; justify-content: center; opacity: .7; }
.mon-dock .mon-ecg { height: 110px; }
.mon-dock .mon-num b { font-size: 1.3rem; } .mon-dock .mon-pa b { font-size: 1rem; }
@media (max-width: 640px) { .mon-dock { grid-template-columns: minmax(0, 1fr); } .acr3d-vp .cron { top: 70px; } }
@media (orientation: landscape) and (max-height: 560px) { .mon-dock { grid-template-columns: minmax(0, 1fr) 170px; padding: 4px 6px; } .mon-dock .mon-ecg { height: 70px; } .mon-dock .mon-num b { font-size: 1rem; } }

/* RCP: monitor más compacto para dejar más lugar al 3D */
.mon-dock { padding: 4px 8px; gap: 8px; grid-template-columns: minmax(0, 1fr) 170px; }
.mon-dock .mon-ecg { height: 52px; }
.mon-dock .mon-top { padding-top: 2px; padding-bottom: 2px; }
.mon-dock .mon-num b { font-size: 1rem; } .mon-dock .mon-pa b { font-size: .85rem; }
.mon-dock .mon-num small { font-size: .6rem; }
.mon-dock .mon-num > div { padding-top: 2px; padding-bottom: 2px; }
.mon-dock .defi-tit, .mon-dock .defi-est { font-size: .75rem; }

/* ===== Artrocentesis: contador de mL aspirados y tubos animados (llenado, rótulo, envío al laboratorio) ===== */
.acr3d-vp .art-hud { position: absolute; left: 12px; bottom: 58px; z-index: 6; display: flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(8,145,178,.92), rgba(13,148,136,.92)); color: #fff; font-weight: 800; box-shadow: 0 8px 22px rgba(0,0,0,.35); opacity: 0; transform: translateY(8px) scale(.96); transition: .35s cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
.acr3d-vp .art-hud[data-on="1"] { opacity: 1; transform: none; }
.art-hud b { font-size: 1.35rem; min-width: 1.4em; text-align: right; font-variant-numeric: tabular-nums; } .art-hud span { font-size: .74rem; letter-spacing: .04em; } .art-hud small { opacity: .85; }
.acr3d-vp .art-tubos { position: absolute; right: 10px; top: 62px; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; opacity: 0; transform: translateX(26px); transition: .45s ease; pointer-events: none; }
.acr3d.s-tubos .art-tubos { opacity: 1; transform: none; }
.art-rack { display: flex; gap: 9px; padding: 14px 10px 24px; border-radius: 14px; background: rgba(8,18,30,.78); border: 1px solid rgba(125,211,252,.28); box-shadow: 0 10px 26px rgba(0,0,0,.4); backdrop-filter: blur(3px); }
.art-rack .tb { position: relative; width: 20px; height: 62px; border: 1.5px solid #8fbfd1; border-top: 0; border-radius: 0 0 11px 11px; background: rgba(255,255,255,.1); }
.art-rack .tb .cap { position: absolute; top: -8px; left: -3px; right: -3px; height: 10px; border-radius: 4px; background: #16a34a; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.art-rack .t1 .cap { background: #dc2626; } .art-rack .t2 .cap { background: #facc15; }
.art-rack .tb .liq { position: absolute; left: 1px; right: 1px; bottom: 1px; height: 0; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, color-mix(in srgb, var(--liq, #f5e27a) 80%, #fff), var(--liq, #f5e27a)); }
.acr3d.s-tubos .art-rack .tb .liq { animation: art-llena 1.3s cubic-bezier(.3,.7,.3,1) forwards; }
.acr3d.s-tubos .art-rack .t1 .liq { animation-delay: .2s; } .acr3d.s-tubos .art-rack .t2 .liq { animation-delay: .9s; } .acr3d.s-tubos .art-rack .t3 .liq { animation-delay: 1.6s; } .acr3d.s-tubos .art-rack .t4 .liq { animation-delay: 2.3s; --h: 50%; }
.acr3d[data-vol="escaso"].s-tubos .art-rack .t1 .liq { --h: 18%; } .acr3d[data-vol="escaso"].s-tubos .art-rack .t3 .liq { --h: 30%; }
.acr3d[data-vol="escaso"] .art-rack .t2, .acr3d[data-vol="escaso"] .art-rack .t4 { opacity: .25; }
.art-rack .tb { --h: 70%; }
@keyframes art-llena { from { height: 0; } to { height: var(--h); } }
.art-rack .tb span { position: absolute; top: 68px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 8px; font-weight: 700; color: #cfeff5; letter-spacing: .02em; }
.art-rack .tb .rot { position: absolute; left: -4px; right: -4px; top: 18px; height: 20px; background: #fff; color: #0f172a; border-radius: 3px; font-size: 6px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-style: normal; transform: scaleX(0); transform-origin: left center; transition: transform .45s cubic-bezier(.34,1.4,.64,1); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.acr3d.s-rotulo .art-rack .tb .rot { transform: scaleX(1); } .acr3d.s-rotulo .art-rack .t2 .rot { transition-delay: .15s; } .acr3d.s-rotulo .art-rack .t3 .rot { transition-delay: .3s; } .acr3d.s-rotulo .art-rack .t4 .rot { transition-delay: .45s; }
.art-lab { display: flex; flex-direction: column; align-items: center; padding: 7px 14px; border-radius: 12px; background: linear-gradient(135deg, #0d9488, #0891b2); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.35); opacity: 0; transform: translateY(8px) scale(.9); transition: .45s cubic-bezier(.34,1.56,.64,1); }
.art-lab b { font-size: .78rem; } .art-lab small { font-size: .68rem; opacity: .9; }
.acr3d.s-envio .art-lab { opacity: 1; transform: none; transition-delay: 1s; }
.acr3d.s-envio .art-rack { animation: art-envia 1.5s cubic-bezier(.55,0,.8,.4) forwards; }
@keyframes art-envia { 0% { transform: none; opacity: 1; } 60% { transform: translateY(24px) scale(.9); opacity: 1; } 100% { transform: translateY(70px) scale(.5); opacity: 0; } }
@media (max-width: 640px) { .acr3d-vp .art-tubos { top: auto; bottom: 108px; } .art-rack .tb span { display: none; } .art-rack { padding-bottom: 12px; } }
@media (orientation: landscape) and (max-height: 560px) { .acr3d-vp .art-tubos { top: 52px; transform-origin: top right; } .art-rack .tb { height: 44px; } .art-rack .tb span { top: 48px; font-size: 7px; } .art-hud { bottom: 54px; } }

/* ===== Área SIM: HUD de los simuladores (altura uterina, curva, FCF, historia clínica, gestograma, visor especular, mapa mamario) ===== */
.acr3d-vp .sim-hud { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.sim-hud .sim-au, .sim-hud .sim-fcf { position: absolute; left: 12px; bottom: 58px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; color: #fff; font-weight: 800; box-shadow: 0 8px 22px rgba(0,0,0,.38); opacity: 0; transform: translateY(8px) scale(.96); transition: .35s cubic-bezier(.34,1.56,.64,1); }
.sim-hud .sim-au { background: linear-gradient(135deg, #0891b2, #0d9488); }
.sim-hud .sim-fcf { background: linear-gradient(135deg, #be123c, #e11d48); min-width: 190px; }
.sim-hud [data-on="1"] { opacity: 1 !important; transform: none !important; }
.sim-hud small { display: block; font-size: .62rem; letter-spacing: .06em; opacity: .9; }
.sim-hud b { font-size: 1.5rem; font-variant-numeric: tabular-nums; } .sim-hud span { font-size: .75rem; opacity: .9; margin-left: 3px; }
.sim-fcf .lat { font-style: normal; font-size: 1.7rem; animation: sim-lat 1s ease-in-out infinite; }
@keyframes sim-lat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.3); } 24% { transform: scale(1); } 36% { transform: scale(1.18); } }
.sim-fcf .sim-reloj { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; background: rgba(255,255,255,.3); border-radius: 3px; overflow: hidden; } .sim-fcf .sim-reloj i { display: block; height: 100%; width: 0; background: #fff; }
.sim-hud .sim-curva { position: absolute; right: 10px; top: 60px; width: 210px; opacity: 0; transform: translateX(24px); transition: .45s ease; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.sim-curva .fondo { fill: rgba(8,18,30,.86); stroke: rgba(125,211,252,.3); } .sim-curva .banda { fill: rgba(52,211,153,.2); } .sim-curva .p50 { stroke: #34d399; stroke-width: 1.4; stroke-dasharray: 3 2; }
.sim-curva .ejes line { stroke: rgba(255,255,255,.1); } .sim-curva .ejes text { fill: #9fc4d3; font-size: 7px; } .sim-curva .tit { fill: #e0f2fe; font-size: 8.5px; font-weight: 800; } .sim-curva .lect { fill: #fde68a; font-size: 6.6px; font-weight: 700; }
.sim-curva .prev { fill: #94a3b8; stroke: #fff; stroke-width: 1; } .sim-curva .nuevo { fill: #f59e0b; stroke: #fff; stroke-width: 1.5; animation: sim-punto .9s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes sim-punto { from { r: 0; opacity: 0; } to { r: 5.5; opacity: 1; } }
@media (max-width: 640px) { .sim-hud .sim-curva { width: 160px; top: 54px; } }

/* ----- panel de historia clínica (anamnesis) ----- */
.acr3d-vp .sim-hc { position: absolute; right: 10px; top: 58px; bottom: 56px; width: min(46%, 270px); z-index: 7; display: flex; flex-direction: column; border-radius: 14px; background: rgba(8,18,30,.86); border: 1px solid rgba(125,211,252,.28); box-shadow: 0 12px 28px rgba(0,0,0,.45); backdrop-filter: blur(4px); overflow: hidden; color: #e2f1f7; }
.sim-hc .hc-cab { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: linear-gradient(135deg, rgba(8,145,178,.9), rgba(13,148,136,.9)); color: #fff; border: 0; cursor: pointer; font: inherit; text-align: left; }
.sim-hc .hc-cab b { font-size: .8rem; flex: 1; } .sim-hc .hc-n { background: rgba(255,255,255,.25); border-radius: 999px; padding: 1px 8px; font-weight: 800; } .sim-hc .hc-cab i { font-style: normal; transition: transform .3s; }
.sim-hc.plegado { bottom: auto; } .sim-hc.plegado .hc-cuerpo { display: none; } .sim-hc.plegado .hc-cab i { transform: rotate(-90deg); }
.sim-hc .hc-cuerpo { overflow-y: auto; padding: 6px 8px 10px; display: flex; flex-direction: column; gap: 5px; scrollbar-width: thin; }
.sim-hc .hc-f { display: none; flex-direction: column; padding: 6px 8px; border-radius: 9px; background: rgba(255,255,255,.06); border-left: 3px solid #2dd4bf; }
.sim-hc .hc-f.on { display: flex; animation: hc-entra .5s cubic-bezier(.34,1.4,.64,1) both; }
@keyframes hc-entra { from { opacity: 0; transform: translateX(14px) scale(.97); } to { opacity: 1; transform: none; } }
.sim-hc .k { font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: #7dd3c8; font-weight: 800; } .sim-hc .v { font-size: .74rem; line-height: 1.3; color: #f1f9fc; }
.sim-hc .hc-fg { display: none; } .sim-hc .hc-fg.on { display: block; animation: hc-entra .6s ease both; }
.sim-fg { width: 100%; height: auto; background: rgba(255,255,255,.05); border-radius: 10px; } .sim-fg .fg { fill: #0f2a3a; stroke: #7dd3fc; stroke-width: 1.6; } .sim-fg .fg.yo { fill: #0d9488; stroke: #fff; stroke-width: 2.4; } .sim-fg .fg-l { stroke: #7dd3fc; stroke-width: 1.4; fill: none; } .sim-fg .mu { stroke: #fca5a5; stroke-width: 1.6; } .sim-fg .fg-t { fill: #cfeff5; font-size: 7.5px; }
@media (max-width: 640px) { .acr3d-vp .sim-hc { width: 52%; top: 52px; } }

/* ----- gestograma (cálculo de EG y FPP) ----- */
.acr3d-vp .sim-gesto { position: absolute; left: 8px; right: 8px; bottom: 50px; z-index: 6; pointer-events: none; padding: 4px 6px 0; border-radius: 12px; background: rgba(8,18,30,.8); border: 1px solid rgba(125,211,252,.25); }
.sim-gesto .g-svg { width: 100%; height: auto; display: block; }
.sim-gesto .tri1 { fill: #1d4ed8; opacity: .55; } .sim-gesto .tri2 { fill: #0d9488; opacity: .55; } .sim-gesto .tri3 { fill: #be185d; opacity: .55; }
.sim-gesto .g-prog { fill: #fbbf24; opacity: .85; transition: width 1.4s cubic-bezier(.3,.7,.3,1); }
.sim-gesto .g-t { stroke: rgba(255,255,255,.35); stroke-width: 1; } .sim-gesto .g-m { fill: #bcd9e4; font-size: 7px; } .sim-gesto .g-s { fill: #e2f1f7; font-size: 7.5px; font-weight: 800; }
.sim-gesto .g-tit { fill: #e0f2fe; font-size: 9px; font-weight: 800; } .sim-gesto .g-eg { fill: #fde68a; font-size: 10px; font-weight: 800; }
.sim-gesto g[class^="g-m-"] { opacity: 0; transform: translateY(8px); transition: .5s cubic-bezier(.34,1.56,.64,1); transform-box: fill-box; } .sim-gesto g[class^="g-m-"].on { opacity: 1; transform: none; }
.sim-gesto g[class^="g-m-"] path { stroke: #fff; stroke-width: 1.2; } .sim-gesto g[class^="g-m-"] circle { fill: #0f2a3a; stroke: #fde68a; stroke-width: 1.6; } .sim-gesto g[class^="g-m-"] text { font-size: 9px; } .sim-gesto .g-l { fill: #fde68a; font-size: 7.4px; font-weight: 800; }

/* ----- examen ginecológico: vistas externa y especular, portaobjetos ----- */
.acr3d-vp .sim-vista { position: absolute; left: 10px; top: 104px; width: 168px; z-index: 7; padding: 7px 8px 8px; border-radius: 14px; background: rgba(8,18,30,.88); border: 1px solid rgba(125,211,252,.3); box-shadow: 0 12px 26px rgba(0,0,0,.45); opacity: 0; transform: translateX(-16px) scale(.96); transition: .4s cubic-bezier(.34,1.4,.64,1); pointer-events: none; }
.sim-vista[data-on="1"] { opacity: 1; transform: none; }
.sim-vista .sv-tit { color: #7dd3c8; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; } .sim-vista .sv-cap { color: #fde68a; font-size: .64rem; line-height: 1.25; margin-top: 4px; min-height: 2.4em; font-weight: 700; }
.sim-vista svg { width: 100%; height: auto; display: block; border-radius: 50%; }
.sv-ext .piel { fill: #e8b497; stroke: #c4866a; stroke-width: 2; } .sv-ext .vello circle { fill: #5a3b2a; } .sv-ext .mayor { fill: #d99a85; stroke: #b9746a; stroke-width: 1.4; } .sv-ext .menor { fill: #e8929e; stroke: #c4647a; stroke-width: 1.2; transition: transform .8s ease; transform-box: fill-box; }
.sv-ext .introito { fill: #b5485a; transition: transform .8s ease; transform-box: fill-box; transform-origin: center; } .sv-ext .clitoris { fill: #d9738a; } .sv-ext .meato { fill: #9a3b4d; } .sv-ext .et { fill: #4a2f22; font-size: 7.5px; font-weight: 800; }
.sv-ext.abierta .menor.izq { transform: translateX(-14px) rotate(-8deg); } .sv-ext.abierta .menor.der { transform: translateX(14px) rotate(8deg); } .sv-ext.abierta .introito { transform: scale(1.7); }
.sv-ext .lesion circle { fill: #b91c1c; stroke: #fecaca; stroke-width: 1.4; } .sv-ext .flujo { fill: #fffbe6; opacity: .92; } .sv-ext .dedos { opacity: 0; transition: opacity .4s; } .sv-ext.abierta .dedos { opacity: 1; } .sv-ext .dedo { fill: #72c9f2; stroke: #0b4f78; stroke-width: 1.4; }
.sv-esp { box-shadow: inset 0 0 0 3px #0b1220; } .sv-esp .exo { stroke: rgba(120,40,50,.5); stroke-width: 1.6; } .sv-esp .os { fill: #7a1d2b; } .sv-esp .ruga { stroke: rgba(120,40,50,.35); stroke-width: 2.6; } .sv-esp .ectro { fill: #d62839; opacity: .85; }
.sv-esp .moco { fill: #f6e58d; opacity: .9; } .sv-esp .polipo { fill: #e07a8a; stroke: #b24058; stroke-width: 1.6; } .sv-esp .friable { fill: #c0392b; opacity: .9; } .sv-esp .sangre { fill: #7f1d1d; } .sv-esp .placa { fill: #fffbe6; opacity: .95; }
.sv-esp .valvas path { fill: rgba(190,225,240,.38); stroke: rgba(150,200,225,.8); stroke-width: 2; } .sv-esp .ayre, .sv-esp .cito, .sv-esp .spray { opacity: 0; transform-origin: 0 0; } .sv-esp .vara, .sv-esp .vara2 { stroke: #e7c590; stroke-width: 5; stroke-linecap: round; fill: none; } .sv-esp .punta { fill: #f4d9a8; stroke: #c7a161; }
.sv-esp .cerdas path { stroke: #cbd5e1; stroke-width: 1.6; } .sv-esp.ayre-on .ayre { opacity: 1; animation: sv-ayre 1.8s ease-in-out infinite; } .sv-esp.cito-on .cito { opacity: 1; animation: sv-cito 1.4s ease-in-out infinite; } .sv-esp.spray-on .spray { opacity: 1; } .sv-esp .spray circle { fill: rgba(255,255,255,.8); animation: sv-spray 1.2s ease-out infinite; }
@keyframes sv-ayre { from { transform: rotate(0); } to { transform: rotate(360deg); } } @keyframes sv-cito { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(18deg); } } @keyframes sv-spray { from { opacity: 0; transform: translateY(14px) scale(.4); } to { opacity: .9; transform: translateY(-6px) scale(1.2); } }
.acr3d-vp .sim-portas { position: absolute; right: 10px; bottom: 58px; z-index: 6; display: flex; gap: 8px; align-items: flex-end; pointer-events: none; }
.sim-portas .pt { width: 58px; padding: 4px; border-radius: 6px; background: rgba(226,241,247,.92); text-align: center; box-shadow: 0 6px 14px rgba(0,0,0,.35); } .sim-portas .pt i { display: block; height: 20px; border-radius: 3px; background: #f8fafc; border: 1px solid #94a3b8; position: relative; overflow: hidden; } .sim-portas .pt small { font-size: .54rem; font-weight: 800; color: #0f172a; }
.sim-portas .pt i::after { content: ''; position: absolute; inset: 3px; border-radius: 40%; background: radial-gradient(circle at 30% 40%, #c026d3 0 12%, transparent 13%), radial-gradient(circle at 60% 60%, #a21caf 0 10%, transparent 11%), radial-gradient(circle at 75% 30%, #86198f 0 9%, transparent 10%); opacity: 0; transition: opacity .8s ease .3s; }
.sim-portas[data-s1="1"] .pt:first-child i::after { opacity: 1; } .sim-portas[data-s2="1"] .pt:nth-child(2) i::after { opacity: 1; }
.sim-portas .pt-fijador { padding: 6px 8px; border-radius: 8px; background: #16a34a; color: #fff; font-size: .6rem; font-weight: 800; opacity: 0; transform: scale(.8); transition: .4s cubic-bezier(.34,1.56,.64,1); } .sim-portas[data-fij="1"] .pt-fijador { opacity: 1; transform: none; }
@media (max-width: 640px) { .acr3d-vp .sim-vista { width: 120px; top: 98px; } }

/* ----- examen mamario: mapas de cuadrantes y postura ----- */
.sim-hud.mam .sim-mapas { position: absolute; right: 10px; top: 58px; display: flex; gap: 8px; opacity: 0; transform: translateX(20px); transition: .4s; padding: 6px 8px; border-radius: 12px; background: rgba(8,18,30,.86); border: 1px solid rgba(125,211,252,.28); }
.sim-hud.mam .sim-mapas[data-on="1"] { opacity: 1; transform: none; } .sim-mapas .mm { width: 92px; text-align: center; } .sim-mapas .mm b { display: block; font-size: .56rem; color: #7dd3c8; letter-spacing: .05em; text-transform: uppercase; } .sim-mapas .mm svg { width: 100%; height: auto; }
.sim-mapas .borde { fill: rgba(255,255,255,.04); stroke: #7dd3fc; stroke-width: 1.4; } .sim-mapas .q { fill: transparent; stroke: rgba(125,211,252,.4); stroke-width: 1; transition: fill .5s; } .sim-mapas .q.hecho { fill: rgba(45,212,191,.35); } .sim-mapas .q.act { fill: rgba(251,191,36,.6); }
.sim-mapas .areola { fill: #b9715a; } .sim-mapas .pez { fill: #7a3f2f; } .sim-mapas .nodulo { fill: #ef4444; stroke: #fff; stroke-width: 1.4; opacity: 0; transition: opacity .6s; } .sim-mapas .axila { fill: #f59e0b; stroke: #fff; opacity: 0; transition: opacity .6s; } .sim-mapas .mm-t { display: block; font-size: .52rem; color: #fde68a; font-weight: 700; line-height: 1.2; min-height: 2.4em; }
.sim-hud.mam .sim-postura { position: absolute; left: 12px; top: 100px; width: 86px; text-align: center; padding: 6px; border-radius: 12px; background: rgba(8,18,30,.86); border: 1px solid rgba(125,211,252,.28); opacity: 0; transform: translateX(-16px); transition: .4s; }
.sim-hud.mam .sim-postura[data-on="1"] { opacity: 1; transform: none; } .sim-postura svg { width: 100%; height: auto; stroke: #7dd3fc; stroke-width: 4; fill: none; stroke-linecap: round; } .sim-postura circle { fill: #7dd3fc; } .sim-postura .arms-alto { transition: opacity .5s; } .sim-postura span { font-size: .56rem; color: #fde68a; font-weight: 800; }

/* criterios plegables: el simulador queda más arriba */
details.acr-crit-wrap { padding: 8px 14px; } details.acr-crit-wrap > summary { cursor: pointer; list-style: none; margin: 0; } details.acr-crit-wrap > summary::-webkit-details-marker { display: none; }
details.acr-crit-wrap[open] > summary { margin-bottom: 10px; }
.acr-head { gap: 6px; }
.acr3d-vp .sim-gesto { right: calc(min(46%, 270px) + 18px); }
@media (max-width: 640px) { .acr3d-vp .sim-gesto { right: calc(52% + 14px); } }

/* familigrama que se dibuja: líneas trazadas, figuras que brotan, etiquetas que aparecen */
.sim-fg > path.fg-l { stroke-dasharray: 220; stroke-dashoffset: 220; animation: fg-traza .7s ease-out forwards; }
.sim-fg > circle, .sim-fg > rect { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: fg-brota .55s cubic-bezier(.34,1.7,.64,1) forwards; }
.sim-fg > circle.yo, .sim-fg > rect.yo { animation: fg-brota .55s cubic-bezier(.34,1.7,.64,1) forwards, fg-late 1.8s ease-in-out 1.6s infinite; }
.sim-fg > path.mu { stroke-dasharray: 60; stroke-dashoffset: 60; animation: fg-traza .5s ease-out forwards; }
.sim-fg > text { opacity: 0; animation: fg-texto .5s ease-out forwards; }
@keyframes fg-traza { to { stroke-dashoffset: 0; } }
@keyframes fg-brota { to { transform: scale(1); } }
@keyframes fg-texto { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fg-late { 50% { filter: drop-shadow(0 0 5px #2dd4bf); } }
@media (prefers-reduced-motion: reduce) { .sim-fg > * { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; } }

/* ---- Cirugía: HUD del lavado quirúrgico ---- */
.acr3d-vp .cir-hud { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.cir-hud .cir-vest { position: absolute; left: 10px; top: 58px; display: flex; flex-direction: column; gap: 4px; padding: 7px 10px; border-radius: 12px; background: rgba(8,18,30,.82); border: 1px solid rgba(125,211,252,.25); color: #cfe9f3; font-size: .7rem; }
.cir-hud .cir-vest b { color: #7dd3c8; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.cir-hud .cir-vest span { opacity: .45; filter: grayscale(1); transition: .4s; } .cir-hud .cir-vest span.on { opacity: 1; filter: none; transform: translateX(3px); }
.cir-hud .cir-vest span.on::after { content: ' ✓'; color: #34d399; font-weight: 800; }
.cir-hud .cir-reloj { position: absolute; right: 12px; top: 58px; width: 170px; padding: 8px 12px; border-radius: 14px; background: linear-gradient(135deg, #0891b2, #0d9488); color: #fff; opacity: 0; transform: translateY(-10px); transition: .4s; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.cir-hud .cir-reloj[data-on="1"] { opacity: 1; transform: none; } .cir-hud .cir-reloj small { display: block; font-size: .58rem; letter-spacing: .08em; opacity: .9; }
.cir-hud .cir-reloj b { font-size: 1.5rem; font-variant-numeric: tabular-nums; } .cir-hud .cir-reloj i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; margin: 3px 0; } .cir-hud .cir-reloj u { display: block; height: 100%; width: 0; background: #fde68a; transition: width .3s; }
.cir-hud .cir-reloj em { font-size: .58rem; font-style: normal; opacity: .9; } .cir-hud .cir-reloj.ok u { background: #34d399; }
.cir-hud .cir-nota { position: absolute; left: 50%; bottom: 62px; transform: translate(-50%, 10px); padding: 7px 14px; border-radius: 999px; background: rgba(8,18,30,.88); color: #e2f1f7; border: 1px solid rgba(45,212,191,.45); font-size: .76rem; font-weight: 700; opacity: 0; transition: .35s; max-width: 86%; text-align: center; }
.cir-hud .cir-nota[data-on="1"] { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .cir-hud .cir-reloj { width: 130px; } .cir-hud .cir-vest { font-size: .62rem; } }

/* Visor 3D: viñeta suave que da profundidad y enfoca la mirada en el modelo (no intercepta clics) */
.acr3d-vp::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at 50% 46%, transparent 58%, rgba(2, 8, 24, .38) 100%); border-radius: inherit; }

/* sugerencias cuando no se entiende una frase de la bitácora */
.acr-sugs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.acr-sug { text-align: left; border: 1.5px solid var(--acr-borde, rgba(99, 102, 241, .5)); background: rgba(99, 102, 241, .1); color: inherit; border-radius: 12px; padding: 8px 12px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.acr-sug:hover { transform: translateX(3px); background: rgba(99, 102, 241, .22); box-shadow: 0 8px 18px -12px rgba(99, 102, 241, .8); }
.acr-sug::before { content: '➜ '; opacity: .7; }
