/* ============================================================
   Kidd · Web de presentación
   Paleta y lenguaje visual tomados de la app Kidd (KiddTheme).
   ============================================================ */

:root {
  color-scheme: light;
  --seed: #4c6fff;
  --seed-dark: #3a55d9;
  --seed-ink: #4a63f0;
  --seed-ink-2: #3a55d9;
  --seed-soft: #eaeeff;
  --coral: #ff7a59;
  --coral-ink: #b23f22;
  --coral-soft: #ffece6;
  --mint: #2ec4b6;
  --mint-ink: #0f6f66;
  --mint-soft: #e2f8f5;
  --sun: #ffb703;
  --sun-soft: #fff4d8;
  --sun-ink: #7a5200;
  --ink: #1b1f2a;
  --ink-2: #3b4152;
  --muted: #6a7183;
  --line: #e7e9f2;
  --cloud: #f6f7fb;

  --body: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --surface-3: #f2f4fa;
  --input-bg: #f6f7fb;
  --inverse-bg: #1b1f2a;
  --inverse-fg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.82);

  --radius: 18px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(27, 31, 42, 0.05),
    0 4px 12px -10px rgba(27, 31, 42, 0.2);
  --shadow: 0 10px 28px -22px rgba(27, 31, 42, 0.35);
  --shadow-lg: 0 24px 56px -34px rgba(27, 31, 42, 0.45);
  --max: 1200px;
  --header-h: 88px;

  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Baloo 2", var(--font);
}

[data-theme="dark"] {
  color-scheme: dark;
  --seed: #7d92ff;
  --seed-dark: #6b84ff;
  --seed-ink: #93a5ff;
  --seed-ink-2: #7d92ff;
  --seed-soft: rgba(109, 132, 255, 0.16);
  --coral: #ff8f73;
  --coral-ink: #ff8f73;
  --coral-soft: rgba(255, 122, 89, 0.16);
  --mint: #3fd6c8;
  --mint-ink: #3fd6c8;
  --mint-soft: rgba(46, 196, 182, 0.16);
  --sun: #ffc533;
  --sun-soft: rgba(255, 183, 3, 0.16);
  --sun-ink: #ffc533;
  --ink: #eef1f8;
  --ink-2: #c9cfdd;
  --muted: #98a0b3;
  --line: #2a2f3e;
  --cloud: #12151d;

  --body: #0b0d12;
  --surface: #141824;
  --surface-2: #191e2b;
  --surface-3: #1e2433;
  --input-bg: #1a1f2c;
  --inverse-bg: #05070b;
  --inverse-fg: #ffffff;
  --header-bg: rgba(11, 13, 18, 0.82);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4),
    0 8px 24px -18px rgba(0, 0, 0, 0.8);
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

::selection {
  background: var(--seed-ink);
  color: #fff;
}
[data-theme="dark"] ::selection {
  background: var(--seed-ink);
  color: #0b0d12;
}

:focus-visible {
  outline: 2px solid var(--seed);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline-offset: 2px;
}

html {
  caret-color: var(--seed-ink);
  scrollbar-color: var(--line) transparent;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 3px solid var(--body);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.section-head a,
.legal-body a,
.feature-list-item a,
.intro-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 0.15s ease;
}
.section-head a:hover,
.legal-body a:hover,
.feature-list-item a:hover,
.intro-link:hover {
  text-decoration-color: currentColor;
}

.dues-income-item strong,
.dues-row strong,
.dues-total strong,
.app-stat strong,
.module-state {
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}
.material-symbols-rounded > svg,
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  background: var(--seed-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 200;
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: 820px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(27, 31, 42, 0.5);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.brand-name {
  color: var(--seed);
}
.footer-brand .brand-name {
  color: #9db0ff;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover:not(.nav-cta-mobile) {
  background: var(--cloud);
  color: var(--seed-ink);
}
.nav-cta-mobile {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn .material-symbols-rounded {
  font-size: 20px;
}
.btn-primary {
  background: var(--seed-ink);
  color: #fff;
  box-shadow: 0 16px 34px -18px rgba(76, 111, 255, 0.95);
}
.btn-primary:hover {
  background: var(--seed-dark);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -18px rgba(76, 111, 255, 0.95);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--seed-ink);
  color: var(--seed-ink);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 11px 16px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-lg {
  padding: 16px 26px;
  font-size: 17px;
}
.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--seed-ink);
  font-weight: 700;
}
.link-arrow .material-symbols-rounded {
  transition: transform 0.16s ease;
}
.link-arrow:hover .material-symbols-rounded {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
/* Sin esto, el carrusel del hero (width: max-content) impone su ancho
   intrínseco a la columna del grid y provoca scroll horizontal en móvil. */
.hero-copy,
.hero-visual {
  min-width: 0;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-meta {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.hero-meta span {
  margin: 0 9px;
  opacity: 0.45;
}

/* Hero activity marquee */
.hero-pulse {
  display: flex;
  margin: 0 0 20px;
  max-width: 560px;
}
.hero-pulse-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hero-pulse-track {
  display: flex;
  width: max-content;
  animation: heroMarquee 48s linear infinite;
}
.hero-pulse-group {
  display: flex;
  gap: 10px;
  padding-right: 10px;
}
.hero-pulse-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.hero-pulse-chip .material-symbols-rounded {
  font-size: 16px;
}
.hp-coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.hp-blue {
  background: var(--seed-soft);
  color: var(--seed-dark);
}
.hp-green {
  background: var(--mint-soft);
  color: var(--mint-ink);
}
.hp-sun {
  background: var(--sun-soft);
  color: var(--sun-ink);
}

@keyframes heroMarquee {
  to {
    transform: translateX(-50%);
  }
}

/* App window mockup */
.hero-visual {
  position: relative;
}
.app-window {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--cloud);
  border-bottom: 1px solid var(--line);
}
.app-url {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 14px;
  border-radius: 999px;
}
.app-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 470px;
}
.app-sidebar {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
}
.app-sidebar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 6px 16px;
}
.app-brand-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.mini-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--seed);
  font-size: 20px;
}
.app-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.app-nav-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 12px 10px 4px;
}
.app-nav-label:first-child {
  padding-top: 2px;
}
.app-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 4px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.app-footer-text strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.2;
}
.app-footer-text small {
  color: var(--muted);
  font-size: 11px;
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.app-nav-item .material-symbols-rounded {
  font-size: 19px;
}
.app-nav-item.active {
  background: var(--seed-soft);
  color: var(--seed-ink-2);
}
.badge-count {
  margin-left: auto;
  background: var(--coral-soft);
  color: var(--coral-ink);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}
.app-main {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-greeting .app-greeting-title {
  font-size: 18px;
  font-weight: 800;
}
.app-greeting p {
  font-size: 12.5px;
  color: var(--muted);
}
.app-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--seed-ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.app-avatar.sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.app-avatar.green {
  background: var(--mint-ink);
}
.app-avatar.coral {
  background: var(--coral-ink);
}
.app-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.app-stat {
  background: var(--cloud);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-stat strong {
  font-size: 19px;
  font-weight: 800;
}
.app-stat small {
  font-size: 11px;
  color: var(--muted);
}
.stat-icon {
  font-size: 19px;
  margin-bottom: 4px;
}
.stat-icon.blue {
  color: var(--seed-ink);
}
.stat-icon.coral {
  color: var(--coral-ink);
}
.stat-icon.mint {
  color: var(--mint-ink);
}
.stat-icon.sun {
  color: var(--sun-ink);
}
.app-card {
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.app-card:last-child {
  border-bottom: 0;
}
.app-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-card-text strong {
  display: block;
  font-size: 13.5px;
}
.app-card-text small {
  color: var(--muted);
  font-size: 12px;
}
.app-card .chip {
  margin-left: auto;
}

.app-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}
.app-step-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--seed-soft);
  color: var(--seed-ink-2);
  font-variation-settings: "FILL" 1;
}
.app-step-ico.done {
  background: var(--mint-soft);
  color: var(--mint-ink);
}
.app-roster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.app-student {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.app-student small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.chip-coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.chip-blue {
  background: var(--seed-soft);
  color: var(--seed-dark);
}
.chip-green {
  background: var(--mint-soft);
  color: var(--mint-ink);
}
.chip-sun {
  background: var(--sun-soft);
  color: var(--sun-ink);
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
  position: relative;
}
.section-alt {
  background: var(--cloud);
}
.section-dark {
  background: var(--inverse-bg);
  color: #fff;
}
.section-head {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 10px 56px;
  align-items: end;
  margin: 0 0 54px;
  text-align: left;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 48ch;
  padding-bottom: 3px;
}
.section-head.light p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 54px 0;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}
.feature-row.reverse .feature-copy {
  order: 2;
}
.feature-copy h2,
.feature-copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.feature-copy > p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 52ch;
}
.feature-ico {
  display: inline-flex;
  font-size: 34px;
  margin-bottom: 16px;
  font-variation-settings: "FILL" 1;
}
.feature-ico.blue {
  color: var(--seed-ink);
}
.feature-ico.mint {
  color: var(--mint-ink);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.check-list .material-symbols-rounded {
  font-size: 20px;
  color: var(--seed-ink);
  flex-shrink: 0;
  margin-top: 1px;
}
.check-list.light li {
  color: rgba(255, 255, 255, 0.9);
}
.check-list.light .material-symbols-rounded {
  color: #5fe0d3;
}

/* Phone mockup */
.feature-visual {
  display: flex;
  justify-content: center;
}
.phone {
  width: 300px;
  background: var(--inverse-bg);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 20px;
  background: var(--inverse-bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: var(--cloud);
  border-radius: 30px;
  padding: 30px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px 10px;
}
.phone-header .material-symbols-rounded {
  color: var(--seed-ink);
  font-variation-settings: "FILL" 1;
}
.phone-header strong {
  font-size: 15px;
}
.diary-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}
.diary-item:last-child {
  border-bottom: 0;
}
.diary-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
  font-variation-settings: "FILL" 1;
}
.diary-ico.green {
  background: var(--mint-soft);
  color: var(--mint-ink);
}
.diary-ico.blue {
  background: var(--seed-soft);
  color: var(--seed-ink-2);
}
.diary-ico.sun {
  background: var(--sun-soft);
  color: var(--sun-ink);
}
.diary-ico.coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.diary-item strong {
  display: block;
  font-size: 13.5px;
}
.diary-item small {
  color: var(--muted);
  font-size: 12px;
}
.diary-photo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--seed-soft);
  color: var(--seed-dark);
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
}

/* Cuotas */
.dues-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.dues-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.dues-head strong {
  display: block;
  font-size: 17px;
}
.dues-head small {
  color: var(--muted);
  font-size: 12.5px;
}
.dues-income {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 0 2px;
}
.dues-income-item {
  background: var(--cloud);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.dues-income-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.dues-income-item strong {
  font-size: 15px;
  font-weight: 800;
}
.dues-income-item strong.mint {
  color: var(--mint-ink);
}
.dues-income-item strong.coral {
  color: var(--coral-ink);
}
.dues-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.dues-row strong {
  color: var(--ink);
}
.dues-row.discount strong {
  color: var(--mint-ink);
}
.dues-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 4px;
  font-weight: 700;
}
.dues-total strong {
  font-size: 1.5rem;
  color: var(--seed-ink);
}
.dues-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  background: var(--cloud);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.dues-file > .material-symbols-rounded:first-child {
  color: var(--seed-ink);
  font-variation-settings: "FILL" 1;
}
.dues-file > .material-symbols-rounded:last-child {
  margin-left: auto;
  color: var(--muted);
}
.dues-file strong {
  display: block;
  font-size: 13.5px;
}
.dues-file small {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Feature list ---------- */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}
.feature-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.feature-list-item h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.feature-list-item p {
  color: var(--muted);
  font-size: 14px;
  max-width: 44ch;
}
.mini-ico {
  display: inline-flex;
  font-size: 26px;
  margin-top: 2px;
  font-variation-settings: "FILL" 1;
}
.mini-ico.blue {
  color: var(--seed-ink);
}
.mini-ico.coral {
  color: var(--coral-ink);
}
.mini-ico.mint {
  color: var(--mint-ink);
}
.mini-ico.sun {
  color: var(--sun-ink);
}

/* ---------- Module panel ---------- */
.module-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
.module-group h3 {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
}
.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.module-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.module-ico {
  font-size: 24px;
  flex-shrink: 0;
  font-variation-settings: "FILL" 1;
}
.module-ico.blue {
  color: var(--seed-ink);
}
.module-ico.coral {
  color: var(--coral-ink);
}
.module-ico.mint {
  color: var(--mint-ink);
}
.module-ico.sun {
  color: var(--sun-ink);
}
.module-text {
  flex: 1;
  min-width: 0;
}
.module-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.module-text small {
  color: var(--muted);
  font-size: 13px;
}
.module-state {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mint-ink);
  background: var(--mint-soft);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}
.switch.on {
  background: var(--seed-ink);
  border-color: var(--seed-ink);
}
.switch.on span {
  transform: translateX(18px);
  background: #fff;
}
[data-theme="dark"] .module-state {
  color: #8fe6dd;
}
.modules-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 62ch;
}

/* ---------- Roles ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
}
.role-card {
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.role-ico {
  display: inline-flex;
  font-size: 30px;
  margin-bottom: 16px;
  font-variation-settings: "FILL" 1;
}
.role-ico.blue {
  color: var(--seed-ink);
}
.role-ico.coral {
  color: var(--coral-ink);
}
.role-ico.mint {
  color: var(--mint-ink);
}
.role-ico.sun {
  color: var(--sun-ink);
}
.role-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.role-card p {
  color: var(--muted);
  font-size: 14px;
}
.role-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-card li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.role-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seed-ink);
}

/* ---------- Split (multi-escuela) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-copy,
.split-visual {
  min-width: 0;
}
.split-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.split-copy > p {
  color: var(--muted);
  font-size: 1.06rem;
}
.split-copy .check-list {
  grid-template-columns: 1fr;
}
.split-copy .btn {
  margin-top: 28px;
}
.split-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.domain-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.domain-card > .material-symbols-rounded {
  font-size: 30px;
  color: var(--seed-ink);
}
.domain-card strong {
  display: block;
  font-size: 16px;
}
.domain-card small {
  color: var(--muted);
  font-size: 12.5px;
}
.domain-card .chip {
  margin-left: auto;
}
.palette-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--inverse-bg);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.palette-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.palette-brand strong {
  display: block;
  font-size: 15px;
}
.palette-brand small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.swatches {
  display: flex;
  gap: 8px;
}
.swatches span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6);
}

/* ---------- Security ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.security-card {
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.security-card .material-symbols-rounded {
  font-size: 30px;
  color: #5fe0d3;
  margin-bottom: 16px;
  font-variation-settings: "FILL" 1;
}
.security-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.security-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  max-width: 34ch;
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.faq-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0 0 16px;
}
.faq-intro p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 36ch;
}
.faq-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.faq-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--seed-ink);
}
.faq-contact .material-symbols-rounded {
  font-size: 20px;
}
.faq-contact:hover {
  color: var(--seed-dark);
}
.faq {
  border-top: 0;
}
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--seed-ink);
}
.faq-mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.2s ease;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-mark::before {
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-mark::after {
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-item[open] .faq-mark {
  color: var(--seed-ink);
}
.faq-item[open] .faq-mark::before {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.faq-item p {
  color: var(--muted);
  font-size: 15px;
  padding: 0 0 24px;
  max-width: 62ch;
}
.faq-item[open] p {
  animation: faqIn 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Demo / form ---------- */
.demo-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.demo-copy {
  background: linear-gradient(160deg, var(--seed-ink), var(--seed-ink-2));
  color: #fff;
  padding: 52px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.demo-copy h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 16px;
}
.demo-copy > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.04rem;
}
.demo-copy .check-list {
  grid-template-columns: 1fr;
  margin-top: 26px;
}
.demo-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
}
.demo-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-weight: 700;
  align-self: flex-start;
}
.demo-contact a {
  color: #fff;
}
.demo-contact-phone {
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-align: left;
  flex-wrap: wrap;
  transition: background 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}
.demo-contact-phone:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.demo-contact-value {
  letter-spacing: 0.01em;
}
.contact-tags {
  display: inline-flex;
  gap: 6px;
  margin-left: 2px;
}
.contact-tag {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  white-space: nowrap;
}
.contact-tag-wa {
  background: rgba(37, 211, 102, 0.32);
}
.demo-form {
  background: var(--surface);
  padding: 46px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--input-bg);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}
.field textarea {
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #a2a8b8;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--seed-ink);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: var(--coral-ink);
}
.checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}
.checkbox input {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: var(--seed-ink);
  flex-shrink: 0;
}
.checkbox a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 0.15s ease;
}
.checkbox a:hover {
  text-decoration-color: currentColor;
}
.form-status {
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
  margin: 0;
}
.form-status.ok {
  color: var(--mint-ink);
}
.form-status.error {
  color: var(--coral-ink);
}

/* ---------- Legal ---------- */
.legal {
  padding: 56px 0;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.legal-grid h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
}
.legal-grid p {
  color: var(--muted);
  font-size: 13.5px;
}
.legal-grid a {
  color: var(--seed-ink);
  font-weight: 700;
}
@media (max-width: 720px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--inverse-bg);
  color: #fff;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  max-width: 320px;
}
.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .faq-item[open] p {
    animation: none;
  }
  .hero-pulse-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-body {
    grid-template-columns: 160px 1fr;
  }
}

@media (max-width: 920px) {
  html.nav-open {
    overflow: hidden;
  }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.28s ease;
  }
  .main-nav a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 16px;
  }
  .nav-cta-mobile {
    display: block;
    background: var(--seed-ink);
    color: #fff !important;
    text-align: center;
    margin-top: 6px;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .header-actions .btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .hero {
    padding-top: 40px;
  }
  .feature-row,
  .split,
  .demo-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-row.reverse .feature-copy {
    order: 0;
  }
  .feature-row + .feature-row {
    border-top: none;
  }
  .section {
    padding: 64px 0;
  }
  .demo-copy,
  .demo-form {
    padding: 36px 28px;
  }
}

@media (max-width: 720px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }
  .check-list {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .app-body {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .app-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .phone {
    width: 100%;
    max-width: 300px;
  }
  .btn-lg {
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .dues-card {
    padding: 20px;
  }
  .palette-card,
  .domain-card {
    flex-wrap: wrap;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Modo claro / oscuro
   ============================================================ */
.theme-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
}
.theme-toggle:hover {
  color: var(--seed-ink);
  border-color: var(--seed-ink);
  transform: translateY(-1px);
}
.theme-toggle .material-symbols-rounded {
  font-size: 22px;
}
.theme-icon-sun {
  display: none;
}
[data-theme="dark"] .theme-icon-sun {
  display: inline-flex;
}
[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* ============================================================
   Beneficios
   ============================================================ */
.benefits-section {
  padding: 8px 0 0;
}
.benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 40px;
  margin: 0;
  padding: 0;
}
.benefit {
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.benefit-ico {
  display: inline-flex;
  font-size: 27px;
  margin-bottom: 14px;
  font-variation-settings: "FILL" 1;
}
.benefit-ico.blue {
  color: var(--seed-ink);
}
.benefit-ico.coral {
  color: var(--coral-ink);
}
.benefit-ico.mint {
  color: var(--mint-ink);
}
.benefit-ico.sun {
  color: var(--sun-ink);
}
.benefit h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0 0 6px;
}
.benefit p {
  color: var(--muted);
  font-size: 14px;
  max-width: 30ch;
}

/* ============================================================
   Variantes de rejilla y CTA central
   ============================================================ */
.roles-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* ============================================================
   Ajustes de contraste en modo oscuro
   ============================================================ */
[data-theme="dark"] .chip-coral {
  color: #ffb4a0;
}
[data-theme="dark"] .chip-blue {
  color: #b9c6ff;
}
[data-theme="dark"] .chip-green {
  color: #8fe6dd;
}
[data-theme="dark"] .chip-sun {
  color: #ffd77a;
}
[data-theme="dark"] .form-status.ok {
  color: #6fe3d6;
}
[data-theme="dark"] .form-status.error {
  color: #ff9c82;
}
[data-theme="dark"] .dues-row.discount strong {
  color: var(--mint-ink);
}
[data-theme="dark"] .link-arrow {
  color: var(--seed-ink);
}
[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.9);
}

/* ============================================================
   Responsive de las variantes
   ============================================================ */
@media (max-width: 1080px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .faq-layout {
    gap: 44px;
  }
}

@media (max-width: 920px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 40px;
  }
  .section-head p {
    max-width: 62ch;
  }
  .feature-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .module-panel {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .faq-intro {
    position: static;
  }
  .roles-grid.three {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .security-card {
    border-top-color: rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 720px) {
  .security-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .benefits {
    grid-template-columns: 1fr;
  }
  .app-roster {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Información legal
   ============================================================ */
.legal-page {
  --legal-gutter: 2.75rem;
  --legal-gap: 1.35rem;
  padding: 60px 0 96px;
}

/* ---------- Cabecera documental ---------- */
.legal-masthead {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 10px 56px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.legal-masthead h1 {
  font-size: clamp(2.4rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.legal-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44ch;
  padding-bottom: 5px;
}

/* ---------- Rejilla documento + índice ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 76px;
  align-items: start;
  margin-top: 52px;
}

.legal-index {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}
.legal-index-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.legal-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-index-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.legal-index-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.15s ease, transform 0.15s ease;
}
.legal-index-list a:hover {
  color: var(--seed-ink);
}
.legal-index-list a:hover::before {
  background: var(--seed);
}
.legal-index-list a.is-active {
  color: var(--seed-ink-2);
  background: var(--seed-soft);
}
.legal-index-list a.is-active::before {
  background: var(--seed-ink-2);
  transform: scale(1.2);
}
.legal-index-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal-index-updated {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.legal-index-top {
  width: fit-content;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--seed-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--seed) 35%, transparent);
  transition: text-decoration-color 0.15s ease;
}
.legal-index-top:hover {
  text-decoration-color: currentColor;
}

/* ---------- Documentos ---------- */
.legal-doc {
  max-width: 74ch;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-doc + .legal-doc {
  margin-top: 76px;
  padding-top: 76px;
  border-top: 1px solid var(--line);
}
.legal-doc-head {
  padding-bottom: 22px;
}
.legal-doc-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.legal-doc-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}
.legal-doc:target .legal-doc-head h2 {
  color: var(--seed-ink);
}

/* ---------- Cláusulas numeradas ---------- */
.legal-clause {
  padding-block: 28px;
}
.legal-clause + .legal-clause {
  border-top: 1px solid var(--line);
}
.legal-doc-head + .legal-clause {
  padding-top: 2px;
}
.legal-clause-title {
  display: grid;
  grid-template-columns: var(--legal-gutter) minmax(0, 1fr);
  column-gap: var(--legal-gap);
  align-items: baseline;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.legal-clause-num {
  color: var(--seed-ink);
  font-size: 0.84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.legal-clause-body {
  margin-top: 13px;
  padding-left: calc(var(--legal-gutter) + var(--legal-gap));
}

/* ---------- Cuerpo de texto ---------- */
.legal-body {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.72;
}
.legal-body p {
  margin: 0 0 14px;
}
.legal-body p:last-child {
  margin-bottom: 0;
}
.legal-body ul {
  margin: 0 0 14px;
  padding-left: 1.15rem;
}
.legal-body li {
  margin-bottom: 7px;
  padding-left: 2px;
}
.legal-body li:last-child {
  margin-bottom: 0;
}
.legal-body strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Bloques de datos ---------- */
.legal-data {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}
.legal-clause-body > .legal-data:first-child {
  margin-top: 0;
}
.legal-data > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 13rem) minmax(0, 1fr);
  gap: 2px 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.legal-data dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}
.legal-data dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.back-home {
  display: inline-flex;
}

@media (max-width: 960px) {
  .legal-masthead {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }
  .legal-intro {
    max-width: 56ch;
    padding-bottom: 0;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 38px;
  }
  .legal-index {
    position: static;
    margin-bottom: 40px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
  }
  .legal-index-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 24px;
  }
  .legal-index-list a {
    padding: 5px 0;
    border-radius: 0;
    font-size: 0.94rem;
  }
  .legal-index-list a.is-active {
    background: transparent;
  }
  .legal-index-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .legal-doc {
    max-width: none;
  }
  .legal-doc + .legal-doc {
    margin-top: 52px;
    padding-top: 52px;
  }
}

@media (max-width: 620px) {
  .legal-page {
    --legal-gutter: 1.65rem;
    --legal-gap: 0.8rem;
    padding: 42px 0 72px;
  }
  .legal-clause {
    padding-block: 22px;
  }
  .legal-doc-head {
    padding-bottom: 18px;
  }
  .legal-data > div {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 10px 0;
  }
  .legal-data dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 560px) {
  .back-home-label {
    display: none;
  }
}

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 16px;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
}
.cookie-banner-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 720px;
}
.cookie-banner-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 0.15s ease;
}
.cookie-banner-text a:hover {
  text-decoration-color: currentColor;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
body.has-cookie-banner {
  padding-bottom: 120px;
}
.footer-cookie-settings {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-cookie-settings:hover {
  color: #fff;
}
@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

/* ============================================================
   Páginas de intención (SEO): migas, cabecera, prosa, pasos y CTA
   ============================================================ */

/* ---------- Migas de pan ---------- */
.breadcrumbs {
  padding-top: 22px;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumbs a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.15s ease;
}
.breadcrumbs a:hover {
  color: var(--seed-ink);
}
.breadcrumbs li[aria-current="page"] {
  color: var(--ink-2);
  font-weight: 700;
}

/* ---------- Cabecera de página interior ---------- */
.page-head-section {
  padding: 48px 0 56px;
}
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 18px 64px;
  align-items: end;
}
.page-head h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}
.page-head-lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.62;
  max-width: 46ch;
  padding-bottom: 6px;
}
.page-head-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.page-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 46px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.page-facts li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 24px;
  background: var(--surface-2);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}
.page-facts .material-symbols-rounded {
  font-size: 20px;
  color: var(--seed-ink);
  flex-shrink: 0;
}

/* ---------- Prosa / artículo ---------- */
.prose {
  max-width: 74ch;
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.72;
}
.prose > p {
  margin: 0 0 16px;
}
.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 34px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 1.15rem;
}
.prose li {
  margin-bottom: 8px;
  padding-left: 2px;
}
.prose strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Pasos ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--seed-soft);
  color: var(--seed-ink-2);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}
.step p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Banda de CTA ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background: linear-gradient(160deg, var(--seed-ink), var(--seed-ink-2));
  color: #fff;
  padding: 46px 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cta-band-copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 10px;
}
.cta-band-copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  max-width: 56ch;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--seed-ink);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}
.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--seed-ink-2);
}

/* ---------- Enlaces auxiliares ---------- */
.faq-more {
  margin-top: 18px;
}
.faq-more a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 0.15s ease;
}
.faq-more a:hover {
  text-decoration-color: currentColor;
}
.split-copy h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 14px;
}
.main-nav a[aria-current="page"] {
  color: var(--seed-ink-2);
  background: var(--seed-soft);
}

@media (max-width: 960px) {
  .page-head {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
  .page-head-lead {
    max-width: 62ch;
    padding-bottom: 0;
  }
}
@media (max-width: 920px) {
  .page-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 720px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
  .cta-band .btn {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .page-facts {
    grid-template-columns: 1fr;
  }
  .page-facts li {
    padding: 18px 20px;
  }
}

/* ---------- Tarjetas de enlaces internos ---------- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.link-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}
.link-card:hover {
  border-color: var(--seed-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.link-card .material-symbols-rounded {
  font-size: 26px;
  color: var(--seed-ink);
  margin-bottom: 12px;
}
.link-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
}
.link-card p {
  color: var(--muted);
  font-size: 13.5px;
}
@media (max-width: 720px) {
  .link-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Enlaces dentro de la lista de funciones: subrayado solo al pasar el ratón */
.feature-list-item h3 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 0.15s ease;
}
.feature-list-item h3 a:hover {
  text-decoration-color: currentColor;
}

/* Sección que contiene una única fila destacada: menos aire vertical para que
   la pieza respire sin quedar huérfana. */
.section-feature {
  padding: 68px 0;
}
.section-feature .feature-row {
  padding: 0;
}
@media (max-width: 920px) {
  .section-feature {
    padding: 52px 0;
  }
}

/* ============================================================
   Popup de contacto (Llamar / WhatsApp)
   ============================================================ */
html.contact-modal-open {
  overflow: hidden;
}
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.contact-modal[hidden] {
  display: none;
}
.contact-modal.is-open {
  opacity: 1;
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 28, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.contact-modal-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 30px 30px;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
}
.contact-modal.is-open .contact-modal-card {
  transform: none;
}
.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact-modal-close:hover {
  color: var(--ink);
  border-color: var(--seed-ink);
}
.contact-modal-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--seed) 0%, #6f86ff 52%, var(--mint) 130%);
  color: #fff;
  box-shadow: 0 22px 40px -20px rgba(76, 111, 255, 0.85),
    0 0 0 8px var(--seed-soft), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.contact-modal-icon svg {
  width: 62px;
  height: 62px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(15, 18, 28, 0.25));
}
/* Pilotito de disponibilidad: rojo por defecto y verde en horario de 9 a 20 h
   (la clase .is-online la aplica app.js según la hora local del visitante). */
.contact-modal-live {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f2453d;
  border: 4px solid var(--surface);
}
.contact-modal-live.is-online {
  background: #25d366;
}
.contact-modal-live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
}
.contact-modal-live.is-online::after {
  animation: contactLivePulse 2s ease-out infinite;
}
@keyframes contactLivePulse {
  0% {
    transform: scale(0.8);
    opacity: 0.55;
  }
  70% {
    transform: scale(2.1);
    opacity: 0;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}
.contact-modal-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin: 8px 0 8px;
}
.contact-modal-desc {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px;
}
.contact-modal-phone {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 22px;
}
.contact-modal-actions {
  display: flex;
  gap: 12px;
}
.contact-modal-actions .btn {
  flex: 1;
}
.btn-whatsapp {
  background: #25d366;
  color: #06331a;
  box-shadow: 0 16px 34px -18px rgba(37, 211, 102, 0.9);
}
.btn-whatsapp:hover {
  background: #1ebe5b;
  color: #06331a;
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .contact-modal-actions {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-modal-card {
    transition: none;
  }
  .contact-modal-live.is-online::after {
    animation: none;
  }
  .demo-contact-phone:hover,
  .btn-whatsapp:hover {
    transform: none;
  }
}
