/* ============================================================
   Next Step — design tokens
   ============================================================ */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --brand: oklch(0.628 0.126 166.9);        /* verde de marca #10a078 */
  --primary: oklch(0.540 0.107 167.6);      /* verde acción  #0c8262 */
  --primary-hover: oklch(0.482 0.097 167.9);/* verde hover   #0a7658 */

  --ink: oklch(0.274 0.060 242.5);          /* navy profundo #052a42 */
  --ink-2: oklch(0.337 0.067 240.4);        /* navy claro    #0f3b56 */

  --bg: oklch(1 0 0);
  --surface: oklch(1 0 0);
  --tint: oklch(0.980 0.008 186.9);         /* mint sección  #f3faf9 */
  --surface-2: oklch(0.957 0.013 179.5);    /* mint tarjeta  #e8f4f1 */

  --muted: oklch(0.544 0.034 229.8);        /* texto sec.    #5c7480 */
  --muted-inverse: oklch(0.800 0.026 205.0);/* texto sec. sobre navy */
  --line: oklch(0.921 0.014 185.9);         /* borde         #dbe8e6 */
  --line-strong: oklch(0.850 0.024 190.0);

  --ring: oklch(0.628 0.126 166.9 / 0.28);
  --shadow-sm: 0 1px 2px oklch(0.274 0.060 242.5 / 0.06);
  --shadow-md: 0 12px 32px -12px oklch(0.274 0.060 242.5 / 0.22);
  --shadow-lg: 0 28px 70px -28px oklch(0.274 0.060 242.5 / 0.42);

  --radius: 14px;
  --radius-lg: 20px;
}

/* Modo oscuro de la app (Configuración → Apariencia). La landing nunca lo usa:
   app.js solo pone data-theme mientras la app está abierta. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --primary: oklch(0.600 0.115 167.6);
  --primary-hover: oklch(0.660 0.115 167.6);

  --ink: oklch(0.945 0.012 200);
  --ink-2: oklch(0.860 0.020 205);

  --bg: oklch(0.180 0.022 245);
  --surface: oklch(0.220 0.025 243);
  --tint: oklch(0.200 0.024 244);
  --surface-2: oklch(0.285 0.030 222);

  --muted: oklch(0.740 0.025 220);
  --line: oklch(0.320 0.025 235);
  --line-strong: oklch(0.420 0.028 230);

  --ring: oklch(0.700 0.126 166.9 / 0.35);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.30);
  --shadow-md: 0 12px 32px -12px oklch(0 0 0 / 0.55);
  --shadow-lg: 0 28px 70px -28px oklch(0 0 0 / 0.70);
}

/* ============================================================
   Base
   ============================================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: oklch(0.628 0.126 166.9 / 0.22);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

body {
  scrollbar-color: oklch(0.700 0.040 195.0) transparent;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background: oklch(0.760 0.030 195.0);
  border: 3px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.hidden {
  display: none !important;
}

/* ============================================================
   Buttons
   ============================================================ */
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  font-size: 0.95rem;
  gap: 0.45rem;
  justify-content: center;
  line-height: 1;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.button-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
}

.button-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.button-large {
  font-size: 1rem;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
}

.button-block {
  width: 100%;
}

.link-button {
  background: none;
  border: 0;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0;
}

.link-button:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Landing — topbar
   ============================================================ */
.topbar {
  align-items: center;
  background: oklch(1 0 0 / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 0.5rem;
  text-decoration: none;
}

.brand img {
  height: 26px;
  width: auto;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.topbar nav {
  align-items: center;
  display: flex;
  gap: 1.4rem;
}

.topbar nav a:not(.button) {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.topbar nav a:not(.button):hover {
  color: var(--ink);
}

/* ============================================================
   Landing — hero
   ============================================================ */
.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  line-height: 1.03;
  max-width: 15ch;
}

.hero-subtitle {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  margin-top: 1.35rem;
  max-width: 52ch;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.hero-trust li {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.5rem;
}

.hero-trust svg {
  color: var(--primary);
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

/* Hero product mockup */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  background: radial-gradient(closest-side, oklch(0.628 0.126 166.9 / 0.16), transparent 72%);
  content: "";
  inset: -12%;
  position: absolute;
  z-index: -1;
}

.mock-window {
  background: var(--ink);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: #fff;
  margin-left: auto;
  max-width: 430px;
  overflow: hidden;
  padding: 1.15rem;
  position: relative;
}

.mock-window::after {
  background: linear-gradient(120deg, transparent 25%, oklch(1 0 0 / 0.05) 42%, transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.mock-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mock-logo {
  align-items: center;
  color: #fff;
  display: flex;
  font-weight: 800;
  gap: 0.45rem;
  letter-spacing: -0.02em;
}

.mock-logo img {
  border-radius: 4px;
  height: 18px;
  width: auto;
}

.mock-head-end {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.mock-tag {
  background: var(--brand);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

.mock-pill {
  background: oklch(1 0 0 / 0.1);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: 999px;
  color: oklch(0.90 0.02 180);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
}

.mock-metrics {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 0.85rem;
}

.mock-metric {
  background: oklch(1 0 0 / 0.055);
  border: 1px solid oklch(1 0 0 / 0.09);
  border-radius: 13px;
  padding: 0.85rem;
}

.mock-metric span {
  color: var(--muted-inverse);
  display: block;
  font-size: 0.78rem;
}

.mock-metric strong {
  display: block;
  font-size: 1.28rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-top: 0.3rem;
}

.mock-metric small {
  color: var(--muted-inverse);
  display: block;
  font-size: 0.74rem;
  margin-top: 0.25rem;
}

.mock-metric small.up {
  color: var(--brand);
  font-weight: 700;
}

.mock-chart {
  background: oklch(1 0 0 / 0.04);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 13px;
  padding: 0.85rem;
}

.mock-chart-head {
  color: var(--muted-inverse);
  display: flex;
  font-size: 0.76rem;
  justify-content: space-between;
}

.mock-bars {
  align-items: end;
  display: flex;
  gap: 7px;
  height: 96px;
  margin-top: 0.7rem;
}

.mock-bars i {
  background: linear-gradient(180deg, oklch(0.700 0.120 166), oklch(0.540 0.107 167.6));
  border-radius: 6px 6px 3px 3px;
  flex: 1;
  height: var(--h);
}

.mock-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.mock-list li {
  align-items: center;
  color: oklch(0.92 0.015 190);
  display: flex;
  font-size: 0.86rem;
  gap: 0.6rem;
}

.dot {
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.dot-green {
  background: var(--brand);
}

.dot-blue {
  background: oklch(0.72 0.10 230);
}

.dot-amber {
  background: oklch(0.78 0.14 85);
}

/* ============================================================
   Landing — flow
   ============================================================ */
.flow,
.features,
.why,
.plans,
.faq {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.flow {
  padding-top: 0;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 680px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  margin-top: 0.7rem;
}

.flow-list {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1rem 1.1rem;
}

.flow-list .step {
  align-items: center;
  background: var(--surface-2);
  border-radius: 8px;
  color: var(--primary);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  margin-bottom: 0.25rem;
  width: 24px;
}

.flow-list strong {
  font-size: 0.95rem;
}

.flow-list span:not(.step) {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* ============================================================
   Landing — features
   ============================================================ */
.features {
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 12px;
  color: var(--primary);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 44px;
}

.feature-icon svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 22px;
}

.feature h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-grid-main {
  grid-template-columns: repeat(3, 1fr);
}

.feature-main {
  padding: 1.75rem;
}

.feature-main h3 {
  font-size: 1.15rem;
}

.feature-main p {
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  gap: 1.1rem 2rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.feature-list li {
  align-items: flex-start;
  display: flex;
  gap: 0.9rem;
}

.feature-list .feature-icon {
  flex: none;
  height: 36px;
  margin-bottom: 0;
  width: 36px;
}

.feature-list .feature-icon svg {
  height: 18px;
  width: 18px;
}

.feature-list h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.feature-list p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============================================================
   Landing — por qué Next Step
   ============================================================ */
.why {
  border-top: 1px solid var(--line);
}

.compare-wrap {
  overflow-x: auto;
}

.compare-table {
  border-collapse: collapse;
  max-width: 820px;
  width: 100%;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table th:first-child,
.compare-table td:first-child {
  color: var(--muted);
}

.compare-table th:last-child {
  color: var(--primary);
}

.compare-table td:last-child {
  font-weight: 600;
}

.why-close {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.75rem;
}

/* ============================================================
   Landing — preguntas frecuentes
   ============================================================ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style-position: outside;
  padding: 1rem 0;
}

.faq-list summary:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--ring);
}

.faq-list details p {
  color: var(--muted);
  padding-bottom: 1rem;
}

.faq-list details a {
  color: var(--primary);
}

/* ============================================================
   Landing — plans
   ============================================================ */
.plans {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.plans .section-head {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.plan-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  position: relative;
}

.plan-popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem;
  position: absolute;
  right: 1.1rem;
  top: -0.75rem;
}

.plan h3 {
  font-size: 1.25rem;
}

.plan-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.plan-price {
  align-items: baseline;
  display: flex;
  gap: 0.35rem;
  margin: 1.2rem 0 0;
}

.plan-price strong {
  color: var(--ink);
  font-size: 2.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.plan-price span {
  color: var(--muted);
}

.plan-annual {
  color: var(--muted);
  font-size: 0.84rem;
}

.plan ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}

.plan li {
  color: var(--ink);
  font-size: 0.9rem;
  padding-left: 1.45rem;
  position: relative;
}

.plan li::before {
  background: var(--surface-2);
  border-radius: 50%;
  color: var(--primary);
  content: "✓";
  font-size: 0.7rem;
  font-weight: 800;
  height: 18px;
  left: 0;
  line-height: 18px;
  position: absolute;
  text-align: center;
  top: 0.18rem;
  width: 18px;
}

.plan .button {
  margin-top: auto;
}

.plans-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 1.25rem auto 0;
  max-width: 1180px;
  text-align: center;
}

.plans-note strong {
  color: var(--ink);
}

/* ============================================================
   Landing — CTA
   ============================================================ */
.cta {
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.cta-inner {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.cta-inner p {
  color: var(--muted-inverse);
  margin: 1rem auto 2rem;
  max-width: 44ch;
}

.cta-inner .button-primary {
  background: var(--brand);
}

.cta-inner .button-primary:hover {
  background: oklch(0.700 0.135 166.9);
}

/* ============================================================
   Landing — auth
   ============================================================ */
.auth-section {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.auth-wrap {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  margin: 0 auto;
  max-width: 960px;
}

.auth-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.auth-intro p {
  color: var(--muted);
  margin-top: 0.8rem;
  max-width: 40ch;
}

.auth-cards {
  position: relative;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.6rem;
}

.auth-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

form {
  display: grid;
  gap: 0.95rem;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.4rem;
}

input,
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  caret-color: var(--primary);
  color: var(--ink);
  font: inherit;
  padding: 0.72rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-subtitle {
  color: var(--muted);
  margin: -0.6rem 0 1rem;
}

.check {
  align-items: flex-start;
  display: flex;
  font-weight: 500;
  gap: 0.55rem;
  line-height: 1.4;
}

.check input {
  accent-color: var(--primary);
  flex: none;
  height: 18px;
  margin-top: 0.1rem;
  padding: 0;
  width: 18px;
}

.check a {
  color: var(--primary);
}

input::placeholder {
  color: oklch(0.700 0.030 210);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}

.form-message {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
  min-height: 1.1rem;
}

/* ============================================================
   Landing — footer
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr;
  margin: 0 auto;
  max-width: 1180px;
  padding: 2.75rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 40ch;
}

.footer-brand .footer-contact {
  margin-top: 0.6rem;
}

.footer-contact a {
  color: var(--primary);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-legal {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  grid-column: 1 / -1;
  padding-top: 1.25rem;
}

/* ============================================================
   App shell
   ============================================================ */
.app-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header .brand img {
  height: 22px;
  width: auto;
}

.app-header .brand-name {
  font-size: 1.15rem;
}

.app-user {
  align-items: center;
  display: flex;
  gap: 0.9rem;
}

.app-greeting {
  color: var(--muted);
  font-size: 0.92rem;
}

.app-greeting strong {
  color: var(--ink);
}

.app-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0.75rem;
}

.sidebar button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-weight: 600;
  gap: 0.65rem;
  padding: 0.62rem 0.7rem;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 19px;
}

.sidebar button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.sidebar button.active {
  background: var(--surface-2);
  color: var(--primary);
}

.bottom-nav {
  background: color-mix(in oklch, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  left: 0;
  padding: 0.35rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  z-index: 30;
}

.bottom-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 0.66rem;
  font-weight: 700;
  gap: 0.2rem;
  justify-content: center;
  padding: 0.35rem 0.15rem;
}

.bottom-nav button svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 22px;
}

.bottom-nav button.active {
  color: var(--primary);
}

.drawer {
  inset: 0;
  position: fixed;
  z-index: 40;
}

.drawer[hidden] {
  display: none;
}

.drawer-scrim {
  background: oklch(0.274 0.060 242.5 / 0.45);
  border: 0;
  inset: 0;
  height: 100%;
  position: absolute;
  width: 100%;
}

.drawer-panel {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  bottom: 0;
  left: 0;
  max-height: 78vh;
  overflow-y: auto;
  padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom));
  position: absolute;
  right: 0;
}

.drawer-handle {
  background: var(--line-strong);
  border-radius: 999px;
  height: 5px;
  margin: 0 auto 0.9rem;
  width: 44px;
}

.drawer-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.drawer-close {
  align-items: center;
  background: var(--surface-2);
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.drawer-close svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 20px;
}

.drawer-grid {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(2, 1fr);
}

.drawer-grid button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-weight: 600;
  gap: 0.6rem;
  padding: 0.7rem;
  text-align: left;
}

.drawer-grid button:hover,
.drawer-grid button.active {
  background: var(--surface-2);
  color: var(--primary);
}

.drawer-grid svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 20px;
}

body.drawer-open {
  overflow: hidden;
}

.content-area {
  min-width: 0;
}

.content {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

/* Pestañas de la sección (por ejemplo, Clientes | Prospectos) */
.section-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.75rem clamp(1.25rem, 3vw, 2.25rem) 0;
  scrollbar-width: none;
}

.section-tabs[hidden] {
  display: none;
}

.section-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-bottom: -1px;
  padding: 0.55rem 0.85rem 0.7rem;
  white-space: nowrap;
}

.section-tabs button:hover {
  color: var(--ink);
}

.section-tabs button.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.section-tabs button:focus-visible {
  border-radius: 8px;
  outline: 3px solid var(--ring);
}

/* Configuración → Apariencia */
.theme-options {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  max-width: 560px;
  min-width: 0;
}

.theme-options legend {
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.theme-option {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  font-weight: 500;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.theme-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--surface-2);
}

.theme-option input {
  accent-color: var(--primary);
  flex: none;
  height: 18px;
  margin-top: 0.15rem;
  padding: 0;
  width: 18px;
}

.theme-option strong,
.theme-option small {
  display: block;
}

.theme-option small,
.theme-note {
  color: var(--muted);
}

.theme-note {
  font-size: 0.85rem;
}

.content:focus {
  outline: none;
}

.view-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.view-header h1 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Inicio → Primeros pasos */
.onboarding {
  margin-bottom: 1.4rem;
}

.onboarding-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.onboarding-head p {
  color: var(--muted);
  margin-top: 0.25rem;
}

.onboarding-head .link-button {
  flex: none;
  margin-top: 0.2rem;
}

.onboarding-bar {
  background: var(--surface-2);
  border-radius: 999px;
  height: 6px;
  margin: 0.9rem 0 0.4rem;
  overflow: hidden;
}

.onboarding-bar span {
  background: var(--primary);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.onboarding-steps {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.onboarding-steps li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.8rem 0;
}

.onboarding-steps li:first-child {
  border-top: 0;
}

.onboarding-steps strong,
.onboarding-steps small {
  display: block;
}

.onboarding-steps small,
.onboarding-status {
  color: var(--muted);
  font-size: 0.85rem;
}

.onboarding-steps small a,
.panel p a {
  color: var(--primary);
  font-weight: 700;
}

.onboarding-status {
  text-align: right;
}

.onboarding-check {
  align-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.onboarding-steps li.done .onboarding-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.onboarding-steps li.done strong {
  color: var(--muted);
  text-decoration: line-through;
}

@media (max-width: 560px) {
  .onboarding-steps li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .onboarding-steps li > .button,
  .onboarding-steps li > .onboarding-status {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

.metric-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  color: var(--ink);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.active-plan {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.panel {
  margin-bottom: 1rem;
  padding: 1.1rem;
}

.form-grid {
  align-items: end;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-grid label {
  min-width: 0;
}

.form-grid .button {
  align-self: end;
  height: 42px;
}

.table-list {
  display: grid;
  gap: 0.7rem;
}

.list-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.list-row small {
  color: var(--muted);
  display: block;
}

.row-actions {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.row-actions .button {
  padding: 0.5rem 0.75rem;
}

.loading,
.error {
  color: var(--muted);
  padding: 2rem;
}

.error,
.text-danger {
  color: oklch(0.47 0.16 27);
}

/* Colores de estado que no salen de las variables, ajustados para el modo oscuro */
:root[data-theme="dark"] .error,
:root[data-theme="dark"] .text-danger,
:root[data-theme="dark"] .side-panel-error {
  color: oklch(0.74 0.14 27);
}

:root[data-theme="dark"] .billing-ok {
  background: oklch(0.30 0.05 166);
  border-color: oklch(0.45 0.08 166);
  color: oklch(0.88 0.08 166);
}

:root[data-theme="dark"] .billing-cancel {
  background: oklch(0.30 0.05 30);
  border-color: oklch(0.48 0.10 30);
  color: oklch(0.88 0.07 30);
}

:root[data-theme="dark"] .tag-service {
  background: oklch(0.32 0.05 255);
  color: oklch(0.86 0.07 255);
}

:root[data-theme="dark"] .tag-muted {
  background: oklch(0.30 0.012 230);
}

/* Reports */
.report-title {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
}

.report-block {
  margin-top: 0.75rem;
}

.report-block-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.report-block-header h3 {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.report-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.9rem;
  text-align: left;
}

.report-table thead th {
  background: var(--tint);
  color: var(--muted);
  font-size: 0.82rem;
}

.report-table tbody td {
  font-variant-numeric: tabular-nums;
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

.report-table td:not(:first-child),
.report-table th:not(:first-child) {
  text-align: right;
}

.report-empty {
  color: var(--muted);
  padding: 0.5rem 0 0.75rem;
}

/* Plans (app) */
.plan-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.plan-actions .button {
  flex: 1;
}

.billing-banner {
  border-radius: 11px;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
}

.billing-ok {
  background: oklch(0.97 0.025 166);
  border: 1px solid oklch(0.80 0.09 166);
  color: oklch(0.42 0.09 167);
}

.billing-cancel {
  background: oklch(0.98 0.012 30);
  border: 1px solid oklch(0.85 0.08 30);
  color: oklch(0.44 0.15 28);
}

/* ============================================================
   Motion
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-visual {
    animation: rise 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 18ch;
  }

  .hero-visual {
    order: 2;
  }

  .mock-window {
    margin: 0 auto;
    max-width: 520px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid-main {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .flow-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .topbar nav {
    gap: 0.9rem;
    overflow-x: auto;
    width: 100%;
  }

  .topbar nav a:not(.button) {
    white-space: nowrap;
  }

  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    flex-direction: column;
    gap: 0.7rem;
  }

  .app-greeting {
    display: none;
  }
}

@media (max-width: 767px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .bottom-nav {
    display: grid;
  }

  .content {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }

  .app-header {
    padding: 0.6rem 1rem;
  }

  .app-header .brand img {
    height: 34px;
  }

  .app-greeting {
    display: none;
  }

  .view-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .button {
    height: auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .row-actions {
    margin-left: auto;
  }

  .report-block {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .report-table {
    min-width: 520px;
  }
}

/* ============================================================
   Catálogos: buscador, filtros, tabla y panel lateral
   ============================================================ */
.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.button svg,
.catalog-search svg {
  fill: none;
  flex: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.catalog-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.catalog-search {
  flex: 1 1 260px;
  position: relative;
}

.catalog-search svg {
  color: var(--muted);
  left: 0.8rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.catalog-search input {
  padding-left: 2.4rem;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip[aria-pressed="true"] {
  background: var(--surface-2);
  border-color: var(--primary);
  color: var(--primary);
}

.catalog-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table {
  border-collapse: collapse;
  font-size: 0.92rem;
  width: 100%;
}

.data-table th {
  background: var(--tint);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.7rem 1rem;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td:not(:first-child) {
  white-space: nowrap;
}

.data-table td {
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: var(--tint);
}

.data-table td strong {
  color: var(--ink);
  display: block;
}

.data-table td small {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
}

.data-table .numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.data-table .row-end {
  text-align: right;
  width: 1%;
}

.data-table .row-end .button {
  padding: 0.5rem 0.85rem;
}

.mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
}

.tag {
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--primary);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
}

.tag-service {
  background: oklch(0.950 0.025 250);
  color: oklch(0.420 0.110 255);
}

.catalog-empty {
  color: var(--muted);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.catalog-empty strong {
  color: var(--ink);
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.catalog-empty p {
  margin: 0;
}

.catalog-count {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.6rem 0 0;
}

.side-panel-overlay {
  background: oklch(0.274 0.060 242.5 / 0.35);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  position: fixed;
  z-index: 50;
}

.side-panel {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 520px;
  width: 100%;
}

.side-panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.side-panel-header h2 {
  font-size: 1.15rem;
  margin: 0;
}

.side-panel-close {
  padding: 0.5rem;
}

.side-panel-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.side-panel-body {
  display: grid;
  flex: 1;
  gap: 1.25rem;
  overflow-y: auto;
  padding: 1.25rem;
}

.side-panel-body fieldset {
  border: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.side-panel-body legend {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.side-panel-body fieldset > label:first-of-type {
  grid-column: 1 / -1;
}

.side-panel-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  padding: 0.9rem 1.25rem;
}

.side-panel-error {
  color: oklch(0.47 0.16 27);
  flex: 1 1 100%;
  font-size: 0.88rem;
  margin: 0;
}

.side-panel-error:empty {
  display: none;
}

@media (max-width: 720px) {
  .view-header {
    align-items: center;
    gap: 0.75rem;
  }

  .side-panel {
    max-width: none;
  }

  .side-panel-body fieldset {
    grid-template-columns: 1fr;
  }
}

/* La tabla pasa a tarjetas según el ancho de su propio recuadro (no el de la ventana):
   junto al menú lateral, una ventana mediana deja poco espacio para la tabla. */
.catalog-body {
  container-type: inline-size;
  overflow-x: auto;
}

@container (max-width: 760px) {
  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
  }

  .data-table tr {
    border-top: 1px solid var(--line);
    padding: 0.75rem 1rem;
  }

  .data-table tbody tr:first-child {
    border-top: 0;
  }

  .data-table td {
    border: 0;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.2rem 0;
    text-align: right;
  }

  .data-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.8rem;
    text-align: left;
  }

  .data-table td:first-child {
    display: block;
    padding-bottom: 0.4rem;
    text-align: left;
  }

  .data-table td:first-child::before {
    content: none;
  }

  .data-table .row-end {
    padding-top: 0.5rem;
    width: auto;
  }

  .data-table .row-end::before {
    content: none;
  }

  .row-buttons {
    justify-content: flex-start;
  }
}

.muted {
  color: var(--muted);
}

.tag-muted {
  background: oklch(0.950 0.006 230);
  color: var(--muted);
}

.row-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.data-table td small + small,
.data-table td span + small {
  margin-top: 0.1rem;
}

