/* 1win-ecuador-casino.com — azul medianoche, lima eléctrica y celeste */

:root {
  --cx-bg: #0b1120;
  --cx-bg-2: #0f172b;
  --cx-card: #151e35;
  --cx-card-2: #1c2744;
  --cx-line: #29365a;
  --cx-txt: #d4dbeb;
  --cx-mut: #9aa5c0;
  --cx-white: #f7f9fd;

  --cx-lima: #b4f03c;
  --cx-lima-hi: #c8f86a;
  --cx-lima-lo: #95d21f;
  --cx-on-lima: #142200;
  --cx-cel: #4aa8ff;
  --cx-coral: #ff5c7a;

  --cx-head: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --cx-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --cx-max: 1240px;
  --cx-pad: clamp(1rem, 4vw, 2.5rem);
  --cx-alto: 74px;
}

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

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

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

body {
  margin: 0;
  background: var(--cx-bg);
  color: var(--cx-txt);
  font-family: var(--cx-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

body.cx-fijo { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--cx-cel); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.cx-saltar {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 500;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--cx-lima);
  color: var(--cx-on-lima);
  font-weight: 700;
  text-decoration: none;
}
.cx-saltar:focus { top: 12px; }

.cx-cont { width: min(100% - 2 * var(--cx-pad), var(--cx-max)); margin-inline: auto; }

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

.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--cx-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cx-btn:active { transform: scale(0.98); }

.cx-btn--lima { background: var(--cx-lima); color: var(--cx-on-lima); box-shadow: 0 10px 26px -14px rgba(180, 240, 60, 0.9); }
.cx-btn--lima:hover { background: var(--cx-lima-hi); }
.cx-btn--lima:active { background: var(--cx-lima-lo); }

.cx-btn--borde { border-color: var(--cx-cel); color: var(--cx-white); background: transparent; }
.cx-btn--borde:hover { background: rgba(74, 168, 255, 0.16); }
.cx-btn--borde:active { background: rgba(74, 168, 255, 0.28); }

.cx-btn--xl { min-height: 56px; padding: 0.85rem 2rem; font-size: 1.05rem; }

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

.cx-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cx-line);
}

.cx-top__in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--cx-alto);
  width: min(100% - 2 * var(--cx-pad), var(--cx-max));
  margin-inline: auto;
}

.cx-logo { display: inline-flex; flex-direction: column; flex-shrink: 0; color: var(--cx-white); text-decoration: none; line-height: 1; }
.cx-logo__a { font-family: var(--cx-head); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; }
.cx-logo__b { margin-top: 0.15rem; color: var(--cx-lima); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }

.cx-nav { margin-left: auto; }
.cx-nav ul { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.cx-nav__a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--cx-txt);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cx-nav__a:hover { color: var(--cx-white); background: var(--cx-card); }
.cx-nav__a[aria-current="true"] { color: var(--cx-on-lima); background: var(--cx-lima); }

.cx-top__ctas { display: flex; gap: 0.5rem; }
.cx-top__ctas .cx-btn { min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.95rem; }

.cx-burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 2px solid var(--cx-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.cx-burger span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--cx-white); }
.cx-burger span:first-child { top: 18px; }
.cx-burger span:last-child { bottom: 18px; right: 18px; background: var(--cx-lima); }
.cx-burger:hover { border-color: var(--cx-cel); }

/* capa del menú móvil a pantalla completa */

.cx-capa {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(74, 168, 255, 0.18), transparent 70%),
    radial-gradient(500px 360px at 0% 100%, rgba(180, 240, 60, 0.12), transparent 70%),
    var(--cx-bg);
  animation: cx-entrar 0.22s ease;
}
.cx-capa[hidden] { display: none; }
@keyframes cx-entrar { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.cx-capa__in { display: flex; flex-direction: column; min-height: 100%; padding: 0 var(--cx-pad) 1.6rem; }
.cx-capa__top { display: flex; align-items: center; justify-content: space-between; height: var(--cx-alto); }
.cx-capa__x {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--cx-line);
  border-radius: 50%;
  background: transparent;
  color: var(--cx-white);
  cursor: pointer;
}
.cx-capa__x:hover { border-color: var(--cx-coral); }

.cx-capa__lista { margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.cx-capa__lista li + li { border-top: 1px solid var(--cx-line); }
.cx-capa__a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0.2rem;
  color: var(--cx-white);
  font-family: var(--cx-head);
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.cx-capa__n { color: var(--cx-lima); font-size: 0.9rem; font-weight: 700; letter-spacing: 0; }
.cx-capa__a:hover { color: var(--cx-lima); }
.cx-capa__ctas { display: grid; gap: 0.6rem; margin-top: auto; }

/* ---------- héroe ---------- */

.cx-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(74, 168, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--cx-bg-2), var(--cx-bg));
}

.cx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.cx-volver { margin: 0 0 1.1rem; }
.cx-volver a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--cx-line);
  color: var(--cx-white);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}
.cx-volver a::before { content: "←"; color: var(--cx-lima); }
.cx-volver a:hover { background: var(--cx-card); }

.cx-h1 {
  margin: 0 0 1.1rem;
  color: var(--cx-white);
  font-family: var(--cx-head);
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cx-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.cx-hero__media { position: relative; }
.cx-hero__foto { margin: 0; overflow: hidden; border-radius: 26px; border: 1px solid var(--cx-line); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.95); }
.cx-hero__foto img { width: 100%; aspect-ratio: 1600 / 873; object-fit: cover; }

.cx-ficha {
  position: absolute;
  left: -1.2rem;
  bottom: -1.4rem;
  display: grid;
  gap: 0.2rem;
  max-width: 330px;
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: var(--cx-card);
  border: 1px solid var(--cx-line);
  border-left: 4px solid var(--cx-lima);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
  line-height: 1.35;
}
.cx-ficha span { color: var(--cx-mut); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.cx-ficha strong { color: var(--cx-white); font-family: var(--cx-head); font-size: 1.02rem; font-weight: 700; }

.cx-cifras {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2.6rem, 5vw, 3.4rem) 0 0;
  border-radius: 20px;
  background: var(--cx-card);
  border: 1px solid var(--cx-line);
}
.cx-cifras div { padding: 1.1rem 1.3rem; }
.cx-cifras div + div { border-left: 1px solid var(--cx-line); }
.cx-cifras dt { color: var(--cx-mut); font-size: 0.88rem; }
.cx-cifras dd { margin: 0.1rem 0 0; color: var(--cx-lima); font-family: var(--cx-head); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; line-height: 1.1; }

.cx-hero--doc { padding-bottom: 1rem; }
.cx-hero__doc > * { max-width: 900px; }

/* ---------- cuerpo con índice ---------- */

.cx-cuerpo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.cx-articulo { min-width: 0; }

.cx-lado { position: sticky; top: calc(var(--cx-alto) + 18px); }

.cx-toc {
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: 20px;
  background: var(--cx-card);
  border: 1px solid var(--cx-line);
}
.cx-toc__cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cx-toc__t { margin: 0; color: var(--cx-white); font-family: var(--cx-head); font-size: 1.1rem; font-weight: 700; }
.cx-toc__btn { display: none; }
.cx-toc__barra { height: 4px; margin: 0.8rem 0 0.6rem; border-radius: 4px; background: var(--cx-card-2); overflow: hidden; }
.cx-toc__barra span { display: block; width: 0; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--cx-cel), var(--cx-lima)); transition: width 0.1s linear; }
.cx-toc__l {
  position: relative;
  display: grid;
  gap: 1px;
  max-height: calc(100vh - var(--cx-alto) - 210px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.cx-toc__l a {
  display: block;
  padding: 0.45rem 0.6rem 0.45rem 0.8rem;
  border-left: 2px solid transparent;
  color: var(--cx-mut);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
}
.cx-toc__l a:hover { color: var(--cx-white); }
.cx-toc__l a[aria-current="true"] { border-left-color: var(--cx-lima); color: var(--cx-white); background: rgba(180, 240, 60, 0.06); }
.cx-toc__cta { margin-top: 1rem; }
.cx-toc__cta .cx-btn { width: 100%; }

/* ---------- secciones ---------- */

.cx-sec { padding: clamp(1.8rem, 3.5vw, 2.6rem) 0; border-bottom: 1px solid var(--cx-line); }
.cx-sec:first-child { padding-top: 0; }
.cx-sec:last-child { border-bottom: 0; }
.cx-sec > :last-child,
.cx-sub > :last-child { margin-bottom: 0; }

.cx-h2 {
  margin: 0 0 1.1rem;
  color: var(--cx-white);
  font-family: var(--cx-head);
  font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.cx-h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 0.7rem; border-radius: 4px; background: linear-gradient(90deg, var(--cx-lima), var(--cx-cel)); }

.cx-sub {
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  background: var(--cx-bg-2);
  border: 1px solid var(--cx-line);
}
.cx-h3 { margin: 0 0 0.75rem; color: var(--cx-white); font-family: var(--cx-head); font-size: clamp(1.12rem, 1.02rem + 0.45vw, 1.35rem); font-weight: 700; line-height: 1.3; }
.cx-h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 0.6rem; border-radius: 3px; background: var(--cx-cel); transform: rotate(45deg); vertical-align: 0.12em; }

.cx-foto { margin: 1.4rem 0; }
.cx-foto img { width: 100%; aspect-ratio: 1100 / 600; object-fit: cover; border-radius: 18px; }

.cx-accion { margin: 1.5rem 0 0.4rem; }

/* tablas */

.cx-tabla {
  margin: 1.2rem 0;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--cx-line);
  background: var(--cx-card);
  -webkit-overflow-scrolling: touch;
}
.cx-tabla table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.cx-tabla--ancha table { min-width: 580px; }
.cx-tabla thead th {
  padding: 0.85rem 1rem;
  background: var(--cx-card-2);
  color: var(--cx-cel);
  font-family: var(--cx-head);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
}
.cx-tabla tbody th,
.cx-tabla tbody td,
.cx-tabla tfoot th,
.cx-tabla tfoot td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; }
.cx-tabla tbody tr + tr > * { border-top: 1px solid var(--cx-line); }
.cx-tabla tbody th { color: var(--cx-white); font-weight: 600; }
.cx-tabla tbody tr:hover { background: rgba(74, 168, 255, 0.07); }
.cx-tabla tfoot { background: var(--cx-lima); }
.cx-tabla tfoot th,
.cx-tabla tfoot td { color: var(--cx-on-lima); font-weight: 800; }

/* listas */

.cx-ul { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.cx-ul li { position: relative; padding-left: 1.6rem; line-height: 1.55; }
.cx-ul li::before { content: ""; position: absolute; top: 0.5em; left: 0.1rem; width: 10px; height: 10px; border-radius: 50%; background: var(--cx-lima); box-shadow: 0 0 0 4px rgba(180, 240, 60, 0.15); }

.cx-ol { display: grid; gap: 0.55rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: cx-n; }
.cx-ol li {
  position: relative;
  padding: 0.7rem 1rem 0.7rem 3.3rem;
  border-radius: 14px;
  background: var(--cx-card);
  border: 1px solid var(--cx-line);
  counter-increment: cx-n;
  line-height: 1.5;
}
.cx-sub .cx-ol li { background: var(--cx-card-2); }
.cx-ol li::before {
  content: counter(cx-n);
  position: absolute;
  top: 0.65rem;
  left: 0.85rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--cx-cel);
  color: #04162b;
  font-family: var(--cx-head);
  font-size: 0.88rem;
  font-weight: 800;
}

/* preguntas */

.cx-faq { display: grid; gap: 0.6rem; }
.cx-faq__fila { border-radius: 16px; background: var(--cx-card); border: 1px solid var(--cx-line); overflow: hidden; }
.cx-faq__h { margin: 0; }
.cx-faq__btn {
  position: relative;
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 1rem 3.6rem 1rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--cx-white);
  font-family: var(--cx-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.cx-faq__btn:hover { background: var(--cx-card-2); }
.cx-faq__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.3rem;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 3px solid var(--cx-lima);
  border-bottom: 3px solid var(--cx-lima);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin-top 0.2s ease;
}
.cx-faq__btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -3px; }
.cx-faq__btn[aria-expanded="true"] { color: var(--cx-lima); }
.cx-faq__resp { padding: 0 1.2rem 1.1rem; }
.cx-faq__resp p { margin: 0; }

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

.cx-pie { padding: 2.6rem 0 1.6rem; background: var(--cx-bg-2); border-top: 1px solid var(--cx-line); }
.cx-pie__grid { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem 2.5rem; align-items: center; }
.cx-pie__edad { display: flex; align-items: center; gap: 0.7rem; margin: 0.9rem 0 0; color: var(--cx-mut); font-size: 0.92rem; }
.cx-edad {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cx-coral);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}
.cx-pie__nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; }
.cx-pie__nav a { display: inline-block; padding: 0.45rem 0; color: var(--cx-txt); font-weight: 600; text-decoration: none; }
.cx-pie__nav a:hover { color: var(--cx-lima); text-decoration: underline; text-underline-offset: 4px; }
.cx-pie__copy { margin: 1.8rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--cx-line); color: var(--cx-mut); font-size: 0.9rem; }

.cx-subir {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cx-lima);
  color: var(--cx-on-lima);
  box-shadow: 0 12px 26px -12px rgba(180, 240, 60, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.cx-subir.cx-subir--ver { opacity: 1; visibility: visible; transform: none; }

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

@media (max-width: 1280px) {
  .cx-top__sec { display: none; }
}

@media (max-width: 1120px) {
  .cx-nav { display: none; }
  .cx-top__ctas { margin-left: auto; }
  .cx-burger { display: block; margin-left: 0; flex-shrink: 0; }
  .cx-top__in { gap: 0.7rem; }
}

@media (max-width: 1000px) {
  .cx-cuerpo { grid-template-columns: minmax(0, 1fr); }
  .cx-lado { position: static; order: -1; }
  .cx-toc__btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 1rem;
    border: 1px solid var(--cx-line);
    border-radius: 999px;
    background: transparent;
    color: var(--cx-white);
    font-family: var(--cx-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
  }
  .cx-toc__barra, .cx-toc__cta { display: none; }
  .cx-toc__l { display: none; max-height: none; margin-top: 0.8rem; }
  .cx-toc--abierto .cx-toc__l { display: grid; }
}

@media (max-width: 900px) {
  .cx-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .cx-hero__media { order: -1; margin-bottom: 1.8rem; }
  .cx-ficha { left: 0.8rem; right: 0.8rem; max-width: none; }
  .cx-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-cifras div:nth-child(3) { border-left: 0; }
  .cx-cifras div:nth-child(n + 3) { border-top: 1px solid var(--cx-line); }
  .cx-pie__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --cx-alto: 64px; }
  body { font-size: 1rem; }
  .cx-logo__a { font-size: 1.6rem; }
  .cx-top__ctas .cx-btn { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
  .cx-hero__ctas .cx-btn, .cx-accion .cx-btn { width: 100%; }
  .cx-sub { padding: 1rem; }
  .cx-hero__foto img { aspect-ratio: 4 / 3; }
}
