/* AcaDrop Lab — estilos del Laboratorio matemático y Metodología (extiende styles.css). */
.lab-page, .method-page { min-height: 100vh; display: flex; flex-direction: column; }
.main-nav a.nav-btn { text-decoration: none; }
.version-pill {
  font-size: 12px; color: var(--cyan); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.lab-main { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 16px; }
.lab-banner {
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--text-secondary); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13.5px; line-height: 1.5;
  margin-bottom: 14px;
}
.lab-banner code { color: var(--cyan); }
.lab-grid {
  display: grid; gap: 14px;
  grid-template-columns: 280px minmax(0, 1fr) 330px;
  grid-template-areas: "ctrl slice side" "ctrl d3 prof";
}
.lab-panel {
  background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow-glow); min-width: 0;
}
.lab-panel h2 { font-size: 14px; margin: 0 0 10px; color: var(--text-primary); letter-spacing: 0.01em; }
.lab-controls { grid-area: ctrl; }
.lab-slice { grid-area: slice; }
.lab-side { grid-area: side; }
.lab-3d { grid-area: d3; }
.lab-profiles { grid-area: prof; }
.lab-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.lab-field input[type=range] { width: 100%; accent-color: var(--cyan); }
.lab-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lab-val { color: var(--cyan); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lab-hint { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin: 6px 0 12px; }
.lab-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lab-error { color: var(--err); font-size: 12px; min-height: 1em; }
.lab-warn { color: var(--warn); padding: 12px; }
#slice-canvas { width: 100%; height: 420px; display: block; border-radius: var(--radius-sm); cursor: crosshair; }
.colorbar { width: 100%; height: 34px; display: block; margin-top: 6px; }
.surface-3d { width: 100%; height: 380px; border-radius: var(--radius-sm); overflow: hidden; }
.lab-3d-head { display: flex; justify-content: space-between; align-items: center; }
#profile-canvas { width: 100%; height: 380px; display: block; border-radius: var(--radius-sm); }
.readouts { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.ro-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; border-bottom: 1px solid rgba(56, 189, 248, 0.08); padding: 3px 0; }
.ro-k { color: var(--text-muted); flex: 0 0 auto; max-width: 48%; }
.ro-v { color: var(--text-primary); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ro-v small { color: var(--text-muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.probe-head { font-size: 12px; color: var(--cyan); margin-bottom: 4px; }
.probe-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); }
.probe-form input { width: 110px; }
.hidden { display: none !important; }

/* Metodología */
.method-main { flex: 1; max-width: 920px; margin: 0 auto; padding: 24px 18px 40px; color: var(--text-secondary); line-height: 1.65; }
.method-main h1 { color: var(--text-primary); font-size: 28px; margin-bottom: 6px; }
.method-main h2 { color: var(--text-primary); font-size: 20px; margin: 30px 0 8px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 4px; }
.method-main h3 { color: var(--cyan); font-size: 15px; margin: 18px 0 6px; }
.method-main code, .method-main .eq { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--text-primary); }
.method-main .eq { display: block; background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 10px 12px; margin: 8px 0; overflow-x: auto; white-space: pre; font-size: 13.5px; }
.method-main table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 10px 0; }
.method-main th, .method-main td { border: 1px solid var(--border-subtle); padding: 6px 8px; text-align: left; vertical-align: top; }
.method-main th { background: var(--surface-2); color: var(--text-primary); }
.method-main a { color: var(--cyan); }
.callout { border-left: 3px solid var(--warn); background: rgba(251, 191, 36, 0.06); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 14px 0; }
.concept-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3; font-size: 11.5px; font-weight: 600;
  color: #fde68a; background: rgba(120, 53, 15, 0.55); border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 999px; padding: 4px 10px; pointer-events: none;
}

@media (max-width: 1180px) {
  .lab-grid { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "ctrl slice" "side slice" "d3 d3" "prof prof"; }
}
@media (max-width: 760px) {
  .lab-grid { grid-template-columns: 1fr; grid-template-areas: "ctrl" "slice" "side" "d3" "prof"; }
  #slice-canvas { height: 300px; }
  .surface-3d, #profile-canvas { height: 300px; }
  .version-pill { display: none; }
}

/* Explorador móvil: navegación desplazable y distintivo conceptual sin tapar etiquetas */
@media (max-width: 760px) {
  .main-nav { overflow-x: auto; justify-content: flex-start; gap: 4px; scrollbar-width: none; }
  .main-nav .nav-btn { flex: 0 0 auto; }
  .concept-badge { top: auto; right: auto; left: 8px; bottom: 104px; font-size: 10.5px; padding: 3px 8px; }
}
