/* ----------------------------------------------------------------------------
   ACE NUTRITIONS. — Hoja de Componente 04
   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.
   -------------------------------------------------------------------------- */
/* ============================================================================
   MULTI-ROUTE VIEW VISIBILITY & NEXT BROKAR LANDING STRUCTURE
   ============================================================================ */
.ace-route-view {
  animation: aceRouteFadeIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes aceRouteFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ace-landing-stack {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding-bottom: 40px;
}

.ace-landing-ticker {
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
}

.ace-landing-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ace-landing-ticker-dot {
  color: var(--jade);
}

.ace-landing-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ace-faq-filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ace-faq-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ace-faq-cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ace-faq-cat-pill {
  border: 1px solid var(--border-soft);
  background: var(--bg-studio);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.ace-faq-cat-pill.is-active,
.ace-faq-cat-pill:hover {
  background: var(--jade);
  color: var(--fx-ink);
  border-color: var(--jade);
}

.ace-final-cta-banner {
  background: radial-gradient(circle at 82% 20%, rgba(13, 148, 136, 0.16) 0%, transparent 48%),
              radial-gradient(circle at 18% 80%, rgba(225, 92, 70, 0.15) 0%, transparent 50%),
              var(--bg-surface);
  border: 2px solid var(--jade);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-cinematic);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ace-public-footer {
  margin-top: 28px;
  padding: 28px 0 60px;
  border-top: 1px solid var(--border-med);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.ace-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ace-footer-link {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}

.ace-footer-link:hover {
  color: var(--jade);
  text-decoration: underline;
}

/* ============================================================================
   BRANDING DECISION ARENA & CORPORATE IDENTITY KIT (CREATILEX / NEXT BROKAR)
   ============================================================================ */
.ace-brand-proposal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ace-brand-proposal-card.is-selected {
  border: 2px solid var(--jade);
  box-shadow: var(--shadow-float);
}

.ace-brand-preview-stage,
.ace-brand-asset-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 124px;
  overflow: hidden;
}

.is-light-stage {
  background: #f6f5f1;
  color: #0f172a;
}

.is-dark-stage {
  background: #1f2229;
  color: #f1ece2;
}

.is-crisp-stage {
  background: var(--bg-surface);
  color: #0f172a;
}

.ace-brand-proposal-svg,
.ace-brand-asset-img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
}

.ace-brand-asset-img.is-square {
  width: 92px;
  height: 92px;
}

.ace-palette-card {
  background: var(--bg-studio);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ace-swatch-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 6px 0;
}

.ace-swatch {
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
}

/* Catalogo de muestras del Laboratorio de Branding.
   El hexadecimal ES el contenido que se enseña: el HTML lo imprime como
   etiqueta de cada muestra, y varias pertenecen a paletas candidatas que no
   son la activa, asi que por definicion no tienen token. Tokenizarlas
   romperia la funcion de elegir paleta. */
/* miyagi-allow-begin UI-01: muestras de paleta, el hexadecimal es el contenido */
.sw-linear-bg { background: #F6F5F1; color: #0F172A; }
.sw-linear-ink { background: #0F172A; color: #FFFFFF; }
.sw-linear-jade { background: #0D9488; color: #FFFFFF; }
.sw-linear-coral { background: #E15C46; color: #FFFFFF; }

.sw-gold-bg { background: #2A2D34; color: #F1ECE2; }
.sw-gold-bone { background: #F1ECE2; color: #2A2D34; }
.sw-gold-primary { background: #D9A84E; color: #0F172A; }
.sw-gold-deep { background: #A8792A; color: #FFFFFF; }

.sw-cyber-navy { background: #0B1B33; color: #FFFFFF; }
.sw-cyber-cyan { background: #22B8E6; color: #0B1B33; }
.sw-cyber-violet { background: #7C5CFF; color: #FFFFFF; }
.sw-cyber-foam { background: #E9F5FC; color: #0B1B33; }

.sw-impi-white { background: #FFFFFF; color: #000000; }
.sw-impi-black { background: #000000; color: #FFFFFF; }
.sw-impi-ink { background: #0F172A; color: #FFFFFF; }
.sw-impi-slate { background: #475569; color: #FFFFFF; }
/* miyagi-allow-end */

.ace-bcard-mockup {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #f6f5f1;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(13, 148, 136, 0.45);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ace-bcard-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ace-bcard-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--fx-ink);
}

.ace-bcard-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #2dd4bf;
  letter-spacing: 0.06em;
}

.ace-bcard-Rule {
  height: 1px;
  background: rgba(246, 245, 241, 0.16);
}

.ace-bcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fx-ink-body);
}
