/*
  Therion — una sola familia tipográfica (la del sistema) y un solo color de texto.
  El violeta del logo se reserva para lo interactivo: botones, estados activos y detalles.
*/

:root {
  --bg: #f0f5f6;
  --bg-2: #ffffff;
  --soft: #dff0f1;
  --panel: rgba(255, 255, 255, 0.78);
  --ink: #0f2530;
  --muted: #4a616a;
  --line: rgba(15, 37, 48, 0.12);
  --line-strong: rgba(15, 37, 48, 0.26);
  --accent: #0b7a85;
  --glow: rgba(20, 184, 166, 0.26);
  --ghost: rgba(11, 122, 133, 0.07);
  --shadow: 0 24px 50px -28px rgba(8, 60, 72, 0.35);
  --band-1: #07232b;
  --band-2: #0c4a57;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1216;
    --bg-2: #111c22;
    --soft: #12262c;
    --panel: rgba(17, 30, 36, 0.78);
    --ink: #e5f0f1;
    --muted: #9cb2b8;
    --line: rgba(229, 240, 241, 0.1);
    --line-strong: rgba(229, 240, 241, 0.24);
    --accent: #4fd1c5;
    --glow: rgba(45, 212, 191, 0.24);
    --ghost: rgba(79, 209, 197, 0.07);
    --shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1216;
  --bg-2: #111c22;
  --soft: #12262c;
  --panel: rgba(17, 30, 36, 0.78);
  --ink: #e5f0f1;
  --muted: #9cb2b8;
  --line: rgba(229, 240, 241, 0.1);
  --line-strong: rgba(229, 240, 241, 0.24);
  --accent: #4fd1c5;
  --glow: rgba(45, 212, 191, 0.24);
  --ghost: rgba(79, 209, 197, 0.07);
  --shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(900px 600px at 85% -5%, var(--glow), transparent 60%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  transition: background-color 0.35s, color 0.35s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.kicker--light { color: rgba(255, 255, 255, 0.7); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, padding 0.3s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  padding-block: 10px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nav__logo { width: 42px; height: auto; filter: drop-shadow(0 4px 10px var(--glow)); transition: transform 0.4s; }
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.06); }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: color 0.2s, background-size 0.3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background-size: 100% 2px; }
.nav__links .nav__cta {
  color: #fff;
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__links .nav__cta:hover { color: #fff; filter: brightness(1.1); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle,
.nav__toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle { display: grid; place-items: center; transition: transform 0.3s, border-color 0.2s, color 0.2s; }
.theme-toggle:hover { transform: rotate(-20deg); color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav__toggle { display: none; position: relative; }
.nav__toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, top 0.3s;
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s, background-color 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.btn span { transition: transform 0.25s; }
.btn:hover span { transform: translateX(4px); }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--glow); }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--accent); }
.btn--light { background: #fff; color: #07232b; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.3); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ---------- PORTADA ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px var(--gutter) 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.hero__ghost {
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  transform: translateX(-50%);
  font-weight: 800;
  font-size: clamp(7rem, 24vw, 22rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ghost);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
.hero__text { position: relative; z-index: 2; }
.hero__ak { width: clamp(130px, 14vw, 170px); height: auto; margin: 0 0 14px -6px; }
.hero__title {
  font-size: clamp(2.5rem, 8.2vw, 7.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.1em;
  margin: 0 0 0.1em -0.04em;
  display: flex;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.55)) drop-shadow(0 14px 22px rgba(8, 60, 72, 0.22));
}
:root[data-theme="dark"] .hero__title { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px rgba(79, 209, 197, 0.18)); }
.hero__title span {
  display: inline-block;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 38%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(35%);
  animation: letter-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 60ms + 150ms);
}
.hero__rule {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  width: clamp(280px, 52vw, 640px);
  margin: 0 0 1.4rem;
  color: #b8925a;
  font-size: 0.8rem;
}
.hero__rule::before, .hero__rule::after { content: ""; height: 1px; flex: 1; }
.hero__rule::before { background: linear-gradient(90deg, transparent, #b8925a); }
.hero__rule::after { background: linear-gradient(90deg, #b8925a, transparent); }
.hero__tag { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 600; margin-bottom: 0.8em; }
.hero__lead { color: var(--muted); max-width: 34em; font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 46px; }
.hero__meta { display: flex; margin: 0; border-top: 1px solid var(--line); max-width: 540px; }
.hero__meta div { flex: 1; padding: 16px 16px 0 0; }
.hero__meta div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero__meta dt { font-size: 0.78rem; color: var(--muted); }
.hero__meta dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }

/* Portal (arco) */
.hero__visual { position: relative; z-index: 1; display: grid; place-items: center; }
.portal { position: relative; width: min(500px, 86vw); aspect-ratio: 1; margin-top: 40px; }
.portal__arch {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 38%, var(--glow), transparent 62%),
    linear-gradient(180deg, var(--soft), var(--bg-2));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portal__arch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
  z-index: 1;
  pointer-events: none;
}
.portal__scene {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.portal:hover .portal__scene { transform: scale(1.04); }
.portal__rune { position: absolute; left: var(--x); top: var(--y); color: var(--accent); opacity: 0.45; font-size: 0.8rem; }
.portal__float { position: absolute; left: -14%; right: -14%; bottom: 3%; z-index: 2; animation: float 7s ease-in-out infinite; }
.portal__img { width: 100%; height: auto; filter: drop-shadow(0 28px 26px rgba(8, 40, 50, 0.28)); }
.portal__caption {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--muted);
}


/* ---------- SECCIONES ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 12vw, 140px) var(--gutter); position: relative; }
.sec-head { position: relative; max-width: 760px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.sec-head::before {
  content: attr(data-num);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  font-weight: 800;
  font-size: clamp(9rem, 22vw, 16rem);
  line-height: 1;
  color: var(--ghost);
  z-index: -1;
  pointer-events: none;
}
.sec-head--left { text-align: left; margin: 0 0 24px; }
.sec-head--left::before { left: auto; right: 0; transform: translate(0, -60%); }
.sec-head__lead { color: var(--muted); font-size: 1.1rem; margin: 22px auto 0; max-width: 38em; }

/* Marco con esquinas de corchete */
.frame { position: relative; }
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- HISTORIA (línea de tiempo horizontal) ---------- */
.timeline { position: relative; }
.timeline__controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.timeline__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}
.timeline__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.timeline__btn:disabled { opacity: 0.35; cursor: default; }
.timeline__track {
  list-style: none;
  margin: 0;
  padding: 8px 2px 28px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
}
.timeline__track::-webkit-scrollbar { display: none; }
.timeline__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.timeline__item {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
  position: relative;
  padding-top: 46px;
}
/* línea continua que une cada capítulo con el siguiente */
.timeline__item::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: -28px;
  height: 2px;
  background: var(--line-strong);
}
.timeline__item:last-child::before { right: 0; background: linear-gradient(90deg, var(--line-strong), transparent); }
/* nodo */
.timeline__item::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline__item--now::after { background: var(--accent); box-shadow: 0 0 0 6px var(--ghost); }
.timeline__when { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.timeline__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  min-height: 290px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.timeline__item:hover .timeline__card { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.timeline__card h3 { margin-bottom: 10px; }
.timeline__card p { color: var(--muted); margin: 0; }
.timeline__emblem { float: right; width: 64px; height: auto; margin: -6px -4px 8px 12px; filter: drop-shadow(0 8px 14px var(--glow)); }
.timeline__progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 240px; margin: 0 auto; }
.timeline__progress span { display: block; height: 100%; width: 20%; background: var(--accent); transition: width 0.2s; }

/* ---------- LÍDER ---------- */
.leader { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.leader__visual { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.rhombus {
  position: absolute;
  inset: 20% 10%;
  transform: rotate(45deg);
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 50%, var(--glow), transparent 65%), var(--soft);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.rhombus::after { content: ""; position: absolute; inset: 14px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.leader__img {
  position: relative;
  width: 78%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, #000 82%, transparent);
  mask-composite: intersect;
  height: auto;
  filter: drop-shadow(0 24px 24px rgba(8, 40, 50, 0.25));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.leader__visual:hover .leader__img { transform: scale(1.04) rotate(-2deg); }
.leader__text { color: var(--muted); font-size: 1.08rem; }
.pj {
  --frame: #b8925a;
  position: relative;
  margin: 28px 0;
  padding: 6px;
  border: 1px solid var(--frame);
  background: var(--panel);
}
.pj::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid color-mix(in srgb, var(--frame) 45%, transparent);
  pointer-events: none;
}
.pj::after {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5z' fill='%23b8925a'/%3E%3C/svg%3E") 0 0 / 10px 10px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5z' fill='%23b8925a'/%3E%3C/svg%3E") 100% 0 / 10px 10px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5z' fill='%23b8925a'/%3E%3C/svg%3E") 0 100% / 10px 10px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5z' fill='%23b8925a'/%3E%3C/svg%3E") 100% 100% / 10px 10px no-repeat;
}
.pj__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 18px 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--frame);
}
.pj__title::before, .pj__title::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--frame) 55%, transparent); }
.pj__top { display: flex; align-items: center; gap: 16px; padding: 16px 18px 14px; }
.pj__avatar {
  flex: none;
  width: 62px; height: 62px;
  background-color: var(--soft);
  background-size: 300%;
  background-repeat: no-repeat;
  border: 1px solid var(--frame);
  outline: 1px solid color-mix(in srgb, var(--frame) 45%, transparent);
  outline-offset: 3px;
}
.pj__id { flex: 1; min-width: 0; }
.pj__name { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.15; }
.pj__sub { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.pj__stats { margin: 0 18px 12px; border-top: 1px solid color-mix(in srgb, var(--frame) 40%, transparent); }
.pj__stats div { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.pj__stats div + div { border-top: 1px dashed var(--line); }
.pj__stats dt { flex: 1; display: flex; align-items: baseline; gap: 10px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pj__stats dt::after { content: ""; flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-3px); }
.pj__stats dd { margin: 0; font-weight: 700; }
.leader__quote { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.4; padding-left: 20px; border-left: 3px solid var(--accent); }

/* ---------- SUB LÍDER (Emi) ---------- */
.sub { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-top: 0; }
.sub__visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.orbit--1 { inset: 4%; animation: spin 90s linear infinite; }
.orbit--2 { inset: 18%; border-style: dashed; }
.orbit--3 { inset: 32%; background: radial-gradient(circle, var(--glow), transparent 70%); border-color: transparent; }
.orbit__planet { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--ghost); }
.orbit--1 .orbit__planet { top: 12%; left: 12%; }
.orbit--2 .orbit__planet { bottom: 6%; right: 18%; width: 8px; height: 8px; background: #f2b84b; }
.sub__img {
  position: relative;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 24px 24px rgba(8, 40, 50, 0.25));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, #000 80%, transparent);
  mask-composite: intersect;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sub__visual:hover .sub__img { transform: translateY(-6px) rotate(1deg); }
.sub__info .sec-head::before { display: none; }

/* ---------- CREDO ---------- */
.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.bento__item {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}
.bento__item:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.bento__item p { color: var(--muted); margin: 0; }
.bento__item h3 { margin: 12px 0 10px; }
.bento__num { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.bento__item--feature {
  grid-row: span 2;
  background: radial-gradient(circle at 80% 10%, rgba(45, 212, 191, 0.35), transparent 55%), linear-gradient(160deg, var(--band-2), var(--band-1));
  border-color: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 440px;
}
.bento__item--feature h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.bento__item--feature p { color: rgba(255, 255, 255, 0.78); }
.bento__item--feature .bento__num { color: rgba(255, 255, 255, 0.6); }
.bento__motto { margin-top: auto !important; padding-top: 28px; font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: #fff !important; }
.bento__eye { position: absolute; right: 28px; top: 26px; width: 48px; height: auto; fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 3; transition: transform 0.5s; }
.bento__eye circle { fill: rgba(255, 255, 255, 0.85); stroke: none; }
.bento__item--feature:hover .bento__eye { transform: scale(1.12) rotate(-6deg); }
.bento__item--wide { grid-column: span 2; }

/* ---------- STATS ---------- */
.grimoire { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.grimoire__index { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.stat-tab {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-align: left;
  padding: 16px 6px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: 600 1.02rem var(--font);
  cursor: pointer;
  transition: color 0.25s, padding 0.25s;
}
.stat-tab i { font-style: normal; font-size: 0.8rem; opacity: 0.7; }
.stat-tab::after { content: "→"; margin-left: auto; opacity: 0; transform: translateX(-8px); transition: opacity 0.25s, transform 0.25s; color: var(--accent); }
.stat-tab:hover { color: var(--ink); padding-left: 12px; }
.stat-tab.is-active { color: var(--ink); padding-left: 12px; }
.stat-tab.is-active::after { opacity: 1; transform: none; }
.grimoire__page { background: var(--panel); border: 1px solid var(--line); padding: clamp(28px, 4vw, 46px); min-height: 360px; }
.grimoire__page.is-swapping { animation: page 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.grimoire__folio { font-size: 0.82rem; color: var(--muted); }
.grimoire__page h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.grimoire__page > p:not([class]) { color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.segments { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 24px; }
.segments span { height: 10px; border-radius: 2px; background: var(--line); transition: background-color 0.3s; transition-delay: calc(var(--s) * 45ms); }
.segments span.on { background: var(--accent); }
.grimoire__label { font-size: 0.8rem; color: var(--muted); margin: 10px 0 24px; }
.grimoire__tip { margin: 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--ghost); border-radius: 0 12px 12px 0; }
.grimoire__tip::before { content: attr(data-label); font-weight: 700; }
.grimoire__note { text-align: center; color: var(--muted); margin-top: 44px; }

/* ---------- SUB LÍDER · CREADOR (Matías) ---------- */
.maker { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-top: 0; }
.maker__visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.maker__pill {
  position: absolute;
  width: 58%;
  top: 6%;
  bottom: 4%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 40%, rgba(220, 38, 60, 0.22), transparent 70%), var(--soft);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transform: rotate(8deg);
}
.maker__pill::after { content: ""; position: absolute; inset: 12px; border-radius: inherit; border: 1px dashed var(--line-strong); }
.maker__img {
  position: relative;
  width: min(118%, 620px);
  max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  height: auto;
  filter: drop-shadow(0 24px 24px rgba(8, 40, 50, 0.3));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.maker__visual:hover .maker__img { transform: translateY(-6px) rotate(-1deg); }
.maker__info .sec-head::before { display: none; }

/* Emi queda con la imagen a la izquierda para alternar lados */
.sub { grid-template-columns: 0.95fr 1.05fr; }
.sub .sub__visual { order: -1; }

/* ---------- ÚNETE ---------- */
.join {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 400px at 20% 60%, rgba(45, 212, 191, 0.25), transparent 65%),
    linear-gradient(160deg, var(--band-2), var(--band-1) 70%);
  clip-path: polygon(0 7vw, 100% 0, 100% 100%, 0 100%);
  padding: calc(7vw + 90px) var(--gutter) 110px;
  margin-top: 40px;
}
.join__inner { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.join__logo { width: 100%; max-width: 340px; height: auto; margin: 0 auto; filter: drop-shadow(0 0 40px rgba(45, 212, 191, 0.35)); animation: float 8s ease-in-out infinite; }
.join h2 { color: #fff; margin-bottom: 18px; }
.join__content > p { color: rgba(255, 255, 255, 0.8); font-size: 1.08rem; max-width: 34em; }
.join__steps { list-style: none; padding: 0; margin: 28px 0 34px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.join__steps li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.join__steps i { font-style: normal; font-weight: 800; font-size: 1.1rem; min-width: 1.5ch; opacity: 0.7; }
.join__steps p { margin: 0; font-size: 1.05rem; }
.join__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.join__toast { min-height: 1.6em; margin: 16px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }

/* ---------- FOOTER ---------- */
.footer { text-align: center; padding: 60px var(--gutter) 50px; background: var(--band-1); color: rgba(255, 255, 255, 0.7); }
.footer__logo { width: 56px; height: auto; margin: 0 auto 10px; }
.footer__name { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0; }
.footer__line { font-size: 0.9rem; margin: 4px 0 16px; }
.footer__ak { width: 120px; height: auto; margin: 0 auto 16px; opacity: 0.9; }
.footer__small { font-size: 0.8rem; opacity: 0.6; margin: 0; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- KEYFRAMES ---------- */
@keyframes letter-in { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes page { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero__visual { order: -1; margin-bottom: 30px; }
  .portal { width: min(300px, 70vw); }
  .leader, .sub, .maker { grid-template-columns: 1fr; }
  .maker__visual { order: -1; min-height: 0; max-width: 440px; margin: 0 auto; width: 100%; }
  .sub__visual { order: -1; max-width: 440px; margin: 0 auto; width: 100%; }
  .leader__visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__item--feature { grid-column: span 2; grid-row: auto; min-height: 0; }
  .grimoire { grid-template-columns: 1fr; }
  .grimoire__index { flex-direction: row; overflow-x: auto; border-top: 0; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .stat-tab { flex: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; font-size: 0.95rem; }
  .stat-tab:hover, .stat-tab.is-active { padding-left: 16px; }
  .stat-tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
  .stat-tab::after { display: none; }
  .join__inner { grid-template-columns: 1fr; }
  .join__logo { max-width: 180px; margin: 0; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px; background-image: none; font-size: 1.05rem; }
  .nav__links .nav__cta { text-align: center; margin-top: 6px; }
  .nav__tools { margin-left: auto; }

  .portal__float { left: -6%; right: -6%; }
  .hero__meta dd { font-size: 1.2rem; }
  .hero__title { font-size: 12vw; }
  .hero__rule { width: 100%; }
  .timeline__controls { justify-content: flex-start; }
  .timeline__card { min-height: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--feature, .bento__item--wide { grid-column: auto; }
  .join { clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .timeline__track { scroll-behavior: auto; }
  .reveal, .hero__title span { opacity: 1; transform: none; }
}

/* =========================================================
   IDIOMA Y ACCESIBILIDAD
   ========================================================= */
.lang-toggle {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 700 0.85rem var(--font);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* Botón flotante */
.a11y-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 210;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(8, 40, 50, 0.55);
  transition: transform 0.2s;
}
.a11y-fab:hover { transform: scale(1.06); }
.a11y-fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11y-fab svg circle { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .a11y-fab { color: #06232a; }

/* Panel */
.a11y-panel {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 210;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: var(--shadow), 0 20px 50px -20px rgba(0, 0, 0, 0.35);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: normal;
  word-spacing: normal;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.a11y-panel__title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.a11y-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.a11y-group {
  margin: 16px 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.a11y-seg, .a11y-size { display: flex; gap: 6px; }
.a11y-seg button, .a11y-size button, .a11y-chips button {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 600 0.9rem var(--font);
  cursor: pointer;
}
.a11y-seg button[aria-pressed="true"], .a11y-chips button[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
:root[data-theme="dark"] .a11y-seg button[aria-pressed="true"],
:root[data-theme="dark"] .a11y-chips button[aria-checked="true"] { color: #06232a; }
.a11y-size output { flex: 1.2; display: grid; place-items: center; font-weight: 800; }
.a11y-size button { font-size: 1rem; }
.a11y-size button:disabled { opacity: 0.35; cursor: default; }
.a11y-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.a11y-chips button { flex: 1 1 30%; font-size: 0.82rem; }
.a11y-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
}
.a11y-opt:hover { border-color: var(--accent); }
.a11y-opt__text { flex: 1; display: flex; flex-direction: column; }
.a11y-opt__text b { font-size: 0.95rem; }
.a11y-opt__text small { font-size: 0.8rem; color: var(--muted); }
.a11y-switch {
  flex: none;
  position: relative;
  width: 40px; height: 22px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color 0.2s;
}
.a11y-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.a11y-opt[aria-pressed="true"] .a11y-switch { background: var(--accent); }
.a11y-opt[aria-pressed="true"] .a11y-switch::after { transform: translateX(18px); }
.a11y-reset {
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 600 0.92rem var(--font);
  cursor: pointer;
}
.a11y-reset:hover { border-color: var(--accent); color: var(--accent); }

/* Daltonismo: filtros sobre el contenido (no sobre el panel) */
:root[data-a11y-filter="protan"] :is(main, .footer, .nav) { filter: url(#a11y-protan); }
:root[data-a11y-filter="deutan"] :is(main, .footer, .nav) { filter: url(#a11y-deutan); }
:root[data-a11y-filter="tritan"] :is(main, .footer, .nav) { filter: url(#a11y-tritan); }
:root[data-a11y-filter="gray"] :is(main, .footer, .nav) { filter: grayscale(1); }

/* Alto contraste */
:root[data-a11y-contrast] {
  --muted: var(--ink);
  --line: rgba(15, 37, 48, 0.4);
  --line-strong: rgba(15, 37, 48, 0.75);
  --panel: var(--bg-2);
  --accent: #075e66;
}
:root[data-a11y-contrast][data-theme="dark"] {
  --line: rgba(229, 240, 241, 0.4);
  --line-strong: rgba(229, 240, 241, 0.75);
  --accent: #7ee8de;
}
:root[data-a11y-contrast] .hero__ghost, :root[data-a11y-contrast] .sec-head::before { display: none; }

/* Espaciado de texto */
:root[data-a11y-spacing] body { letter-spacing: 0.04em; word-spacing: 0.14em; }
:root[data-a11y-spacing] :is(p, li, dd, dt, blockquote) { line-height: 2; }

/* Fuente legible */
:root[data-a11y-font] { --font: Verdana, Tahoma, "Segoe UI", sans-serif; }

/* Resaltar enlaces y botones */
:root[data-a11y-links] :is(main, .nav, .footer) :is(a, button) {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Detener animaciones */
:root[data-a11y-motion] *, :root[data-a11y-motion] *::before, :root[data-a11y-motion] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
:root[data-a11y-motion] :is(.reveal, .hero__title span) { opacity: 1 !important; transform: none !important; }

/* Línea guía de lectura */
.a11y-guide {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 190;
  height: 8px;
  background: rgba(242, 184, 75, 0.35);
  border-top: 2px solid #f2b84b;
  border-bottom: 2px solid #f2b84b;
  pointer-events: none;
  display: none;
}
:root[data-a11y-guide] .a11y-guide { display: block; }

/* Máscara de lectura */
.a11y-mask {
  position: fixed;
  left: 0; right: 0;
  z-index: 189;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  display: none;
}
.a11y-mask--top { top: 0; height: 0; }
.a11y-mask--bottom { bottom: 0; top: 100vh; }
:root[data-a11y-mask] .a11y-mask { display: block; }

/* Destacar mouse: cursor grande y halo */
:root[data-a11y-cursor], :root[data-a11y-cursor] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9.5-7 1.6-3.6 6.9z' fill='%23111' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
.a11y-halo {
  position: fixed;
  left: 0; top: 0;
  z-index: 220;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid #f2b84b;
  background: rgba(242, 184, 75, 0.18);
  pointer-events: none;
  display: none;
}
:root[data-a11y-cursor] .a11y-halo { display: block; }

@media (max-width: 760px) {
  .a11y-fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .a11y-panel { right: 16px; bottom: 76px; }
}

/* Texto oscuro sobre el acento claro del modo oscuro */
:root[data-theme="dark"] :is(.btn--solid, .nav__links .nav__cta, .stat-tab.is-active, .skip-link) { color: #06232a; }
:root[data-theme="dark"] .nav__links .nav__cta:hover { color: #06232a; }

/* =========================================================
   AJUSTES PARA MÓVIL (lanzamiento)
   ========================================================= */
html { overflow-x: clip; }

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  body { font-size: 1rem; }
  h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }

  /* Barra superior más compacta */
  .nav { padding: 12px var(--gutter); gap: 10px; }
  .nav__brand { font-size: 1.05rem; }
  .nav__logo { width: 36px; }
  .nav__tools { gap: 6px; }
  .theme-toggle, .nav__toggle, .lang-toggle { width: 38px; height: 38px; min-width: 38px; padding: 0; }
  .nav__toggle span { left: 10px; right: 10px; }
  .nav__toggle span:nth-child(1) { top: 14px; }
  .nav__toggle span:nth-child(2) { top: 22px; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1),
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 18px; }
  .nav__links { top: 64px; }

  /* Números fantasma: en pantalla chica se cruzan con el texto */
  .hero__ghost, .sec-head::before { display: none; }

  /* Portada: primero el título, luego la imagen */
  .hero { padding: 92px var(--gutter) 40px; gap: 28px; min-height: 0; }
  .hero__visual { order: 0; margin: 0; }
  .portal { width: 100%; max-width: 420px; margin: 0 auto; }
  .portal { aspect-ratio: auto; }
  .portal__arch { position: relative; inset: auto; aspect-ratio: 1; }
  .portal__caption { position: static; transform: none; text-align: center; margin-top: 12px; }
  .hero__ak { width: 120px; margin-bottom: 10px; }
  .kicker { font-size: 0.72rem; letter-spacing: 0.1em; }
  .hero__title { font-size: 13.4vw; letter-spacing: 0.06em; }
  .hero__tag { font-size: 1.3rem; }
  .hero__lead { font-size: 1rem; }
  .hero__actions { flex-direction: column; margin: 24px 0 30px; }
  .hero__actions .btn { justify-content: center; width: 100%; }
  .hero__meta { max-width: none; }
  .hero__meta div { padding: 12px 8px 0 0; }
  .hero__meta div + div { padding-left: 10px; }
  .hero__meta dt { font-size: 0.72rem; }
  .hero__meta dd { font-size: 1.05rem; }

  /* Secciones con menos aire */
  .section { padding: 64px var(--gutter); }
  .sec-head { margin-bottom: 32px; text-align: left; }
  .sec-head__lead { font-size: 1rem; margin-top: 14px; }

  /* Línea de tiempo */
  .timeline__item { flex-basis: 86%; }
  .timeline__card { padding: 20px; }
  .timeline__when { font-size: 1.35rem; }
  .timeline__emblem { width: 52px; }

  /* Líderes: imagen contenida, sin desbordar los bordes */
  .leader, .sub, .maker { gap: 22px; }
  .leader__visual, .sub__visual, .maker__visual { max-width: 340px; width: 100%; margin: 0 auto; }
  .leader__visual { aspect-ratio: 5 / 6; }
  .leader__img { width: 74%; }
  .rhombus { inset: 22% 16%; }
  .maker__visual { min-height: 0; aspect-ratio: 1; }
  .maker__img { width: 100%; max-width: 100%; }
  .maker__pill { width: 56%; }
  .sub__img { width: 92%; }
  .leader__text { font-size: 1rem; }
  .leader__quote { font-size: 1.1rem; }

  /* Fichas */
  .pj { margin: 22px 0; }
  .pj__top { padding: 14px 14px 12px; gap: 12px; }
  .pj__title { margin: 10px 14px 0; }
  .pj__stats { margin: 0 14px 10px; }
  .pj__avatar { width: 54px; height: 54px; }
  .pj__name { font-size: 1.15rem; }
  .pj__stats dt { font-size: 0.72rem; letter-spacing: 0.04em; }
  .pj__stats dd { font-size: 0.95rem; text-align: right; }

  /* Credo */
  .bento__item--feature { min-height: 0; }
  .bento__item--feature h3 { font-size: 2rem; }
  .bento__motto { font-size: 1.15rem; }

  /* Stats: pestañas desplazables con indicio de que hay más */
  .grimoire__index {
    padding: 0 0 8px;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .stat-tab { scroll-snap-align: start; }
  .grimoire__page { min-height: 0; padding: 24px 20px; }
  .grimoire__page h3 { font-size: 1.7rem; }
  .grimoire__note { text-align: left; margin-top: 28px; }

  /* Únete */
  .join { padding: 100px var(--gutter) 80px; margin-top: 0; }
  .join__logo { max-width: 120px; }
  .join h2 { font-size: 2rem; }
  .join__actions { flex-direction: column; }
  .join__actions .btn { justify-content: center; width: 100%; }

  /* Pie: deja espacio al botón de accesibilidad */
  .footer { padding: 48px var(--gutter) 90px; }
  .footer__line { font-size: 0.85rem; }
}

/* Teléfonos muy angostos */
@media (max-width: 360px) {
  .nav__brand span { display: none; }
  .hero__meta { flex-wrap: wrap; }
}

/* En pantallas táctiles no hay mouse: ocultar opciones que dependen de él */
@media (hover: none) and (pointer: coarse) {
  .a11y-opt:is([data-flag="guide"], [data-flag="mask"], [data-flag="cursor"]) { display: none; }
}
