/* IDK Puntual — IDK Manager design system
   Tokens portados desde idkmanager-web (Geist + brand violet + zinc).
   Mantiene los nombres de clase originales para no tocar el HTML.
*/

:root {
  /* Brand violet (oklch 285-295) — desde idkmanager-web global.css */
  --color-brand-50:  oklch(0.97 0.02 295);
  --color-brand-100: oklch(0.94 0.04 295);
  --color-brand-200: oklch(0.88 0.07 295);
  --color-brand-300: oklch(0.80 0.12 295);
  --color-brand-400: oklch(0.70 0.18 295);
  --color-brand-500: oklch(0.62 0.22 290);
  --color-brand-600: oklch(0.55 0.24 285);
  --color-brand-700: oklch(0.48 0.22 285);
  --color-brand-800: oklch(0.38 0.18 285);
  --color-brand-900: oklch(0.28 0.12 285);
  --color-brand-950: oklch(0.18 0.08 285);
  --color-accent-500: oklch(0.78 0.16 75);

  /* Light surface — neutrals zinc */
  --background: oklch(1 0 0);
  --foreground: oklch(0.16 0.01 270);
  --muted: oklch(0.96 0.005 270);
  --muted-foreground: oklch(0.45 0.02 270);
  --border: oklch(0.92 0.005 270);
  --ring: var(--color-brand-600);

  /* Aliases legacy del HTML existente — mapeados a tokens IDK */
  --paper: var(--background);
  --cream: var(--background);
  --cream-deep: var(--muted);
  --ink: var(--foreground);
  --ink-60: var(--muted-foreground);
  --ink-40: oklch(0.65 0.02 270);
  --rule: var(--border);
  --rule-strong: oklch(0.85 0.005 270);

  /* Acentos legacy → tokens marca */
  --moss: var(--color-brand-600);
  --moss-deep: var(--color-brand-700);
  --terracota: var(--color-brand-600);
  --terracota-deep: var(--color-brand-700);
  --amber: var(--color-accent-500);

  --radius-sm: 0.375rem;
  --radius:    0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

html.dark {
  --background: oklch(0.10 0.01 270);
  --foreground: oklch(0.98 0.005 270);
  --muted: oklch(0.18 0.01 270);
  --muted-foreground: oklch(0.65 0.02 270);
  --border: oklch(0.22 0.01 270);
  --ring: var(--color-brand-500);

  --paper: oklch(0.14 0.01 270);
  --cream: var(--background);
  --cream-deep: var(--muted);
  --ink: var(--foreground);
  --ink-60: var(--muted-foreground);
  --ink-40: oklch(0.45 0.02 270);
  --rule: var(--border);
  --rule-strong: oklch(0.30 0.01 270);

  --moss: var(--color-brand-400);
  --moss-deep: var(--color-brand-500);
  --terracota: var(--color-brand-400);
  --terracota-deep: var(--color-brand-500);
  --amber: var(--color-accent-500);
}

/* Resets */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
html.dark { color-scheme: dark; }
body {
  font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--color-brand-200); color: var(--color-brand-900); }
html.dark ::selection { background: var(--color-brand-800); color: var(--color-brand-50); }

h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 600; }

/* Helpers heredados — neutralizados al stack IDK */
.serif { font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.mono  { font-family: "Geist Mono", "Geist Mono Variable", "Geist Mono Local Fallback", ui-monospace, "SF Mono", Menlo, monospace; }
.italic { font-style: normal; }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .section-sm { padding: 64px 0; }
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--background) 75%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}
html.dark .nav {
  background: color-mix(in oklch, var(--background) 75%, transparent);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.brand-svg { width: 28px; height: 28px; color: var(--color-brand-600); flex-shrink: 0; }
html.dark .brand-svg { color: var(--color-brand-400); }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.05; gap: 2px;
  font-weight: 600; font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: "Geist Mono", "Geist Mono Variable", "Geist Mono Local Fallback", ui-monospace, monospace;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--muted-foreground); font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.nav-links a:not(.btn) {
  color: var(--muted-foreground);
  transition: color .15s ease, background-color .15s ease;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav-links a:not(.btn):hover {
  color: var(--foreground);
  background: color-mix(in oklch, var(--muted) 80%, transparent);
}
.nav-links .btn { margin-left: 4px; }

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-inner { gap: 6px; padding: 10px 14px; }
  .brand { gap: 8px; min-width: 0; flex-shrink: 1; overflow: hidden; }
  .brand-text { font-size: 15px; }
  .brand-svg { width: 26px; height: 26px; }
  .brand-sub { display: none; }
  .nav-links { gap: 4px; flex-shrink: 0; }
  .btn-sm { padding: 6px 10px; font-size: 12px; height: 30px; }
}
@media (max-width: 420px) {
  .nav-inner { padding: 8px 12px; gap: 4px; }
  .brand-text { font-size: 14px; }
  .brand-svg { width: 22px; height: 22px; }
  .lang-toggle { margin-left: 0 !important; }
  .lang-toggle button { padding: 3px 5px !important; font-size: 10px !important; }
  .theme-toggle { margin-left: 2px; padding: 1px; }
  .theme-toggle button { padding: 3px 5px; font-size: 11px; }
  .btn-sm { padding: 5px 8px; font-size: 11px; height: 28px; }
}
@media (max-width: 360px) {
  .lang-toggle { display: none !important; }
  .nav-links .btn-ink { padding: 5px 8px; font-size: 10.5px; }
}

/* Theme & lang toggles */
.theme-toggle {
  display: inline-flex; gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  margin-left: 8px;
}
.theme-toggle button {
  background: none; border: 0; padding: 4px 8px; cursor: pointer; border-radius: 999px;
  font-size: 12px; color: var(--muted-foreground); line-height: 1;
}
.theme-toggle button:hover { background: var(--muted); color: var(--foreground); }
.theme-toggle button.active { background: var(--foreground); color: var(--background); }
@media (max-width: 768px) { .theme-toggle { margin-left: 4px; } }
@media (max-width: 400px) { .theme-toggle button[data-theme-btn="system"] { display: none; } }

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  margin-left: 8px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted-foreground);
  border-radius: 999px;
  min-width: 30px;
  min-height: 26px;
}
.lang-toggle button:hover { color: var(--foreground); background: var(--muted); }
.lang-toggle button.active { background: var(--foreground); color: var(--background); }

/* Buttons — patrón idkmanager-web */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  cursor: pointer;
  height: 40px;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; height: 34px; }
.btn-lg { padding: 12px 22px; font-size: 15px; height: 44px; }

.btn-primary {
  background: var(--color-brand-600);
  color: #fff;
  box-shadow: 0 6px 24px -8px color-mix(in oklch, var(--color-brand-600) 60%, transparent);
}
.btn-primary:hover {
  background: var(--color-brand-500);
  box-shadow: 0 10px 28px -8px color-mix(in oklch, var(--color-brand-600) 70%, transparent);
}

.btn-ink {
  background: var(--foreground);
  color: var(--background);
}
.btn-ink:hover { background: color-mix(in oklch, var(--foreground) 88%, var(--background)); }

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
  background: var(--muted);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--muted); }

.nav-links .btn-ink { color: var(--background) !important; }
.nav-links .btn-primary { color: #fff !important; }

/* Hero — dark zinc-950 con gradient mesh, igual a idkmanager-web */
.hero {
  position: relative;
  isolate: isolate;
  overflow: hidden;
  background: oklch(0.10 0.01 270);
  color: #fff;
  padding: 96px 0 80px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, oklch(0.62 0.22 290 / 0.28), transparent 60%),
    radial-gradient(ellipse 50% 35% at 80% 100%, oklch(0.78 0.16 75 / 0.18), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, oklch(0.10 0.01 270 / 0.4), transparent 30%, oklch(0.10 0.01 270 / 0.6));
  pointer-events: none;
  z-index: -1;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 7.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}
.hero h1 em,
.hero h1 .accent {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-brand-300) 0%, var(--color-accent-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  max-width: 56ch;
  margin: 0 auto 32px;
}
.hero p.lead strong { color: #fff; font-weight: 500; }

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero .btn-primary {
  background: var(--color-brand-600);
  color: #fff;
  box-shadow: 0 12px 32px -10px oklch(0.55 0.24 285 / 0.55);
}
.hero .btn-primary:hover { background: var(--color-brand-500); }
.hero .btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Compliance badges (pill style sobre hero oscuro) */
.compliance-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Geist Mono", "Geist Mono Variable", "Geist Mono Local Fallback", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}
.badge .check { color: var(--color-brand-300); font-weight: 600; }

@media (max-width: 768px) {
  .compliance-badges { flex-direction: column; align-items: stretch; padding: 0 24px; }
  .badge { justify-content: center; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); margin-bottom: 18px; padding: 0 8px; }
  .hero p.lead { font-size: 15px; padding: 0 16px; margin-bottom: 24px; }
  .hero-ctas { flex-direction: column; gap: 10px; padding: 0 24px; }
  .hero-ctas .btn { width: 100%; }
}

/* Why cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.why-card {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.why-card:hover {
  border-color: color-mix(in oklch, var(--color-brand-500) 40%, var(--border));
  box-shadow: 0 8px 28px -12px color-mix(in oklch, var(--color-brand-500) 30%, transparent);
}
.why-num {
  font-family: "Geist Mono", "Geist Mono Variable", "Geist Mono Local Fallback", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1;
  color: var(--color-brand-600);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
html.dark .why-num { color: var(--color-brand-400); }
.why-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--foreground);
}
.why-card p { color: var(--muted-foreground); font-size: 15px; line-height: 1.6; }

@media (max-width: 1024px) { .why-grid { grid-template-columns: 1fr; max-width: 480px; padding: 0 16px; } }

/* Section title — semibold sans, eyebrow optional via subtitle */
.section-title { text-align: center; margin-bottom: 48px; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-title h2 {
  font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 14px;
  padding: 0 16px;
  color: var(--foreground);
}
.section-title p {
  color: var(--muted-foreground);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 auto;
  padding: 0 16px;
}
.section-title p.billing-note {
  font-size: 13px !important;
  color: var(--muted-foreground) !important;
  margin-top: 8px !important;
}

/* Features grid — borderless, gap-driven cards */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: transparent;
  border: 0;
  max-width: 1180px;
  margin: 0 auto;
}
.feature {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature:hover {
  border-color: color-mix(in oklch, var(--color-brand-500) 30%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px color-mix(in oklch, var(--color-brand-600) 30%, transparent);
}
.feature h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
}
.feature h3 .ico { font-size: 16px; }
.feature p { color: var(--muted-foreground); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 1280px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .features { grid-template-columns: 1fr; } }

/* Calculator */
.calc {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 768px) { .calc { padding: 28px 22px; } }

.calc-input { margin-bottom: 24px; }
.calc-input:last-of-type { margin-bottom: 32px; }
.calc-input-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-input-row label {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}
.calc-input-row .val {
  font-family: "Geist Mono", "Geist Mono Variable", "Geist Mono Local Fallback", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-brand-600);
  min-width: 80px;
  text-align: right;
}
html.dark .calc-input-row .val { color: var(--color-brand-300); }
.calc input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--color-brand-600);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--background);
  box-shadow: 0 0 0 1px var(--color-brand-600), 0 4px 12px -2px color-mix(in oklch, var(--color-brand-600) 50%, transparent);
}
.calc input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--color-brand-600);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--background);
  box-shadow: 0 0 0 1px var(--color-brand-600);
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.calc-result .num {
  font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--color-brand-600) 0%, var(--color-accent-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.calc-result .num.negative {
  background: none;
  -webkit-text-fill-color: oklch(0.55 0.18 25);
  color: oklch(0.55 0.18 25);
}
.calc-result .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-top: 6px;
  font-weight: 500;
}
.calc-fallback {
  font-size: 15px;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  padding-top: 28px;
  text-align: center;
  line-height: 1.6;
}
.calc-fallback em { font-style: italic; color: var(--foreground); }
@media (max-width: 640px) { .calc-results { grid-template-columns: 1fr; gap: 18px; } }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pricing-5col { grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1280px) { .pricing-5col { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (max-width: 900px)  { .pricing-5col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pricing-5col { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.price-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.price-card:hover {
  border-color: color-mix(in oklch, var(--color-brand-500) 30%, var(--border));
}
.price-card.popular {
  border-color: var(--color-brand-500);
  border-width: 1px;
  box-shadow: 0 24px 60px -24px color-mix(in oklch, var(--color-brand-500) 35%, transparent);
}
@media (min-width: 1024px) {
  .price-card.popular { transform: scale(1.02); }
}
.price-card .tag {
  font-family: "Geist Mono", "Geist Mono Variable", "Geist Mono Local Fallback", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-brand-600);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
/* Variant tags — contraste >= 4.5:1 con white */
.price-card .tag.tag-new    { background: #92400e; color: #fff; } /* amber-800: 6.6:1 */
.price-card .tag.tag-public { background: #064e3b; color: #fff; } /* emerald-900: 11.5:1 */
.price-card .name {
  font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.price-card .price {
  font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
  color: var(--foreground);
}
.price-card .price .period {
  font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-foreground);
}
.price-card .iva-note {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: -4px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.price-card .limit {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.price-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.price-card ul li {
  font-size: 13.5px;
  padding: 6px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.price-card ul li::before {
  content: "✓";
  color: var(--color-brand-600);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}
html.dark .price-card ul li::before { color: var(--color-brand-300); }
.price-card .btn { margin-top: auto; }

@media (max-width: 1024px) { .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; padding: 0 16px; } }
@media (max-width: 768px) { .price-card { padding: 24px 20px; } .price-card .price { font-size: 32px; } }

/* Footer — fondo muted en lugar de tinta total */
.footer {
  background: var(--muted);
  color: var(--foreground);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { color: var(--foreground); }
.footer-brand .brand-svg { color: var(--color-brand-600); }
html.dark .footer-brand .brand-svg { color: var(--color-brand-400); }
.footer-brand p {
  margin-top: 14px;
  color: var(--muted-foreground);
  font-size: 14px;
  max-width: 36ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: "Geist Mono", "Geist Mono Variable", "Geist Mono Local Fallback", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: var(--muted-foreground);
  font-size: 14px;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--foreground); text-decoration: none; }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted-foreground);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Animations — opacity-only para evitar CLS por desplazamiento layout */
.fade-in {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1);
}
.fade-in.in { opacity: 1; }

@keyframes heroIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero h1 span {
  display: inline-block;
  opacity: 0;
  animation: heroIn .8s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero h1 span:nth-child(1) { animation-delay: 0.05s; }
.hero h1 span:nth-child(2) { animation-delay: 0.18s; }
.hero h1 span:nth-child(3) { animation-delay: 0.31s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .hero h1 span { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Accessibility — focus ring brand */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--color-brand-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* LOSEP page */
.losep-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.losep-card {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.losep-card:hover {
  border-color: color-mix(in oklch, var(--color-brand-500) 30%, var(--border));
  box-shadow: 0 8px 24px -12px color-mix(in oklch, var(--color-brand-500) 30%, transparent);
}
.losep-card .ico {
  width: 36px;
  height: 36px;
  color: var(--color-brand-600);
  margin-bottom: 18px;
}
html.dark .losep-card .ico { color: var(--color-brand-400); }
.losep-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--foreground);
}
.losep-card p { color: var(--muted-foreground); font-size: 15px; line-height: 1.6; }
@media (max-width: 1024px) { .losep-cards { grid-template-columns: 1fr; } }

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 48px;
  max-width: 920px;
  margin: 0 auto;
}
.checklist li {
  list-style: none;
  font-size: 15px;
  display: flex;
  gap: 12px;
  line-height: 1.5;
  color: var(--foreground);
}
.checklist li::before {
  content: "✓";
  color: var(--color-brand-600);
  font-weight: 600;
  flex-shrink: 0;
}
html.dark .checklist li::before { color: var(--color-brand-300); }
@media (max-width: 768px) { .checklist { grid-template-columns: 1fr; } }

.siith-preview {
  background: oklch(0.10 0.01 270);
  color: oklch(0.98 0.005 270);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-x: auto;
  font-family: "Geist Mono", "Geist Mono Variable", "Geist Mono Local Fallback", ui-monospace, monospace;
  font-size: 12.5px;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) { .siith-preview { padding: 16px 12px; font-size: 11px; } }
.siith-preview table { width: 100%; border-collapse: collapse; min-width: 760px; }
.siith-preview th {
  text-align: left;
  font-weight: 500;
  color: var(--color-accent-500);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}
.siith-preview td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.siith-preview tr:last-child td { border-bottom: 0; }
.siith-preview td.bad { color: oklch(0.70 0.18 25); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}
.faq-q .icon {
  font-family: "Geist Mono", "Geist Mono Variable", "Geist Mono Local Fallback", ui-monospace, monospace;
  font-size: 18px;
  color: var(--color-brand-600);
  transition: transform .2s;
  flex-shrink: 0;
}
html.dark .faq-q .icon { color: var(--color-brand-300); }
.faq-item:has(.faq-q[aria-expanded="true"]) .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease-out, padding .3s;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.7;
  padding: 0;
}
.faq-item:has(.faq-q[aria-expanded="true"]) .faq-a {
  max-height: 320px;
  padding-bottom: 22px;
}

/* CTA banner — gradiente brand */
.cta-banner {
  background: linear-gradient(135deg, var(--color-brand-700) 0%, var(--color-brand-600) 50%, oklch(0.55 0.18 320) 100%);
  color: #fff;
  padding: 72px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 0%, oklch(0.78 0.16 75 / 0.25), transparent 60%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
  font-family: "Geist", "Geist Variable", "Geist Local Fallback", ui-sans-serif, sans-serif;
  font-style: normal;
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: -0.025em;
  padding: 0 8px;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  font-size: 16.5px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-brand-700);
}
.cta-banner .btn-primary:hover {
  background: oklch(0.96 0.005 270);
  color: var(--color-brand-800);
}
.cta-banner .btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Section variants — secciones que tenían background cream-deep ahora muted */
section[style*="--cream-deep"],
section.section[style*="background"] {
  background: var(--muted) !important;
}
