/* Reidlo Games — web principal (presentación de juegos) */
:root {
  --s-bg: #0a0b0f;
  --s-panel: #14161e;
  --s-panel-2: #1a1d28;
  --s-text: #f2f0f5;
  --s-muted: #9a93a8;
  --s-line: #2c2838;
  --s-accent: #c45cff;
  --s-accent-2: #ff6b9d;
  --s-warm: #e8b86d;
  --s-good: #5ddeb0;
  --s-radius: 18px;
  --s-max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Calibri, system-ui, sans-serif;
  color: var(--s-text);
  background: var(--s-bg);
  line-height: 1.5;
}
a { color: #d4b0ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 15% -5%, #3a1a55 0%, transparent 55%),
    radial-gradient(700px 400px at 90% 10%, #4a1838 0%, transparent 50%),
    radial-gradient(600px 500px at 50% 100%, #1a2038 0%, transparent 45%),
    var(--s-bg);
}

/* Nav */
.site-nav {
  max-width: var(--s-max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--s-text) !important; text-decoration: none !important;
  font-weight: 750; font-size: 1.1rem; letter-spacing: 0.02em;
}
.site-brand-mark {
  width: 2rem; height: 2rem; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--s-accent), var(--s-accent-2));
  color: #120814; font-weight: 900; font-size: 1rem;
}
.site-nav-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem;
}
.site-nav-links a { color: var(--s-muted); font-weight: 600; text-decoration: none; }
.site-nav-links a:hover { color: var(--s-text); }
.site-nav-cta {
  display: inline-block !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #6b3fa0, #a04a78) !important;
  color: #fff !important !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid #c48ad0;
}
.site-nav-cta:hover { filter: brightness(1.08); text-decoration: none !important; }

/* Language switcher EN | ES */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 0.25rem;
  border-radius: 999px;
  border: 1px solid #4a4060;
  background: rgba(12, 10, 18, 0.65);
  overflow: hidden;
}
.lang-btn {
  display: inline-block;
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: #9a90a8 !important;
  text-decoration: none !important;
  border: none;
}
.lang-btn:hover { color: #f0e8f8 !important; background: rgba(255,255,255,0.06); }
.lang-btn.is-active {
  color: #140814 !important;
  background: linear-gradient(135deg, #c4a0e8, #e8a0c0);
}

/* Hero home */
.hero {
  max-width: var(--s-max);
  margin: 0.5rem auto 2.5rem;
  padding: 0 1.25rem;
}
.hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid #3a3048;
  box-shadow: 0 24px 60px #0008;
  background: var(--s-panel);
}
.hero-card-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.02);
  filter: saturate(1.1) brightness(1.05);
}
.hero-card-bg::after {
  content: "";
  position: absolute; inset: 0;
  /* Menos oscuro: se ve mejor la imagen */
  background: linear-gradient(100deg, #0a0b0fe6 0%, #0a0b0f99 38%, #0a0b0f33 72%, transparent 100%);
}
.hero-card-body {
  position: relative;
  z-index: 1;
  padding: 2.4rem 2.2rem 2.2rem;
  max-width: 34rem;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem; font-weight: 750; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--s-warm);
  margin-bottom: 0.75rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
}
.hero-lead {
  margin: 0 0 1.4rem;
  color: #d0c8dc;
  font-size: 1.05rem;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.btn-site {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.btn-site:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-site-primary {
  background: linear-gradient(135deg, var(--s-accent), var(--s-accent-2));
  color: #140814 !important;
}
.btn-site-ghost {
  background: rgba(255,255,255,0.06);
  border-color: #5a4a68;
  color: var(--s-text) !important;
}
.btn-site-warm {
  background: linear-gradient(135deg, #c48a3a, #e07a55);
  color: #1a1008 !important;
}
.btn-site-ss {
  background: linear-gradient(135deg, #e8a54b, #d4842a);
  color: #1a1008 !important;
  border-color: #f0c070;
}

/* Sections */
.section {
  max-width: var(--s-max);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1.25rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}
.section-head p { margin: 0; color: var(--s-muted); max-width: 28rem; }

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.game-card {
  display: flex; flex-direction: column;
  border-radius: var(--s-radius);
  overflow: hidden;
  background: var(--s-panel);
  border: 1px solid var(--s-line);
  box-shadow: 0 14px 36px #0006;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  text-decoration: none !important;
  color: inherit;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: #6a4a88;
  box-shadow: 0 20px 48px #0009;
}
.game-card-cover {
  aspect-ratio: 16 / 10;
  min-height: 180px;
  background: #1c1524 center/cover no-repeat;
  background-color: #1c1524;
  position: relative;
}
.game-card-cover::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(transparent, #0e1016cc);
}
.game-card-badge {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1;
  font-size: 0.72rem; font-weight: 750;
  padding: 0.28rem 0.55rem; border-radius: 999px;
  background: rgba(20, 12, 28, 0.82);
  border: 1px solid #6a5080;
  color: #e8d8f8;
  letter-spacing: 0.03em;
}
.game-card-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.game-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 750;
}
.game-card-tagline {
  margin: 0 0 0.65rem;
  color: var(--s-muted);
  font-size: 0.92rem;
  flex: 1;
}
.game-card-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  font-size: 0.78rem; color: #b8a8c8;
}
.game-card-meta span {
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: #221c2c;
  border: 1px solid #3a3248;
}

.empty-games {
  padding: 2rem 1.5rem;
  border-radius: var(--s-radius);
  border: 1px dashed #4a4058;
  background: #12141c;
  color: var(--s-muted);
  text-align: center;
}

/* About strip */
.about-strip {
  max-width: var(--s-max);
  margin: 0 auto 3.5rem;
  padding: 0 1.25rem;
}
.about-strip-inner {
  border-radius: var(--s-radius);
  padding: 1.6rem 1.7rem;
  background: linear-gradient(135deg, #221830 0%, #181424 100%);
  border: 1px solid #443858;
}
.about-strip h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.about-strip p { margin: 0; color: #c8bed4; max-width: 48rem; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--s-line);
  margin-top: 2rem;
  padding: 2rem 1.25rem 1.5rem;
  background: #0c0d12;
}
.site-foot-inner {
  max-width: var(--s-max);
  margin: 0 auto 1rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem;
}
.site-foot-inner p { margin: 0.25rem 0 0; color: var(--s-muted); font-size: 0.9rem; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.site-foot-links a { color: var(--s-muted); font-weight: 600; }
.site-foot-copy {
  max-width: var(--s-max);
  margin: 0 auto;
  color: #6a6478;
  font-size: 0.82rem;
}

/* ——— Game detail page (simple: title → carousel → about) ——— */
.g-head {
  border-bottom: 1px solid var(--s-line);
  background: linear-gradient(180deg, #16121c 0%, #0c0d12 100%);
}
.g-head-inner {
  max-width: var(--s-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.5rem;
}
.g-kicker {
  font-size: 0.78rem; font-weight: 750; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--s-warm); margin: 0 0 0.5rem;
}
.g-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4.2vw, 2.75rem);
  font-weight: 850; line-height: 1.12;
}
.g-tagline {
  margin: 0 0 1rem;
  color: #d4cadc;
  font-size: 1.08rem;
  max-width: 40rem;
}
.g-meta-row {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.15rem;
}
.g-chip {
  font-size: 0.78rem; font-weight: 650;
  padding: 0.28rem 0.55rem; border-radius: 8px;
  background: #1c1824;
  border: 1px solid #4a4060;
  color: #d8d0e4;
}
.g-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Carrusel principal */
.g-media {
  max-width: var(--s-max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}
.carousel {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #3a3448;
  background: #0e1016;
  box-shadow: 0 16px 48px #0008;
}
.carousel-main {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
}
.carousel-stage {
  display: block; width: 100%; height: 100%;
  padding: 0; border: none; background: #0a0c10; cursor: zoom-in;
}
.carousel-stage img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #0a0c10;
}
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #5a5068;
  background: rgba(10, 10, 16, 0.72);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.carousel-nav:hover { background: rgba(40, 30, 55, 0.9); }
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }
.carousel-thumbs {
  display: flex; gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  overflow-x: auto;
  background: #12141a;
  border-top: 1px solid #2a2838;
}
.carousel-thumb {
  flex: 0 0 auto;
  width: 104px; height: 58px;
  padding: 0; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden;
  background: #0a0c10; cursor: pointer;
  opacity: 0.72;
}
.carousel-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.carousel-thumb.is-active {
  border-color: #c48ad0;
  opacity: 1;
}
.carousel-thumb:hover { opacity: 1; }

.g-layout {
  position: relative;
  z-index: 2;
  max-width: var(--s-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .g-layout { grid-template-columns: 1fr; }
}

.g-panel {
  background: var(--s-panel);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  padding: 1.35rem 1.4rem 1.5rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 10px 28px #0005;
}
.g-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8bcd8;
}
.g-desc {
  color: #d8d2e0;
  white-space: pre-wrap;
  line-height: 1.65;
  margin: 0;
}
.g-features {
  margin: 0; padding-left: 1.15rem;
  color: #d8d2e0;
}
.g-features li { margin: 0.35rem 0; }



/* Side card */
.g-side-sticky { position: sticky; top: 1rem; }
.g-side-cover {
  width: 100%; border-radius: 12px; margin-bottom: 0.9rem;
  border: 1px solid #4a4060; display: block;
  aspect-ratio: 16/10; object-fit: cover; background: #1a1522;
}
.g-side-title { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 750; }
.g-side-sub { margin: 0 0 0.9rem; color: var(--s-muted); font-size: 0.9rem; }
.g-side-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.g-side-actions .btn-site { width: 100%; }
.g-side-note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: #8a8098;
  line-height: 1.45;
}

/* Lightbox simple */
.lb {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: #000c; align-items: center; justify-content: center;
  padding: 1.5rem; cursor: zoom-out;
}
.lb.open { display: flex; }
.lb img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  border-radius: 10px;
  border: 1px solid #5a5068;
  box-shadow: 0 20px 60px #000a;
}

.age-banner {
  max-width: var(--s-max);
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
}
.age-banner span {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  padding: 0.3rem 0.6rem; border-radius: 8px;
  background: #2a1820; border: 1px solid #6a3040; color: #f0c0c8;
}
