:root {
  color-scheme: dark;
  --bg: #020a09;
  --bg-soft: #061310;
  --panel: rgba(5, 20, 17, 0.93);
  --panel-2: rgba(7, 27, 22, 0.88);
  --line: rgba(55, 164, 112, 0.22);
  --line-strong: rgba(37, 239, 126, 0.5);
  --green: #22ef77;
  --green-soft: #43f58e;
  --text: #f2f8f5;
  --muted: #9aa9a3;
  --danger: #ff493d;
  --warning: #ffb82e;
  --radius: 13px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 73% 8%, #07341f 0, transparent 25rem), var(--bg); min-width: 320px; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { height: 78px; display: grid; grid-template-columns: 285px 1fr minmax(250px, 340px); align-items: center; gap: 28px; padding: 0 clamp(22px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(1, 9, 8, .94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.brand > span { display: block; font-size: 27px; line-height: .95; font-weight: 800; letter-spacing: -1.4px; }
.brand > span span { color: var(--green); }
.brand small { display: block; margin-top: 7px; color: #9caaa5; font-size: 9px; letter-spacing: 1.4px; }
.main-nav { display: flex; align-items: stretch; height: 100%; gap: clamp(18px, 2.7vw, 42px); }
.main-nav a { display: grid; place-items: center; position: relative; color: #a9b6b1; text-transform: uppercase; white-space: nowrap; font-size: 12px; font-weight: 700; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: var(--green); }
.header-search { display: flex; height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.header-search input, .hero-search input, .inline-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: white; background: rgba(1, 14, 11, .8); padding: 0 17px; }
.header-search button { width: 56px; border: 0; border-left: 1px solid var(--line); color: var(--green); background: transparent; font-size: 25px; cursor: pointer; }
.menu-button { display: none; border: 0; background: transparent; color: var(--green); font-size: 25px; }

main { width: 100%; max-width: 1600px; margin: auto; padding: 0 clamp(18px, 3vw, 46px) 56px; }
#resultados-recientes, #estadisticas, #buscar, #resultados-completos, #combinaciones, #todas-loterias { scroll-margin-top: 96px; }
.hero { min-height: 305px; display: grid; grid-template-columns: minmax(390px, .8fr) 1.35fr; margin-inline: calc(clamp(18px, 3vw, 46px) * -1); padding-left: clamp(18px, 4vw, 64px); overflow: hidden; background: linear-gradient(90deg, #020b09 0%, rgba(2, 14, 10, .96) 39%, rgba(0, 34, 19, .45) 68%, rgba(0, 12, 9, .82)); border-bottom: 1px solid rgba(34, 239, 119, .08); }
.hero-copy { align-self: center; position: relative; z-index: 3; padding: 28px 0 24px; }
.hero-copy, .dashboard-grid, .dashboard-grid > *, .data-section, .all-lotteries-section { min-width: 0; }
.eyebrow { margin: 0 0 7px; color: var(--green); text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px; font-weight: 800; }
.hero h1 { margin: 0; font-size: clamp(43px, 4.3vw, 65px); line-height: .92; letter-spacing: -2px; }
.hero h1 span { color: var(--green); }
.hero-lead { max-width: 510px; color: #b3c0bb; font-size: 16px; line-height: 1.45; margin: 16px 0 20px; }
.hero-search, .inline-search { width: 100%; max-width: 570px; height: 46px; display: flex; border: 1px solid var(--green); border-radius: 7px; overflow: hidden; box-shadow: 0 0 24px rgba(34, 239, 119, .08); }
.hero-search button, .inline-search button { width: 130px; border: 0; background: var(--green); color: #001208; font-weight: 850; text-transform: uppercase; cursor: pointer; }
.popular { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.popular button { padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(34,239,119,.45); background: rgba(3,20,14,.7); color: #d5e5de; cursor: pointer; }
.hero-visual { position: relative; min-height: 305px; overflow: hidden; }
.matrix-lines { position: absolute; inset: 0; opacity: .2; background-image: repeating-linear-gradient(90deg, transparent 0 42px, rgba(38,255,123,.16) 43px, transparent 44px), repeating-linear-gradient(180deg, transparent 0 16px, rgba(24,188,83,.08) 17px, transparent 19px); filter: blur(.25px); mask-image: linear-gradient(90deg, transparent, black 20%, black); }
.number-ball { position: absolute; z-index: 3; width: 220px; aspect-ratio: 1; border-radius: 50%; left: 54%; top: 48%; transform: translate(-50%, -50%) rotate(-10deg); display: grid; place-items: center; background: radial-gradient(circle at 32% 24%, #638f79 0%, #173d2b 13%, #061510 48%, #000 77%); border: 2px solid rgba(71,246,140,.42); box-shadow: inset -24px -29px 40px #000, inset 22px 16px 36px rgba(139,255,183,.13), 0 32px 60px #000, 0 0 40px rgba(25,240,108,.2); }
.number-ball::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border-top: 2px solid rgba(188,255,215,.3); transform: rotate(23deg); }
.number-ball span { color: var(--green); font-size: 84px; font-weight: 850; letter-spacing: -7px; text-shadow: 0 0 22px rgba(34,239,119,.45); }
.floor-glow { position: absolute; left: 20%; right: -5%; bottom: 16px; height: 45px; border: 2px solid var(--green); border-radius: 50%; transform: perspective(400px) rotateX(66deg); opacity: .55; box-shadow: 0 0 20px var(--green), inset 0 0 18px var(--green); }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(38,249,125,.18); filter: blur(.3px); }
.orbit-one { width: 145px; height: 145px; left: 24%; top: 67px; }
.orbit-two { width: 105px; height: 105px; right: 4%; top: 92px; }

.lottery-carousel { min-height: 76px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; margin-top: -1px; border: 1px solid rgba(35, 144, 97, .16); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: rgba(4, 19, 15, .92); }
.lottery-strip { min-width: 0; display: grid; grid-template-columns: repeat(var(--carousel-items, 6), minmax(0, 1fr)); align-items: stretch; }
.carousel-button { border: 0; color: var(--green); background: rgba(4, 24, 18, .95); font-size: 30px; cursor: pointer; transition: background .2s; }
.carousel-button:hover { background: rgba(13, 57, 38, .95); }
.lottery-link { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 0; border-right: 1px solid rgba(35, 144, 97, .13); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.lottery-link { transition: background .25s ease; }
.lottery-link:hover, .lottery-link:focus-visible { background: rgba(28, 104, 65, .16); }
.lottery-link:last-child { border-right: 0; }
.lottery-logo { flex: 0 0 43px; width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; color: #00140b; background: var(--logo-color, linear-gradient(145deg, var(--green), #0a8b45)); font-size: 12px; font-weight: 900; box-shadow: 0 0 16px rgba(34,239,119,.15); overflow: hidden; }
.lottery-logo.has-image, .daily-logo.has-image { flex-basis: 58px; width: 58px; height: 43px; border-radius: 9px; background: #f8fbf9 !important; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 5px 15px rgba(0,0,0,.3); }
.lottery-logo img, .daily-logo img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.lottery-link:nth-child(2n) .lottery-logo { background: linear-gradient(145deg, #35a0ff, #2736d0); color: white; }
.lottery-link:nth-child(3n) .lottery-logo { background: linear-gradient(145deg, #ffb332, #f2522e); color: #1b0c00; }
.lottery-link strong { display: block; font-size: 13px; white-space: nowrap; }
.lottery-link > span:last-child { min-width: 0; overflow: hidden; }
.lottery-link strong { overflow: hidden; text-overflow: ellipsis; }
.lottery-link small { display: block; margin-top: 4px; color: #91a49b; font-size: 10px; }
.lottery-link small span { color: var(--green); }

.dashboard-grid { display: grid; grid-template-columns: 1.55fr 1.08fr .87fr; gap: 17px; margin-top: 17px; }
.panel, .winlive-panel, .number-detail { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(6,22,18,.96), rgba(2,13,11,.98)); overflow: hidden; }
.panel { min-height: 270px; padding: 16px 16px 12px; }
.panel-wide { min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 12px; border-bottom: 1px solid rgba(67,151,111,.18); }
.panel-heading > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-heading h2 { margin: 0; text-transform: uppercase; font-size: 15px; letter-spacing: -.2px; }
.panel-heading a { color: var(--green); font-size: 11px; white-space: nowrap; }
.panel-icon { color: var(--green); font-size: 27px; line-height: .7; }
.panel-icon.bars { font-size: 24px; }
.panel-icon.muted { color: #7b8a85; }
.panel-subtitle { color: var(--muted); margin: -7px 0 10px 38px; font-size: 11px; }
.result-row { min-height: 40px; display: grid; grid-template-columns: 92px minmax(115px, 1fr) minmax(150px, auto); gap: 10px; align-items: center; border-bottom: 1px solid rgba(71,145,112,.18); font-size: 12px; }
.result-row:last-child { border-bottom: 0; }
.result-date { color: #95a39e; font-size: 11px; }
.result-date em { display: block; margin-top: 2px; color: #aab4af; font-size: 7px; font-style: normal; text-transform: uppercase; }
.result-lottery { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-logo { flex: 0 0 32px; width: 32px; height: 25px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; color: #06140d; background: var(--green); font-size: 7px; font-weight: 900; }
.recent-logo.has-image { background: #f8fbf9; border: 1px solid rgba(255,255,255,.2); }
.recent-logo img { width: 100%; height: 100%; padding: 2px; object-fit: contain; }
.dot-logo { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; color: #06140d; background: var(--green); font-size: 8px; font-weight: 900; }
.result-numbers { display: flex; justify-content: flex-end; gap: 8px; }
.number-chip { min-width: 38px; padding: 5px 8px; text-align: center; border-radius: 99px; color: var(--green-soft); background: linear-gradient(180deg, rgba(7,77,39,.85), rgba(5,39,25,.75)); border: 1px solid rgba(34,239,119,.15); font-size: 14px; font-weight: 800; }
.previous-result .number-chip { color: #c5ceca; background: #1d2925; border-color: rgba(190,201,195,.14); }
.rank-row, .overdue-row { min-height: 41px; display: grid; grid-template-columns: 25px 39px 1fr 36px; gap: 8px; align-items: center; border-bottom: 1px solid rgba(71,145,112,.16); }
.explorable-row { width: 100%; padding: 0; border: 0; border-bottom: 1px solid rgba(71,145,112,.16); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.explorable-row:hover { background: rgba(20, 91, 57, .13); }
.rank-row:last-child, .overdue-row:last-child { border-bottom: 0; }
.rank-index { color: #7f8f89; font-size: 12px; text-align: center; }
.rank-number { font-size: 18px; font-weight: 800; }
.rank-track { height: 10px; background: #092219; border-radius: 99px; overflow: hidden; }
.rank-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2bcf70, #28ef7b); }
.rank-count { text-align: right; font-weight: 750; font-size: 12px; }
.overdue-row { grid-template-columns: 25px 1fr auto; }
.overdue-days { color: var(--warning); font-size: 12px; font-weight: 800; }
.overdue-row:first-child .overdue-days, .overdue-row:nth-child(2) .overdue-days { color: var(--danger); }
.lottery-stats-panel { min-height: 205px; }
.lottery-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.lottery-card { min-height: 59px; padding: 10px 12px; border: 1px solid rgba(61,143,106,.25); border-radius: 8px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.lottery-card strong { font-size: 12px; display: block; }
.lottery-card span { color: #8fa098; font-size: 10px; }
.lottery-card em { color: var(--green); font-style: normal; }
.number-search-panel { min-height: 205px; }
.inline-search { margin-top: 18px; max-width: none; height: 44px; }
.quick-play-search select { width: 112px; padding: 0 8px; border: 0; border-right: 1px solid var(--line); color: #d8e4df; background: #061914; outline: 0; font-size: 10px; }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 17px; }
.feature-row span { color: #d6e0dc; text-align: center; font-size: 9px; line-height: 1.25; }
.feature-row b { display: block; margin-bottom: 5px; color: var(--green); font-size: 23px; line-height: 1; }
.winlive-panel { min-height: 205px; position: relative; display: grid; align-items: end; padding: 0; background: #03120f; }
.winlive-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,10,18,.97) 0%, rgba(1,10,18,.58) 46%, rgba(1,10,18,.04) 100%); pointer-events: none; }
.winlive-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.winlive-copy { position: relative; z-index: 2; padding: 17px; }
.product-label { display: block; margin-bottom: 7px; color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.winlive-panel h2 { font-size: 17px; line-height: 1.2; margin: 0; }
.winlive-panel p { color: var(--muted); font-size: 10px; line-height: 1.45; }
.winlive-cta { display: inline-block; padding: 9px 12px; border: 1px solid var(--green); border-radius: 6px; color: var(--green); text-transform: uppercase; font-size: 10px; font-weight: 800; }
.all-lotteries-section { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(6,22,18,.96), rgba(2,13,11,.98)); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 24px; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.all-lotteries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.all-lottery-card { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 11px; min-height: 78px; padding: 11px; border: 1px solid rgba(61,143,106,.25); border-radius: 9px; background: rgba(1,14,11,.55); color: inherit; text-align: left; cursor: pointer; }
.all-lottery-card:hover { border-color: var(--green); background: rgba(7,34,24,.8); }
.all-lottery-card { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.all-lottery-card:hover, .all-lottery-card:focus-visible { transform: translateY(-2px); }
.all-lottery-card .lottery-logo { width: 43px; height: 43px; }
.all-lottery-card .lottery-logo.has-image { width: 58px; height: 44px; }
.all-lottery-card strong { display: block; font-size: 12px; }
.all-lottery-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.data-section { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(6,22,18,.96), rgba(2,13,11,.98)); scroll-margin-top: 95px; }
.date-controls { display: flex; align-items: center; gap: 9px; }
.date-controls label { color: var(--muted); font-size: 11px; }
.date-controls input, .date-controls button, .combination-form input, .combination-form select { height: 41px; border: 1px solid rgba(61,143,106,.38); border-radius: 7px; color: var(--text); background: #041510; }
.date-controls input { padding: 0 11px; color-scheme: dark; }
.date-controls button { width: 40px; color: var(--green); font-size: 23px; cursor: pointer; }
.section-note { color: var(--muted); font-size: 11px; }
.daily-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.daily-result-card { min-width: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 84px; padding: 11px; border: 1px solid rgba(61,143,106,.25); border-radius: 9px; background: rgba(1,14,11,.55); }
.daily-result-card.pending { opacity: .6; }
.daily-result-card.historical { border-color: rgba(144, 157, 151, .22); background: rgba(20, 27, 24, .62); }
.daily-result-card.historical .daily-numbers b { color: #c3cdc8; background: #202b27; border-color: rgba(190, 201, 195, .15); }
.historical-date { display: block; margin-top: 4px; color: #a1ada7; font-size: 8px; }
.daily-logo { width: 43px; height: 43px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #04120c; background: var(--logo-color, var(--green)); font-size: 10px; font-weight: 900; }
.daily-result-card strong { display: block; font-size: 11px; }
.daily-result-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.daily-numbers { display: flex; gap: 5px; }
.daily-numbers b { min-width: 31px; padding: 5px 6px; border: 1px solid rgba(34,239,119,.2); border-radius: 99px; color: var(--green); background: rgba(5,54,31,.65); text-align: center; font-size: 12px; }
.daily-numbers span { color: var(--muted); font-size: 9px; }
.combination-form { display: grid; grid-template-columns: 1fr 1.5fr 1.5fr 2fr auto; align-items: end; gap: 12px; margin-top: 20px; }
.combination-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.combination-form label[hidden] { display: none; }
.combination-form input, .combination-form select { min-width: 0; width: 100%; padding: 0 10px; outline: none; }
.combination-numbers { display: grid; grid-template-columns: repeat(3, minmax(66px, 1fr)); gap: 7px; }
.combination-actions { display: flex; gap: 7px; align-self: end; }
.combination-actions button { height: 41px; padding: 0 16px; border-radius: 7px; font-weight: 800; cursor: pointer; }
.combination-actions button[type="submit"] { border: 0; color: #001208; background: var(--green); }
.combination-actions button[type="reset"] { border: 1px solid rgba(61,143,106,.55); color: #c3d0ca; background: #071a14; }
.combination-result { margin-top: 18px; padding: 18px; border: 1px solid rgba(61,143,106,.2); border-radius: 9px; background: rgba(1,14,11,.55); color: var(--muted); font-size: 12px; }
.combination-result h3 { margin: 0 0 6px; color: var(--text); font-size: 20px; }
.combination-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.combination-summary p { margin: 3px 0; }
.combination-summary > strong { color: var(--green); font-size: 20px; }
.combination-history { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; margin-top: 15px; border-top: 1px solid var(--line); }
.combination-history div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.combination-history b { color: var(--green); }
.secondary-action { margin-top: 13px; padding: 9px 13px; border: 1px solid var(--green); border-radius: 7px; color: var(--green); background: transparent; font-weight: 800; cursor: pointer; }
.empty-note { color: var(--muted); font-size: 11px; }
.lottery-tooltip { position: fixed; z-index: 80; padding: 15px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); background: rgba(3, 17, 13, .98); box-shadow: 0 18px 55px rgba(0,0,0,.6); pointer-events: none; }
.lottery-tooltip[hidden] { display: none; }
.tooltip-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tooltip-heading strong { display: block; font-size: 13px; }
.tooltip-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.tooltip-logo { flex: 0 0 58px; width: 58px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; color: #07130e; background: var(--green); font-size: 9px; font-weight: 900; }
.tooltip-logo.has-image { background: #f8fbf9; }
.tooltip-logo img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.tooltip-results { margin-top: 10px; }
.tooltip-results > span { display: block; margin-bottom: 4px; color: var(--green); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; }
.tooltip-results div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(61,143,106,.16); }
.tooltip-results small { color: var(--muted); font-size: 8px; }
.tooltip-results b { color: #dbe7e2; font-size: 10px; }
.lottery-tooltip p, .tooltip-loading { margin: 9px 0 0; color: var(--muted); font-size: 9px; }

.winlive-page { min-height: 100vh; background: radial-gradient(circle at 80% 10%, #0b315f 0, transparent 32rem), #020914; }
.winlive-page .topbar { position: relative; grid-template-columns: 1fr auto; }
.back-link { color: #9db4c9; font-size: 12px; }
.winlive-main { max-width: 1240px; margin: auto; padding: 60px 28px 80px; }
.winlive-hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 54px; }
.winlive-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .95; letter-spacing: -3px; }
.winlive-hero h1 span { color: #36e978; }
.winlive-hero p { max-width: 590px; color: #acc0d1; font-size: 17px; line-height: 1.6; }
.video-placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid rgba(54,233,120,.4); border-radius: 16px; background: #051426; box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.video-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .43; }
.video-placeholder span { position: relative; z-index: 2; width: 76px; height: 76px; display: grid; place-items: center; padding-left: 5px; border: 2px solid #fff; border-radius: 50%; background: rgba(4,18,32,.78); font-size: 31px; }
.video-placeholder small { position: absolute; z-index: 2; bottom: 24px; color: #d9e6ef; }
.winlive-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 55px; }
.winlive-feature { padding: 24px; border: 1px solid rgba(90,141,181,.25); border-radius: 13px; background: rgba(6,22,39,.82); }
.winlive-feature h2 { margin: 0 0 9px; font-size: 17px; }
.winlive-feature p { margin: 0; color: #91a7b8; font-size: 12px; line-height: 1.55; }
.winlive-contact { margin-top: 45px; padding: 32px; border: 1px solid rgba(54,233,120,.32); border-radius: 14px; text-align: center; background: rgba(4,30,30,.68); }
.winlive-contact h2 { margin: 0 0 8px; }
.winlive-contact p { margin: 0; color: #9eb4c2; }
.lottery-detail { position: fixed; z-index: 45; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(980px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #03100d; box-shadow: 0 24px 100px #000; }
.lottery-detail[hidden] { display: none; }
#close-lottery-detail { position: absolute; right: 14px; top: 9px; border: 0; color: #8da098; background: transparent; font-size: 28px; cursor: pointer; }
.lottery-detail-heading { display: flex; align-items: center; gap: 15px; }
.lottery-detail-heading .lottery-logo { width: 58px; height: 58px; flex-basis: 58px; }
.lottery-detail-heading .lottery-logo.has-image { width: 88px; height: 58px; flex-basis: 88px; }
.lottery-detail-heading h2 { margin: 0; font-size: 26px; }
.lottery-detail-heading p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.lottery-detail-grid { display: grid; grid-template-columns: .9fr .9fr 1.35fr; gap: 22px; margin-top: 23px; }
.lottery-detail-grid h3 { margin: 0 0 10px; color: #cad6d1; font-size: 12px; text-transform: uppercase; }
.mini-stat-row, .mini-result-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 4px; border-bottom: 1px solid rgba(61,143,106,.18); font-size: 11px; }
.mini-stat-row strong { color: var(--green); font-size: 15px; }
.mini-result-row span:last-child { color: var(--green); font-weight: 700; }
.skeleton-lines:empty::after { content: "Cargando datos…"; display: block; padding: 30px; color: #70817a; text-align: center; font-size: 12px; }
.number-detail { position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(940px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; min-height: 300px; padding: 30px; display: grid; grid-template-columns: 150px 1fr; gap: 28px; box-shadow: 0 24px 100px #000; }
.number-detail[hidden] { display: none; }
#close-detail { position: absolute; right: 12px; top: 8px; border: 0; color: #8da098; background: transparent; font-size: 28px; cursor: pointer; }
.detail-number { width: 140px; height: 140px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: radial-gradient(circle at 35% 25%, #24563d, #04100c 65%); border: 1px solid var(--green); font-size: 54px; font-weight: 850; box-shadow: 0 0 30px rgba(34,239,119,.2); }
.number-detail h2 { margin: 0 0 12px; font-size: 28px; }
.detail-summary { color: #b7c4bf; font-size: 13px; line-height: 1.6; }
.period-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 18px; }
.period-grid span { padding: 10px 4px; border: 1px solid var(--line); border-radius: 7px; text-align: center; color: var(--muted); font-size: 9px; }
.period-grid b { display: block; color: var(--green); font-size: 18px; }
.number-lottery-section { grid-column: 1 / -1; }
.detail-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail-section-heading h3 { margin: 0; font-size: 15px; text-transform: uppercase; }
.detail-section-heading span { color: var(--muted); font-size: 9px; }
.number-lottery-breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.number-lottery-row { display: grid; grid-template-columns: minmax(110px, 1fr) auto auto auto; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid rgba(71,145,112,.16); font-size: 9px; }
.number-lottery-row strong { display: block; color: var(--text); font-size: 10px; }
.number-lottery-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.number-lottery-row > span { color: var(--muted); text-align: right; }
.number-lottery-row > span b { color: var(--green); font-size: 11px; }
.error-state { padding: 28px 12px; color: #ff8b81; text-align: center; font-size: 12px; }
footer { max-width: 1500px; margin: auto; padding: 22px 30px 38px; color: #71817a; text-align: center; font-size: 10px; border-top: 1px solid rgba(51,142,103,.14); }
footer p { margin: 5px; }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: 230px 1fr; }
  .header-search { display: none; }
  .dashboard-grid { grid-template-columns: 1.3fr 1fr; }
  .dashboard-grid > :nth-child(3), .winlive-panel { grid-column: span 1; }
  .daily-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combination-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combination-actions { align-self: end; }
}

@media (max-width: 760px) {
  .topbar { height: 65px; grid-template-columns: 1fr auto; padding-inline: 18px; }
  .brand > span { font-size: 23px; }
  .brand small { font-size: 7px; }
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 65px; height: auto; padding: 12px 20px 20px; flex-direction: column; align-items: flex-start; gap: 0; background: #03110e; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; display: block; padding: 13px 0; }
  .main-nav a.active::after { bottom: 5px; right: auto; width: 35px; }
  .hero { grid-template-columns: 1fr; padding: 0 20px; min-height: auto; }
  .hero-copy { padding-top: 45px; }
  .hero-visual { min-height: 240px; margin: -20px -20px 0; }
  .number-ball { width: 170px; left: 58%; }
  .number-ball span { font-size: 65px; }
  .lottery-carousel { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 78px 1fr; padding: 8px 0; }
  .result-numbers { grid-column: 2; justify-content: flex-start; }
  .lottery-cards { grid-template-columns: repeat(2, 1fr); }
  .winlive-panel { grid-column: auto; }
  .all-lotteries-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; }
  .lottery-detail-grid { grid-template-columns: 1fr; }
  .number-detail { grid-template-columns: 1fr; max-height: 90vh; overflow: auto; }
  .detail-number { width: 105px; height: 105px; font-size: 42px; }
  .period-grid { grid-template-columns: repeat(3, 1fr); }
  .number-lottery-section { grid-column: auto; }
  .number-lottery-breakdown { grid-template-columns: 1fr; }
  .results-heading { display: grid; }
  .date-controls { margin-top: 14px; }
  .daily-results-grid { grid-template-columns: 1fr; }
  .combination-form { grid-template-columns: 1fr; }
  .combination-numbers { grid-template-columns: repeat(3, 1fr); }
  .combination-history { grid-template-columns: 1fr; }
  .winlive-hero { grid-template-columns: 1fr; }
  .winlive-features { grid-template-columns: 1fr; }
  .winlive-main { padding-top: 40px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 42px; }
  .hero-search button, .inline-search button { width: 105px; font-size: 11px; }
  .quick-play-search select { width: 90px; }
  .lottery-link { padding-inline: 11px; }
  .lottery-logo { flex-basis: 36px; width: 36px; height: 36px; }
  .lottery-logo.has-image { flex-basis: 48px; width: 48px; height: 36px; }
  .lottery-link strong { font-size: 11px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); row-gap: 15px; }
  .winlive-panel { grid-template-columns: 1fr; }
  .all-lotteries-section { padding: 17px; }
  .all-lotteries-grid { grid-template-columns: 1fr; }
  .number-lottery-row { grid-template-columns: 1fr auto auto; }
  .number-lottery-row > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
