/* 1win-sitio-ecuador.com — hoja de estilos original */

:root {
  --bg: #070c1d;
  --bg-2: #0a1124;
  --panel: #0f1830;
  --panel-2: #151f3d;
  --panel-3: #1c2850;
  --line: rgba(150,170,255,.12);
  --line-2: rgba(150,170,255,.24);
  --ink: #c3cce4;
  --ink-hi: #f5f7ff;
  --dim: #8794b8;
  --violet: #8b5cf6;
  --violet-2: #b79cff;
  --blue: #4d8dff;
  --green: #34c97b;
  --green-2: #69e4a0;
  --gold: #f5c04a;
  --r: 22px;
  --r-sm: 12px;
  --wrap: 1220px;
  --font: "Figtree", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 85% -8%, rgba(139,92,246,.20), transparent 62%),
    radial-gradient(900px 520px at -8% 6%, rgba(77,141,255,.14), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.has-sticky { padding-bottom: 96px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: #052416; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 60; padding: 12px 0 0; }
.bar {
  position: relative; z-index: 62;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 20px;
  border-radius: 20px; border: 1px solid var(--line-2);
  background: rgba(13,21,44,.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 32px; width: auto; }
.primary-nav { flex: 1; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 13px;
  font-size: .94rem; font-weight: 700; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover { background: rgba(255,255,255,.07); color: var(--ink-hi); }
.primary-nav .nav-app { color: var(--ink-hi); background: rgba(139,92,246,.18); border: 1px solid rgba(139,92,246,.45); }
.primary-nav .nav-app:hover { background: rgba(139,92,246,.32); }
.nav-app svg { width: 16px; height: 16px; }
.bar-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.hamburger {
  display: none; flex: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 13px;
  background: var(--panel-2); cursor: pointer; padding: 0;
}
.hamburger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink-hi); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 61;
  background: rgba(7,12,29,.98); overflow-y: auto;
  padding: 104px 20px 40px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.mobile-nav ul a {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 1.05rem; font-weight: 700; color: var(--ink-hi);
}
.mobile-nav .nav-app { border-color: rgba(139,92,246,.5); }
.mobile-nav .nav-app svg { width: 18px; height: 18px; }
.mobile-nav .m-cta { display: grid; gap: 10px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 14px; border: 0; cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 800; line-height: 1.2;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; text-align: center;
}
.btn:focus-visible, .faq summary:focus-visible, .hamburger:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-green { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #052416; box-shadow: 0 10px 28px rgba(52,201,123,.30); }
.btn-green:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-violet { background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; box-shadow: 0 10px 28px rgba(110,90,250,.35); }
.btn-violet:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-white { background: #fff; color: #0b1226; }
.btn-white:hover { background: #eef1ff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink-hi); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 10px 18px; font-size: .9rem; border-radius: 12px; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; border-radius: 16px; }
.btn-block { width: 100%; }

/* ============ HERO / BENTO ============ */
.crumb { padding: 20px 0 0; }
.back-home {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.05); font-weight: 700; font-size: .92rem; color: var(--ink-hi);
}
.back-home:hover { background: rgba(255,255,255,.1); }

.hero { padding: 18px 0 10px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
}
.tile-text {
  grid-column: span 7; padding: 40px 40px 36px;
  background: linear-gradient(155deg, #121c3d 0%, #0d1530 60%, #0b1228 100%);
}
.tile-text::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.35), transparent 70%); pointer-events: none;
}
.tile-text > * { position: relative; }
.tile-text h1 {
  margin: 0 0 20px; color: var(--ink-hi);
  font-size: clamp(1.75rem, 3.1vw, 2.55rem); line-height: 1.14; font-weight: 800; letter-spacing: -.015em;
}
.tile-text p { font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tile-img { grid-column: span 5; min-height: 360px; border-color: var(--line-2); }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(7,12,29,.7)); pointer-events: none; }

.tile-promo { grid-column: span 4; padding: 26px 26px 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; }
.tile-promo strong { display: block; font-size: 1.5rem; line-height: 1.18; font-weight: 800; color: #fff; letter-spacing: -.01em; margin-bottom: 18px; }
.tile-promo .btn { align-self: flex-start; }
.promo-violet { background: linear-gradient(150deg, #8b3dff 0%, #6a45f2 55%, #3f6cff 100%); border-color: transparent; }
.promo-dark { background: linear-gradient(150deg, #101a38, #0a1226); }
.promo-green { background: linear-gradient(150deg, #1c9b63, #2fc57d 70%, #46d894); border-color: transparent; }
.promo-green .btn-white { color: #063a22; }
.tile-promo .orb { position: absolute; right: -36px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; opacity: .5; pointer-events: none; }
.promo-violet .orb { background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,0) 65%); }
.promo-dark .orb { background: radial-gradient(circle at 30% 30%, var(--gold), rgba(245,192,74,0) 65%); opacity: .35; }
.promo-green .orb { background: radial-gradient(circle at 30% 30%, #eafff3, rgba(255,255,255,0) 65%); }
.tile-promo > * { position: relative; }

.games-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.game-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.game-chip:hover { transform: translateY(-2px); border-color: var(--violet); background: var(--panel-2); }
.game-chip b { display: block; font-size: 1.15rem; color: var(--ink-hi); line-height: 1.2; }
.game-chip small { color: var(--dim); font-size: .85rem; font-weight: 600; }
.game-chip i { flex: none; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--violet), var(--blue)); }
.game-chip:nth-child(2) i { background: linear-gradient(135deg, #ff5f7a, #ff9a5f); }
.game-chip:nth-child(3) i { background: linear-gradient(135deg, var(--green), #1fa8c9); }
.game-chip:nth-child(4) i { background: linear-gradient(135deg, var(--gold), #ff8a3d); }

/* simple page head for legal pages */
.page-head { padding: 18px 0 6px; }
.page-head .tile-text { grid-column: 1 / -1; padding: 40px 44px 38px; }
.page-head .tile-text h1 { max-width: 880px; }
.page-head .tile-text p { max-width: 820px; }

/* ============ ARTICLE ============ */
.article { max-width: 940px; margin: 28px auto 0; padding: 0 20px; }
.toc {
  margin: 0 0 22px; padding: 24px 28px; border-radius: 22px;
  border: 1px solid var(--line-2); background: rgba(15,24,48,.65);
}
.toc h2 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-2); font-weight: 800; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; margin: 0 0 6px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.toc a:hover { background: rgba(139,92,246,.2); color: var(--ink-hi); }

.block {
  margin: 0 0 20px; padding: 34px 36px 30px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(21,31,61,.62), rgba(13,21,44,.5));
  border: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.block-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.idx {
  flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; font-weight: 800; font-size: 1.02rem;
  box-shadow: 0 8px 22px rgba(110,90,250,.35);
}
.block h2 { margin: 0; color: var(--ink-hi); font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.2; letter-spacing: -.01em; font-weight: 800; }
.block h3 { margin: 32px 0 12px; font-size: 1.2rem; color: var(--violet-2); line-height: 1.3; font-weight: 800; }
.block p { color: var(--ink); }

.block ul, .block ol { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 8px; }
.block ul.cols { grid-template-columns: 1fr 1fr; }
.block li {
  position: relative; padding: 11px 16px 11px 44px; border-radius: 13px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: .98rem;
}
.block ul li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 9px; height: 9px; border-radius: 3px;
  background: linear-gradient(135deg, var(--violet), var(--green)); transform: translateY(-50%) rotate(45deg);
}
.block ol { counter-reset: step; }
.block ol li { counter-increment: step; padding-left: 58px; }
.block ol li::before {
  content: counter(step); position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-2)); color: #052416; font-weight: 800; font-size: .86rem;
}

.table-wrap { margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(8,14,32,.6); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table-wrap.wide table { min-width: 620px; }
.table-wrap th {
  text-align: left; padding: 13px 16px; font-size: .84rem; letter-spacing: .02em; color: #fff; font-weight: 800;
  background: linear-gradient(90deg, #3b2a9a, #2b4bb3);
}
.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.table-wrap td:first-child { color: var(--ink-hi); font-weight: 700; }
.table-wrap td.url { word-break: break-all; font-size: .88rem; color: var(--dim); }

.figure { margin: 24px 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); }
.figure img { width: 100%; height: auto; }

.cta-strip {
  position: relative; overflow: hidden; margin: 26px 0 6px; padding: 26px 20px; border-radius: 22px;
  display: flex; justify-content: center;
  background: linear-gradient(120deg, rgba(139,92,246,.26), rgba(77,141,255,.16) 55%, rgba(52,201,123,.18));
  border: 1px solid var(--line-2);
}
.link-row { margin: 8px 0 4px; }

.faq { display: grid; gap: 10px; margin: 8px 0 0; }
.faq details { border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); overflow: hidden; }
.faq details[open] { border-color: var(--line-2); background: rgba(139,92,246,.08); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 800; font-size: 1.04rem; color: var(--ink-hi); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--ink-hi); font-size: 1.2rem; font-weight: 700;
}
.faq details[open] summary::after { content: "−"; background: var(--green); color: #052416; }
.faq .ans { padding: 0 22px 20px; }
.faq .ans p { margin: 0; }

/* ============ STICKY PROMO ============ */
.sticky-promo {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 55;
  width: min(960px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px;
  padding: 12px 14px 12px 22px; border-radius: 20px;
  background: rgba(16,25,52,.96); border: 1px solid var(--line-2); box-shadow: 0 16px 50px rgba(0,0,0,.5);
}
.sticky-promo p { margin: 0; flex: 1; font-weight: 800; color: var(--ink-hi); font-size: 1.02rem; line-height: 1.3; }
.sticky-promo .x {
  flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.sticky-promo.is-hidden { display: none; }

/* ============ FOOTER ============ */
.site-footer { margin-top: 40px; padding: 44px 0 26px; background: var(--bg-2); border-top: 1px solid var(--line-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; color: var(--dim); max-width: 340px; }
.footer-col h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 4px; }
.footer-col a { display: inline-block; padding: 5px 0; font-size: .95rem; color: var(--ink); }
.footer-col a:hover { color: var(--ink-hi); text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: .85rem; color: var(--dim); max-width: 760px; }
.badge-18 {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1060px) {
  .primary-nav, .bar-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .tile-text { grid-column: 1 / -1; padding: 30px 26px; }
  .tile-img { grid-column: 1 / -1; min-height: 300px; order: -1; }
  .tile-promo { grid-column: span 6; }
  .tile-promo:last-of-type { grid-column: 1 / -1; }
  .games-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .block { padding: 24px 18px 22px; border-radius: 20px; }
  .block-head { gap: 12px; }
  .idx { width: 40px; height: 40px; border-radius: 12px; }
  .block ul.cols { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .tile-promo { grid-column: 1 / -1; min-height: 0; }
  .tile-img { min-height: 220px; }
  .page-head .tile-text { padding: 28px 22px; }
  .hero-actions .btn { width: 100%; }
  .btn { white-space: normal; }
  .sticky-promo { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .sticky-promo p { flex: 1 1 100%; font-size: .95rem; }
  .sticky-promo .btn { flex: 1; }
  body.has-sticky { padding-bottom: 150px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip .btn { white-space: normal; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
