/* 1win-casino-online-ecuador.com — hoja de estilos original (editorial gris oscuro) */

:root {
  --bg: #17181b;
  --bg-2: #1d1f23;
  --bg-3: #25282d;
  --bg-4: #2e3238;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.18);
  --ink: #c8ccd4;
  --hi: #f3f4f6;
  --dim: #8d94a1;
  --blue: #2b7cff;
  --blue-2: #5a9dff;
  --blue-3: #9cc2ff;
  --green: #25c26e;
  --green-2: #55de93;
  --wrap: 1260px;
  --font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.72;
  background: radial-gradient(900px 420px at 80% -8%, rgba(43,124,255,.10), rgba(43,124,255,0) 70%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
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: #04301a; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 60; background: #111214; border-bottom: 1px solid var(--line-2); }
.bar { position: relative; z-index: 62; display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 32px; width: auto; }
.menu { flex: 1; }
.menu ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: .96rem; }
.menu a.is-app { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; }
.menu a.is-app:hover { filter: brightness(1.1); }
.menu svg { width: 17px; height: 17px; }
.bar-cta { display: flex; gap: 10px; margin-left: auto; }

.hamburger { display: none; margin-left: auto; width: 46px; height: 46px; flex-direction: column; justify-content: center; gap: 5px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-3); cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: #fff; 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); }

.drawer { display: none; position: fixed; inset: 0; z-index: 61; background: #111214; overflow-y: auto; padding: 98px 20px 40px; }
.drawer.is-open { display: block; }
.drawer ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.drawer ul a { display: flex; align-items: center; gap: 12px; padding: 17px 18px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); font-weight: 600; font-size: 1.08rem; color: var(--hi); }
.drawer ul a.is-app { background: linear-gradient(135deg, var(--blue), var(--blue-2)); border-color: transparent; }
.drawer ul svg { width: 20px; height: 20px; }
.drawer .d-cta { display: grid; gap: 10px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 13px 26px; border-radius: 8px; font-family: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2;
  transition: transform .15s ease, filter .15s ease, background .15s ease; white-space: nowrap; text-align: center;
}
.btn:focus-visible, a:focus-visible, summary:focus-visible, .hamburger:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.btn-green { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #04301a; box-shadow: 0 6px 18px rgba(37,194,110,.28); }
.btn-green:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 6px 18px rgba(43,124,255,.34); }
.btn-blue:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--hi); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 20px; font-size: .94rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.crumb { padding-top: 18px; }
.back-home { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--hi); font-weight: 600; font-size: .93rem; }
.back-home:hover { background: var(--bg-4); }
.hero { padding: 26px 0 0; }
.banner { position: relative; min-height: 560px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-3); display: flex; align-items: flex-end; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,15,17,.94) 0%, rgba(14,15,17,.78) 42%, rgba(14,15,17,0) 78%); pointer-events: none; }
.banner-copy { position: relative; z-index: 2; width: min(640px, 100%); padding: 44px 44px 40px; }
.banner-copy h1 { margin: 0 0 20px; color: #fff; font-size: clamp(1.8rem, 3.1vw, 2.7rem); line-height: 1.12; font-weight: 700; letter-spacing: -.018em; }
.banner-copy h1::before { content: ""; display: block; width: 54px; height: 4px; margin-bottom: 20px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.banner-copy p { font-size: 1.02rem; color: #dfe2e8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.plain-hero { padding: 42px 44px 36px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-left: 6px solid var(--blue); }
.plain-hero h1 { margin: 0 0 20px; max-width: 900px; color: #fff; font-size: clamp(1.8rem, 3.1vw, 2.7rem); line-height: 1.12; font-weight: 700; letter-spacing: -.018em; }
.plain-hero p { max-width: 860px; font-size: 1.05rem; }

.spec { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.spec div { padding: 20px 24px; border-left: 1px solid var(--line); }
.spec div:first-child { border-left: 0; }
.spec b { display: block; color: #fff; font-size: 1.7rem; line-height: 1.1; font-weight: 700; }
.spec b i { font-style: normal; color: var(--green-2); }
.spec span { display: block; margin-top: 6px; color: var(--dim); font-size: .93rem; }

/* ============ LAYOUT: rail + article ============ */
.layout { max-width: var(--wrap); margin: 38px auto 0; padding: 0 20px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
.rail { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
.rail-title { margin: 0 0 12px; color: var(--dim); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.rail li { margin: 0; }
.rail a { display: block; padding: 7px 12px 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink); font-size: .9rem; line-height: 1.35; }
.rail a:hover { color: #fff; border-left-color: var(--blue-2); background: rgba(43,124,255,.1); }

.article { min-width: 0; }
.part { padding: 6px 0 20px; margin: 0 0 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.part:last-child { border-bottom: 0; }
.part-head { margin-bottom: 20px; }
.no { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 5px; background: rgba(43,124,255,.16); color: var(--blue-3); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.part h2 { margin: 0; color: #fff; font-size: clamp(1.55rem, 2.8vw, 2.15rem); line-height: 1.16; font-weight: 700; letter-spacing: -.015em; }
.part h3 { margin: 34px 0 12px; padding-left: 14px; border-left: 3px solid var(--green); color: var(--hi); font-size: 1.27rem; line-height: 1.3; font-weight: 600; }
.part p { font-size: 1.04rem; line-height: 1.78; }

.part ul, .part ol { list-style: none; margin: 16px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.part ul.cols { columns: 2; column-gap: 36px; }
.part li { position: relative; padding: 11px 6px 11px 38px; border-bottom: 1px solid var(--line); font-size: 1.01rem; break-inside: avoid; }
.part ul li::before { content: ""; position: absolute; left: 10px; top: 20px; width: 9px; height: 9px; border-radius: 2px; background: var(--green); }
.part ol { counter-reset: s; }
.part ol li { counter-increment: s; padding-left: 52px; }
.part ol li::before { content: counter(s); position: absolute; left: 6px; top: 10px; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: .88rem; line-height: 1; }

.table-wrap { margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap.wide table { min-width: 580px; }
.table-wrap th { text-align: left; padding: 13px 16px; background: #1b2a47; color: var(--blue-3); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); }
.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:first-child td { border-top: 0; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.table-wrap td:first-child { color: var(--hi); font-weight: 600; }
.table-wrap td.url { word-break: break-all; font-size: .9rem; color: var(--dim); font-weight: 400; }

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

.cta { margin: 28px 0 8px; padding: 26px 20px; border-radius: 12px; display: flex; justify-content: center; border: 1px solid var(--line-2); border-left: 6px solid var(--green); background: linear-gradient(90deg, rgba(43,124,255,.16), rgba(37,194,110,.12)); }
.link-row { margin: 8px 0 0; }

.faq { margin-top: 6px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 56px 20px 4px; color: var(--hi); font-weight: 600; font-size: 1.07rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: var(--bg-4); color: #fff; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary { color: var(--blue-3); }
.faq details[open] summary::after { content: "−"; background: var(--blue); }
.faq .ans { padding: 0 4px 22px; }
.faq .ans p { margin: 0; }

/* ============ FOOTER ============ */
.site-footer { margin-top: 56px; padding: 48px 0 26px; background: #0f1012; color: #c0c5cf; border-top: 1px solid var(--line-2); }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.f-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.f-brand p { color: var(--dim); font-size: .95rem; max-width: 340px; }
.f-col h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col a { display: inline-block; padding: 5px 0; font-size: .97rem; color: #dde1e8; }
.f-col a:hover { color: #fff; text-decoration: underline; }
.f-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.f-bottom p { margin: 0; font-size: .86rem; color: var(--dim); }
.badge-18 { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--green); color: var(--green-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .menu, .bar-cta { display: none; }
  .hamburger { display: flex; }
  .layout { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .rail { position: static; max-height: none; overflow: visible; padding: 0 0 18px; }
  .rail ol { display: flex; gap: 8px; overflow-x: auto; border-left: 0; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .rail li { flex: none; }
  .rail a { margin: 0; padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); white-space: nowrap; }
  .rail a:hover { background: var(--blue); border-color: var(--blue); }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec div:nth-child(3) { border-left: 0; }
  .spec div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .banner { min-height: 0; display: block; }
  .banner img { position: relative; inset: auto; height: 240px; }
  .banner::after { display: none; }
  .banner-copy { width: 100%; padding: 26px 20px 24px; background: var(--bg-2); }
  .plain-hero { padding: 28px 20px 24px; }
  .hero-actions .btn { width: 100%; }
  .part ul.cols { columns: 1; }
  .part h3 { font-size: 1.14rem; }
  .btn { white-space: normal; }
  .cta .btn { width: 100%; }
  .spec b { font-size: 1.4rem; }
  .spec div { padding: 16px 16px; }
  .f-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
