@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel/Cinzel-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb_garamond/EBGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb_garamond/EBGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #12151b;
  --ink2: #1a1f28;
  --line: #2b3240;
  --bone: #ece5d3;
  --mute: #9aa3b2;
  --brass: #c9a24b;
  --amber: #f2a93b;
  --blue: #5b97e0;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 19px/1.55 var(--body);
  padding-inline: 20px;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.w { max-width: 1080px; margin-inline: auto; }
section { padding-block: 72px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .03em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(26px, 4.2vw, 38px); }
h3 {
  font-family: var(--body);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.eyebrow {
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
p { margin: 0; }
.lede { color: var(--mute); max-width: 58ch; font-size: 21px; }

nav.site {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 18px;
  gap: 12px;
}
nav.site b {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
nav.site a { font-size: 19px; text-decoration: none; color: var(--bone); }
nav.site .links { display: flex; gap: 24px; align-items: center; }
.mark { height: 52px; width: auto; display: block; }
nav.site .brand { display: flex; align-items: center; gap: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  width: 48px;
  height: 48px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.menu-btn:focus-visible,
.btn:focus-visible,
summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn {
  display: inline-block;
  background: url("img/ui_boton_principal.webp") center / 100% 100% no-repeat;
  clip-path: none;
  color: #2a1c05;
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 0 #ffffff55;
  padding: 22px 60px;
  min-width: 260px;
}
.btn.ghost {
  background: url("img/ui_boton_secundario.webp") center / 100% 100% no-repeat;
  color: var(--bone);
  text-shadow: 0 1px 2px #000;
}
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.cta small { color: var(--mute); font-size: 16px; flex-basis: 100%; }

.hex-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z M28 62v33 M2 47L-2 49 M54 47l4 2' fill='none' stroke='%23c9a24b' stroke-opacity='.10' stroke-width='1.5'/%3E%3C/svg%3E");
}
.home .hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 56px 72px;
  text-align: left;
}
.home .hero h1 { font-size: clamp(34px, 8vw, 56px); letter-spacing: .04em; line-height: 1.18; margin-top: 14px; }
.home .hero .lede { margin-top: 18px; }
@media (min-width: 861px) {
  .home .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .home .hero .emb { order: -1; }
  .home .emb img { width: min(70%, 380px); }
  .home .hero h1 {
    max-width: 20ch;
    margin-inline: auto;
    font-size: clamp(32px, 5vw, 58px);
  }
  .home .hero .lede { margin-inline: auto; }
  .home .hero .cta { justify-content: center; }
}
.pr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.pr div { background: var(--ink2); border: 1px solid var(--line); padding: 26px; min-width: 0; }
.pr b {
  display: grid;
  place-items: center;
  width: 62px;
  height: 66px;
  background: url("img/ui_sello_hex.webp") center / 100% 100% no-repeat;
  clip-path: none;
  color: #2a1c05;
  font: 700 22px var(--display);
  margin-bottom: 16px;
}
.pr p { color: var(--mute); font-size: 19px; margin-top: 6px; }
.quote {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  text-align: center;
  color: var(--bone);
  max-width: 30ch;
  margin: 56px auto 0;
  line-height: 1.3;
}
.title { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; margin-top: 30px; }
.badge {
  display: inline-block;
  border: 1px solid var(--brass);
  color: var(--brass);
  padding: 3px 14px;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 26px; }
.tags li {
  list-style: none;
  border: 1px solid var(--line);
  background: var(--ink2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 17px;
}
.tags li.hl { border-color: var(--amber); color: var(--amber); }
.emb { position: relative; display: grid; place-items: center; min-width: 0; }
.emb::before {
  content: "";
  position: absolute;
  inset: 6%;
  background: radial-gradient(closest-side, #ece5d330, #ece5d30d 70%, transparent);
}
.emb img { position: relative; width: min(100%, 360px); height: auto; filter: drop-shadow(0 12px 24px #000a); }
.crest { width: 92px; height: auto; display: block; margin-bottom: 14px; filter: drop-shadow(0 6px 10px #000a); }
.game-id { display: flex; align-items: center; gap: 18px; margin-top: 32px; max-width: 100%; }
.game-id .crest { width: auto; height: 128px; margin: 0; flex: none; }
.game-id .wm { width: min(100%, 520px); height: auto; margin: 0; min-width: 0; }

.gamepage .hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 40px 64px;
}
.gamepage .hero h1 { font-size: clamp(38px, 7.2vw, 72px); letter-spacing: .04em; }
.gamepage .hero h1 span { color: var(--amber); }
.gamepage .hero .tag { font-size: clamp(23px, 3vw, 30px); margin-top: 14px; font-weight: 500; font-style: italic; line-height: 1.3; }
.gamepage .hero .lede { margin-top: 16px; }
.where { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; }
.where li {
  list-style: none;
  border: 1px solid var(--line);
  background: var(--ink2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
}
.where li i { font-style: normal; color: var(--amber); margin-right: 6px; }
.stage { position: relative; min-width: 0; display: grid; gap: 16px; }
.phone {
  background: #05070a;
  border-radius: 26px;
  padding: 10px;
  border: 2px solid #343c4c;
  box-shadow: 0 30px 60px #0009;
  min-width: 0;
}
.phone img { display: block; width: 100%; border-radius: 16px; aspect-ratio: 2/1; object-fit: cover; }
.phone.sm { width: 70%; justify-self: end; }
.stage .cap { font-size: 16px; color: var(--mute); text-align: center; }
.adfree { display: flex; gap: 24px; align-items: center; border: 1px solid var(--brass); padding: 28px; background: var(--ink2); }
.seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 100px;
  background: url("img/ui_sello_hex.webp") center / 100% 100% no-repeat;
  clip-path: none;
  color: #2a1c05;
  font: 700 38px var(--display);
}
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.modes div { border-top: 2px solid var(--amber); padding-top: 12px; }
.modes p { color: var(--mute); font-size: 18px; }
.scn { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.scn img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.explain { background: var(--ink2); border-block: 1px solid var(--line); margin-inline: -20px; padding-inline: 20px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card p { color: var(--mute); font-size: 18px; }
.card .k {
  display: grid;
  place-items: center;
  width: 60px;
  height: 64px;
  background: url("img/ui_sello_hex.webp") center / 100% 100% no-repeat;
  color: #2a1c05;
  font-family: var(--body);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.not { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 17px; color: var(--mute); }
.not b { color: var(--bone); font-weight: 600; }
.not span { border: 1px dashed var(--line); padding: 4px 12px; border-radius: 999px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.plinths { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.pl { flex: 1; max-width: 116px; text-align: center; font-size: 15px; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 0; }
.pl img { position: relative; z-index: 1; width: 96%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 6px #000a); }
.pl em { display: block; width: calc(var(--bw) * 100%); height: auto; aspect-ratio: 578/225; margin-top: calc(-10.6% - var(--bw) * 12.4%); background: url("img/ui_base_ficha.webp") center / 100% 100% no-repeat; clip-path: none; }
.pl span { margin-top: 8px; font-size: 17px; color: var(--bone); }
.rules { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.rules li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.rules li b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
  background: url("img/ui_sello_hex.webp") center / 100% 100% no-repeat;
  clip-path: none;
  color: #2a1c05;
  font-family: var(--display);
  font-size: 15px;
}
.hexes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.hx { width: calc((100% - 12px) / 3); max-width: 104px; text-align: center; font-size: 15px; line-height: 1.25; color: var(--mute); }
.hx div { width: 100%; aspect-ratio: 92/104; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--amber); padding: 3px; }
.hx img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: block; }
.hx.soon div { background: var(--line); }
.hx.soon img { filter: grayscale(.6) brightness(.85); }
.hx.soon span { color: var(--mute); }
.hx.soon span::after { content: "Próximamente"; display: block; font-size: 13px; letter-spacing: .06em; color: var(--brass); }
.hx span { display: block; margin-top: 4px; color: var(--bone); }
.cast-more { margin: 16px 0 0; text-align: center; color: var(--brass); font-size: 17px; }
.leg { display: flex; gap: 20px; flex-wrap: wrap; font-size: 16px; margin-top: 20px; color: var(--mute); }
.leg i { display: inline-block; width: 14px; height: 16px; margin-right: 8px; vertical-align: -3px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.sub { margin-top: 36px; font-size: 24px; font-weight: 600; }
.shots { display: flex; gap: 18px; overflow-x: auto; padding-block: 8px 16px; margin-top: 28px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 min(420px, 78%); scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.shots figcaption { font-size: 16px; color: var(--mute); margin-top: 8px; }
.beta { background: var(--ink2); border-block: 1px solid var(--line); margin-inline: -20px; padding-inline: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; counter-reset: s; }
.steps div { padding: 0 26px 0 0; position: relative; min-width: 0; }
.steps div::before {
  counter-increment: s;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 64px;
  height: 68px;
  background: url("img/ui_sello_hex.webp") center / 100% 100% no-repeat;
  clip-path: none;
  color: #2a1c05;
  font: 700 24px var(--body);
  margin-bottom: 14px;
}
.steps p { color: var(--mute); font-size: 18px; margin-top: 6px; }
details { border-top: 1px solid var(--line); padding-block: 18px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--amber); }
details[open] summary::after { content: "–"; }
details p { color: var(--mute); margin-top: 10px; max-width: 62ch; }
.wm { display: block; width: min(100%, 560px); height: auto; margin-top: 14px; filter: drop-shadow(0 8px 16px #000a); }
footer.site {
  padding-block: 40px;
  color: var(--mute);
  font-size: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.home footer.site { font-size: 17px; }
footer.site a { color: var(--mute); }

@media (prefers-reduced-motion: no-preference) {
  .phone, .shots img { transition: transform .35s, box-shadow .35s; }
  .phone:hover { transform: translateY(-6px); }
  .shots img:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 40px #000a; }
}
@media (max-width: 860px) {
  .home .hero, .gamepage .hero, .pr, .title, .modes, .scn, .three, .steps, .split { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .steps div { padding: 0; }
  .adfree { flex-direction: column; align-items: flex-start; }
  .home .emb { order: -1; }
  .home .emb img { width: min(70%, 240px); }
  section { padding-block: 52px; }
}
@media (max-width: 640px) {
  .game-id { flex-direction: column; align-items: center; }
  .game-id .crest { height: 88px; }
  .game-id .wm { width: min(100%, 420px); }
}
@media (max-width: 700px) {
  .menu-btn { display: block; }
  nav.site .links {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink2);
    border: 1px solid var(--line);
    min-width: 200px;
  }
  nav.site .links.open { display: flex; }
  nav.site .links a { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 21px; }
  nav.site .links a:last-child { border-bottom: 0; }
}

.plain h1 { font-size: clamp(32px, 5vw, 48px); margin: 10px 0 14px; }
.plain .note { color: var(--mute); margin: 8px 0 28px; }
.plain .panel { background: var(--ink2); border: 1px solid var(--line); padding: 22px 24px; margin-bottom: 16px; }
.plain .panel h2 { margin-bottom: 10px; }
.plain .panel p, .plain li { color: var(--mute); }
.plain .panel p + p, .plain ul { margin-top: 12px; }
.plain ul { padding-left: 1.2em; }
.plain a { color: var(--bone); }
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 40px; }
.game-card { display: block; background: var(--ink2); border: 1px solid var(--line); padding: 22px; text-decoration: none; }
.game-card p, .game-card .go { color: var(--mute); margin-top: 8px; }
.game-card .crest { width: 72px; margin: 12px 0; }
.placeholder-mark {
  width: 72px;
  height: 72px;
  margin: 12px 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--display);
  font-size: 28px;
}
.badge.muted { background: transparent; }
@media (max-width: 700px) {
  .games { grid-template-columns: 1fr; }
}

/* Selector de idioma */
nav.site details.lang { position: relative; }
nav.site details.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 19px; color: var(--bone); user-select: none;
}
nav.site details.lang summary::-webkit-details-marker { display: none; }
nav.site details.lang summary::after {
  content: ""; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid currentColor; margin-left: 2px;
}
nav.site details.lang[open] summary { border-color: var(--brass); }
nav.site details.lang summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
nav.site details.lang .gl { flex: none; }
nav.site details.lang ul {
  list-style: none; margin: 6px 0 0; padding: 4px 0; position: absolute; right: 0; z-index: 6;
  min-width: 100%; background: var(--ink2); border: 1px solid var(--line); border-radius: 8px;
}
nav.site details.lang li a { display: block; padding: 10px 16px; white-space: nowrap; }
nav.site details.lang li a:hover { color: var(--brass); }
nav.site details.lang li a[aria-current] { color: var(--brass); }
@media (max-width: 700px) {
  nav.site .links details.lang { border-top: 1px solid var(--line); }
  nav.site .links details.lang summary { display: flex; border: 0; border-radius: 0; padding: 16px 20px; font-size: 21px; }
  nav.site .links details.lang ul { position: static; margin: 0; border: 0; border-radius: 0; padding: 0; }
  nav.site .links details.lang li a { border-bottom: 0; padding: 12px 20px 12px 52px; }
}

/* Fondo del estudio: neutro, sin hexágonos (esos son de DominionHex). Puntos finos y un velo cálido arriba. */
.studio-bg {
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(201,162,75,.10), transparent 70%),
    radial-gradient(circle, rgba(201,162,75,.16) 1px, transparent 1.4px);
  background-size: auto, 30px 30px;
}

/* Portada del estudio: panel con la mesa de taller al fondo y el texto sobre la zona oscura. */
.home .hero.studio-hero {
  grid-template-columns: 1fr;
  min-height: 460px;
  padding: 64px clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18,21,27,.96) 0%, rgba(18,21,27,.82) 38%, rgba(18,21,27,.15) 78%),
    url("img/studio_taller.webp") right center / cover no-repeat;
}
.home .hero.studio-hero > div { max-width: 560px; }
@media (max-width: 760px) {
  .home .hero.studio-hero {
    min-height: 0;
    padding: 40px 22px;
    background:
      linear-gradient(180deg, rgba(18,21,27,.93) 0%, rgba(18,21,27,.8) 100%),
      url("img/studio_taller.webp") 70% center / cover no-repeat;
  }
}
