/* 1win-paraguay-oficial.com — salón real: azul cobalto, dorado de araña y destellos turquesa */

:root {
  --r-fondo: #0b1a4a;
  --r-fondo-2: #0e2260;
  --r-panel: #122a70;
  --r-panel-2: #17337f;
  --r-hondo: #071237;
  --r-oro: #e2b04a;
  --r-oro-hi: #f0c66b;
  --r-oro-lo: #b8892a;
  --r-turquesa: #2ad4c6;
  --r-turquesa-lo: #19a99d;
  --r-texto: #e4e9f8;
  --r-tenue: #a7b3d9;
  --r-linea: rgba(226, 176, 74, 0.2);
  --r-linea-2: rgba(226, 176, 74, 0.42);
  --r-linea-azul: rgba(140, 170, 255, 0.18);
  --r-blanco: #ffffff;
  --r-tinta: #0a1230;

  --r-titulo: "Gloock", Georgia, "Times New Roman", serif;
  --r-cuerpo: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;

  --r-ancho: 1180px;
  --r-pad: clamp(1rem, 4vw, 2.4rem);
  --r-alto: 72px;
  --r-tira: 52px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--r-alto) + var(--r-tira) + 16px);
  -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:
    radial-gradient(900px 500px at 50% -10%, rgba(42, 212, 198, 0.12), transparent 70%),
    radial-gradient(600px 400px at 0 30%, rgba(226, 176, 74, 0.08), transparent 70%),
    var(--r-fondo);
  color: var(--r-texto);
  font-family: var(--r-cuerpo);
  font-size: 1.05rem;
  line-height: 1.74;
}

body.of-bloqueo { overflow: hidden; }

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

:focus-visible { outline: 3px solid var(--r-turquesa); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.of-salto {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 900;
  padding: 0.7rem 1rem;
  background: var(--r-oro);
  color: var(--r-tinta);
  font-weight: 800;
  text-decoration: none;
}
.of-salto:focus { top: 12px; }

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

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

.of-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--r-cuerpo);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.of-btn:active { transform: scale(0.98); }

.of-btn--sol {
  background: linear-gradient(135deg, var(--r-oro-hi), var(--r-oro) 55%, var(--r-oro-lo));
  color: var(--r-tinta);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px -14px rgba(226, 176, 74, 0.9);
}
.of-btn--sol:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(240, 198, 107, 0.35), 0 14px 28px -12px rgba(226, 176, 74, 1); }

.of-btn--cielo { background: transparent; border-color: var(--r-turquesa); color: var(--r-turquesa); }
.of-btn--cielo:hover { background: var(--r-turquesa); color: var(--r-tinta); box-shadow: 0 0 22px -6px rgba(42, 212, 198, 0.9); }
.of-btn--cielo:active { background: var(--r-turquesa-lo); }

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

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

.of-cab {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 18, 55, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--r-linea);
}
.of-cab__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--r-alto);
  width: min(100% - 2 * var(--r-pad), var(--r-ancho));
  margin-inline: auto;
}

.of-logo { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; color: var(--r-blanco); text-decoration: none; }
.of-logo__a { font-family: var(--r-titulo); font-size: 1.7rem; line-height: 1; color: var(--r-oro-hi); }
.of-logo__b { padding-left: 0.7rem; border-left: 1px solid var(--r-linea-2); color: var(--r-tenue); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; }

.of-nav { margin-left: auto; }
.of-nav ul { display: flex; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.of-enlace {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.65rem;
  color: var(--r-tenue);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.of-enlace::before { content: ""; position: absolute; top: 6px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; background: var(--r-oro); transform: rotate(45deg) scale(0); transition: transform 0.2s ease; }
.of-enlace:hover { color: var(--r-blanco); }
.of-enlace[aria-current="true"] { color: var(--r-oro-hi); }
.of-enlace[aria-current="true"]::before,
.of-enlace:hover::before { transform: rotate(45deg) scale(1); }

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

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

.of-panel { position: fixed; top: var(--r-alto); left: 0; right: 0; bottom: 0; z-index: 210; background: rgba(4, 10, 32, 0.6); }
.of-panel[hidden] { display: none; }
.of-panel__in {
  width: min(100%, 440px);
  height: 100%;
  margin-left: auto;
  padding: 1.2rem var(--r-pad) 1.6rem;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--r-fondo-2), var(--r-hondo));
  border-left: 1px solid var(--r-linea-2);
  animation: of-desliza 0.22s ease;
}
@keyframes of-desliza { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.of-panel__t { margin: 0 0 0.8rem; color: var(--r-oro); font-family: var(--r-titulo); font-size: 1.25rem; }
.of-panel__l { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: of-pl; }
.of-panel__l li { counter-increment: of-pl; border-bottom: 1px solid var(--r-linea-azul); }
.of-panel__a { display: grid; grid-template-columns: 2rem 1fr; align-items: center; min-height: 50px; padding: 0.35rem 0; color: var(--r-texto); font-weight: 600; line-height: 1.3; text-decoration: none; }
.of-panel__a::before { content: counter(of-pl, decimal-leading-zero); color: var(--r-oro); font-size: 0.78rem; font-weight: 800; }
.of-panel__a:hover { color: var(--r-turquesa); }
.of-panel__ctas { display: grid; gap: 0.7rem; margin-top: 1.4rem; }

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

.of-volver { margin-top: 1.1rem; margin-bottom: 0; }
.of-volver a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--r-linea-2); border-radius: 999px; color: var(--r-oro-hi); font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.of-volver a:hover { background: rgba(226, 176, 74, 0.12); }

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

.of-portada { padding: clamp(1.8rem, 4.5vw, 3.6rem) 0 clamp(1.4rem, 3vw, 2.2rem); }
.of-portada__rej { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.of-portada__foto { position: relative; order: -1; margin: 0; padding: 10px; border: 1px solid var(--r-linea-2); }
.of-portada__foto::before,
.of-portada__foto::after { content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid var(--r-oro); }
.of-portada__foto::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.of-portada__foto::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.of-portada__foto img { width: 100%; aspect-ratio: 1400 / 764; object-fit: cover; }

.of-h1 {
  margin: 0 0 1.1rem;
  color: var(--r-blanco);
  font-family: var(--r-titulo);
  font-size: clamp(1.9rem, 1.2rem + 2.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}
.of-h1::after { content: ""; display: block; width: 90px; height: 2px; margin-top: 1rem; background: linear-gradient(90deg, var(--r-oro), var(--r-turquesa)); }
.of-portada__texto p,
.of-portada__legal p { color: var(--r-texto); }
.of-portada__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }

.of-portada__legal {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid var(--r-linea-2);
  background: linear-gradient(135deg, rgba(23, 51, 127, 0.7), rgba(7, 18, 55, 0.7));
}
.of-portada__legal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--r-oro), var(--r-turquesa)); }
.of-portada__legal .of-h1 { max-width: 880px; }
.of-portada__legal p { max-width: 820px; }

/* ---------- índice como tira fija ---------- */

.of-pagina { display: block; padding-bottom: clamp(3rem, 6vw, 5rem); }
.of-indice {
  position: sticky;
  top: var(--r-alto);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: var(--r-tira);
  margin: 0 calc(-1 * var(--r-pad)) clamp(1.4rem, 3vw, 2rem);
  padding: 0 var(--r-pad);
  background: rgba(11, 26, 74, 0.96);
  border-bottom: 1px solid var(--r-linea-azul);
}
.of-indice__t { flex-shrink: 0; margin: 0; color: var(--r-oro); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.of-indice ol { display: flex; gap: 0.4rem; margin: 0; padding: 0.5rem 0; list-style: none; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--r-linea-2) transparent; }
.of-indice li { flex: none; }
.of-indice a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid var(--r-linea-azul);
  border-radius: 999px;
  color: var(--r-tenue);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.of-indice a:hover { color: var(--r-blanco); border-color: var(--r-turquesa); }
.of-indice a[aria-current="true"] { color: var(--r-tinta); background: var(--r-oro); border-color: var(--r-oro); }

.of-articulo { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); max-width: 980px; margin-inline: auto; min-width: 0; }

.of-sec {
  position: relative;
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  background: linear-gradient(180deg, rgba(23, 51, 127, 0.55), rgba(14, 34, 96, 0.35));
  border: 1px solid var(--r-linea-azul);
}
.of-sec::before { content: ""; position: absolute; top: -1px; left: -1px; width: 60px; height: 60px; border-top: 2px solid var(--r-oro); border-left: 2px solid var(--r-oro); }
.of-sec__cab { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.of-sec__n { flex-shrink: 0; color: var(--r-turquesa); font-family: var(--r-titulo); font-size: 2.2rem; line-height: 1; opacity: 0.85; }
.of-h2 {
  margin: 0;
  color: var(--r-blanco);
  font-family: var(--r-titulo);
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.18;
  text-wrap: balance;
}
.of-sec__cuerpo > :last-child,
.of-sub > :last-child { margin-bottom: 0; }

.of-sub { margin-top: 1.5rem; padding: 1.2rem 1.3rem; background: rgba(7, 18, 55, 0.55); border-left: 2px solid var(--r-turquesa); }
.of-h3 {
  margin: 0 0 0.6rem;
  color: var(--r-oro-hi);
  font-family: var(--r-cuerpo);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
}

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

.of-foto { margin: 1.4rem 0; padding: 6px; border: 1px solid var(--r-linea); }
.of-foto img { width: 100%; aspect-ratio: 1400 / 764; object-fit: cover; }

/* tablas */

.of-tabla { margin: 1.1rem 0; overflow-x: auto; border: 1px solid var(--r-linea-2); background: rgba(7, 18, 55, 0.6); -webkit-overflow-scrolling: touch; }
.of-tabla table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.of-tabla--ancha table { min-width: 560px; }
.of-tabla thead th { padding: 0.8rem 1rem; border-bottom: 2px solid var(--r-oro); color: var(--r-oro-hi); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.of-tabla tbody th,
.of-tabla tbody td,
.of-tabla tfoot th,
.of-tabla tfoot td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.of-tabla tbody tr + tr > * { border-top: 1px solid var(--r-linea-azul); }
.of-tabla tbody th { color: var(--r-blanco); font-weight: 700; }
.of-tabla tbody tr:hover { background: rgba(42, 212, 198, 0.07); }
.of-tabla tfoot { background: rgba(226, 176, 74, 0.16); }
.of-tabla tfoot th,
.of-tabla tfoot td { color: var(--r-oro-hi); font-weight: 800; border-top: 2px solid var(--r-oro); }

/* listas */

.of-lista { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.of-lista li { position: relative; padding-left: 1.6rem; line-height: 1.6; }
.of-lista li::before { content: ""; position: absolute; top: 0.62em; left: 0.2rem; width: 0.5rem; height: 0.5rem; background: var(--r-oro); transform: rotate(45deg); box-shadow: 0 0 8px rgba(226, 176, 74, 0.6); }

.of-pasos { display: grid; gap: 0.6rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: of-p; }
.of-pasos li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px dashed var(--r-linea-azul);
  counter-increment: of-p;
  line-height: 1.45;
}
.of-pasos li::before { content: counter(of-p, upper-roman); display: grid; place-items: center; height: 2.4rem; border: 1px solid var(--r-oro); color: var(--r-oro-hi); font-family: var(--r-titulo); font-size: 1.05rem; }

/* preguntas */

.of-dudas { display: grid; gap: 0; margin-bottom: 1rem; border-top: 1px solid var(--r-linea-2); }
.of-duda { border-bottom: 1px solid var(--r-linea-2); }
.of-duda__p { display: flex; align-items: center; gap: 1rem; min-height: 62px; padding: 0.9rem 0.2rem; list-style: none; cursor: pointer; }
.of-duda__p::-webkit-details-marker { display: none; }
.of-duda__p::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 1px solid var(--r-turquesa);
  border-radius: 50%;
  background:
    linear-gradient(var(--r-turquesa), var(--r-turquesa)) center / 10px 2px no-repeat,
    linear-gradient(var(--r-turquesa), var(--r-turquesa)) center / 2px 10px no-repeat;
  transition: transform 0.25s ease;
}
.of-duda[open] .of-duda__p::after { transform: rotate(45deg); }
.of-duda__n { flex-shrink: 0; color: var(--r-oro); font-family: var(--r-titulo); font-size: 1.15rem; }
.of-duda__t { color: var(--r-blanco); font-weight: 700; font-size: 1.04rem; line-height: 1.4; }
.of-duda__r { padding: 0 0.2rem 1.2rem calc(0.2rem + 1.5rem + 1rem); color: var(--r-texto); }
.of-duda__r p { margin: 0; }

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

.of-pie { background: var(--r-hondo); border-top: 1px solid var(--r-linea-2); }
.of-pie__rej { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; align-items: start; padding: 2.8rem 0 1.6rem; }
.of-pie__t { margin: 0 0 0.7rem; color: var(--r-oro); font-family: var(--r-titulo); font-size: 1.1rem; }
.of-pie__edad { display: flex; align-items: center; gap: 0.7rem; margin: 1rem 0 0; color: var(--r-tenue); font-size: 0.95rem; }
.of-edad { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--r-oro); color: var(--r-oro-hi); font-size: 0.82rem; font-weight: 800; transform: rotate(45deg); }
.of-pie__nav ul { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.of-pie__nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--r-texto); font-weight: 600; text-decoration: none; }
.of-pie__nav a:hover { color: var(--r-oro-hi); }
.of-pie__ctas { display: grid; gap: 0.8rem; justify-items: start; }
.of-pie__copy { margin-top: 0; margin-bottom: 0; padding: 1rem 0 1.6rem; border-top: 1px solid var(--r-linea-azul); color: var(--r-tenue); font-size: 0.9rem; }

.of-subir {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--r-oro);
  background: var(--r-hondo);
  color: var(--r-oro-hi);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.of-subir.of-subir--ver { opacity: 1; visibility: visible; }

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

@media (max-width: 1180px) {
  .of-nav { display: none; }
  .of-menu { display: inline-flex; }
  .of-cab__cta { margin-left: auto; }
}

@media (max-width: 900px) {
  .of-portada__rej { grid-template-columns: minmax(0, 1fr); }
  .of-pie__rej { grid-template-columns: minmax(0, 1fr); }
  .of-indice__t { display: none; }
}

@media (max-width: 560px) {
  :root { --r-alto: 62px; --r-tira: 48px; }
  body { font-size: 1rem; }
  .of-logo__b { display: none; }
  .of-menu__txt { display: none; }
  .of-menu { width: 46px; padding: 0; justify-content: center; }
  .of-cab__cta { padding: 0.5rem 0.8rem; font-size: 0.8rem; letter-spacing: 0.02em; }
  .of-portada__btns .of-btn,
  .of-accion .of-btn { width: 100%; }
  .of-sec { padding: 1.2rem 1rem; }
  .of-sub { padding: 1rem; }
  .of-sec__n { font-size: 1.6rem; }
  .of-duda__r { padding-left: 0.2rem; }
}
