/* ----------------------------------------------------------------------------
   ACE NUTRITIONS. — Hoja de Componente 02
   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.
   -------------------------------------------------------------------------- */
/* ============================================================================
   GRIDS, CARDS, TABS & 3D STUDIO STAGE (AWESOME-DESIGN-MD PRECISION)
   ============================================================================ */
.ace-grid-2 {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 20px;
  align-items: start;
}

.ace-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ace-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ace-card,
.ace-card-elevated {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.ace-card-elevated {
  border: 1.5px solid var(--jade);
  box-shadow: var(--shadow-float);
}

.ace-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.ace-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ace-tabs-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  margin-bottom: 16px;
}

.ace-tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ace-tab-btn:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
}

.ace-tab-btn.is-active {
  background: var(--bg-surface);
  color: var(--ink);
  border-color: var(--border-soft);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* 3D WebGL Studio Stage — Precision Clinical Viewport */
.ace-3d-studio-stage {
  position: relative;
  width: 100%;
  height: 580px;
  margin-top: 12px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 42%, var(--bg-surface) 0%, var(--bg-subtle) 80%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-med);
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.04);
}


.ace-3d-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ace-layer-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  gap: 4px;
}

.ace-layer-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ace-layer-btn.is-active {
  background: var(--ink);
  color: var(--fx-ink);
  font-weight: 600;
}

.ace-bio-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  z-index: 2;
}

.ace-bio-canvas:active {
  cursor: grabbing;
}

.ace-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.ace-3d-floating-inspector {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 5;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.12);
}

.ace-site-svg-thumb {
  width: 72px;
  height: 58px;
  object-fit: contain;
  background: var(--bg-studio);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 4px;
}

/* ============================================================================
   FORMS, INPUTS, KPIS, TABLES, PRICING & FAQ (LIGHTER MINIMALIST WEIGHTS)
   ============================================================================ */
.ace-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ace-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ace-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.ace-input,
.ace-select {
  background: var(--bg-studio);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ace-input:focus,
.ace-select:focus {
  border-color: var(--jade);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--jade-soft);
}

.ace-kpi-box {
  background: var(--bg-studio);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ace-kpi-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.ace-kpi-value {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.ace-kpi-sub {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-secondary);
}

.ace-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.ace-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ace-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-studio);
  color: var(--ink-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}

.ace-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink);
}

.ace-pricing-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.ace-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 14px 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.ace-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ace-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.ace-faq-summary {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.ace-faq-body {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.6;
}
