/* Ánima: carta védica interactiva. Usa los tokens de anima.css. */
.vd-root { position: relative; display: flex; flex-direction: column; gap: 12px; color: var(--ivory); max-width: 560px; margin: 0 auto; padding: 8px 0 16px; }
.vd-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.vd-chip { border: 1px solid var(--uv-border); border-radius: 999px; padding: 6px 12px; background: var(--card); color: var(--ivory-dim); }
.vd-escena { position: relative; width: 100%; }
.vd-svg { display: none; width: 100%; height: auto; touch-action: manipulation; }
.vd-svg.on { display: block; }
.vd-casa { fill: var(--card); stroke: var(--line); stroke-width: 1; transition: fill .4s var(--ease); }
.vd-casa-par { fill: var(--deep); }
.vd-casa.vd-foco { fill: var(--uv-dim); stroke: var(--uv); }
.vd-num { fill: var(--gold); font-size: 13px; text-anchor: middle; dominant-baseline: middle; font-weight: 700; }
.vd-signo-t { fill: var(--gray); font-size: 10px; text-anchor: middle; dominant-baseline: middle; }
.vd-centro { fill: var(--ivory-dim); font-size: 15px; text-anchor: middle; font-style: italic; }
.vd-lagna { stroke: var(--gold); stroke-width: 2; }
.vd-lagna-t { fill: var(--gold); font-size: 10px; text-anchor: middle; }
.vd-graha { cursor: pointer; outline: none; }
.vd-graha .vd-disco { stroke: var(--void); stroke-width: 2; opacity: .85; transition: opacity .3s; }
.vd-graha.vd-hallado .vd-disco { opacity: 1; stroke: var(--gold); }
.vd-graha:focus-visible .vd-disco, .vd-graha:hover .vd-disco { stroke: var(--ivory); stroke-width: 3; opacity: 1; }
.vd-graha-t { fill: #0b0a12; font-size: 9px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.vd-flag { fill: var(--gold); font-size: 9px; font-weight: 700; pointer-events: none; }
.vd-eje { fill: var(--gray); font-size: 10px; }
.vd-tramo { cursor: pointer; outline: none; }
.vd-tramo rect { opacity: .55; stroke: var(--void); stroke-width: 1; transition: opacity .3s; }
.vd-tramo.vd-actual rect { opacity: 1; stroke: var(--gold); stroke-width: 1.5; }
.vd-tramo:focus-visible rect, .vd-tramo:hover rect { opacity: 1; stroke: var(--ivory); stroke-width: 2; }
.vd-tramo-t { fill: var(--ivory-dim); font-size: 8.5px; text-anchor: middle; pointer-events: none; }
.vd-hoy { stroke: var(--gold); stroke-width: 2; }
.vd-hoy-p { fill: var(--gold); }
.vd-hoy-t { fill: var(--gold); font-size: 10px; text-anchor: middle; }
.vd-cono { fill: var(--uv-dim); stroke: none; }
.vd-nivel { opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.vd-nivel.on { opacity: 1; pointer-events: auto; }
.vd-panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.vd-titulo { margin: 0; font-size: 24px; line-height: 1.15; color: var(--ivory); font-weight: 500; }
.vd-texto { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ivory-dim); max-width: 62ch; }
.vd-pista { margin: 0; font-size: 13px; color: var(--gold); }
.vd-nav { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.vd-btn { font: inherit; font-weight: 600; min-height: 44px; min-width: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--uv-border); background: transparent; color: var(--ivory); cursor: pointer; }
.vd-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vd-btn[disabled] { opacity: .35; cursor: default; }
.vd-icono { padding: 0; width: 44px; font-size: 18px; }
.vd-icono.vd-off { opacity: .5; }
.vd-primario { flex: 1; background: var(--uv); border-color: var(--uv); color: var(--void); }
.vd-ancho { width: 100%; margin-top: 6px; }
.vd-hoja { position: fixed; inset: 0; display: none; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .5); z-index: 40; }
.vd-hoja.on { display: flex; }
.vd-caja { background: var(--card); border: 1px solid var(--uv-border); border-radius: 18px 18px 0 0; width: 100%; max-width: 560px; max-height: 78vh; max-height: min(78dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 12px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 16px) max(18px, env(safe-area-inset-left, 0px)); }
.vd-donde { color: var(--gold); font-size: 14px; margin: 4px 0 10px; }
.vd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.vd-tag { font-size: 12px; border: 1px solid var(--uv-border); border-radius: 999px; padding: 3px 9px; color: var(--ivory-dim); }
.vd-cuerpo p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--ivory); max-width: 60ch; }
.vd-ok { color: var(--gold) !important; font-weight: 600; }
.vd-aviso { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 16px); transform: translateX(-50%); background: var(--gold); color: var(--void); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 50; }
.vd-aviso.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .vd-casa, .vd-nivel, .vd-aviso, .vd-tramo rect, .vd-graha .vd-disco { transition: none; }
}

/* Lecciones de vida (vista C) */
.vd-lecc { display: none; flex-direction: column; gap: 10px; padding: 4px 2px 8px; }
.vd-lecc.on { display: flex; }
.vd-l-tira { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; }
.vd-l-tira span { display: block; background: var(--line); }
.vd-l-tira span.p { background: rgba(139, 108, 255, .28); }
.vd-l-tira span.a { background: var(--uv); }
.vd-l-lb { position: relative; display: flex; justify-content: space-between; font-size: .72rem; color: var(--gray); font-variant-numeric: tabular-nums; }
.vd-l-grande, .vd-l-dentro { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; width: 100%; background: var(--card); color: var(--ivory); font-family: inherit; border: 1px solid var(--uv); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
.vd-l-dentro { border-color: var(--line); padding: 10px 14px; }
.vd-l-f { font-size: .78rem; color: var(--gray); font-variant-numeric: tabular-nums; }
.vd-l-ahora { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--void); background: var(--uv); border-radius: 99px; padding: 1px 8px; }
.vd-l-lec { font-size: 1.15rem; line-height: 1.35; font-style: italic; color: var(--ivory); }
.vd-l-k { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-top: 6px; }
.vd-l-v { font-size: .88rem; line-height: 1.55; color: var(--ivory-dim); margin: 0; }
.vd-l-sig { padding: 0 4px; }
.vd-l-det { border-bottom: 1px solid var(--line); padding: 10px 4px; }
.vd-l-det summary { cursor: pointer; font-size: .9rem; color: var(--ivory); }
.vd-l-det[open] summary { margin-bottom: 6px; }
.vd-l-grande:focus-visible, .vd-l-dentro:focus-visible, .vd-l-det summary:focus-visible { outline: 2px solid var(--uv); outline-offset: 2px; }
.vd-l-hoy { position: absolute; transform: translateX(-50%); color: var(--uv); white-space: nowrap; }
