/* ============================================================
   CLASH OF PANTHEONS — web oficial
   Estética: obsidiana y oro divino (a juego con el cliente).
   Tipos: Cinzel (display, epigráfico) + Spectral (cuerpo).
   ============================================================ */
:root {
  --ink-950: #05060a;
  --ink-900: #0a0c14;
  --ink-800: #10131f;
  --ink-700: #181c2c;
  --bone: #e8e2d4;
  --bone-dim: #a49e8f;
  --gold: #c9a227;
  --gold-bright: #f0d879;
  --gold-deep: #8a6d1a;
  --ether: #57c7d4;
  --blood: #c8402f;
  /* Colores de carta del juego */
  --c-rojo: #c8402f;
  --c-azul: #3272c4;
  --c-verde: #3f9d4e;
  --c-amarillo: #d9a72e;
  --c-negro: #7d7391;
  --c-morado: #8e44ad;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink-900);
  color: var(--bone);
  font-family: "Spectral", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Textura de fondo: vetas doradas muy tenues sobre obsidiana */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 162, 39, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(87, 199, 212, 0.05), transparent 60%),
    var(--ink-900);
}

h1, h2, h3, .display { font-family: "Cinzel", "Spectral", serif; letter-spacing: 0.04em; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.4rem; }

/* --------------------------- NAV --------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(5, 6, 10, 0.82);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 0.65rem 1.4rem;
  max-width: 1120px;
  margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: 0.6rem; color: var(--bone); font-family: "Cinzel", serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; }
.nav__logo img { width: 34px; height: 34px; object-fit: contain; }
.nav__links { display: flex; gap: 1.3rem; margin-left: auto; align-items: center; }
.nav__links a { color: var(--bone-dim); font-size: 0.92rem; letter-spacing: 0.05em; text-transform: uppercase; font-family: "Cinzel", serif; }
.nav__links a:hover, .nav__links a.on { color: var(--gold-bright); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  color: var(--ink-950);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 26px -8px rgba(201, 162, 39, 0.65);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px -8px rgba(240, 216, 121, 0.8); text-decoration: none; }
.btn--ghost {
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid var(--gold-deep);
  box-shadow: none;
}
.btn--sm { padding: 0.45rem 1rem; font-size: 0.8rem; }

/* --------------------------- HERO --------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("img/lobby-bg.webp") center 30% / cover no-repeat;
  opacity: 0.34;
  filter: saturate(0.9);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.25), rgba(10, 12, 20, 0.92) 78%, var(--ink-900));
}
.hero__logo { width: min(300px, 58vw); margin: 0 auto 1.4rem; filter: drop-shadow(0 0 44px rgba(201, 162, 39, 0.45)); animation: rise 0.9s var(--ease) both; }
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 800;
  background: linear-gradient(180deg, #fff8e2, var(--gold-bright) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: rise 0.9s var(--ease) 0.08s both;
}
.hero p.lead {
  max-width: 640px;
  margin: 1rem auto 1.8rem;
  color: var(--bone-dim);
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  animation: rise 0.9s var(--ease) 0.16s both;
}
.hero__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; animation: rise 0.9s var(--ease) 0.24s both; }
.hero__note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--bone-dim); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Separador ornamental */
.orn { display: flex; align-items: center; gap: 0.9rem; justify-content: center; margin: 0.4rem auto 2.4rem; color: var(--gold); }
.orn::before, .orn::after { content: ""; height: 1px; width: min(180px, 26vw); background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.orn::after { background: linear-gradient(270deg, transparent, var(--gold-deep)); }
.orn span { font-size: 1.05rem; letter-spacing: 0.4em; text-indent: 0.4em; }

/* --------------------------- SECCIONES --------------------------- */
section { padding: 3.6rem 0; }
.sec-h { text-align: center; margin-bottom: 0.6rem; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold-bright); }
.sec-sub { text-align: center; color: var(--bone-dim); max-width: 620px; margin: 0 auto 2.4rem; }

/* Panteones */
.gods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.god { text-align: center; }
.god img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12), 0 12px 30px -12px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.god:hover img { transform: translateY(-6px) scale(1.04); border-color: var(--gold-bright); }
.god b { display: block; margin-top: 0.55rem; font-family: "Cinzel", serif; font-size: 0.86rem; letter-spacing: 0.06em; }
.god small { color: var(--bone-dim); font-size: 0.76rem; }

/* Rasgos / modos */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.feat {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-700));
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(240, 216, 121, 0.55); }
.feat .ico { font-size: 1.5rem; }
.feat h3 { color: var(--gold-bright); font-size: 1.02rem; margin: 0.5rem 0 0.35rem; }
.feat p { color: var(--bone-dim); font-size: 0.92rem; }

/* Strip de cartas destacadas */
.strip { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.strip img {
  width: clamp(120px, 14vw, 168px);
  border-radius: 10px;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.95);
  transition: transform 0.3s var(--ease);
}
.strip a:nth-child(odd) img { transform: rotate(-2.2deg); }
.strip a:nth-child(even) img { transform: rotate(1.8deg); }
.strip a:hover img { transform: translateY(-10px) rotate(0) scale(1.05); box-shadow: 0 22px 44px -14px rgba(201, 162, 39, 0.5); }

/* --------------------------- GALERÍA DE CARTAS --------------------------- */
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.tools input[type="search"], .tools select {
  background: var(--ink-800);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--bone);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
}
.tools input[type="search"] { min-width: 220px; }
.tools input:focus, .tools select:focus { outline: none; border-color: var(--gold-bright); }

.chips { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: center; }
.chip {
  --c: var(--gold);
  border: 1px solid var(--c);
  color: var(--bone);
  background: transparent;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}
.chip.on { background: var(--c); color: var(--ink-950); font-weight: 700; box-shadow: 0 0 18px -4px var(--c); }
.chip[data-color="rojo"] { --c: var(--c-rojo); }
.chip[data-color="azul"] { --c: var(--c-azul); }
.chip[data-color="verde"] { --c: var(--c-verde); }
.chip[data-color="amarillo"] { --c: var(--c-amarillo); }
.chip[data-color="negro"] { --c: var(--c-negro); }
.chip[data-color="morado"] { --c: var(--c-morado); }

.count { text-align: center; color: var(--bone-dim); font-size: 0.88rem; margin-bottom: 1.2rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.9rem;
}
.card-t {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.25s var(--ease);
}
.card-t img { border-radius: 10px; width: 100%; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9); }
.card-t:hover { transform: translateY(-6px) scale(1.03); z-index: 2; }
.card-t:hover img { box-shadow: 0 18px 40px -12px rgba(201, 162, 39, 0.55); }
.card-t .rar {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(5, 6, 10, 0.85);
  color: var(--gold-bright);
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--gold-deep);
}

/* Modal de carta */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(5, 6, 10, 0.88);
  backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal__panel {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(260px, 420px);
  gap: 1.6rem;
  max-width: 820px;
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 1);
}
.modal__panel img { border-radius: 12px; width: 100%; align-self: start; }
.modal__panel h2 { color: var(--gold-bright); font-size: 1.3rem; margin-bottom: 0.15rem; }
.modal__id { color: var(--bone-dim); font-size: 0.8rem; letter-spacing: 0.1em; }
.modal__stats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
.stat {
  background: var(--ink-950);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  padding: 0.22rem 0.6rem;
  font-size: 0.8rem;
  color: var(--bone);
}
.stat b { color: var(--gold-bright); }
.modal__fx { margin-top: 0.6rem; }
.modal__fx p { font-size: 0.92rem; margin-bottom: 0.5rem; padding-left: 0.9rem; border-left: 2px solid var(--gold-deep); }
.modal__fx p.inh { border-left-color: var(--ether); color: #bcd8dc; }
.modal__flavor { margin-top: 1rem; font-style: italic; color: var(--bone-dim); font-size: 0.88rem; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  color: var(--bone);
  font-size: 1.6rem;
  cursor: pointer;
}

/* --------------------------- PROSA (privacidad) --------------------------- */
.prose { max-width: 780px; margin: 0 auto; padding: 3rem 1.4rem 4rem; }
.prose h1 { color: var(--gold-bright); font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 0.3rem; }
.prose .meta { color: var(--bone-dim); font-size: 0.88rem; margin-bottom: 2rem; }
.prose h2 { color: var(--gold-bright); font-size: 1.15rem; margin: 2rem 0 0.6rem; }
.prose p, .prose li { color: #cfc9bb; font-size: 0.97rem; }
.prose ul { padding-left: 1.3rem; margin: 0.5rem 0 1rem; }
.prose strong { color: var(--bone); }
.prose .box {
  background: var(--ink-800);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

/* --------------------------- FOOTER --------------------------- */
footer {
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  padding: 2.2rem 0 2.8rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--bone-dim);
  font-size: 0.86rem;
}
footer .f-links { display: flex; gap: 1.4rem; justify-content: center; margin-bottom: 0.8rem; flex-wrap: wrap; }
footer .f-links a { color: var(--bone-dim); }
footer .f-links a:hover { color: var(--gold-bright); }
footer .legal { font-size: 0.76rem; opacity: 0.75; max-width: 640px; margin: 0.6rem auto 0; }

/* --------------------------- NOTICIAS --------------------------- */
.newsfilter { display: flex; gap: 0.45rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.news-list { display: grid; gap: 0.9rem; max-width: 820px; margin: 0 auto; }
.news {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 1.1rem;
  align-items: center;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-700));
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.news:hover { border-color: rgba(240, 216, 121, 0.55); transform: translateX(4px); }
.news__date { text-align: center; font-family: "Cinzel", serif; color: var(--gold-bright); line-height: 1.2; }
.news__date b { display: block; font-size: 1.5rem; }
.news__date small { color: var(--bone-dim); font-size: 0.72rem; letter-spacing: 0.12em; }
.news__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  color: var(--ink-950);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 6px;
  padding: 0.08rem 0.5rem;
  margin-bottom: 0.3rem;
}
.news__tag--ev { background: linear-gradient(180deg, #9fe3ec, var(--ether)); }
.news h3 { font-size: 1.02rem; color: var(--bone); }
.news p { color: var(--bone-dim); font-size: 0.9rem; }

/* --------------------------- PRODUCTOS --------------------------- */
.prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.prod {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-700));
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.prod:hover { transform: translateY(-5px); border-color: rgba(240, 216, 121, 0.6); }
.prod__art { background: radial-gradient(420px 200px at 50% 0%, rgba(201, 162, 39, 0.16), transparent); padding: 1.4rem 1rem 0.6rem; }
.prod__art img { max-height: 240px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.8)); }
.prod__body { padding: 0.6rem 1.2rem 1.4rem; }
.prod__kind { color: var(--ether); font-size: 0.74rem; letter-spacing: 0.22em; font-family: "Cinzel", serif; }
.prod h3 { color: var(--gold-bright); margin: 0.25rem 0 0.4rem; font-size: 1.08rem; }
.prod p { color: var(--bone-dim); font-size: 0.9rem; }
.prod .mini { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.8rem; flex-wrap: wrap; }
.prod .mini img { width: 64px; border-radius: 6px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.9); }

/* --------------------------- CÓMO JUGAR --------------------------- */
.htp { max-width: 860px; margin: 0 auto; display: grid; gap: 1.1rem; }
.htp__step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.1rem;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-700));
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.htp__n {
  font-family: "Cinzel", serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink-950);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px -8px rgba(201, 162, 39, 0.7);
}
.htp__step h3 { color: var(--gold-bright); font-size: 1.06rem; margin-bottom: 0.3rem; }
.htp__step p, .htp__step li { color: #cfc9bb; font-size: 0.94rem; }
.htp__step ul { padding-left: 1.2rem; margin-top: 0.4rem; }
.htp__step b { color: var(--gold-bright); }
.balanza-demo {
  margin: 0.7rem 0 0.2rem;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blood), var(--ink-950) 35%, var(--ink-950) 65%, var(--ether));
  border: 1px solid var(--gold-deep);
  position: relative;
}
.balanza-demo::after {
  content: "⚖";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  font-size: 1rem;
}

/* --------------------------- GALERÍA: variantes y orden --------------------------- */
.card-t .rar--fa { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink-950); border-color: var(--gold-bright); }
.art-toggle { display: flex; gap: 0.4rem; margin: 0.6rem 0 0.2rem; flex-wrap: wrap; }
.art-toggle button {
  background: var(--ink-950);
  color: var(--bone);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-family: "Cinzel", serif;
  font-size: 0.74rem;
  cursor: pointer;
}
.art-toggle button.on { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink-950); font-weight: 700; }

/* --------------------------- FOOTER: redes --------------------------- */
.socials { display: flex; gap: 0.9rem; justify-content: center; margin: 0.4rem 0 1rem; }
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  font-size: 1.05rem;
  transition: all 0.25s;
}
.socials a:hover { background: var(--gold); color: var(--ink-950); text-decoration: none; transform: translateY(-3px); }

@media (max-width: 720px) {
  .gods { grid-template-columns: repeat(3, 1fr); }
  .modal__panel { grid-template-columns: 1fr; }
  .nav__in { gap: 0.8rem; padding: 0.55rem 0.9rem; }
  .nav__logo span { display: none; } /* solo el escudo en móvil */
  .nav__links { gap: 0.9rem; }
  .nav__links a.hide-sm { display: none; }
  .nav__links .btn--sm { padding: 0.4rem 0.75rem; font-size: 0.72rem; }
  .news { grid-template-columns: 76px 1fr; padding: 0.85rem 0.95rem; }
  .htp__step { grid-template-columns: 48px 1fr; }
  .htp__n { width: 44px; height: 44px; font-size: 1.4rem; }
}
