/* site-brand.css inline (avoid render-blocking @import request) */
:root {
  --shell-bg: rgba(5, 13, 28, 0.86);
  --shell-bg-strong: rgba(6, 15, 31, 0.94);
  --shell-surface: rgba(10, 21, 41, 0.78);
  --shell-border: rgba(188, 210, 255, 0.14);
  --shell-text: #edf4ff;
  --shell-muted: rgba(237, 244, 255, 0.72);
  --shell-accent: #2d6dff;
  --shell-accent-strong: #1b52ce;
  --shell-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  --shell-radius: 18px;
  --shell-topbar-height: 66px;
  --shell-max-width: min(1280px, calc(100% - 1rem));
  --surface: rgba(16, 32, 64, 0.9);
  --border: rgba(220, 234, 255, 0.16);
  --text: #eaf3ff;
  --muted: rgba(234, 243, 255, 0.74);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.4);
}

html[data-tema="claro"] {
  --shell-bg: rgba(255, 255, 255, 0.86);
  --shell-bg-strong: rgba(248, 251, 255, 0.94);
  --shell-surface: rgba(255, 255, 255, 0.84);
  --shell-border: rgba(18, 38, 74, 0.1);
  --shell-text: #0d1b34;
  --shell-muted: rgba(13, 27, 52, 0.66);
  --shell-accent: #2d6dff;
  --shell-accent-strong: #1b52ce;
  --shell-shadow: 0 18px 36px rgba(16, 34, 67, 0.12);
  --surface: rgba(255, 255, 255, 0.9);
  --border: rgba(32, 64, 119, 0.14);
  --text: #10203f;
  --muted: rgba(16, 32, 63, 0.72);
  --shadow-lg: 0 18px 44px rgba(35, 65, 118, 0.14);
}

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

.shell-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid var(--shell-border);
  background: var(--shell-bg);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

[id] {
  scroll-margin-top: calc(var(--shell-topbar-height) + 1.2rem);
}

.shell-topbar__inner {
  width: var(--shell-max-width);
  min-height: var(--shell-topbar-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
}

.shell-topbar--public .shell-topbar__inner {
  column-gap: 1.15rem;
  row-gap: 0.6rem;
}

.shell-topbar--public .shell-topbar__brand {
  margin-inline-end: 0.2rem;
}

.shell-topbar__brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.72rem;
  min-width: 52px;
  height: 52px;
  padding: 0 0.82rem 0 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--shell-border);
  background: rgba(255, 255, 255, 0.02);
  flex: none;
  color: var(--shell-text);
}

.shell-topbar__brand-symbol {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.shell-topbar__brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shell-topbar__brand-name {
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-topbar__menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--shell-border);
  background: color-mix(in srgb, var(--shell-bg-strong) 78%, transparent);
  color: var(--shell-text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.shell-topbar__menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--shell-text);
  margin: 0 auto;
  border-radius: 2px;
}

.shell-topbar__menu-toggle span + span {
  margin-top: 4px;
}

.shell-topbar__nav {
  justify-self: center;
}

.shell-topbar__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.shell-topbar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--shell-text) 88%, transparent);
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.shell-topbar__nav a:hover {
  border-color: transparent;
  color: var(--shell-text);
}

.shell-topbar__nav a.is-active {
  border-color: transparent;
  color: var(--shell-text);
}

.shell-topbar__nav-mobile-only {
  display: none;
}

.shell-topbar__actions {
  display: flex;
  justify-self: end;
  gap: 0.55rem;
  align-items: center;
}

.shell-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--shell-border);
  background: color-mix(in srgb, var(--shell-bg-strong) 74%, transparent);
  color: var(--shell-text);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  font-weight: 700;
  font-size: 0.95rem;
}

.shell-action:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--shell-bg-strong) 86%, transparent);
  border-color: color-mix(in srgb, var(--shell-border) 92%, transparent);
}

.shell-action--ghost {
  padding-inline: 0.6rem;
}

.shell-action--primary,
.shell-action--user {
  border-color: rgba(45, 109, 255, 0.42);
  background: linear-gradient(180deg, var(--shell-accent), var(--shell-accent-strong));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.shell-action__icon {
  line-height: 1;
  font-size: 1.05rem;
}

.shell-action--icon {
  width: 44px;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.shell-action__icon--svg svg {
  display: block;
}

.shell-action__badge,
.shell-chat-fab__badge {
  margin-inline-start: -10px;
  margin-top: -18px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff3b5c;
  color: #fff;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--shell-bg);
}

.shell-action.is-unread {
  border-color: color-mix(in srgb, #ff3b5c 65%, var(--shell-border));
}

.shell-user-menu {
  position: relative;
}

.shell-user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  background: var(--shell-bg-strong);
  border: 1px solid var(--shell-border);
  box-shadow: var(--shell-shadow);
  display: grid;
  gap: 6px;
}

.shell-user-menu__item {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: color-mix(in srgb, var(--shell-text) 92%, transparent);
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.shell-user-menu__item:hover {
  background: color-mix(in srgb, var(--shell-surface) 62%, transparent);
  border-color: color-mix(in srgb, var(--shell-border) 84%, transparent);
}

.shell-user-menu__item.is-danger:hover {
  background: color-mix(in srgb, #ff3b5c 18%, transparent);
  border-color: color-mix(in srgb, #ff3b5c 28%, transparent);
}

@media (max-width: 1004px) {
  .shell-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    padding-right: 3.05rem;
  }

  .shell-topbar__brand {
    order: 1;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
  }

  .shell-topbar__actions {
    order: 2;
    gap: 0.35rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    position: absolute;
    right: calc(0.15rem + 44px + 0.35rem);
    top: 50%;
    transform: translateY(-50%);
  }

  .shell-topbar--public .shell-action--register {
    display: none;
  }

  .shell-topbar--public .shell-topbar__actions {
    right: calc(0.15rem + 44px + 0.28rem);
    gap: 0.28rem;
  }

  .shell-topbar--public .shell-action {
    min-height: 42px;
    padding: 0.34rem 0.74rem;
    border-radius: 14px;
  }

  .shell-topbar__menu-toggle {
    display: inline-flex;
    order: 3;
    position: absolute;
    right: 0.15rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .shell-topbar__nav {
    display: none;
    order: 4;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0.35rem;
    left: auto;
    width: min(350px, calc(100% - 0.7rem));
    z-index: 1300;
    padding: 0;
  }

  .shell-topbar__nav.is-open {
    display: block;
  }

  .shell-topbar__nav ul {
    margin: 0;
    padding: 0.45rem;
    border: 1px solid var(--shell-border);
    border-radius: 16px;
    background: var(--shell-bg-strong);
    box-shadow: var(--shell-shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .shell-topbar__nav a {
    justify-content: flex-start;
    min-height: 40px;
    border-radius: 14px;
    padding-left: 0.9rem;
    background: transparent;
    border-color: transparent;
    transform: none;
  }

  .shell-topbar__nav a:hover {
    background: color-mix(in srgb, var(--shell-surface) 62%, transparent);
  }

  .shell-topbar__nav a.is-active {
    background: transparent;
  }

  .shell-topbar__nav-mobile-only {
    display: list-item;
  }
}

@media (max-width: 640px) {
  .shell-topbar--public .shell-topbar__brand-name {
    max-width: 128px;
    font-size: 0.92rem;
  }
}


:root {
  color-scheme: dark;
  --bg: #061127;
  --bg-soft: #0c1d3a;
  --surface: rgba(15, 32, 64, 0.84);
  --surface-strong: rgba(18, 38, 75, 0.96);
  --border: rgba(215, 231, 255, 0.16);
  --text: #eaf3ff;
  --muted: rgba(234, 243, 255, 0.72);
  --primary: #1790ff;
  --primary-strong: #0b73e1;
  --accent: #1bc5ff;
  --ok: #2fd488;
  --warn: #ffcf4a;
  --danger: #ff6b7a;
  --shadow-lg: 0 26px 58px rgba(0, 0, 0, 0.42);
}

html[data-tema="claro"] {
  color-scheme: light;
  --bg: #f4f8ff;
  --bg-soft: #e8f0ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --border: rgba(12, 39, 92, 0.12);
  --text: #112246;
  --muted: rgba(17, 34, 70, 0.7);
  --primary: #1379f0;
  --primary-strong: #0f68d0;
  --accent: #0fa6de;
  --ok: #1cae66;
  --shadow-lg: 0 18px 42px rgba(8, 24, 61, 0.16);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1150px 760px at 12% 0%, rgba(30, 122, 255, 0.26), transparent 56%),
    radial-gradient(900px 620px at 86% 8%, rgba(23, 195, 255, 0.24), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 900;
  background: color-mix(in srgb, var(--primary) 26%, transparent);
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-desktop {
  display: none;
  align-items: center;
  gap: 16px;
}

.menu-desktop a {
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 700;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn,
.btn-icon {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.btn {
  padding: 0 14px;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
}

.btn.primary {
  color: #fff;
  border-color: color-mix(in srgb, var(--primary) 72%, transparent);
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
}

.btn-icon {
  width: 40px;
  padding: 0;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color: var(--text);
  cursor: pointer;
}

.hero {
  padding: 38px 0 30px;
}

.hero-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.kicker {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-copy h1 {
  font-size: clamp(1.65rem, 5vw, 3.15rem);
  line-height: 1.05;
  margin: 0;
  max-width: 720px;
}

.hero-copy p {
  margin-top: 14px;
  max-width: 650px;
  color: var(--muted);
  line-height: 1.58;
}

.hero-subnote {
  margin-top: 10px;
  max-width: 680px;
  font-size: 0.94rem;
}

.cta-group {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-bullets {
  margin-top: 15px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(520px 240px at 86% 8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 86%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
  box-shadow: var(--shadow-lg);
  padding: 14px;
}

.mock-header {
  display: flex;
  gap: 6px;
}

.mock-header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 18%, transparent);
}

.mock-header .dot-red {
  background: var(--danger);
}

.mock-header .dot-yellow {
  background: var(--warn);
}

.mock-header .dot-green {
  background: var(--ok);
}

.mock-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.mock-metrics article {
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  border: 1px solid var(--border);
  padding: 11px;
}

.mock-metrics h3 {
  margin: 0;
  font-size: 1.05rem;
}

.mock-metrics p {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-chart {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 11px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.hero-chart__header {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.hero-chart__header strong {
  font-size: 0.95rem;
}

.hero-chart__header span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.hero-chart__bars {
  display: grid;
  gap: 8px;
}

.hero-chart__row {
  display: grid;
  grid-template-columns: 90px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.hero-chart__label {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-chart__track {
  height: 22px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--border) 50%, transparent);
  overflow: hidden;
}

.hero-chart__fill {
  height: 100%;
  width: var(--bar-w, 0%);
  border-radius: 6px;
  background: var(--bar-color, var(--primary));
  animation: bar-grow 1.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes bar-grow {
  from { width: 0; }
  to { width: var(--bar-w, 0%); }
}

.hero-chart__val {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mock-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mock-list li {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 0.82rem;
}

.mock-list strong {
  color: var(--ok);
}

.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.stats-grid {
  min-height: 94px;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 10px 0;
}

.stats-grid article {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.stats-grid strong {
  font-size: 1.45rem;
}

.stats-grid span {
  font-size: 0.75rem;
  color: var(--muted);
}

.section {
  padding: 42px 0;
}

.section--compact {
  padding: 28px 0 18px;
}

.section.alt {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 1120px;
}

.section-head .kicker,
.callout-card .kicker,
.panel-grid .kicker {
  display: flex;
  width: max-content;
  margin-inline: auto;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
  max-width: 980px;
  text-wrap: balance;
}

.section-head p {
  color: var(--muted);
  line-height: 1.56;
  max-width: 1040px;
}

.feature-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.callout-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(420px 180px at 100% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 24px 22px;
}

.callout-card > div:first-child {
  max-width: 760px;
  width: 100%;
}

.callout-card .cta-group {
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 12px;
}

.callout-card h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
}

.callout-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.callout-card--accent {
  border-color: var(--border);
  background:
    radial-gradient(420px 180px at 100% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
}

.callout-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  justify-content: center;
}

.callout-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 80%, transparent);
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 15px;
  min-height: 168px;
}

.feature-card h3 {
  margin: 0;
  font-size: 1rem;
}

.feature-card p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.56;
  font-size: 0.87rem;
}

.steps-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.tools-toolbar {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.tools-search {
  display: grid;
  gap: 6px;
  min-width: min(100%, 360px);
  color: var(--muted);
  font-size: 0.82rem;
}

.tools-search input {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  color: var(--text);
  padding: 0 14px;
}

.tools-results {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.tools-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tool-card[hidden] {
  display: none;
}

.tool-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.tool-card__media {
  height: 138px;
  background:
    radial-gradient(340px 120px at 86% 14%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, transparent), color-mix(in srgb, var(--surface-strong) 88%, transparent));
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}

.tool-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-card__media--placeholder span {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary) 28%, transparent);
}

.tool-card__body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.tool-card__meta {
  display: flex;
  justify-content: flex-start;
}

.tool-card__badge {
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.tool-card__body h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.3;
}

.tool-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
  font-size: 0.85rem;
}

.tool-card__actions {
  padding: 0 14px 14px;
}

.tool-card__actions .btn {
  width: 100%;
}

.tools-pagination {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tools-pagination__button {
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 80%, transparent);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.tools-pagination__button.is-active {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  border-color: color-mix(in srgb, var(--primary) 76%, transparent);
}

.step-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
}

.step-tag {
  display: inline-flex;
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.step-card h3 {
  margin: 8px 0 0;
  font-size: 1.06rem;
}

.step-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

.panel-grid h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
}

.panel-grid p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.58;
}

.panel-note {
  margin-top: 12px;
  font-size: 0.94rem;
}

.panel-preview {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  min-height: 240px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.panel-preview-top {
  height: 46px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.panel-preview-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.panel-preview-stack {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.panel-preview-stack article,
.panel-preview-stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  padding: 10px 12px;
}

.panel-preview-stack article {
  display: grid;
  gap: 5px;
}

.panel-preview-stack span,
.panel-preview-stat small {
  color: var(--muted);
  font-size: 0.76rem;
}

.panel-preview-stack strong,
.panel-preview-stat strong {
  font-size: 0.88rem;
}

.panel-preview-side {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ───────────────────────────────────────────────────────────
   Public pages + floating chat (nosotros/contacto/legal)
   ─────────────────────────────────────────────────────────── */

.brand-page-shell {
  width: min(1100px, calc(100% - 1rem));
  margin: 1.35rem auto 0;
  display: grid;
  gap: 1rem;
}

.brand-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 1.35rem;
}

.brand-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-page-meta span {
  color: var(--muted);
}

.brand-page-content {
  display: grid;
  gap: 0.95rem;
  line-height: 1.72;
}

.brand-page-content p,
.brand-page-content li {
  color: var(--text);
}

.brand-page-content h2,
.brand-page-content h3 {
  margin-top: 0.25rem;
}

.brand-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand-footer__socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-footer__socials a:hover {
  text-decoration: none;
  border-color: rgba(45, 109, 255, 0.4);
}

.shell-chat-fab {
  position: fixed;
  left: auto;
  inset-inline-start: auto;
  inset-inline-end: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1325;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 109, 255, 0.32);
  background: linear-gradient(180deg, var(--shell-accent, var(--primary)), var(--shell-accent-strong, var(--primary-strong)));
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(13, 82, 206, 0.35);
}

.shell-chat-fab:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.shell-chat-fab__icon {
  font-size: 1.15rem;
  line-height: 1;
}

@media (max-width: 1004px) {
  .brand-page-card {
    padding: 1rem;
    border-radius: 18px;
  }
}

@media (max-width: 980px) {
  .shell-chat-fab {
    width: 54px;
    height: 54px;
    left: auto;
    inset-inline-start: auto;
    inset-inline-end: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

/* ───────────────────────────────────────────────────────────
   Footer + cookies (home usa landing.css, necesita estilos shell)
   ─────────────────────────────────────────────────────────── */

.shell-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--shell-border, var(--border));
  background: var(--shell-bg-strong, color-mix(in srgb, var(--surface-strong) 88%, transparent));
}

.shell-footer__pre {
  width: var(--shell-max-width, min(1280px, calc(100% - 1rem)));
  margin: 0 auto;
  padding: 1.25rem 0 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.shell-footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shell-footer__socials a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shell-border, var(--border));
  background: rgba(255, 255, 255, 0.04);
  color: var(--shell-text, var(--text));
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.shell-footer__socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.12);
}

.shell-footer__socials svg {
  width: 20px;
  height: 20px;
  display: block;
}

.shell-footer__inner {
  width: var(--shell-max-width, min(1280px, calc(100% - 1rem)));
  margin: 0 auto;
  padding: 1rem 0 1.25rem;
  text-align: center;
}

.shell-footer__slogan--flag {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: var(--shell-muted, var(--muted));
}

.co-flag {
  letter-spacing: 0.22em;
  font-weight: 900;
}

.co-y { color: #FCD116; }
.co-b { color: #003893; }
.co-r { color: #CE1126; }

.shell-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.85rem;
  margin: 0 0 0.7rem;
}

.shell-footer__links a,
.shell-footer__copy {
  font-size: 0.88rem;
  color: var(--shell-muted, var(--muted));
}

.shell-footer__links a:hover {
  color: var(--shell-text, var(--text));
  text-decoration: none;
}

.footer-dev-link {
  font-weight: 800;
  text-decoration: none;
  color: #e9d07b;
  background-image: linear-gradient(90deg, #f6e7a9 0%, #d8a53a 35%, #fff2c3 50%, #d8a53a 65%, #f6e7a9 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: footerGoldShift 7.2s linear infinite;
}

.footer-dev-link:hover { text-decoration: underline; }

@keyframes footerGoldShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

html[data-cookie-dismissed='1'] .brand-cookie-banner { display: none !important; }

.brand-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 1350;
  width: min(760px, calc(100% - 1rem));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--shell-border, var(--border));
  background: var(--shell-bg-strong, var(--surface-strong));
  box-shadow: var(--shell-shadow, var(--shadow-lg));
}

.brand-cookie-banner p {
  margin: 0;
  color: var(--shell-text, var(--text));
  font-size: 0.92rem;
  flex: 1 1 100%;
  text-align: center;
}

.brand-cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 100%;
  justify-content: center;
}

.brand-cookie-banner button {
  min-height: 40px;
  padding: 0 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--shell-accent, var(--primary)), var(--shell-accent-strong, var(--primary-strong)));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.brand-cookie-banner__prefs-btn {
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--shell-border, var(--border));
  border-radius: 12px;
  background: transparent;
  color: var(--shell-text, var(--text));
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-prefs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.cookie-prefs-overlay.is-hidden { display: none; }

.cookie-prefs-panel {
  width: min(480px, calc(100% - 2rem));
  background: var(--shell-bg-strong, var(--surface-strong));
  border: 1px solid var(--shell-border, var(--border));
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.cookie-prefs-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-prefs-panel__header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--shell-text, var(--text));
}

.cookie-prefs-panel__hint {
  font-size: 0.78rem;
  color: var(--shell-muted, var(--muted));
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--shell-border, var(--border));
  border-radius: 999px;
}

.cookie-prefs-panel__intro {
  margin: 0;
  font-size: 0.88rem;
  color: var(--shell-muted, var(--muted));
}

.cookie-prefs-panel__group {
  display: grid;
  gap: 0;
}

.cookie-prefs-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--shell-border, var(--border));
  background: rgba(255, 255, 255, 0.03);
}

.cookie-prefs-panel__row:first-child {
  border-radius: 14px 14px 0 0;
}

.cookie-prefs-panel__row:last-child {
  border-radius: 0 0 14px 14px;
  border-top: 0;
}

.cookie-prefs-panel__row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--shell-text, var(--text));
}

.cookie-prefs-panel__row span {
  font-size: 0.8rem;
  color: var(--shell-muted, var(--muted));
}

.cookie-prefs-panel__tag {
  white-space: nowrap;
  font-size: 0.78rem !important;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--shell-border, var(--border));
  color: var(--shell-muted, var(--muted)) !important;
}

.cookie-prefs-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-prefs-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-prefs-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--shell-border, var(--border));
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-prefs-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--shell-muted, var(--muted));
  transition: transform 0.2s;
}

.cookie-prefs-toggle input:checked + .cookie-prefs-toggle__track {
  background: var(--shell-accent, var(--primary));
  border-color: var(--shell-accent, var(--primary));
}

.cookie-prefs-toggle input:checked + .cookie-prefs-toggle__track::after {
  transform: translateX(20px);
  background: #ffffff;
}

.cookie-prefs-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cookie-prefs-panel__cancel {
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--shell-border, var(--border));
  border-radius: 12px;
  background: transparent;
  color: var(--shell-text, var(--text));
  font-weight: 700;
  cursor: pointer;
}

.cookie-prefs-panel__save {
  min-height: 40px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--shell-accent, var(--primary)), var(--shell-accent-strong, var(--primary-strong)));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 560px) {
  .cookie-prefs-panel__actions {
    justify-content: stretch;
    gap: 0.6rem;
  }

  .cookie-prefs-panel__cancel,
  .cookie-prefs-panel__save {
    flex: 1 1 0;
    width: 100%;
    justify-content: center;
  }
}

html[data-tema="claro"] .cookie-prefs-panel {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(35, 65, 118, 0.14);
}

html[data-tema="claro"] .cookie-prefs-panel__row {
  background: rgba(0, 0, 0, 0.02);
}

html[data-tema="claro"] .cookie-prefs-toggle__track {
  background: rgba(0, 0, 0, 0.1);
}

html[data-tema="claro"] .cookie-prefs-overlay {
  background: rgba(0, 0, 0, 0.35);
}

html[data-tema="claro"] .brand-footer__socials a {
  background: rgba(0, 0, 0, 0.03);
}

html[data-tema="claro"] .shell-chat-fab {
  box-shadow: 0 12px 28px rgba(23, 76, 184, 0.22);
}

.preview-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.preview-terminal-dot--red {
  background: var(--danger);
}

.preview-terminal-dot--yellow {
  background: var(--warn);
}

.preview-terminal-dot--green {
  background: var(--ok);
}

.tool-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.tool-modal[hidden] {
  display: none;
}

.tool-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 31, 0.68);
  backdrop-filter: blur(8px);
}

.tool-modal__panel {
  position: relative;
  width: min(720px, calc(100% - 1.5rem));
  margin: min(10vh, 60px) auto 0;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.tool-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

.tool-modal__panel h3 {
  margin: 0.25rem 0 0;
  font-size: 1.45rem;
}

.tool-modal__panel p,
.tool-modal__details {
  color: var(--muted);
  line-height: 1.65;
}

.tool-modal__details {
  margin-top: 12px;
}

body.modal-open {
  overflow: hidden;
}

.chip {
  min-height: 31px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.footer-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 12px 0;
}

.footer a {
  color: var(--text);
}

@media (min-width: 900px) {
  .menu-desktop {
    display: flex;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
    gap: 22px;
  }

  .panel-preview-body {
    grid-template-columns: 1fr;
  }

  .panel-preview-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 690px) {
  .menu-desktop,
  .btn.ghost {
    display: none;
  }

  .topbar-inner {
    min-height: 62px;
  }

  .actions .btn.primary {
    min-width: 110px;
  }

  .tool-modal__panel {
    margin-top: 20px;
    padding: 18px;
  }

  .hero-chart__row {
    grid-template-columns: 72px 1fr 40px;
    gap: 6px;
  }

  .hero-chart__label {
    font-size: 0.72rem;
  }
}
