/* 1win-juegos-paraguay.com — neón de Asunción: verde azulado profundo, cian eléctrico y rosa de atardecer */

:root {
  --n-noche: #08161c;
  --n-noche-2: #0b1f27;
  --n-capa: #0f2a34;
  --n-capa-2: #143642;
  --n-hondo: #050f13;
  --n-cian: #3ee6e0;
  --n-cian-lo: #20b7b2;
  --n-rosa: #ff5d8f;
  --n-rosa-hi: #ff7aa4;
  --n-rosa-lo: #e23d73;
  --n-texto: #dcecef;
  --n-tenue: #93b3ba;
  --n-linea: rgba(62, 230, 224, 0.16);
  --n-linea-2: rgba(62, 230, 224, 0.36);
  --n-blanco: #ffffff;
  --n-tinta: #061014;

  --n-titulo: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --n-cuerpo: "Karla", "Segoe UI", Roboto, Arial, sans-serif;

  --n-ancho: 1240px;
  --n-pad: clamp(1rem, 4vw, 2.4rem);
  --n-alto: 70px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--n-alto) + 18px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 93, 143, 0.06), transparent 420px),
    var(--n-noche);
  color: var(--n-texto);
  font-family: var(--n-cuerpo);
  font-size: 1.08rem;
  line-height: 1.72;
}

body.jg-bloqueo { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
a { color: var(--n-cian); }

:focus-visible { outline: 3px solid var(--n-rosa); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.jg-salto {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 900;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--n-cian);
  color: var(--n-tinta);
  font-weight: 700;
  text-decoration: none;
}
.jg-salto:focus { top: 12px; }

.jg-marco { width: min(100% - 2 * var(--n-pad), var(--n-ancho)); margin-inline: auto; }

/* ---------- botones ---------- */

.jg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 14px 4px 14px 4px;
  font-family: var(--n-titulo);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, border-radius 0.25s ease, transform 0.15s ease;
}
.jg-btn:hover { border-radius: 4px 14px 4px 14px; }
.jg-btn:active { transform: translateY(2px); }

.jg-btn--sol { background: var(--n-rosa); color: var(--n-tinta); box-shadow: 0 0 0 0 rgba(255, 93, 143, 0.5), 0 12px 26px -14px rgba(255, 93, 143, 0.9); }
.jg-btn--sol:hover { background: var(--n-rosa-hi); box-shadow: 0 0 0 4px rgba(255, 93, 143, 0.25), 0 14px 30px -12px rgba(255, 93, 143, 1); }
.jg-btn--sol:active { background: var(--n-rosa-lo); }

.jg-btn--cielo { background: rgba(62, 230, 224, 0.06); border-color: var(--n-cian); color: var(--n-cian); }
.jg-btn--cielo:hover { background: var(--n-cian); color: var(--n-tinta); box-shadow: 0 0 24px -6px rgba(62, 230, 224, 0.9); }
.jg-btn--cielo:active { background: var(--n-cian-lo); }

.jg-btn--xl { min-height: 56px; padding: 0.9rem 1.9rem; font-size: 1rem; }

/* ---------- cabecera ---------- */

.jg-cab {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5, 15, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--n-linea);
}
.jg-cab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--n-cian) 25%, var(--n-rosa) 75%, transparent); opacity: 0.7; }
.jg-cab__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--n-alto);
  width: min(100% - 2 * var(--n-pad), var(--n-ancho));
  margin-inline: auto;
}

.jg-logo { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; color: var(--n-blanco); text-decoration: none; }
.jg-logo__a { padding: 0.2rem 0.55rem; border: 2px solid var(--n-cian); border-radius: 10px 3px 10px 3px; font-family: var(--n-titulo); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--n-cian); text-shadow: 0 0 12px rgba(62, 230, 224, 0.6); }
.jg-logo__b { color: var(--n-rosa); font-family: var(--n-titulo); font-size: 0.9rem; font-weight: 700; }

.jg-nav { margin-left: auto; }
.jg-nav ul { display: flex; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.jg-enlace {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.7rem;
  border-radius: 8px;
  color: var(--n-tenue);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.jg-enlace:hover { color: var(--n-blanco); background: rgba(62, 230, 224, 0.08); }
.jg-enlace[aria-current="true"] { color: var(--n-cian); box-shadow: inset 0 -2px 0 var(--n-cian); border-radius: 8px 8px 0 0; }

.jg-cab__cta { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.86rem; white-space: nowrap; }

.jg-menu {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 1px solid var(--n-linea-2);
  border-radius: 12px;
  background: var(--n-capa);
  color: var(--n-cian);
  font-family: var(--n-cuerpo);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.jg-menu__ico { position: relative; width: 20px; height: 2px; border-radius: 2px; background: var(--n-cian); transition: background-color 0.2s ease; }
.jg-menu__ico::before,
.jg-menu__ico::after { content: ""; position: absolute; left: 0; height: 2px; border-radius: 2px; background: var(--n-rosa); transition: transform 0.2s ease, top 0.2s ease, width 0.2s ease; }
.jg-menu__ico::before { top: -6px; width: 14px; }
.jg-menu__ico::after { top: 6px; width: 20px; }
.jg-menu[aria-expanded="true"] .jg-menu__ico { background: transparent; }
.jg-menu[aria-expanded="true"] .jg-menu__ico::before { top: 0; width: 20px; transform: rotate(45deg); }
.jg-menu[aria-expanded="true"] .jg-menu__ico::after { top: 0; transform: rotate(-45deg); }

.jg-panel { position: fixed; top: var(--n-alto); left: 0; right: 0; bottom: 0; z-index: 190; background: rgba(2, 8, 10, 0.7); }
.jg-panel[hidden] { display: none; }
.jg-panel__in {
  max-height: 100%;
  padding: 1.2rem var(--n-pad) 1.6rem;
  overflow-y: auto;
  background: var(--n-noche-2);
  border-bottom: 2px solid var(--n-rosa);
  animation: jg-baja 0.2s ease;
}
@keyframes jg-baja { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.jg-panel__t { margin: 0 0 0.7rem; color: var(--n-rosa); font-family: var(--n-titulo); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.jg-panel__l { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.jg-panel__a { display: flex; align-items: center; min-height: 52px; height: 100%; padding: 0.5rem 0.85rem; border-radius: 12px; background: var(--n-capa); border: 1px solid var(--n-linea); color: var(--n-texto); font-weight: 700; line-height: 1.3; text-decoration: none; }
.jg-panel__a:hover { border-color: var(--n-cian); color: var(--n-cian); }
.jg-panel__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.2rem; }

/* ---------- regreso ---------- */

.jg-volver { margin-top: 1rem; margin-bottom: 0; }
.jg-volver a { display: inline-flex; align-items: center; min-height: 44px; color: var(--n-rosa); font-weight: 700; text-decoration: none; border-bottom: 2px dashed rgba(255, 93, 143, 0.5); }
.jg-volver a:hover { color: var(--n-rosa-hi); border-bottom-style: solid; }

/* ---------- portada ---------- */

.jg-portada { padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.jg-portada__rej { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 26px; overflow: hidden; border: 1px solid var(--n-linea-2); }
.jg-portada__foto,
.jg-portada__texto { grid-area: 1 / 1; }
.jg-portada__foto { margin: 0; }
.jg-portada__foto img { width: 100%; height: 100%; min-height: 520px; aspect-ratio: 1400 / 764; object-fit: cover; }
.jg-portada__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 15, 19, 0.97) 0%, rgba(5, 15, 19, 0.92) 42%, rgba(5, 15, 19, 0.45) 62%, transparent 85%); pointer-events: none; }
.jg-portada__texto { position: relative; z-index: 1; align-self: center; max-width: 620px; padding: clamp(1.6rem, 4vw, 3.2rem); }

.jg-h1 {
  margin: 0 0 1.1rem;
  color: var(--n-blanco);
  font-family: var(--n-titulo);
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.jg-portada__texto p,
.jg-portada__legal p { color: var(--n-texto); }
.jg-portada__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }

.jg-portada__legal {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: 26px;
  background:
    radial-gradient(500px 220px at 100% 0, rgba(255, 93, 143, 0.16), transparent 70%),
    radial-gradient(500px 260px at 0 100%, rgba(62, 230, 224, 0.12), transparent 70%),
    var(--n-capa);
  border: 1px solid var(--n-linea-2);
}
.jg-portada__legal .jg-h1 { max-width: 860px; }
.jg-portada__legal p { max-width: 820px; }

/* ---------- distribución con guía lateral ---------- */

.jg-pagina { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.jg-articulo { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2rem); min-width: 0; }

.jg-indice {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(var(--n-alto) + 18px);
  max-height: calc(100vh - var(--n-alto) - 36px);
  overflow-y: auto;
  padding: 1.1rem 1rem;
  border-radius: 18px;
  background: var(--n-capa);
  border: 1px solid var(--n-linea);
}
.jg-indice__t { margin: 0 0 0.6rem; color: var(--n-rosa); font-family: var(--n-titulo); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.jg-indice ol { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; counter-reset: jg-ix; }
.jg-indice li { counter-increment: jg-ix; }
.jg-indice a {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  align-items: start;
  min-height: 40px;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  color: var(--n-tenue);
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.jg-indice a::before { content: counter(jg-ix, decimal-leading-zero); color: var(--n-cian-lo); font-family: var(--n-titulo); font-size: 0.74rem; font-weight: 700; padding-top: 0.12rem; }
.jg-indice a:hover { background: rgba(62, 230, 224, 0.07); color: var(--n-blanco); }
.jg-indice a[aria-current="true"] { background: rgba(255, 93, 143, 0.14); color: var(--n-blanco); }
.jg-indice a[aria-current="true"]::before { color: var(--n-rosa); }

.jg-sec {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--n-capa-2), var(--n-capa) 45%, var(--n-noche-2));
  border: 1px solid var(--n-linea);
}
.jg-sec__cab { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.2rem; }
.jg-sec__n { flex-shrink: 0; display: inline-grid; place-items: center; min-width: 46px; height: 32px; padding: 0 0.5rem; border-radius: 999px; background: rgba(62, 230, 224, 0.12); border: 1px solid var(--n-linea-2); color: var(--n-cian); font-family: var(--n-titulo); font-size: 0.85rem; font-weight: 800; }
.jg-h2 {
  margin: 0;
  color: var(--n-blanco);
  font-family: var(--n-titulo);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.jg-sec__cuerpo > :last-child,
.jg-sub > :last-child { margin-bottom: 0; }

.jg-sub { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--n-linea); }
.jg-h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  color: var(--n-rosa-hi);
  font-family: var(--n-titulo);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
}
.jg-h3::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-radius: 3px; background: var(--n-rosa); box-shadow: 0 0 10px rgba(255, 93, 143, 0.7); }

.jg-accion { margin: 1.6rem 0 0.4rem; }

.jg-foto { margin: 1.4rem 0; }
.jg-foto img { width: 100%; aspect-ratio: 1400 / 764; object-fit: cover; border-radius: 16px; border: 1px solid var(--n-linea-2); box-shadow: 0 20px 40px -26px rgba(62, 230, 224, 0.6); }

/* tablas */

.jg-tabla { margin: 1.1rem 0; overflow-x: auto; border-radius: 14px; border: 1px solid var(--n-linea-2); background: var(--n-hondo); -webkit-overflow-scrolling: touch; }
.jg-tabla table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.jg-tabla--ancha table { min-width: 560px; }
.jg-tabla thead th { padding: 0.85rem 1rem; background: linear-gradient(90deg, rgba(62, 230, 224, 0.2), rgba(62, 230, 224, 0.05)); color: var(--n-cian); font-family: var(--n-titulo); font-size: 0.84rem; font-weight: 700; text-align: left; }
.jg-tabla tbody th,
.jg-tabla tbody td,
.jg-tabla tfoot th,
.jg-tabla tfoot td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.jg-tabla tbody tr + tr > * { border-top: 1px solid var(--n-linea); }
.jg-tabla tbody tr:nth-child(even) { background: rgba(62, 230, 224, 0.03); }
.jg-tabla tbody th { color: var(--n-blanco); font-weight: 700; }
.jg-tabla tbody tr:hover { background: rgba(255, 93, 143, 0.07); }
.jg-tabla tfoot { background: rgba(255, 93, 143, 0.14); }
.jg-tabla tfoot th,
.jg-tabla tfoot td { color: var(--n-rosa-hi); font-weight: 800; }

/* listas */

.jg-lista { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.jg-lista li { position: relative; padding-left: 1.7rem; line-height: 1.6; }
.jg-lista li::before { content: ""; position: absolute; top: 0.5em; left: 0.2rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: radial-gradient(circle, var(--n-cian) 35%, transparent 40%), rgba(62, 230, 224, 0.2); }

.jg-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.7rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: jg-p; }
.jg-pasos li {
  position: relative;
  padding: 2.4rem 0.9rem 0.9rem;
  border-radius: 14px;
  background: var(--n-hondo);
  border: 1px solid var(--n-linea);
  counter-increment: jg-p;
  line-height: 1.45;
}
.jg-pasos li::before {
  content: counter(jg-p);
  position: absolute;
  top: 0.7rem;
  left: 0.9rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--n-rosa);
  color: var(--n-tinta);
  font-family: var(--n-titulo);
  font-size: 0.85rem;
  font-weight: 800;
}

/* preguntas */

.jg-dudas { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.jg-duda { border-radius: 14px; background: var(--n-hondo); border: 1px solid var(--n-linea); transition: border-color 0.2s ease; }
.jg-duda[open] { border-color: var(--n-rosa); }
.jg-duda__p { display: flex; align-items: center; gap: 0.9rem; min-height: 60px; padding: 0.85rem 1.1rem; list-style: none; cursor: pointer; }
.jg-duda__p::-webkit-details-marker { display: none; }
.jg-duda__p::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-left: auto;
  border-right: 2px solid var(--n-cian);
  border-bottom: 2px solid var(--n-cian);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.25s ease, border-color 0.2s ease;
}
.jg-duda[open] .jg-duda__p::after { transform: rotate(-135deg); border-color: var(--n-rosa); }
.jg-duda__n { flex-shrink: 0; color: var(--n-rosa); font-family: var(--n-titulo); font-weight: 800; }
.jg-duda__t { color: var(--n-blanco); font-family: var(--n-titulo); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.jg-duda__r { padding: 0 1.1rem 1.1rem calc(1.1rem + 1.5rem + 0.9rem); color: var(--n-texto); }
.jg-duda__r p { margin: 0; }

/* ---------- pie ---------- */

.jg-pie { background: var(--n-hondo); border-top: 1px solid var(--n-linea); }
.jg-pie__rej { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; align-items: start; padding: 2.8rem 0 1.6rem; }
.jg-pie__t { margin: 0 0 0.7rem; color: var(--n-cian); font-family: var(--n-titulo); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.jg-pie__edad { display: flex; align-items: center; gap: 0.7rem; margin: 1rem 0 0; color: var(--n-tenue); font-size: 0.95rem; }
.jg-edad { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--n-rosa); color: var(--n-rosa); font-size: 0.82rem; font-weight: 800; }
.jg-pie__nav ul { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.jg-pie__nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--n-texto); font-weight: 600; text-decoration: none; }
.jg-pie__nav a:hover { color: var(--n-cian); }
.jg-pie__ctas { display: grid; gap: 0.8rem; justify-items: start; }
.jg-pie__copy { margin-top: 0; margin-bottom: 0; padding: 1rem 0 1.6rem; border-top: 1px solid var(--n-linea); color: var(--n-tenue); font-size: 0.9rem; }

.jg-subir {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px 4px 14px 4px;
  background: var(--n-cian);
  color: var(--n-tinta);
  box-shadow: 0 0 20px -4px rgba(62, 230, 224, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.jg-subir.jg-subir--ver { opacity: 1; visibility: visible; }

/* ---------- adaptación ---------- */

@media (max-width: 1100px) {
  .jg-nav { display: none; }
  .jg-menu { display: inline-flex; }
  .jg-cab__cta { margin-left: auto; }
  .jg-pagina { grid-template-columns: minmax(0, 1fr); }
  .jg-indice { grid-column: 1; grid-row: 1; position: static; max-height: none; }
  .jg-indice ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .jg-articulo { grid-row: 2; }
}

@media (max-width: 820px) {
  .jg-portada__rej { border-radius: 20px; }
  .jg-portada__foto,
  .jg-portada__texto { grid-area: auto; }
  .jg-portada__foto { order: -1; }
  .jg-portada__foto img { min-height: 0; }
  .jg-portada__foto::after { display: none; }
  .jg-portada__texto { max-width: none; background: var(--n-capa); }
  .jg-pie__rej { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --n-alto: 62px; }
  body { font-size: 1.03rem; }
  .jg-logo__b { display: none; }
  .jg-menu__txt { display: none; }
  .jg-menu { width: 46px; padding: 0; justify-content: center; }
  .jg-cab__cta { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
  .jg-portada__btns .jg-btn,
  .jg-accion .jg-btn { width: 100%; }
  .jg-sec { padding: 1.2rem 1rem; border-radius: 16px; }
  .jg-panel__ctas { grid-template-columns: minmax(0, 1fr); }
  .jg-duda__r { padding-left: 1.1rem; }
}
