/* «Qué ve un espía de la cadena» (privacidad.html) */
.espia .content { max-width: 760px; }
.es-lab { margin: 36px 0 28px; border: 1px solid var(--line, rgba(255,255,255,.09)); border-radius: 24px; background: var(--surface, #0d0d0e); padding: clamp(18px, 3vw, 32px); }
.es-ctrl-t, .es-panel h3 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--orange, #F7931A); margin: 0 0 12px; font-weight: 600; }
.es-ctrl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.es-tg { text-align: left; font: inherit; color: var(--bone, #f5f5f7); background: #000; border: 1px solid var(--line-strong, rgba(255,255,255,.16)); border-radius: 14px; padding: 12px 14px 12px 50px; cursor: pointer; position: relative; transition: border-color .25s, background .25s; min-height: 44px; }
.es-tg::before { content: ""; position: absolute; left: 14px; top: 15px; width: 26px; height: 14px; border-radius: 10px; background: #2a2a2e; transition: background .25s; }
.es-tg::after { content: ""; position: absolute; left: 16px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--ash, #8e8e93); transition: transform .25s var(--ease, ease), background .25s; }
.es-tg[aria-pressed="true"] { border-color: var(--orange, #F7931A); background: rgba(247,147,26,.07); }
.es-tg[aria-pressed="true"]::before { background: rgba(247,147,26,.4); }
.es-tg[aria-pressed="true"]::after { transform: translateX(12px); background: var(--orange, #F7931A); }
.es-tg strong { display: block; font-size: .95rem; font-weight: 600; }
.es-tg span { display: block; font-size: .82rem; line-height: 1.45; color: var(--ash-aa, #9a9aa0); margin-top: 3px; }
.es-tg:hover { border-color: rgba(247,147,26,.6); }
.es-tg:focus-visible, .es-btn:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 2px #000, 0 0 0 4px #F7931A); }
.es-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.es-btn { font: inherit; font-size: .82rem; color: var(--ash-aa, #9a9aa0); background: none; border: 1px solid var(--line-strong, rgba(255,255,255,.16)); border-radius: 100px; padding: 8px 16px; cursor: pointer; min-height: 36px; }
.es-btn:hover { color: var(--bone, #f5f5f7); border-color: var(--orange, #F7931A); }

.es-fig { margin: 22px 0 0; }
.es-graph { width: 100%; min-height: 200px; }
.es-svg { display: block; width: 100%; height: auto; overflow: visible; }
.es-e { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1.5; animation: es-draw .6s var(--ease, ease) both; }
.es-e.lk { stroke: rgba(247,147,26,.75); stroke-width: 2; stroke-dasharray: 5 4; }
@keyframes es-draw { from { opacity: 0; } to { opacity: 1; } }
.es-n { transition: transform .7s var(--ease, ease), opacity .45s; }
.es-n.gone { opacity: 0; pointer-events: none; }
.es-c .dot { fill: #111114; stroke: var(--ash-dim, #5c5c61); stroke-width: 1.5; transition: fill .45s, stroke .45s; }
.es-c .ring { fill: none; stroke: transparent; stroke-width: 2; }
.es-c.mine .ring { stroke: rgba(255,255,255,.85); }
.es-c .lb { font-family: var(--mono); font-size: 11px; font-weight: 600; fill: var(--bone, #f5f5f7); paint-order: stroke; stroke: #000; stroke-width: 0; }
.es-c .am { font-family: var(--mono); font-size: 10px; fill: var(--ash-aa, #9a9aa0); }
.es-c .bad { font-family: var(--font); font-weight: 900; font-size: 15px; fill: #fff; opacity: 0; paint-order: stroke; stroke: #c0392b; stroke-width: 4px; }
.es-c.st-you .dot { fill: var(--orange, #F7931A); stroke: var(--orange, #F7931A); }
.es-c.st-you .lb { fill: #000; }
.es-c.st-doubt .dot { fill: url(#esHatch); stroke: var(--orange, #F7931A); stroke-dasharray: 3 2; }
.es-c.st-doubt .lb { stroke-width: 3px; }
.es-c.st-group .dot { fill: #22305a; stroke: #7d9bff; }
.es-c.fp .bad { opacity: 1; }
.es-c.fp .ring { stroke: #fff; stroke-dasharray: 3 3; }
.es-c.re .lb { text-decoration: underline; }
.es-c.grp .lb { font-size: 10px; }
.es-tx .box { fill: #000; stroke: var(--line-strong, rgba(255,255,255,.16)); }
.es-tx.cj .box { stroke: #7d9bff; stroke-dasharray: 4 3; }
.es-tx .lb { font-family: var(--font); font-size: 12px; font-weight: 600; fill: var(--ash-aa, #9a9aa0); }
.es-vert .es-tx .lb { font-size: 11px; }
.es-vert .es-c .am { font-size: 9px; }

/* Entrada escalonada al hacer scroll */
.es-js:not(.es-on) .es-n { opacity: 0; }
.es-js.es-on .es-n { transition-delay: calc(var(--k, 0) * 45ms), calc(var(--k, 0) * 45ms); }
.es-js.es-on.es-done .es-n { transition-delay: 0s; }

.es-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 14px 0 0; padding: 0; font-size: .8rem; color: var(--ash-aa, #9a9aa0); }
.es-legend li { display: flex; align-items: center; gap: 7px; }
.es-legend i, .es-list i { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ash-dim, #5c5c61); background: #111114; flex: none; }
.es-legend .st-you i, .es-list .st-you i { background: var(--orange, #F7931A); border-color: var(--orange, #F7931A); }
.es-legend .st-doubt i, .es-list .st-doubt i { background: repeating-linear-gradient(45deg, #F7931A 0 2px, #1a1206 2px 4px); border: 1.5px dashed var(--orange, #F7931A); }
.es-legend .st-group i, .es-list .st-group i { background: #22305a; border-color: #7d9bff; }
.es-legend .mine i { background: transparent; border: 2px solid #fff; }
.es-legend .fp b { color: #fff; background: #c0392b; border-radius: 4px; padding: 0 5px; font-weight: 900; }

.es-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; margin-top: 22px; }
.es-panel { background: #000; border: 1px solid var(--line, rgba(255,255,255,.09)); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.es-count { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.es-count b { font-family: var(--mono); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--orange, #F7931A); font-weight: 600; }
.es-count span { color: var(--bone, #f5f5f7); font-size: 1rem; }
.es-extra { font-size: .85rem; color: var(--ash-aa, #9a9aa0); margin: 6px 0 0; min-height: 1.2em; }
.es-bal-t { font-size: .85rem; color: var(--ash-aa, #9a9aa0); margin: 18px 0 6px; }
.es-bar { height: 10px; border-radius: 6px; background: #1c1c20; overflow: hidden; display: flex; }
.es-bar::before { content: ""; width: var(--p, 0%); background: var(--orange, #F7931A); transition: width .6s var(--ease, ease); }
.es-bar::after { content: ""; width: var(--d, 0%); background: repeating-linear-gradient(45deg, #F7931A 0 3px, #1a1206 3px 6px); transition: width .6s var(--ease, ease); }
.es-bal { font-family: var(--mono); font-size: .8rem; color: var(--bone, #f5f5f7); margin: 8px 0 0; }
.es-heur { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.es-heur li { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 7px 10px; border-radius: 10px; background: #111114; color: var(--ash-aa, #9a9aa0); }
.es-heur li strong { font-weight: 600; }
.es-heur li.hit { color: var(--bone, #f5f5f7); }
.es-heur li.hit strong { color: var(--orange, #F7931A); }
.es-panel + .es-panel h3, .es-panel h3 + .es-heur + h3 { margin-top: 18px; }
.es-clues { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.es-clues li { font-size: .9rem; line-height: 1.55; color: var(--ash-aa, #9a9aa0); padding: 8px 10px 8px 34px; position: relative; border-radius: 10px; background: #0b0b0d; }
.es-clues li b { color: var(--bone, #f5f5f7); font-weight: 600; }
.es-clues li::before { position: absolute; left: 10px; top: 8px; font-weight: 700; font-family: var(--mono); }
.es-clues li.hit::before { content: "●"; color: var(--orange, #F7931A); }
.es-clues li.miss::before { content: "○"; color: #6fcf97; }
.es-clues li.wrong::before { content: "!"; color: #fff; background: #c0392b; border-radius: 4px; width: 16px; text-align: center; line-height: 18px; }
.es-list-w { margin-top: 18px; }
.es-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.es-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; font-size: .86rem; padding: 8px 10px; border-radius: 10px; background: #0b0b0d; }
.es-list .ad { font-family: var(--mono); color: var(--bone, #f5f5f7); white-space: nowrap; }
.es-list .ro { grid-column: 2 / 4; grid-row: 2; color: var(--ash-aa, #9a9aa0); font-size: .8rem; }
.es-list strong { font-weight: 600; font-size: .8rem; color: var(--ash-aa, #9a9aa0); text-align: right; }
.es-list .st-you strong { color: var(--orange, #F7931A); }
.es-list .fp strong { color: #ff8a7a; }
.es-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.es-explain h3 { font-size: 1.15rem; margin: 0 0 12px; }
.es-explain p { font-size: 1rem !important; line-height: 1.7 !important; margin: 0 0 12px; color: var(--ash, #8e8e93); }
.es-explain strong { color: var(--bone, #f5f5f7); }
.es-note { font-size: .88rem; color: var(--ash-aa, #9a9aa0); border-left: 3px solid var(--orange, #F7931A); padding: 4px 0 4px 14px; margin: 18px 0 0; line-height: 1.6; }
.es-src { font-size: .85rem; color: var(--ash-aa, #9a9aa0); margin-top: 14px; line-height: 1.7; }
.es-src a { color: var(--bone, #f5f5f7); text-decoration: underline dotted var(--orange, #F7931A); text-underline-offset: 3px; }
.es-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .es-out, .es-explain { grid-template-columns: 1fr; }
  .es-lab { margin-left: -6px; margin-right: -6px; }
}
@media (max-width: 420px) {
  .es-lab { padding: 14px; border-radius: 18px; }
  .es-panel { padding: 14px; }
  .es-tg { padding: 10px 12px 10px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .es-n, .es-c .dot, .es-bar::before, .es-bar::after, .es-tg, .es-tg::after { transition: none !important; }
  .es-e { animation: none; }
}
