/* Planos en diseño (ver planos.js): líneas finas sobre fondo oscuro */
.lp {
  --lp-line: rgba(255, 255, 255, .34);
  --lp-soft: rgba(255, 255, 255, .16);
  position: relative;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #121514;
  color: #fff;
}
.lp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.lp-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.lp-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
.lp-tabs button {
  margin: 0; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; letter-spacing: .02em; color: rgba(255, 255, 255, .38);
  transition: color .25s;
}
.lp-tabs button:hover, .lp-tabs button[aria-selected="true"] { color: #fff; }
.lp-tabs button:focus-visible { outline: 1px solid #fff; outline-offset: 3px; border-radius: 4px; }

.lp-stage { padding: 6px 0; }
.lp-svg { display: block; width: 100%; height: auto; max-height: 440px; overflow: visible; }
.lp-wall { fill: none; stroke: var(--lp-line); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.lp-outer { stroke-width: 2.6; }
.lp-thin { stroke-width: 1.4; stroke: var(--lp-soft); }
.lp-door { fill: none; stroke: var(--lp-soft); stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.lp-furn { fill: none; stroke: var(--lp-soft); stroke-width: 1.1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }

/* Estancias */
.lp-room { cursor: pointer; outline: none; }
.lp-hit { fill: transparent; transition: fill .4s; }
.lp-hl { fill: none; stroke: #fff; stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.lp-label { font-family: var(--f-body); letter-spacing: .08em; fill: rgba(255, 255, 255, .42); transition: fill .3s; pointer-events: none; }
.lp-room.is-on .lp-hit { fill: rgba(255, 255, 255, .035); }
.lp-room.is-on .lp-hl { opacity: 1; animation: lp-trace 1.1s cubic-bezier(.65, 0, .35, 1) forwards; }
.lp-room.is-on .lp-label { fill: #fff; }
.lp-room:focus-visible .lp-hit { fill: rgba(255, 255, 255, .06); }
@keyframes lp-trace { to { stroke-dashoffset: 0; } }

/* Al aparecer, los muros se dibujan */
.lp.is-drawn .lp-draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lp-trace 1.6s cubic-bezier(.65, 0, .35, 1) forwards; }
.lp.is-drawn .lp-draw .lp-door, .lp.is-drawn .lp-draw .lp-furn { opacity: 0; animation: lp-fade .6s ease .9s forwards; }
@keyframes lp-fade { to { opacity: 1; } }

/* Cifras grandes, como en el vídeo */
.lp-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.lp-stat { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.lp-num { display: flex; align-items: baseline; gap: 6px; color: #fff; }
.lp-num b { font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 4.4vw, 56px); line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-num i { font-style: normal; font-size: 15px; color: rgba(255, 255, 255, .6); }
.lp-stat--total { text-align: right; align-items: flex-end; }
.lp-stat--total .lp-num b { font-size: clamp(20px, 2vw, 26px); }
.lp-room-name { text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
.lp-hint { margin: 10px 0 0; font-size: 12px; color: rgba(255, 255, 255, .4); }

@media (max-width: 640px) {
  .lp { padding: 14px 14px 16px; }
  .lp-stat--total { text-align: left; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lp.is-drawn .lp-draw [pathLength], .lp-room.is-on .lp-hl { animation: none; stroke-dashoffset: 0; }
  .lp.is-drawn .lp-draw .lp-door, .lp.is-drawn .lp-draw .lp-furn { animation: none; opacity: 1; }
}
.lp-tech { color: rgba(255, 255, 255, .75); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lp-tech:hover { color: #fff; }
