/* ----------------------------------------------------------------------------
   ACE NUTRITIONS. — Hoja de Componente 16
   Extraida de `tokens.css` en la Iteracion 07.7 (Regla #011).
   El ORDEN de carga en `app-shell.html` reproduce el del archivo original:
   la cascada CSS depende de el y no debe alterarse.
   -------------------------------------------------------------------------- */
/* ============================================================================
   SIMULADOR 3D "ANTES VS. DESPUÉS" (TU YO DEL FUTURO · FUTURE-ME + GHOST 3D)
   ============================================================================ */

/* 1. Módulo en /calculadora (.pn-future-3d-card) */
.pn-future-3d-card {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.42);
}

.pn-future-stage-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 14px;
}

.pn-future-stage-grid.is-dual-stage-layout {
  grid-template-columns: 1fr;
  gap: 18px;
}

.pn-future-viewport {
  background: radial-gradient(circle at 50% 42%, rgba(13, 148, 136, 0.24), rgba(2, 6, 23, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pn-mirror-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pn-mirror-pose-btn {
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: rgba(14, 165, 233, 0.14);
  color: rgb(125, 211, 252);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pn-mirror-pose-btn:hover,
.pn-mirror-pose-btn.is-active {
  background: rgba(20, 184, 166, 0.24);
  border-color: rgb(45, 212, 191);
  color: rgb(240, 253, 250);
}

.pn-dual-3d-viewport {
  padding: 18px;
  gap: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.pn-dual-3d-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.pn-dual-3d-chamber {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(9, 13, 22, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.pn-dual-3d-chamber.is-before-chamber {
  border-color: rgba(251, 146, 60, 0.38);
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.09) 0%, rgba(9, 13, 22, 0.86) 100%);
}

.pn-dual-3d-chamber.is-after-chamber {
  border-color: rgba(45, 212, 191, 0.52);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.15) 0%, rgba(9, 13, 22, 0.88) 100%);
  box-shadow: 0 0 32px rgba(20, 184, 166, 0.16);
}

.pn-chamber-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pn-chamber-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pn-chamber-tag.is-before {
  color: rgb(253, 186, 116);
}

.pn-chamber-tag.is-before::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(251, 146, 60);
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.7);
}

.pn-chamber-tag.is-after {
  color: rgb(94, 234, 212);
}

.pn-chamber-tag.is-after::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(45, 212, 191);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.85);
}

.pn-chamber-weight {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(251, 146, 60, 0.36);
  color: rgb(254, 215, 170);
}

.pn-chamber-weight.is-goal {
  border-color: rgba(45, 212, 191, 0.55);
  color: rgb(94, 234, 212);
  background: rgba(13, 148, 136, 0.24);
}

.pn-chamber-bio-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 11px;
  color: rgb(148, 163, 184);
  text-align: center;
}

.pn-chamber-bio-strip strong {
  color: rgb(241, 245, 249);
  font-family: var(--font-mono);
  font-weight: 800;
}

.pn-chamber-bio-strip.is-goal {
  border-color: rgba(45, 212, 191, 0.32);
  background: rgba(13, 148, 136, 0.12);
}

.pn-chamber-bio-strip.is-goal strong {
  color: rgb(153, 246, 228);
}

.pn-chamber-foot {
  font-size: 11.5px;
  color: rgb(148, 163, 184);
  text-align: center;
  font-weight: 600;
}

.pn-chamber-foot.is-goal {
  color: rgb(153, 246, 228);
}

.pn-dual-3d-vs-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 6px 4px;
  position: relative;
}

.pn-mirror-axis-line {
  width: 2px;
  flex: 1;
  min-height: 22px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(45, 212, 191, 0.55), rgba(56, 189, 248, 0.08));
  border-radius: 999px;
}

.pn-vs-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 900;
  color: rgb(56, 189, 248);
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid rgba(56, 189, 248, 0.52);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
  flex-shrink: 0;
}

.pn-vs-delta-pill {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.22);
  border: 1px solid rgba(45, 212, 191, 0.44);
  color: rgb(94, 234, 212);
  text-align: center;
}

.pn-vs-delta-pill small {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(203, 213, 225, 0.85);
}

.pn-vs-delta-pill strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.pn-vs-delta-pill.is-weight {
  background: rgba(251, 146, 60, 0.16);
  border-color: rgba(251, 146, 60, 0.44);
  color: rgb(253, 186, 116);
}

.pn-vs-delta-pill.is-bf {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.42);
  color: rgb(125, 211, 252);
}

.pn-vs-delta-pill.is-muscle {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.44);
  color: rgb(110, 231, 183);
}

.pn-future-3d-stage-wrap {
  position: relative;
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(20, 184, 166, 0.14), rgba(2, 6, 23, 0.62));
}

.pn-future-3d-stage-wrap.is-dual-canvas-wrap {
  height: 410px;
}

.pn-future-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.pn-future-3d-canvas:active {
  cursor: grabbing;
}

.pn-future-3d-rot-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgb(148, 163, 184);
  pointer-events: none;
}

.pn-hand-atlas-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 12px;
}

.pn-hand-edu-3d-frame {
  padding: 16px;
}

.pn-hand-edu-3d-viewport {
  width: 100%;
  border: none;
  padding: 4px;
  background: transparent;
}

.pn-future-3d-stage-wrap.is-edu-stage {
  height: 360px;
}

.pn-hand-3d-badges-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.pn-hand-3d-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgb(226, 232, 240);
  text-align: center;
}

@media (max-width: 860px) {
  .pn-dual-3d-arena {
    grid-template-columns: 1fr;
  }
  .pn-dual-3d-vs-bridge {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 6px 0;
  }
  .pn-mirror-axis-line {
    display: none;
  }
  .pn-vs-delta-pill {
    width: auto;
    flex: 1 1 110px;
  }
  .pn-hand-atlas-layout {
    grid-template-columns: 1fr;
  }
}

.pn-future-svg {
  width: 100%;
  max-width: 220px;
  height: 240px;
  overflow: visible;
}

.pn-future-grid-line {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.pn-future-grid-line.is-waist {
  stroke: rgba(45, 212, 191, 0.42);
}

.pn-ghost-before-path {
  fill: rgba(148, 163, 184, 0.08);
  stroke: rgba(148, 163, 184, 0.72);
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
  transition: d 0.18s ease;
}

.pn-morph-after-path {
  fill: rgba(20, 184, 166, 0.28);
  stroke: rgb(45, 212, 191);
  stroke-width: 2.2;
  transition: d 0.15s ease;
}

.pn-morph-core-path {
  fill: rgba(56, 189, 248, 0.18);
  stroke: rgba(56, 189, 248, 0.55);
  stroke-width: 1.2;
  transition: d 0.15s ease;
}

.pn-future-node {
  fill: rgb(56, 189, 248);
}

.pn-future-node.is-waist {
  fill: rgb(45, 212, 191);
}

.pn-future-stage-caption {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.92);
  text-align: center;
}

.pn-future-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pn-future-controls.is-wide-dashboard {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: stretch;
}

.pn-future-timeline-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pn-future-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pn-future-preset-btn {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  color: rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pn-future-preset-btn:hover,
.pn-future-preset-btn.is-active {
  border-color: rgb(45, 212, 191);
  background: rgba(13, 148, 136, 0.25);
  color: rgb(255, 255, 255);
}

.pn-future-slider-wrap {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pn-future-slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.95);
}

.pn-future-range,
.ace-future-range {
  width: 100%;
  accent-color: var(--jade);
  cursor: pointer;
}

.pn-future-deltas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pn-future-delta-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pn-future-delta-box strong {
  font-size: 14px;
  color: rgb(248, 250, 252);
}

.pn-future-gate-cta {
  background: rgba(13, 148, 136, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.95);
}

@media (max-width: 960px) {
  .pn-future-controls.is-wide-dashboard {
    grid-template-columns: 1fr;
  }
  .pn-future-deltas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2. Módulo en /studio Paso 3 (.ace-future-me-box) */
.ace-future-me-box {
  margin-top: 14px;
  background: var(--bg-studio);
  border: 1px solid var(--jade);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ace-future-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ace-future-presets .ace-btn.is-active {
  background: var(--jade);
  color: var(--bg-surface);
  border-color: var(--jade);
}
