/* ----------------------------------------------------------------------------
   ACE NUTRITIONS. — Hoja de Componente 01
   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.
   -------------------------------------------------------------------------- */
/* ============================================================================
   SUBTLE ARCHITECTURAL HERO MESH (STRIPE / VERCEL RESTRAINT)
   ============================================================================ */
.ln-ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(1100px 420px at 50% -120px, rgba(13, 148, 136, 0.06), transparent 70%);
}

.ln-ambient-orb {
  display: none;
}

/* ============================================================================
   PRECISION APP TOPBAR (LINEAR / VERCEL GEIST NAV CHROME)
   ============================================================================ */
.ace-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto 16px;
  min-height: 60px;
  padding: 8px 20px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ace-brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.ace-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

.ace-brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.ace-brand-title span {
  color: var(--jade);
}

.ace-brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ace-main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.ace-nav-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ace-nav-link:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
}

.ace-nav-link.is-active {
  background: var(--bg-surface);
  color: var(--ink);
  border-color: var(--border-soft);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.ace-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================================
   BADGES, BUTTONS & CONTAINERS (LINEAR 8PX PRECISION)
   ============================================================================ */
.ace-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  color: var(--ink-secondary);
  letter-spacing: 0.03em;
}

.ace-badge-brand {
  background: var(--vermilion-soft);
  border-color: var(--border-vermilion);
  color: var(--vermilion);
}

.ace-badge-emerald {
  background: var(--jade-soft);
  border-color: var(--border-jade);
  color: var(--jade-dark);
}

.ace-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-med);
  background: var(--bg-surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.ace-btn:hover {
  background: var(--bg-subtle);
  color: var(--ink);
  border-color: var(--ink-muted);
}

.ace-btn-primary {
  background: var(--jade);
  color: var(--fx-ink);
  border-color: var(--jade-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-sm);
}

.ace-btn-primary:hover {
  background: var(--jade-dark);
  border-color: var(--jade-dark);
  color: var(--fx-ink);
}

.ace-btn-danger {
  background: var(--vermilion-soft);
  color: var(--vermilion);
  border-color: var(--border-vermilion);
}

.ace-btn-danger:hover {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: var(--fx-ink);
}

.ace-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ace-container {
  width: min(1440px, 96vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-bottom: 96px;
}

.ace-section-block {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.ace-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 6px;
}

.ace-section-subtitle {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-secondary);
  max-width: 68ch;
  margin-bottom: 18px;
  line-height: 1.55;
}


.ace-banner {
  background: #fffbeb;
  border: 1px solid var(--amber);
  color: #92400e;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

/* ============================================================================
   SUPERFICIE 1: MINIMALIST LANDING IN LINEAR-NEW STUDIO THEME
   ============================================================================ */
.ace-cinematic-landing {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ace-cinematic-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 9px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.04);
}

.ace-ribbon-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-secondary);
}

.ace-ribbon-tag {
  background: var(--bg-studio);
  color: var(--ink);
  border: 1px solid var(--border-med);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.ace-ribbon-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ace-qs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
}

.ace-qs-pill strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 10.5px;
  font-weight: 600;
}

.ace-qs-pill:hover {
  border-color: var(--jade);
  background: var(--jade-soft);
}

.ace-hero-monolith {
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 86% 18%, rgba(13, 148, 136, 0.08) 0%, transparent 44%),
              radial-gradient(circle at 12% 84%, rgba(225, 92, 70, 0.06) 0%, transparent 46%),
              var(--bg-surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  padding: 40px 40px 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ace-hero-top-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 34px;
  align-items: center;
}

.ace-hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ace-hero-display-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.0vw, 3.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.036em;
  color: var(--ink);
  text-transform: none;
  margin-bottom: 14px;
}

.ace-hero-gradient-span {
  background: linear-gradient(120deg, var(--jade) 0%, var(--vermilion) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.ace-hero-lead {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-secondary);
  max-width: 56ch;
  margin-bottom: 22px;
}

.ace-btn-cinematic {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--fx-ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ace-btn-cinematic:hover {
  background: var(--ink-secondary);
  border-color: var(--ink-secondary);
}

.ace-btn-cinematic-jade {
  background: var(--jade);
  border-color: var(--jade-dark);
  color: var(--fx-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-sm);
}

.ace-btn-cinematic-jade:hover {
  background: var(--jade-dark);
  border-color: var(--jade-dark);
}

.ace-hero-poster-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ace-poster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 10px;
}

.ace-poster-chapter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.ace-poster-live-dot {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--jade);
}

.ace-poster-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ace-poster-kpi {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ace-poster-kpi span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.ace-poster-kpi strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.ace-poster-kpi strong.is-vermilion {
  color: var(--vermilion);
}

.ace-poster-kpi strong.is-jade {
  color: var(--jade);
}

.ace-cinematic-chapters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ace-chapter-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.ace-chapter-card:hover {
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  border-color: var(--jade);
}

.ace-chapter-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.ace-chapter-card h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ace-chapter-card p {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.ace-chapter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--jade);
}
