/**
 * Dinamic Operations — marketing brand tokens (Etapa 1).
 * Scoped under .marketing-root; no impact on operational Mantine theme.
 */
.marketing-root {
  /* Paleta alineada al logo final (SVG maestro) */
  --m-brand: #ff5a00;
  --m-brand-hover: #e55100;
  --m-brand-soft: rgba(255, 90, 0, 0.12);
  --m-ink: #082433;
  --m-ink-muted: #6f7c88;
  --m-surface: #ffffff;
  --m-surface-muted: #f6f8fa;
  --m-border: #e9ecef;
  --m-success: #16a34a;
  --m-warning: #d97706;
  --m-danger: #dc2626;
  --m-info: #1275f2;
  --m-radius-sm: 8px;
  --m-radius-md: 12px;
  --m-radius-lg: 20px;
  --m-shadow-soft: 0 8px 32px rgba(15, 30, 43, 0.08);
  --m-shadow-strong: 0 20px 60px rgba(15, 30, 43, 0.12);
  --m-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --m-max-width: 72rem;
  --m-section-y: clamp(3.5rem, 8vw, 6.5rem);
  --m-header-h: 4.75rem;
  --m-header-logo-h: 3.5rem;

  font-family: var(--m-font);
  color: var(--m-ink);
  background: var(--m-surface);
  -webkit-font-smoothing: antialiased;
}

.marketing-root *,
.marketing-root *::before,
.marketing-root *::after {
  box-sizing: border-box;
}

.marketing-root .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .marketing-root {
    scroll-behavior: auto;
  }

  .marketing-root [data-animate] {
    animation: none !important;
    transition: none !important;
  }
}

body.editorial {
  margin: 0;
  line-height: 1.6;
}

.editorial .frame {
  width: min(100% - 2rem, var(--m-max-width));
  margin-inline: auto;
}

.editorial .site-header { border-bottom: 1px solid var(--m-border); }

.editorial .header-inner,
.editorial .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.editorial .header-inner { justify-content: space-between; }

.editorial .header-inner img {
  display: block;
  width: clamp(7.75rem, 24vw, 10.25rem);
  height: auto;
}

.editorial a { color: #9b3800; }

.editorial a:focus-visible {
  outline: 2px solid var(--m-ink);
  outline-offset: 4px;
}

.editorial .cta {
  display: inline-block;
  background: var(--m-brand);
  color: #10222d;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--m-radius-sm);
  padding: 0.65rem 1rem;
}

.editorial .cta:hover { background: var(--m-brand-hover); }

.editorial .breadcrumbs {
  margin-block: 1.5rem;
  font-size: 0.95rem;
}

.editorial .hero {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--m-radius-lg);
  background: var(--m-surface-muted);
}

.editorial .index-hero { margin-top: clamp(1.5rem, 5vw, 3rem); }

.editorial h1,
.editorial h2,
.editorial h3,
.editorial p {
  margin: 0;
  overflow-wrap: break-word;
}

.editorial h1 {
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 21ch;
}

.editorial h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.editorial h3 { font-size: 1.075rem; }

.editorial .category {
  margin-bottom: 0.6rem;
  color: #933500;
  font-weight: 700;
}

.editorial .lead {
  font-size: clamp(1.08rem, 2.5vw, 1.25rem);
  max-width: 64ch;
  margin: 1rem 0;
}

.editorial article > section {
  max-width: 72ch;
  margin: clamp(1.75rem, 5vw, 3rem) auto;
}

.editorial article li + li { margin-top: 0.65rem; }

.editorial article :is(ol, ul) {
  padding-inline-start: 1.4rem;
  margin: 0;
}

.editorial .example,
.editorial .demo {
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-md);
  padding: clamp(1rem, 4vw, 1.75rem);
}

.editorial .example { border-inline-start: 4px solid var(--m-brand); }
.editorial .faq div + div { margin-top: 1rem; }

.editorial .index-group,
.editorial .index-industry {
  margin-block: clamp(1.75rem, 5vw, 3rem);
}

.editorial .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.editorial .cards li {
  padding: 1rem;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-md);
}

.editorial .cards p { margin-top: 0.35rem; }

.editorial .site-footer {
  border-top: 1px solid var(--m-border);
  background: var(--m-surface-muted);
}

.editorial .cookie-preferences {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #9b3800;
  cursor: pointer;
}

.editorial .cookie-preferences:focus-visible {
  outline: 2px solid var(--m-ink);
  outline-offset: 4px;
}
