@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/sora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/sora-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-700.woff2") format("woff2");
}

:root {
  --obsidian: #111318;
  --panel: #191c24;
  --jade: #078979;
  --gold: #d5a33a;
  --limestone: #ede1c9;
  --cochineal: #a43745;
  --mineral: #f7f4ec;
  --muted: #cfc6b4;
  --line: rgba(237, 225, 201, 0.16);
  --line-strong: rgba(237, 225, 201, 0.32);
  --display: "Sora", "Segoe UI", sans-serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --max: 1120px;
  --header: 5.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(7, 137, 121, 0.18), transparent 60%),
    radial-gradient(700px 320px at -10% 20%, rgba(213, 163, 58, 0.08), transparent 55%),
    var(--obsidian);
  color: var(--mineral);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection { background: rgba(213, 163, 58, 0.35); color: var(--mineral); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--obsidian);
  padding: 0.6rem 0.9rem;
  z-index: 20;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.fret {
  height: 12px;
  background-color: var(--obsidian);
  background-image: url("assets/marks/fret.svg");
  background-repeat: repeat-x;
  background-size: 48px 12px;
  background-position: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.4rem 5vw;
  background: rgba(17, 19, 24, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
  color: var(--mineral);
}
.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  font-family: var(--display);
}
.brand-totec {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.brand-xlabs {
  margin-top: 0.18rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold);
  border-bottom: 2px solid var(--jade);
  padding-bottom: 0.18rem;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  color: var(--mineral);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle:active { background: rgba(213, 163, 58, 0.16); }
.site-nav { display: flex; gap: 1.05rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--limestone);
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); font-weight: 700; }
.nav-mail {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  color: var(--gold);
}
.nav-mail:hover { background: var(--gold); color: var(--obsidian); }

.hero { padding: 1.5rem 5vw 1rem; }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.hero-symbol {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
  flex: none;
  background: transparent;
}
.kicker {
  margin: 0 0 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
h1 {
  font-size: clamp(1.85rem, 4.6vw, 3.5rem);
  margin: 0;
  max-width: 16ch;
}
.lede {
  max-width: 40rem;
  font-size: 1.16rem;
  color: var(--limestone);
  margin: 1.1rem 0 0;
}
.tagline {
  margin: 1.15rem 0 0;
  color: var(--gold);
  font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  background: var(--gold);
  color: var(--obsidian);
  font-weight: 700;
  text-align: center;
}
.button:hover { background: #e0b14d; }
.button:active { background: #c48d28; }
.button.ghost {
  background: transparent;
  color: var(--mineral);
  border: 1px solid var(--line-strong);
  font-weight: 600;
}
.button.ghost:hover { border-color: var(--gold); color: var(--gold); }
.button.ghost:active { background: rgba(213, 163, 58, 0.16); }

.hero-mark {
  justify-self: end;
  width: min(100%, 280px);
  text-align: center;
}
.hero-mark img { width: 100%; height: auto; }
.hero-mark p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}
.materials li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  color: var(--limestone);
  font-size: 0.92rem;
}
.swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex: none;
}
.swatch.obsidian { background: #2a2e38; box-shadow: inset 0 0 0 1px var(--limestone); }
.swatch.jade { background: var(--jade); }
.swatch.gold { background: var(--gold); }
.swatch.limestone { background: var(--limestone); }

.notice { padding: 0 5vw 0.4rem; }
.notice-bar {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgba(213, 163, 58, 0.45);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(213, 163, 58, 0.08);
}
.notice-bar p { margin: 0; color: var(--limestone); }
.notice-bar strong { color: var(--mineral); }
.notice-bar a { color: var(--gold); font-weight: 700; white-space: nowrap; }

section { padding: 3.2rem 5vw; }
.wrap { max-width: var(--max); margin: 0 auto; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.4rem;
}
.section-head p { max-width: 28rem; margin: 0; color: var(--muted); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }

.doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.doors.follow { margin-top: 1.4rem; }
.doors a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.25rem;
  gap: 1.15rem;
  align-items: center;
  min-height: 100%;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.15rem 1.25rem;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.doors a:hover,
.doors a:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.doors a:active {
  transform: translateY(0);
  background: #141820;
}
.doors a[data-app="defensor"] { box-shadow: inset 3px 0 0 var(--jade); }
.doors a[data-app="guarda"] { box-shadow: inset 3px 0 0 var(--cochineal); }
.doors a[data-app="guia"] { box-shadow: inset 3px 0 0 var(--gold); }
.doors a[data-app="voluntario"] { box-shadow: inset 3px 0 0 var(--jade); }
.doors a[data-app="nexo"] { box-shadow: inset 3px 0 0 var(--limestone); }
.doors a[data-app="horizon"] { box-shadow: inset 3px 0 0 var(--gold); }
.doors a[data-app="mesoplay"] { box-shadow: inset 3px 0 0 var(--jade); }
.doors a[data-app="mesoplay"] .status {
  border-color: rgba(7, 137, 121, 0.7);
  color: #38d9b9;
  background: rgba(7, 137, 121, 0.12);
}
.door-mark {
  width: 5.25rem;
  height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 19, 24, 0.55);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.5rem;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.doors a:hover .door-mark,
.doors a:focus-visible .door-mark {
  transform: scale(1.04);
  border-color: rgba(213, 163, 58, 0.6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.door-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}
.door-kicker {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.doors strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.doors p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.doors em {
  display: inline-block;
  margin-top: 0.45rem;
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
}
.doors em::after { content: " →"; }

.page {
  padding: 2.4rem 5vw 3.5rem;
}
.page-lead { max-width: 40rem; }
.app-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.6rem;
}
.plate {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 1.15rem;
  padding: 0.85rem 0.85rem 0.75rem;
}
.plate img { width: 100%; height: auto; border-radius: 0.7rem; }
.plate figcaption {
  margin: 0.65rem 0.15rem 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.plate-pair {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.7rem;
  align-items: center;
}
.plate-pair figcaption { grid-column: 1 / -1; }
.app-logo {
  width: min(100%, 220px);
  margin: 0 auto;
  background: radial-gradient(circle at 50% 45%, rgba(237, 225, 201, 0.16), transparent 68%);
}
.marca {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}
.marca img { width: 64px; height: 64px; }
.marca p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.marca strong { color: var(--limestone); }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.9rem;
  margin-top: 0.9rem;
}
.panel h2:not(:first-child) { margin-top: 1.15rem; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem 1.15rem;
}
.panel h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  margin: 0 0 0.55rem;
  padding-left: 1rem;
  color: var(--limestone);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.45rem;
  height: 2px;
  background: var(--jade);
}
.limit {
  margin: 0;
  border-left: 3px solid var(--cochineal);
  background: rgba(164, 55, 69, 0.12);
}
.limit p { margin: 0 0 0.7rem; color: var(--mineral); }
.limit p:last-child { margin-bottom: 0; }
.aside-note {
  margin: 1rem 0 0;
  color: var(--muted);
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.3rem;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { color: var(--limestone); }
.back-link:active { color: var(--mineral); }

.status {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  margin: 0.55rem 0 0;
  padding: 0.15rem 0.65rem;
  border: 1px solid rgba(213, 163, 58, 0.55);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ficha-head { max-width: 40rem; margin-bottom: 1.2rem; }
.ficha-head h1 { max-width: none; }
.mark-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.2rem;
}
.mark-row img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  flex: none;
}
.mark-row figcaption { margin: 0; color: var(--muted); font-size: 0.9rem; }
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.8rem 0 0;
}
.shots figure,
.still {
  margin: 0;
  background: rgba(17, 19, 24, 0.35);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.5rem 0.5rem 0.65rem;
}
.shots img,
.still img { width: 100%; height: auto; border-radius: 0.75rem; }
.shots figcaption,
.still figcaption { margin: 0.45rem 0.15rem 0; color: var(--muted); font-size: 0.88rem; }
.still { margin: 0 0 1.2rem; max-width: 46rem; }
.sectors { display: flex; flex-direction: column; gap: 1rem; }
.sector {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1rem 1rem 0.9rem;
  background: rgba(25, 28, 36, 0.28);
}
.sector-head h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.sector-head p:last-child { margin: 0.4rem 0 0; max-width: 38rem; color: var(--muted); }
.sector .doors { margin-top: 0.85rem; grid-template-columns: 1fr; }
.panel h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }

.site-footer {
  padding: 0 5vw 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.footer-brand { margin: 0 0 0.2rem; color: var(--mineral); font-weight: 700; }
.footer-grid p { margin: 0; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer a { color: var(--limestone); text-decoration: none; }
.site-footer a:hover,
.site-footer a[aria-current="page"] { color: var(--gold); }
.footer-meta { text-align: right; }
.footer-grid a[href^="mailto:"] { color: var(--gold); font-weight: 700; }

.legal { padding-top: 2.5rem; padding-bottom: 1rem; max-width: 44rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1rem; max-width: none; }
.legal h2 { font-size: 1.55rem; margin: 2rem 0 0.6rem; }
.legal-lead { font-size: 1.15rem; color: var(--limestone); }
.legal p { color: var(--muted); }
.legal a { color: var(--gold); }

.legal-meta { color: var(--gold); font-weight: 700; font-size: 0.92rem; }
.legal-index, .legal-related { display: flex; flex-direction: column; gap: 0.35rem; margin: 1.1rem 0 1.4rem; }
.legal-index a, .legal-related a { min-height: 44px; display: inline-flex; align-items: center; }
.legal ul { margin: 0.4rem 0 1rem; padding-left: 1.15rem; }
.legal li { margin: 0.35rem 0; color: var(--muted); }
.legal blockquote { margin: 1rem 0; padding: 0.85rem 1rem; border-left: 3px solid var(--gold); color: var(--limestone); }
.legal code { font-size: 0.92em; }
.table-wrap { overflow-x: auto; margin: 0.8rem 0 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; min-width: 36rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; }
.legal th { color: var(--limestone); font-weight: 700; }


@media (max-width: 1180px) {
  :root { --header: 4.4rem; }
  .nav-toggle { display: inline-flex; align-items: center; flex: none; }
  .site-header { flex-wrap: wrap; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem 5vw 1rem;
    background: #161922;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; }
  .nav-mail { text-align: center; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-totec { font-size: 1rem; }
  .brand-xlabs { font-size: 0.72rem; letter-spacing: 0.26em; }
  .hero-inner,
  .app-hero,
  .split,
  .footer-grid,
  .plate-pair { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .doors a { grid-template-columns: minmax(0, 1fr) 4.25rem; gap: 0.85rem; padding: 0.95rem; }
  .door-mark { width: 4.25rem; height: 4.25rem; padding: 0.35rem; border-radius: 0.85rem; }
  .hero { padding: 1.15rem 5vw 0.6rem; }
  .hero-symbol { width: 3.25rem; height: 3.25rem; }
  .lede { font-size: 1.02rem; margin-top: 0.75rem; }
  .section-head,
  .notice-bar { flex-direction: column; align-items: flex-start; }
  .notice-bar a { white-space: normal; }
  .footer-meta { text-align: left; }
  h1 { max-width: none; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .button { flex: 1 1 9.5rem; }
  section { padding: 1.6rem 5vw; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
}

@media (min-width: 1181px) {
  .hero-symbol { width: 6.25rem; height: 6.25rem; }
  .sector .doors.pair { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .shots { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Registro voluntario de testers: Google se carga solo tras una acción. */
.tester-embed { margin-top: 1rem; border: 1px solid rgba(7, 137, 121, 0.55); box-shadow: inset 3px 0 0 var(--jade); }
.tester-embed-prompt { display: grid; gap: 1rem; }
.tester-embed-prompt h3, .tester-embed-prompt p { margin-top: 0; }
.tester-embed-prompt a:not(.button) { color: var(--gold); }
.tester-embed .button { font: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.tester-embed .button.ghost { border-color: var(--line-strong); }
.tester-embed .button:disabled { background: var(--panel); color: var(--muted); border-color: var(--line-strong); cursor: default; }
.tester-embed [hidden] { display: none; }
.tester-iframe-wrap { margin-top: 1rem; border-radius: 0.85rem; overflow: hidden; border: 1px solid var(--line-strong); background: #ffffff; }
.tester-iframe-wrap:focus { outline: 2px solid var(--gold); outline-offset: 3px; }
.tester-iframe-wrap iframe { width: 100%; min-height: 860px; border: 0; display: block; }
#testers .split > * { min-width: 0; }
@media (max-width: 1180px) {
  .tester-iframe-wrap iframe { min-height: 980px; }
  .tester-embed .hero-actions .button { white-space: normal; }
}
