/* ============================================================
   YO SENIOR · Design System
   Accesible para adultos mayores · Estilo Linear
   Paleta institucional: azul oscuro, azul medio, dorado,
   blanco, negro y gris claro.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --primary: #1a2a6c;
  --primary-700: #15235a;
  --primary-900: #0e1840;
  --secondary: #2d5aa0;
  --secondary-600: #3a6bb8;
  --accent: #d4af37;
  --accent-light: #e8c94a;
  --accent-soft: #fbf4d9;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #4d5568;
  --soft: #5f6b80;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --line: #dfe3ec;
  --line-strong: #c6cedd;
  --success: #1e7b45;
  --success-soft: #e8f5ee;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warning: #8a5a00;
  --warning-soft: #fff6dd;
  --info: #0b6b85;
  --info-soft: #e6f4f8;

  /* Tipografía */
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --fs-base: 1.125rem;      /* 18px mínimo absoluto */
  --fs-sm: 1rem;            /* 16px solo metadatos no esenciales */
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.9rem;
  --fs-3xl: 2.4rem;
  --fs-4xl: clamp(2.5rem, 5vw, 4rem);

  /* Espaciado */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3.5rem;
  --sp-9: 5rem;
  --section: clamp(3rem, 7vw, 5.5rem);
  --container: 1180px;

  /* Formas y sombras */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .07);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, .09);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);
  --shadow-gold: 0 8px 22px rgba(212, 175, 55, .32);
  --ring: 0 0 0 4px rgba(45, 90, 160, .28);

  /* Movimiento (suave, sin parpadeos) */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .16s var(--ease);
  --t: .28s var(--ease);
}

/* Modo letra grande */
body.font-large {
  --fs-base: 1.3rem;
  --fs-sm: 1.1rem;
  --fs-lg: 1.45rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.2rem;
  --fs-3xl: 2.8rem;
}

/* Modo alto contraste */
body.high-contrast {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --line: #767676;
  --line-strong: #3a3a3a;
  --muted: #1f1f1f;
  --soft: #2b2b2b;
  --accent: #8a6400;
  --accent-light: #a97c00;
  --accent-soft: #fff2b8;
  --secondary: #17407a;
}
body.high-contrast .card,
body.high-contrast .panel,
body.high-contrast .course-card,
body.high-contrast .product-card { border-width: 2px; }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; background: var(--surface-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--secondary); text-underline-offset: .2em; }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); font-weight: 800; }
h2 { font-size: var(--fs-3xl); font-weight: 800; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
h4 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4em; }
li { margin-bottom: .4rem; }
strong { font-weight: 700; }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}
body.high-contrast :focus-visible { outline-color: #000; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 3000;
  background: var(--accent);
  color: var(--ink);
  padding: .9rem 1.4rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.container-narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.section-white { background: var(--surface); }
.section-soft { background: var(--surface-2); }
.section-dark {
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(212, 175, 55, .18), transparent 60%),
    linear-gradient(135deg, var(--primary-900), var(--primary) 55%, var(--secondary));
  color: #e9eefb;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #d5def3; }

.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(45, 90, 160, .09);
  border: 1px solid rgba(45, 90, 160, .16);
  padding: .42rem .9rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.section-dark .eyebrow {
  color: var(--accent-light);
  background: rgba(212, 175, 55, .12);
  border-color: rgba(212, 175, 55, .3);
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .75rem; }
.section-sub { font-size: var(--fs-lg); color: var(--muted); margin: 0; }
.section-dark .section-sub { color: #cfd9f2; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 2rem; } .mb-6 { margin-bottom: 2rem; }
.w-100 { width: 100%; }

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(21, 33, 79, .82);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  color: #fff;
  border-bottom: 1px solid rgba(232, 201, 74, .34);
  box-shadow: 0 8px 26px rgba(6, 14, 43, .12);
}
.header-main {
  position: relative;
  background:
    radial-gradient(580px 160px at 84% 0%, rgba(212, 175, 55, .12), transparent 70%),
    linear-gradient(120deg, rgba(14, 24, 64, .78) 0%, rgba(26, 42, 108, .74) 52%, rgba(45, 90, 160, .68) 100%);
  border-top: 1px solid rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
}
.header-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
  background-image: radial-gradient(rgba(255, 255, 255, .38) .7px, transparent .7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 4%, #000 45%, transparent 100%);
}
.header-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 78px;
  padding-block: .6rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; background: transparent; }
.site-header .brand img { height: 56px; max-width: 190px; object-fit: contain; }
.brand:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; border-radius: 8px; }
.site-header a:focus-visible,
.site-header button:focus-visible { outline-color: var(--accent-light); }

.nav-shell {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .4rem .68rem;
  border-radius: 9px;
  color: rgba(239, 243, 255, .86);
  font-family: var(--font-display);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.nav-link i { font-size: .98rem; color: #a9b9e0; width: 1.15em; text-align: center; transition: color var(--t-fast); }
.main-nav .nav-link i { display: none; }
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-1px); }
.nav-link:hover i { color: #fff; }
.main-nav .nav-link.active { background: transparent; color: #fff; box-shadow: none; }
.main-nav .nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: .12rem; width: 18px; height: 2px; border-radius: 2px; background: var(--accent-light); box-shadow: 0 0 10px rgba(245, 220, 125, .35); transform: translateX(-50%); }
.main-nav .nav-link.active:hover { background: rgba(255, 255, 255, .08); }
.nav-link.active i { color: var(--accent-light); }

.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 48px;
  min-height: 48px;
  padding: .4rem .8rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.icon-btn:hover i, .icon-btn:focus-visible i { color: var(--ink); }
.icon-btn i { font-size: 1.1rem; }
.icon-label { font-size: .95rem; }
.icon-btn .badge-count {
  position: absolute;
  transform: translate(14px, -16px);
  background: var(--accent);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid var(--primary);
}

.wallet-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 48px;
  min-height: 48px;
  padding: .35rem .9rem .35rem .75rem;
  border-radius: 12px;
  border: 1.5px solid rgba(212, 175, 55, .55);
  background: rgba(212, 175, 55, .12);
  color: #fff;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.wallet-btn:hover, .wallet-btn:focus-visible { background: rgba(212, 175, 55, .24); border-color: var(--accent-light); color: #fff; }
.wallet-btn i { color: var(--accent-light); font-size: 1.2rem; }
.wallet-text { display: flex; flex-direction: column; line-height: 1.12; }
.wallet-text small { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #dbe3f7; }
.wallet-text strong { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: #fff; }
.menu-toggle { display: none; }

/* Barra de accesibilidad */
.a11y-bar {
  position: relative;
  background:
    radial-gradient(580px 160px at 84% 0%, rgba(212, 175, 55, .08), transparent 70%),
    linear-gradient(120deg, rgba(14, 24, 64, .78) 0%, rgba(26, 42, 108, .74) 52%, rgba(45, 90, 160, .68) 100%);
  color: #d5def3;
  font-size: .86rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
}
.a11y-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .1;
  background-image: radial-gradient(rgba(255, 255, 255, .38) .7px, transparent .7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 4%, #000 45%, transparent 100%);
}
.a11y-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  min-height: 34px;
  flex-wrap: wrap;
  padding-block: .1rem;
}
.a11y-note { margin: 0; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; letter-spacing: .01em; }
.a11y-note i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--accent-light); background: rgba(245, 220, 125, .1); font-size: .8rem; }
.a11y-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.a11y-label { display: none; }
.a11y-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 0;
  color: rgba(237, 242, 255, .82);
  border-radius: 0;
  min-height: 28px;
  padding: .1rem .25rem;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t-fast), box-shadow var(--t-fast);
}
.a11y-btn-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--accent-light); }
.a11y-btn-icon i { color: inherit; }
.a11y-btn:hover { color: #fff; }
.a11y-btn[aria-pressed="true"] { color: #fff; box-shadow: inset 0 -1px 0 rgba(245, 220, 125, .6); }
.a11y-btn:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

/* Menú móvil */
.mobile-nav {
  display: none;
  background: var(--primary-900);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: .85rem 0 1.1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav .container { display: grid; gap: .3rem; }
.mobile-nav-title {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #9fb0d8;
  font-weight: 700;
}
.mobile-nav .nav-link { justify-content: flex-start; width: 100%; min-height: 54px; background: rgba(255, 255, 255, .05); }
.mobile-nav .nav-link.active { background: #fff; }
.mobile-nav-extra { display: grid; gap: .3rem; margin-top: .4rem; padding-top: .5rem; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 56px;
  min-width: 130px;
  padding: .8rem 1.7rem;
  border-radius: 13px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn i { font-size: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-md); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
}
.btn-accent:hover { color: var(--ink); box-shadow: 0 12px 28px rgba(212, 175, 55, .4); }
.btn-whatsapp {
  min-width: 0;
  min-height: 40px;
  padding: .4rem .85rem;
  gap: .5rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: #25d366;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: none;
}
.btn-whatsapp i {
  color: #25d366;
  font-size: 1.08rem;
}
.btn-whatsapp:hover { background: rgba(255, 255, 255, .1); color: #25d366; border-color: rgba(37, 211, 102, .45); box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.btn-whatsapp:focus-visible { outline: 3px solid #25d366; outline-offset: 3px; }
.footer-contact .btn-whatsapp,
.footer-contact .btn-whatsapp:hover { color: #25d366; }
.footer-contact .btn-whatsapp i { color: #25d366; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(26, 42, 108, .05); color: var(--primary); }
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { color: var(--primary); background: #f3f6ff; }
.btn-ghost-light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-success { background: linear-gradient(135deg, #1e7b45, #28a05b); color: #fff; border-color: #1e7b45; }
.btn-danger { background: linear-gradient(135deg, #b42318, #d13a2e); color: #fff; border-color: #b42318; }
.btn-sm { min-height: 48px; min-width: 0; padding: .55rem 1.05rem; font-size: .98rem; border-radius: 10px; }
.btn-lg { min-height: 64px; padding: 1rem 2.2rem; font-size: 1.18rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  min-height: 48px;
}
.link-arrow i { transition: transform var(--t-fast); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- 6. Cards y superficies ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: clamp(1.4rem, 3vw, 2.2rem); }
.card-hover { transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: var(--fs-xl); }
.panel-body { padding: clamp(1.2rem, 3vw, 1.8rem); }
.divider { height: 1px; background: var(--line); border: 0; margin: 1.5rem 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .75rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  background: var(--surface-2);
  color: var(--primary);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge-gold { background: var(--accent-soft); color: #6d5100; border-color: #eeda8f; }
.badge-blue { background: #e9effb; color: var(--primary); border-color: #c9d7f2; }
.badge-green { background: var(--success-soft); color: var(--success); border-color: #bfe3cd; }
.badge-red { background: var(--danger-soft); color: var(--danger); border-color: #f6c9c4; }
.badge-amber { background: var(--warning-soft); color: var(--warning); border-color: #f0dca6; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: #bfe2ec; }
.badge-lg { font-size: .98rem; padding: .42rem 1rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 46px;
  padding: .45rem 1rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover { border-color: var(--secondary); background: #f0f4fd; color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 88% -10%, rgba(212, 175, 55, .22), transparent 58%),
    radial-gradient(700px 500px at -5% 100%, rgba(58, 107, 184, .38), transparent 60%),
    linear-gradient(120deg, var(--primary-900) 0%, var(--primary) 52%, var(--secondary) 100%);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .28;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-copy > .eyebrow {
  color: rgba(239, 243, 255, .9);
  background: rgba(255, 255, 255, .065);
  border-color: rgba(255, 255, 255, .14);
  padding: .36rem .78rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-copy > .eyebrow i { color: var(--accent-light); font-size: .9rem; }
.hero-copy h1 .gold { color: var(--accent-light); }
.hero-sub { font-size: clamp(1.12rem, 2vw, 1.35rem); color: #d9e2f6; max-width: 36ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; color: #cfd9f0; font-size: 1rem; }
.hero-trust strong { display: block; color: var(--accent-light); font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; }
.hero-trust span { display: block; }

.hero-media { position: relative; }
.hero-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(5, 12, 38, .45);
  border: 1px solid rgba(255, 255, 255, .22);
  aspect-ratio: 4 / 3.35;
}
.hero-photo .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.hero-photo .hero-slide.is-active { opacity: 1; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 16, 46, .6), transparent 55%);
  pointer-events: none;
}
.hero-carousel-controls { position: absolute; z-index: 2; right: .65rem; bottom: .65rem; display: flex; align-items: center; gap: .15rem; padding: .15rem .25rem; border-radius: 999px; background: rgba(8,16,46,.38); backdrop-filter: blur(6px); opacity: .58; transition: opacity .2s ease; }
.hero-carousel-controls:hover, .hero-carousel-controls:focus-within { opacity: 1; }
.hero-carousel-arrow { width: 30px; height: 30px; min-width: 30px; min-height: 30px; border: 0; background: transparent; color: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; border-radius: 50%; font-size: .7rem; }
.hero-carousel-arrow:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero-carousel-count { min-width: 2.5rem; color: rgba(255,255,255,.82); text-align: center; font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-carousel-controls button:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hero-photo .hero-slide { transition: none; } }
.hero-float {
  position: absolute;
  left: -1.1rem;
  bottom: 1.3rem;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-md);
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: 300px;
  border-left: 5px solid var(--accent);
}
.hero-float i { color: var(--success); font-size: 1.6rem; }
.hero-float strong { display: block; color: var(--primary); font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.hero-float span { font-size: .92rem; color: var(--muted); }
.hero-sticker {
  position: absolute;
  top: -1.2rem;
  right: -1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--ink);
  border-radius: 18px;
  padding: .75rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  box-shadow: var(--shadow-gold);
  transform: rotate(3deg);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-sticker i { font-size: 1.2rem; }

/* Hero de páginas internas */
.page-hero {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(212, 175, 55, .18), transparent 60%),
    linear-gradient(120deg, var(--primary-900), var(--primary) 60%, var(--secondary));
  color: #fff;
  padding-block: clamp(2.4rem, 5vw, 4rem);
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: .8rem; }
.page-hero p { color: #d5def3; font-size: var(--fs-lg); max-width: 62ch; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--accent-light); background: rgba(212, 175, 55, .13); border-color: rgba(212, 175, 55, .3); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .95rem; color: #b9c7e8; margin-bottom: 1rem; }
.breadcrumbs a { color: #dce5f8; }
.breadcrumbs i { font-size: .7rem; opacity: .7; }

/* ---------- 8. Features / pilares ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pillar-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.pillar:nth-child(2) .pillar-icon { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: var(--ink); }
.pillar:nth-child(3) .pillar-icon { background: linear-gradient(135deg, var(--secondary), #4a7cc8); }
.pillar h3 { margin-bottom: .6rem; }
.pillar p { color: var(--muted); margin-bottom: 1.1rem; }

/* Feature rows alternados */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3.4rem);
}
.feature-row.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.feature-media .float-chip {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  background: #fff;
  border-radius: 12px;
  padding: .7rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: .98rem;
}
.feature-media .float-chip i { color: var(--accent); font-size: 1.2rem; }
.feature-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.feature-copy p { color: var(--muted); font-size: var(--fs-lg); }
.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .75rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .75rem; margin: 0; color: var(--ink); }
.feature-list i { color: var(--success); margin-top: .28rem; font-size: 1.05rem; }

/* ---------- 9. Cursos ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.6vw, 1.9rem); }
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.course-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course-card:hover .course-thumb img { transform: scale(1.04); }
.course-thumb .badge { position: absolute; top: .9rem; left: .9rem; background: rgba(255, 255, 255, .94); color: var(--primary); border-color: transparent; box-shadow: var(--shadow-xs); }
.course-thumb .badge.course-level { position: absolute; top: auto; bottom: .9rem; right: .9rem; left: auto; }
.course-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.course-body p { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: .9rem; color: var(--soft); font-size: .95rem; margin-bottom: 1rem; }
.course-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.course-meta i { color: var(--secondary); }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.progress { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.progress-label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }

/* Detalle de curso */
.course-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.course-hero img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.lesson-list { display: grid; gap: .75rem; }
.lesson {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.lesson-num {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #6d5100;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
}
.lesson.done .lesson-num { background: var(--success-soft); color: var(--success); }
.lesson h4 { margin: 0 0 .25rem; font-size: 1.08rem; }
.lesson p { margin: 0; color: var(--muted); font-size: .98rem; }
.lesson-side { margin-left: auto; display: flex; align-items: center; gap: .5rem; color: var(--soft); font-size: .9rem; white-space: nowrap; }

/* Quiz */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.quiz-q { margin-bottom: 1.4rem; }
.quiz-q h4 { margin-bottom: .8rem; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  text-align: left;
  min-height: 56px;
  padding: .8rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: .6rem;
  font-size: 1.02rem;
}
.quiz-option:hover { border-color: var(--secondary); background: #f3f7ff; }
.quiz-option.correct { border-color: var(--success); background: var(--success-soft); }
.quiz-option.wrong { border-color: var(--danger); background: var(--danger-soft); }
.quiz-option .letter { font-family: var(--font-display); font-weight: 800; color: var(--primary); }
.quiz-feedback { padding: .9rem 1.1rem; border-radius: 10px; font-weight: 600; margin-top: .4rem; display: none; }
.quiz-feedback.show { display: block; }
.quiz-feedback.ok { background: var(--success-soft); color: var(--success); }
.quiz-feedback.no { background: var(--danger-soft); color: var(--danger); }

/* ---------- 10. Testimonios / historias ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
  box-shadow: var(--shadow-xs);
}
.quote-card::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: .35;
  position: absolute;
  top: .4rem;
  right: 1.2rem;
}
.quote-text { font-size: 1.14rem; color: var(--ink); margin-bottom: 1.4rem; }
.quote-person { display: flex; align-items: center; gap: .9rem; }
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-soft);
  flex-shrink: 0;
  background: var(--surface-2);
}
.avatar-sm { width: 44px; height: 44px; border-width: 2px; }
.avatar-lg { width: 88px; height: 88px; }
.quote-person strong { display: block; color: var(--primary); font-family: var(--font-display); }
.quote-person span { color: var(--muted); font-size: .95rem; }

/* Feed social */
.feed { display: grid; gap: 1.2rem; }
.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.4rem;
}
.post-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.post-head strong { display: block; color: var(--primary); font-family: var(--font-display); line-height: 1.25; }
.post-head span { color: var(--soft); font-size: .9rem; }
.post-head .badge { margin-left: auto; }
.post p { margin-bottom: .9rem; }
.post-img { border-radius: var(--r-md); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .9rem; }
.post-actions { display: flex; flex-wrap: wrap; gap: .5rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.post-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .35rem .8rem;
  border: 0;
  background: transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: .98rem;
  font-weight: 600;
}
.post-action:hover { background: var(--surface-2); color: var(--primary); }
.post-action.liked { color: var(--danger); }
.composer textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: .9rem 1rem;
  background: var(--surface);
}
.composer textarea:focus { border-color: var(--secondary); outline: none; box-shadow: var(--ring); }

/* Grupos y eventos */
.group-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.group-card:hover { border-color: var(--secondary); background: #f6f9ff; color: var(--ink); }
.group-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--accent-soft);
  color: #6d5100;
  flex-shrink: 0;
}
.group-card strong { display: block; color: var(--primary); font-family: var(--font-display); }
.group-card small { color: var(--muted); }
.event-card { display: flex; gap: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.event-date {
  flex: 0 0 66px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 12px;
  padding: .55rem .3rem;
  height: fit-content;
}
.event-date strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.event-date span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.event-card h4 { margin: 0 0 .3rem; font-size: 1.05rem; }
.event-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- 11. Servicios y profesionales ---------- */
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.service-card h3 { margin: 0; font-size: 1.25rem; }
.service-provider { display: flex; align-items: center; gap: .7rem; }
.service-provider strong { display: block; color: var(--primary); font-size: 1rem; line-height: 1.3; }
.service-provider span { color: var(--muted); font-size: .9rem; }
.service-price { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--primary); }
.service-price small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stars { color: #b8860b; letter-spacing: .08em; }
.service-foot { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; }

.pro-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.pro-head { display: flex; align-items: center; gap: .9rem; }
.pro-head img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-soft); }
.pro-head h3 { margin: 0; font-size: 1.16rem; }
.pro-head span { color: var(--muted); font-size: .95rem; }
.pro-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.pro-card p { color: var(--muted); font-size: .98rem; margin: 0; }
.pro-foot { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.pro-price { font-family: var(--font-display); font-weight: 800; color: var(--primary); font-size: 1.2rem; }
.pro-price small { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Slots de agenda */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .6rem; }
.slot {
  min-height: 50px;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}
.slot:hover { border-color: var(--secondary); background: #f2f6ff; }
.slot.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot[disabled] { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

/* ---------- 12. Marketplace ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .badge { position: absolute; top: .7rem; left: .7rem; }
.product-body { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }
.product-body h3 { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.product-body p { color: var(--muted); font-size: .93rem; margin: 0; }
.product-price { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--primary); margin-top: .35rem; }
.product-price small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.product-body .btn { margin-top: auto; }
.sold-out { filter: grayscale(.6); opacity: .8; }

.category-tile {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.category-tile:hover { border-color: var(--secondary); box-shadow: var(--shadow-sm); color: var(--ink); }
.category-tile i { font-size: 1.6rem; color: var(--secondary); }
.category-tile strong { font-family: var(--font-display); color: var(--primary); }
.category-tile span { color: var(--muted); font-size: .9rem; }

.game-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: var(--shadow-md);
}
.game-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 17, 48, .94), rgba(9, 17, 48, .2) 65%, transparent); }
.game-card .game-body { position: relative; z-index: 1; padding: 1.5rem; }
.game-card h3 { color: #fff; margin-bottom: .35rem; }
.game-card p { color: #dbe4f7; font-size: .98rem; margin-bottom: 1rem; }

/* Carrito */
.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(430px, 100%);
  background: var(--surface);
  z-index: 2200;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
  transform: translateX(102%);
  transition: transform var(--t);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.35rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 1.1rem 1.3rem; display: grid; gap: .9rem; align-content: start; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item strong { display: block; font-size: .98rem; color: var(--primary); line-height: 1.3; }
.cart-item span { color: var(--muted); font-size: .9rem; }
.cart-item .qty { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.cart-item .qty button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 800; }
.cart-foot { padding: 1.2rem 1.3rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: .9rem; }

/* ---------- 13. Billetera ---------- */
.wallet-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(212, 175, 55, .35), transparent 60%),
    linear-gradient(135deg, var(--primary-900), var(--primary) 55%, var(--secondary));
  box-shadow: var(--shadow-lg);
}
.wallet-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .06);
  right: -80px;
  bottom: -110px;
}
.wallet-card h2 { color: #fff; font-size: 1.2rem; margin-bottom: .4rem; }
.wallet-balance { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; color: #fff; margin-bottom: .3rem; }
.wallet-balance small { font-size: 1rem; color: #cfd9f0; font-weight: 600; }
.wallet-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.4rem; color: #cfd9f0; font-size: .95rem; }
.wallet-meta strong { color: var(--accent-light); display: block; font-family: var(--font-display); }
.wallet-chip { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; color: #e8eefc; margin-bottom: 1.1rem; }
.wallet-chip i { color: var(--accent-light); }
.movement { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.movement:last-child { border-bottom: 0; }
.movement-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex-shrink: 0; }
.movement-icon.in { background: var(--success-soft); color: var(--success); }
.movement-icon.out { background: var(--danger-soft); color: var(--danger); }
.movement strong { display: block; color: var(--primary); font-size: .98rem; line-height: 1.3; }
.movement small { color: var(--muted); }
.movement-amount { margin-left: auto; font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.movement-amount.in { color: var(--success); }
.movement-amount.out { color: var(--danger); }

/* ---------- 14. Blog ---------- */
.featured-post {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.featured-post img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.featured-body { padding: clamp(1.6rem, 3.5vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .post-card-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.post-card h3 { font-size: 1.14rem; margin: 0; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.post-card .meta { color: var(--soft); font-size: .88rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- 15. Precios ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-gold);
  background: linear-gradient(180deg, #fffdf5, var(--surface) 45%);
}
.price-flag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  padding: .32rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.price-desc { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.price-amount { font-family: var(--font-display); font-size: 2.7rem; font-weight: 800; line-height: 1; color: var(--primary); }
.price-amount small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .7rem; flex: 1; }
.price-list li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.price-list i { color: var(--success); margin-top: .28rem; }
.price-list .off { color: var(--soft); }
.price-list .off i { color: var(--danger); }
.price-card .btn { margin-top: auto; }

/* ---------- 16. FAQ ---------- */
.faq-list { display: grid; gap: .85rem; max-width: 900px; margin-inline: auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  min-height: 64px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: #6d5100;
  transition: transform var(--t-fast);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-body { padding: 1.1rem 1.4rem 1.3rem; color: var(--muted); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- 17. Formularios ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; }
.form-field { display: grid; gap: .4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1rem; }
.form-field .hint { color: var(--muted); font-size: .9rem; }
.input, .select, .textarea {
  width: 100%;
  min-height: 54px;
  padding: .75rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #7a8498; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--secondary); outline: none; box-shadow: var(--ring); }
.form-error { color: var(--danger); font-weight: 700; font-size: .95rem; min-height: 1.2rem; }
.form-success { background: var(--success-soft); color: var(--success); border: 1px solid #bfe3cd; border-radius: 10px; padding: .9rem 1.1rem; font-weight: 700; }
.form-note { display: flex; gap: .6rem; align-items: flex-start; background: var(--info-soft); border: 1px solid #bfe2ec; border-radius: 10px; padding: .85rem 1rem; color: #084d61; font-size: .95rem; }
.form-note i { margin-top: .2rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: .7rem; }
.checkbox-row input { width: 24px; height: 24px; margin-top: .2rem; accent-color: var(--secondary); }
.checkbox-row label { font-family: var(--font-body); font-weight: 400; color: var(--ink); }

/* ---------- 18. Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.tab {
  min-height: 54px;
  padding: .6rem 1.15rem;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.tab:hover { color: var(--primary); background: rgba(45, 90, 160, .05); }
.tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }

/* ---------- 19. Herramientas / filtros ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 1.6rem;
}
.search-box { position: relative; flex: 1 1 280px; }
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--soft); }
.search-box .input { padding-left: 2.8rem; }
.toolbar-group { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.result-count { color: var(--muted); font-size: .95rem; }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--line-strong); margin-bottom: .8rem; }

/* ---------- 20. Footer ---------- */
.site-footer { background: var(--primary-900); color: #c9d3ea; padding-top: clamp(2rem, 4vw, 3rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.2rem, 2vw, 1.7rem); padding-bottom: 1.6rem; }
.site-footer .brand img { height: 46px; }
.footer-about p { color: #aab8d8; margin: .7rem 0 .85rem; max-width: 34ch; font-size: .94rem; line-height: 1.5; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .65rem; }
.footer-col a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #c9d3ea;
  text-decoration: none;
  min-height: 33px;
  font-size: .94rem;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-col a i { color: var(--accent); width: 18px; }
.footer-contact p { display: flex; gap: .5rem; align-items: flex-start; margin: .35rem 0; color: #c9d3ea; font-size: .92rem; line-height: 1.45; }
.footer-contact i { color: var(--accent); margin-top: .3rem; }
.footer-contact .btn-whatsapp { margin-top: .55rem; }
.footer-social { display: flex; gap: .45rem; margin-top: .75rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 3px 10px rgba(0, 0, 0, .18);
  transition: transform var(--t-fast), filter var(--t-fast), box-shadow var(--t-fast);
}
.footer-social a[data-social="facebook"] { background: #1877f2; }
.footer-social a[data-social="instagram"] { background: linear-gradient(135deg, #feda75, #fa7e1e 35%, #d62976 65%, #962fbf 82%, #4f5bd5); }
.footer-social a[data-social="youtube"] { background: #ff0033; }
.footer-social a[data-social="whatsapp"] { background: #25d366; }
.footer-social a[data-social="blog"] { background: #f57c00; }
.footer-social a i { font-size: .95rem; }
.footer-social a:hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 18px rgba(0, 0, 0, .28); }
.footer-social a:active { transform: translateY(-1px) scale(.98); }
.footer-social a:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  color: #93a3c6;
  font-size: .84rem;
}
.footer-bottom p { margin: 0; }

/* ---------- 21. Ayuda flotante y modales ---------- */
.help-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 60px;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-gold);
}
.help-fab:hover { transform: translateY(-2px); }
.help-fab i { font-size: 1.25rem; }
.help-panel {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 96px;
  z-index: 1501;
  width: min(390px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem;
  display: none;
}
.help-panel.open { display: block; }
.help-panel h3 { margin-bottom: .3rem; }
.help-panel > p { color: var(--muted); font-size: .95rem; }
.help-option {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem .8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-bottom: .5rem;
  min-height: 58px;
}
.help-option:hover { border-color: var(--secondary); background: #f4f8ff; color: var(--ink); }
.help-option i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: #6d5100; font-size: 1.05rem; flex-shrink: 0; }
.help-option strong { display: block; font-size: .98rem; color: var(--primary); }
.help-option span { font-size: .88rem; color: var(--muted); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(9, 15, 40, .62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: min(680px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.modal-lg { width: min(900px, 100%); }
.modal-sm { width: min(480px, 100%); }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.modal-head h2, .modal-head h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.modal-head p { color: #d5def3; margin: .25rem 0 0; font-size: .95rem; }
.modal-close {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.modal-close:hover { background: #fff; color: var(--primary); }
.modal-body { padding: clamp(1.2rem, 3vw, 1.7rem); }
.modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.modal-foot .btn { min-width: 110px; }

/* Toasts */
.toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 2600; display: grid; gap: .6rem; width: min(380px, calc(100vw - 2rem)); }
.toast {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: var(--primary-900);
  color: #fff;
  border-radius: 12px;
  padding: .9rem 1rem;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--accent);
  font-size: .98rem;
}
.toast i { color: var(--accent-light); margin-top: .15rem; }
.toast.success { border-left-color: #4ade80; }
.toast.error { border-left-color: #f87171; }

/* ---------- 22. Utilidades ---------- */
.muted-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { text-align: center; padding: 1.2rem .8rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--primary); line-height: 1; }
.stat span { color: var(--muted); font-size: .95rem; }
.section-dark .stat strong { color: var(--accent-light); }
.section-dark .stat span { color: #c9d3ea; }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -12px; }
.avatar-stack img:first-child { margin-left: 0; }
.avatar-stack span { margin-left: .7rem; color: var(--muted); font-size: .92rem; }
.notice {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid #eeda8f;
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  color: #5f4700;
}
.notice i { margin-top: .2rem; color: #8a6400; }
.notice strong { color: #4a3700; }
.two-col-list { columns: 2; column-gap: 2rem; }
.two-col-list li { break-inside: avoid; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }

/* Scroll reveal (suave, respeta reduced motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1149.98px) {
  .nav-shell { display: none; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-bar { min-height: 72px; gap: .75rem; }
}
@media (max-width: 991.98px) {
  .hero-grid, .split, .course-hero, .featured-post { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; margin-inline: auto; width: 100%; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .pillar-grid, .course-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-post img { min-height: 260px; }
  .feature-row { gap: 2rem; }
  .feature-row.reverse .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a11y-inner { justify-content: center; text-align: center; }
}
@media (max-width: 767.98px) {
  .grid-2, .grid-3, .grid-4, .pillar-grid, .course-grid, .pricing-grid, .quote-grid, .feature-row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 2.5rem; }
  .hero-float { left: .6rem; bottom: 3.7rem; padding: .65rem .8rem; max-width: 250px; }
  .hero-sticker { right: .4rem; top: -.8rem; font-size: .85rem; }
  .header-actions .wallet-text { display: none; }
  .header-actions .wallet-btn { padding: .4rem; justify-content: center; }
  .header-actions .icon-label { display: none; }
  .brand img { height: 42px; }
  .site-header .brand img { height: 46px; }
  .header-bar { gap: .5rem; }
  .btn { width: 100%; }
  .btn-row .btn, .hero-cta .btn { width: 100%; }
  .modal-foot .btn { width: 100%; }
  .toolbar { align-items: stretch; }
  .toolbar-group { width: 100%; }
  .toolbar-group .btn, .toolbar-group .chip { flex: 1 1 auto; }
  .two-col-list { columns: 1; }
  .cart-drawer { width: 100%; }
  .help-fab { padding: .6rem .9rem; font-size: .95rem; }
  .help-fab span { display: none; }
  .a11y-inner p { display: none; }
  .a11y-label { display: none; }
  .event-card { flex-direction: row; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 1rem; }
  .hero-trust strong { font-size: 1.3rem; }
  .brand img { height: 34px; }
  .site-header .brand img { height: 40px; max-width: 132px; }
  .header-bar { gap: .3rem; }
}
@media (max-width: 380px) {
  .header-actions .help-btn { display: none; }
}

/* ---------- 24. Impresión ---------- */
@media print {
  .site-header, .site-footer, .help-fab, .help-panel, .a11y-bar,
  .no-print, .btn, .modal-backdrop, .toast-stack { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card, .panel, .course-card, .product-card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .section { padding-block: 1rem; }
}

/* ---------- 25. Legal y artículos ---------- */
.legal-body { font-size: 1.06rem; line-height: 1.75; color: var(--text); }
.legal-body section { margin-bottom: 2.2rem; scroll-margin-top: 120px; }
.legal-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: .8rem; color: var(--primary); }
.legal-body h3 { color: var(--primary); }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1rem 1.3rem; display: grid; gap: .55rem; }
.legal-body a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--primary); }
.legal-table-wrap { overflow-x: auto; margin: 1.2rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.legal-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 1rem; }
.legal-table th, .legal-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--primary); color: #fff; font-family: var(--font-display); font-size: .98rem; }
.legal-table tbody tr:nth-child(even) { background: var(--surface-2); }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.article-body p { margin-bottom: 1.1rem; line-height: 1.8; }
.article-body p:first-child { font-size: 1.16rem; color: var(--primary); font-weight: 700; }
.article-body strong { color: var(--primary); }
