.muted { color: var(--gris); font-size: .88rem; }
.scan-steps { list-style: none; counter-reset: paso; padding: 0; margin: 1.4rem 0; display: grid; gap: .8rem; }
.scan-steps li { counter-increment: paso; position: relative; padding: .9rem 1rem .9rem 3.6rem; background: var(--crema); border: 1px solid var(--borde); border-radius: 14px; display: flex; flex-direction: column; }
.scan-steps li::before { content: counter(paso); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--verde-700); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; }
.scan-steps span { color: var(--gris); font-size: .93rem; }
.scan-tips { background: var(--verde-100); border: 1px solid #cfe3d4; border-radius: 14px; padding: 1.1rem 1.3rem; margin: 1.2rem 0; }
.scan-tips h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.scan-tips ul { margin: 0; padding-left: 1.2rem; }
.scan-tips li { margin: .3rem 0; }
.scan-upload { display: grid; gap: 1.2rem; }
.eye-pick { border: 1px solid var(--borde); border-radius: 16px; padding: 1.1rem 1.2rem 1.2rem; margin: 0; min-width: 0; }
.eye-pick legend { font-family: var(--font-serif); font-size: 1.25rem; color: var(--verde-900); padding: 0 .5rem; }
.eye-file { cursor: pointer; }
.scan-upload.is-enhanced .eye-file input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.scan-upload:not(.is-enhanced) .eye-file input { display: block; margin-top: .6rem; }
.eye-crop { margin-top: 1rem; }
.eye-stage { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #808080; }
.eye-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.eye-guide { position: absolute; left: 50%; top: 50%; width: 71.43%; height: 71.43%; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed #fff; box-shadow: 0 0 0 999px rgba(0, 0, 0, .38); pointer-events: none; }
.eye-zoom { display: block; width: min(100%, 420px); margin: 1rem auto .4rem; font-weight: 600; font-size: .92rem; color: var(--verde-900); }
.eye-zoom input { display: block; width: 100%; margin-top: .4rem; accent-color: var(--verde-700); height: 2rem; }
.eye-crop .note { text-align: center; }
.scan-upload .btn-lg { width: 100%; }
.scan-eye { margin: 1.8rem 0; padding-top: 1.4rem; border-top: 1px solid var(--borde); }
.scan-eye h2, .scan-notes h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.eye-frame { position: relative; width: min(100%, 520px); margin: 0 auto 1.2rem; border-radius: 16px; overflow: hidden; background: #2b2b2b; }
.eye-frame img { display: block; width: 100%; height: auto; }
.eye-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eye-zone { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; stroke-linejoin: round; }
.eye-z { cursor: pointer; }
.eye-z.stage-agudo .eye-zone, .eye-z.stage-subagudo .eye-zone { fill: rgba(255, 205, 60, .3); stroke: #ffd24a; stroke-width: 2.5; }
.eye-z.stage-cronico .eye-zone, .eye-z.stage-degenerativo .eye-zone { fill: rgba(235, 96, 50, .38); stroke: #ff7a4d; stroke-width: 2.5; }
.eye-z.is-on .eye-zone { fill: rgba(255, 255, 255, .5); stroke: #fff; stroke-width: 6; }
.eye-z.is-on .eye-dot { fill: #fff; }
.eye-zones .eye-z.is-on text { fill: #1f3d2b; }
.eye-svg.has-pick .eye-z:not(.is-on) { opacity: .35; }
[data-zone] { cursor: pointer; }
.scan-findings li.is-on, .scan-system li.is-on, .scan-zones tr.is-on { background: #fff6d8; }
.scan-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .88rem; color: var(--gris); margin: 0 0 1rem; }
.scan-legend span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .4rem; border-radius: 3px; vertical-align: -.05rem; border: 2px solid #b9b9b9; }
.scan-legend .key-activo::before { background: #ffe08a; border-color: #e0a84a; }
.scan-legend .key-debil::before { background: #f1a283; border-color: #b5532f; }
.eye-mark { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mark-anillos_nerviosos { stroke: #5ee7ff; }
.mark-radios_solares { stroke: #ff6b5e; }
.mark-rosario_linfatico { stroke: #fff; stroke-width: 3; }
.eye-collar { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 10 9; opacity: .85; }
.scan-sub { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.scan-marks { list-style: none; padding: 0; margin: 0; }
.scan-marks li { display: flex; gap: .8rem; align-items: flex-start; margin: .7rem 0; }
.mark-key { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .25rem; border-radius: 50%; background: var(--verde-700); }
.mark-key.mark-anillos_nerviosos { background: #5ee7ff; }
.mark-key.mark-radios_solares { background: #ff6b5e; }
.mark-key.mark-rosario_linfatico { background: #fff; border: 2px solid var(--gris); }
.eye-dot { fill: #1f3d2b; stroke: #fff; stroke-width: 1.5; }
.eye-zones text { fill: #fff; font-weight: 700; font-family: var(--font-sans, sans-serif); }
.scan-findings { list-style: none; padding: 0; margin: 0; }
.scan-findings li { display: flex; gap: .8rem; align-items: flex-start; margin: .8rem 0; }
.scan-num { flex: none; min-width: 2rem; padding: .15rem .55rem; border-radius: 999px; background: var(--verde-900); color: #fff; font-weight: 700; font-size: .85rem; text-align: center; white-space: nowrap; }
.scan-notes { margin: 1.8rem 0; padding: 1.2rem 1.4rem; background: var(--crema); border: 1px solid var(--borde); border-radius: 14px; }
.scan-notes p { margin: 0; }
.scan-system { border: 1px solid var(--borde); border-radius: 12px; margin: .6rem 0; background: #fff; }
.scan-system summary { cursor: pointer; padding: .8rem 1rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; justify-content: space-between; }
.scan-system ul { list-style: none; margin: 0; padding: 0 1rem .6rem; }
.scan-system li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0 .6rem .8rem; border-top: 1px solid var(--borde); border-left: 4px solid var(--verde-100); margin-top: -1px; }
.scan-system li.stage-agudo, .scan-system li.stage-subagudo { border-left-color: #e0a84a; }
.scan-system li.stage-cronico, .scan-system li.stage-degenerativo { border-left-color: #b5532f; }
.scan-system li.stage-ilegible { border-left-color: var(--borde); color: var(--gris); }
.scan-preview { max-width: 760px; }
.scan-review.is-busy { opacity: .55; pointer-events: none; }
.scales { margin: 0 0 1.4rem; }
.scale-row { display: grid; grid-template-columns: 7.2rem 1fr 6.4rem; gap: .6rem; align-items: center; margin: .35rem 0; font-size: .9rem; }
.scale-main { font-weight: 700; padding-bottom: .45rem; margin-bottom: .55rem; border-bottom: 1px solid var(--borde); }
.scale-bar { display: block; width: 100%; height: 14px; }
.scale-head .scale-bar { display: grid; grid-template-columns: repeat(5, 1fr); height: auto; font-size: .68rem; color: var(--gris); text-align: center; }
.scale-stage { color: var(--gris); }
.scale-mark { fill: #1c1c1c; }
.band-agudo { fill: #f2c14e; }
.band-normal { fill: #6fb07f; }
.band-subagudo { fill: #e9a15b; }
.band-cronico { fill: #cf6b3f; }
.band-degenerativo { fill: #8f3b2e; }
@media (max-width: 480px) { .scale-row { grid-template-columns: 5.6rem 1fr 4.9rem; gap: .4rem; font-size: .8rem; } .scale-head { display: none; } }
