:root {
  --ink: #223d39;
  --muted: #60736e;
  --paper: #ffffff;
  --ground: #f3f5f2;
  --line: #dce4de;
  --green: #196349;
  --green-dark: #104c37;
  --mint: #daf2df;
  --yellow: #f5cc54;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 18px/1.5 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
p, li, label, .muted, .eyebrow { text-wrap: pretty; }
:focus-visible { outline: 3px solid #1971b8; outline-offset: 4px; }
.icon-library { width: 0; height: 0; position: absolute; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 76px; background: white; border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; gap: 9px; align-items: center; min-width: 183px; line-height: .9; }
.brand-crown { width: 32px; height: 30px; background: var(--green); clip-path: polygon(0 15%,25% 44%,50% 0,75% 44%,100% 15%,86% 78%,14% 78%,14% 88%,86% 88%,86% 100%,14% 100%); }
.brand span:last-child { display: grid; }
.brand b { font-size: 16px; letter-spacing: .17em; }
.brand strong { font-size: 32px; letter-spacing: -.065em; font-weight: 800; }
.desktop-nav { display: flex; align-self: stretch; gap: 28px; }
.desktop-nav a { display: flex; align-items: center; border-bottom: 3px solid transparent; font-weight: 700; font-size: 18px; }
.desktop-nav a[aria-current] { border-bottom-color: var(--green); color: var(--green); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.header-tickets, .signup { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; min-height: 42px; }
.header-tickets { color: var(--green); }
.signup { background: var(--green); color: white; border-radius: 7px; padding: 10px 16px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); background: white; border-radius: 6px; }
.menu-button span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }
.mobile-nav { padding: 12px 20px; background: white; border-bottom: 1px solid var(--line); }
.mobile-nav a { padding: 12px; display: block; border-radius: 6px; }
.mobile-nav a[aria-current] { background: var(--mint); font-weight: 700; }
.app-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); max-width: 1680px; margin: auto; }
.sidebar { padding: 28px 18px 24px 18px; border-right: 1px solid var(--line); min-height: calc(100vh - 76px); }
.nav-caption { font-size: 15px; letter-spacing: .08em; font-weight: 800; color: #5f6d66; margin: 0 14px 12px; }
.sidebar nav > a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 14px; border-radius: 8px; font-size: 17px; font-weight: 600; line-height: 1.3; margin: 4px 0; }
.sidebar nav > a:hover { background: #e7ede7; }
.sidebar nav > a[aria-current] { background: var(--green); color: white; }
.sidebar .icon { width: 22px; height: 22px; flex-shrink: 0; }
/* Botón "Jugar ahora": la acción principal del menú, en rojo para distinguirla de la sección seleccionada (verde o dorada) */
.sidebar nav > a.nav-play, .sidebar nav > a.nav-play[aria-current] { margin: 0 0 10px; background: linear-gradient(180deg, #f0505b 0%, #d92633 55%, #b0141f 100%); color: #fff; font-weight: 800; box-shadow: 0 6px 16px #d9263340, inset 0 1px 0 #ffffff4d; transition: transform .2s, box-shadow .2s; }
.sidebar nav > a.nav-play:hover { background: linear-gradient(180deg, #ff6670 0%, #e8323f 55%, #c01a26 100%); transform: translateY(-2px); box-shadow: 0 10px 22px #d9263366, inset 0 1px 0 #ffffff4d; }
.sidebar nav > a.nav-play .nav-play-arrow { width: 18px; height: 18px; margin-left: auto; transition: transform .2s; }
.sidebar nav > a.nav-play:hover .nav-play-arrow { transform: translateX(3px); }
.nav-count { margin-left: auto; font-size: 15px; border: 1px solid currentColor; border-radius: 4px; min-width: 30px; padding: 1px 6px; text-align: center; }
.nav-divider { border-top: 1px solid var(--line); margin: 22px 12px; }
.sidebar-how { position: relative; overflow: hidden; margin: 32px 0 0; padding: 22px 20px; border-radius: 14px; background: radial-gradient(120% 90% at 100% 0%, #fff1b8, #fbe7a1 45%, #f3d77a 100%); border: 1px solid #e3c25a; box-shadow: inset 0 1px 0 #ffffffb0, 0 10px 24px #c98d0833; }
.sidebar-how .free-ticket-art { display: block; width: 78%; max-width: 230px; height: auto; margin: -6px auto 6px; filter: drop-shadow(0 10px 16px #7a4f0355); animation: float 5s ease-in-out infinite; }
.sidebar-how h3 { color: #3a2800; }
.sidebar-how p { color: #5c4512; }
.sidebar-how a { color: #3a2800; border-top: 1px solid #e3c25a; padding-top: 12px; }
.sidebar-how h3 { font-size: 21px; margin: 12px 0 8px; }
.sidebar-how p { font-size: 17px; color: var(--muted); line-height: 1.6; }
.sidebar-how a { display: flex; align-items: center; min-height: 44px; justify-content: space-between; font-size: 17px; font-weight: 700; margin-top: 18px; color: var(--green); }
.sidebar-foot { font-size: 15px; color: var(--muted); margin: 22px 14px; line-height: 1.6; }
main { min-width: 0; padding: 24px 28px 0; }
main:focus { outline: none; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.eyebrow { font-size: 15px; letter-spacing: .12em; font-weight: 800; }
.workspace-heading .eyebrow { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.workspace-heading h1 { font-size: 30px; letter-spacing: -.04em; }
.demo-label { font-size: 15px; letter-spacing: .1em; font-weight: 700; border: 1px solid #bdc9bf; border-radius: 4px; padding: 5px 7px; color: var(--muted); }
.demo-banner { font-size: 16px; color: var(--muted); margin-bottom: 20px; }
.overview-top { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr); gap: 18px; }
.portal-hero { background: #1a1038; border-radius: var(--radius); position: relative; overflow: hidden; min-height: 480px; display: flex; align-items: flex-start; padding: 27px 28px 30px; }
.portal-hero .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: 0; }
.portal-hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: none; }

.hero-copy { position: relative; z-index: 1; width: 46%; max-width: 410px; }
.portal-hero .primary-button { white-space: nowrap; }
.hero-copy .eyebrow { color: #34634c; margin-bottom: 10px; }
.portal-hero h2 { font-size: clamp(26px, 2.3vw, 34px); letter-spacing: -.045em; line-height: 1.08; min-height: 2.16em; }
.portal-hero h2 em { font-style: normal; color: var(--green); }
.hero-prize { font: 800 68px/.95 'Barlow Condensed', sans-serif; letter-spacing: -.02em; margin: 14px 0 8px; }
.hero-prize span { font: 700 14px/1.4 'DM Sans', sans-serif; letter-spacing: .1em; display: inline-block; max-width: 100px; margin-left: 12px; }
.hero-copy > p:not(.eyebrow) { font-size: 16px; margin: 10px 0 18px; max-width: 280px; min-height: 3em; }
.portal-host { display: none; }
.portal-host img { display: block; width: 100%; height: auto; }
.primary-button, .submit-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; padding: 12px 18px; border: 0; border-radius: 7px; background: var(--green); color: white; font-size: 17px; font-weight: 700; }
.primary-button:hover, .submit-button:not(:disabled):hover, .signup:hover { background: var(--green-dark); }
.primary-button .icon { width: 17px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid #afbeb3; background: white; border-radius: 6px; color: var(--ink); min-height: 42px; padding: 10px 14px; font-size: 17px; font-weight: 700; }
.secondary-button:hover { background: #edf3ed; border-color: var(--green); }
.latest-preview { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.preview-heading { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.preview-heading h2 { font-size: 18px; }
.preview-heading > span { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--muted); }
#latest-preview-content { flex: 1; }
.result-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; }
.result-name h3 { font-size: 22px; }
.result-name time { font-size: 15px; color: var(--muted); }
#latest-preview-content > .mini-balls { flex-wrap: nowrap; justify-content: space-between; gap: 5px; margin: 22px 0; }
#latest-preview-content > .mini-balls span { width: clamp(38px, 3.4vw, 50px); height: auto; aspect-ratio: 1; font-size: 18px; }
.previous-results { display: grid; gap: 8px; margin: 4px 0 18px; }
.previous-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.previous-head { display: grid; gap: 2px; font-size: 13px; }
.previous-head b { font-weight: 800; }
.previous-head time { color: var(--muted); font-size: 12px; }
.previous-result .mini-balls { margin: 0; gap: 4px; flex-wrap: nowrap; }
.previous-result .mini-balls span { width: 26px; height: 26px; font-size: 11px; }
.previous-result .mini-balls { flex-shrink: 0; }
@media (max-width: 640px) { .previous-result { padding: 8px 10px; } .previous-head { min-width: 60px; } .previous-head time { white-space: nowrap; } .previous-result .mini-balls span { width: 24px; height: 24px; font-size: 10px; } .previous-result .mini-balls { gap: 3px; } }
.latest-preview .secondary-button, .draw-card .secondary-button { --red-button: linear-gradient(180deg, #ff5c6e 0%, #e5323f 55%, #b3121e 100%); --red-button-hover: linear-gradient(180deg, #ff7a89 0%, #f04553 55%, #c71a27 100%); }
.latest-preview .secondary-button { width: 100%; border: 0; border-radius: 12px; color: var(--gold-ink); background: var(--gold-button); font-weight: 800; box-shadow: 0 3px 0 #b07a05, 0 8px 20px #f5c51855; }
.latest-preview .secondary-button:hover { background: var(--gold-button-hover); border: 0; }
.portal-section { margin-top: 24px; }
.section-heading { margin-bottom: 16px; }
.section-heading.horizontal { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2, .portal-section > h2 { font-size: 24px; letter-spacing: -.035em; }
.section-heading p { margin-top: 5px; font-size: 16px; }
.text-link { color: var(--green); font-size: 16px; font-weight: 700; display: inline-flex; gap: 12px; align-items: center; min-height: 40px; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.portal-draws { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.draw-card { --draw-ink: #ffffff; --draw-accent: var(--gold, #f5c518); position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; padding: 18px 18px 16px; border-radius: 18px; border: 1px solid #ffffff2b; color: var(--draw-ink); background-color: #0d3d22; background-size: cover; background-position: 100% 100%; background-repeat: no-repeat; box-shadow: inset 0 1px 0 #ffffff1f, 0 14px 30px #00000055; }
.draw-card[data-kind="daily"]   { background-image: image-set(url(assets/card-daily.webp) 1x, url(assets/card-daily@2x.webp) 2x); background-color: #0d3d22; border-color: #2fbf5a99; }
.draw-card[data-kind="weekly"]  { background-image: image-set(url(assets/card-weekly.webp) 1x, url(assets/card-weekly@2x.webp) 2x); background-color: #0c1b55; border-color: #4d7cff99; --draw-accent: #ffffff; }
.draw-card[data-kind="monthly"] { background-image: image-set(url(assets/card-monthly.webp) 1x, url(assets/card-monthly@2x.webp) 2x); background-color: #5a0810; border-color: #ff5c6e99; }
.draw-card[data-kind="yearly"]  { background-image: image-set(url(assets/card-yearly.webp) 1x, url(assets/card-yearly@2x.webp) 2x); background-color: #6b4a05; border-color: #ffcf33aa; --draw-accent: #ffffff; background-position: 100% 50%; }
.draw-card::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, #000000a6 0%, #00000073 40%, #0000001f 66%, transparent 100%), linear-gradient(180deg, #00000066 0%, transparent 32%), linear-gradient(0deg, #00000099 0%, transparent 40%); }
.draw-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; z-index: 1; }
.draw-card h3 { color: var(--draw-ink); text-transform: uppercase; font-size: 15px; letter-spacing: .08em; font-weight: 800; text-shadow: 0 1px 2px #00000080; }
.draw-card .free-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border: 0; border-radius: 99px; background: var(--gold-button); color: var(--gold-ink); box-shadow: 0 2px 0 #b07a05; }
.draw-card .prize-caption { margin: 26px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--draw-ink); opacity: .85; position: relative; z-index: 1; width: 70%; }
.draw-card strong { display: block; position: relative; z-index: 1; width: 70%; text-shadow: 0 2px 0 #00000066, 0 0 22px #00000055; font: 800 clamp(38px, 3.6vw, 54px)/1 'Barlow Condensed', sans-serif; letter-spacing: -.02em; color: var(--draw-accent); }
.draw-card time { display: none; }
.draw-card .countdown { margin-top: auto; padding-top: 18px; }
.draw-card time.x { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 18px; color: var(--draw-ink); position: relative; z-index: 1; width: 70%; line-height: 1.3; }
.draw-card time::before { content: ''; width: 15px; height: 15px; flex-shrink: 0; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat; }
.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; font-weight: 700; margin: 8px 0 14px; color: var(--draw-ink); position: relative; z-index: 1; width: 72%; }
.cd-label { opacity: .95; font-size: 15px; }
.cd-label.closed { opacity: .6; }
.cd-time { display: inline-flex; align-items: center; gap: 3px; width: 100%; font: 800 26px/1 'Barlow Condensed', sans-serif; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cd-time b { min-width: 46px; padding: 7px 4px; border-radius: 8px; background: #00000073; color: #fff; text-align: center; box-shadow: inset 0 1px 0 #ffffff1f, 0 2px 6px #00000055; }
.cd-label.hot { color: #ff6b76; }
.draw-card .secondary-button { width: 100%; border: 0; border-radius: 12px; color: var(--gold-ink); background: var(--gold-button); justify-content: space-between; min-height: 46px; font-size: 16px; font-weight: 800; position: relative; z-index: 1; box-shadow: 0 3px 0 #b07a05, 0 8px 20px #f5c51855; overflow: hidden; }
.draw-card .secondary-button::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 35%; background: linear-gradient(90deg, transparent, #ffffff99, transparent); animation: shine 3.2s ease-in-out infinite; }
.draw-card .secondary-button:hover { background: var(--gold-button-hover); }
.draw-card .card-prize { display: none; }
.draw-card .card-prize img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 14px 18px #00000055); }
footer { margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { text-decoration: underline; }

/* Ticket builder */
.play-section { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; grid-template-areas: 'intro ticket' 'picker ticket'; gap: 24px; }
.play-intro { grid-area: intro; }
.play-intro .eyebrow { color: var(--green); font-size: 15px; margin-bottom: 12px; }
.play-intro h2 { font-size: 32px; letter-spacing: -.04em; }
.play-intro > p:not(.eyebrow) { color: var(--muted); margin-top: 10px; font-size: 17px; }
.selection-count { margin-top: 18px; font-size: 17px; color: var(--muted); }
.selection-count span { color: var(--green); font-size: 26px; font-weight: 800; }
.number-picker { grid-area: picker; }
label { font-size: 17px; font-weight: 600; }
select, input[type='text'], #profile-name { width: 100%; min-height: 44px; display: block; border: 1px solid #bdc9c0; background: white; border-radius: 6px; color: var(--ink); padding: 10px 12px; margin: 6px 0 20px; }
.picker-topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; margin-bottom: 14px; }
.picker-actions { display: flex; gap: 8px; }
.text-button { min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: var(--green); font-size: 17px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.text-button:disabled { opacity: .4; }
.number-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.draw-chips, .grid-action { display: none; } /* solo en móvil (mobile.css): botones de sorteo y acciones dentro de la cuadrícula */
.lotto-number { width: 100%; aspect-ratio: 1; min-width: 0; border: 1px solid #c8d4cc; border-radius: 50%; color: var(--ink); background: #f6f8f4; font-size: 18px; font-weight: 700; transition: background .15s, transform .15s; }
.lotto-number:hover { border-color: var(--green); background: #e1f1df; }
.lotto-number.selected { background: var(--green); border-color: var(--green); color: white; transform: scale(1.04); }
.lotto-number:disabled:not(.selected) { color: #87938b; background: #f4f5f2; cursor: not-allowed; }
.ticket-panel { grid-area: ticket; padding: 20px; background: #f1f5ef; border-radius: 10px; }
.ticket-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.ticket-heading p { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.ticket-heading h3 { font-size: 24px; }
.ticket-heading > span { color: var(--green); font-size: 15px; border: 1px solid #b1c8b5; padding: 3px 6px; border-radius: 3px; }
.unlock-choice { border: 0; padding: 0; margin: 24px 0 12px; }
.unlock-choice legend { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.unlock-choice label { display: flex; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; cursor: pointer; }
.unlock-choice label span { display: grid; gap: 3px; }
.unlock-choice b { font-size: 17px; }.unlock-choice small { font-size: 15px; color: var(--muted); font-weight: 400; }
input[type='radio'] { accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.submit-button { width: 100%; }
.submit-button:disabled { background: #d9e1d9; color: #67756b; }
.form-message { font-size: 17px; color: var(--green); margin: 14px 0; }
.ticket-panel > small { display: block; font-size: 15px; }

/* Supporting views */
#entries, #results, #rewards, #account, #faq { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 28px; margin-top: 0; }
#results > .portal-section { margin: 0; }
.entry-list { margin-top: 20px; }
.entry-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.entry-row h3 { font-size: 20px; margin-bottom: 5px; }.entry-row small { font-size: 15px; color: var(--muted); }
.status-tag { display: inline-block; padding: 4px 8px; font-size: 15px; font-weight: 700; border-radius: 4px; color: #795617; background: #fbefcf; margin-bottom: 10px; }
.status-tag.confirmed { background: #e0f0df; color: #246139; }
.mini-balls { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.mini-balls span { --ball: #f4f6f2; --ball-deep: #b9c4bc; position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; aspect-ratio: 1; border: 0; border-radius: 50%; color: #223d39; font-weight: 800; font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 32% 28%, #ffffff 0, #ffffffcc 10%, transparent 34%), radial-gradient(circle at 50% 50%, var(--ball) 0 48%, var(--ball-deep) 100%);
  box-shadow: inset -4px -6px 10px #00000033, inset 2px 3px 6px #ffffff99, 0 4px 8px #00000040; }
.mini-balls span::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: #ffffffd9; box-shadow: inset 0 1px 3px #00000026; z-index: -1; }
.mini-balls span { z-index: 0; }
.mini-balls span:nth-child(6n+1) { --ball: #ffd64a; --ball-deep: #b8860b; }
.mini-balls span:nth-child(6n+2) { --ball: #ff5c6e; --ball-deep: #8e0f1e; }
.mini-balls span:nth-child(6n+3) { --ball: #4da3ff; --ball-deep: #163a7a; }
.mini-balls span:nth-child(6n+4) { --ball: #35d078; --ball-deep: #0d5a33; }
.mini-balls span:nth-child(6n+5) { --ball: #b38cff; --ball-deep: #4b2a8f; }
.mini-balls span:nth-child(6n+6) { --ball: #ff9a3c; --ball-deep: #8a4206; }
.empty-state { padding: 40px 0; text-align: center; color: var(--muted); }
.empty-state h3 { font-size: 23px; color: var(--ink); margin-bottom: 10px; }.empty-state a { display: inline-block; margin-top: 24px; color: var(--green); font-weight: 700; text-decoration: underline; }
.section-heading select { margin-bottom: 0; }
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 28px; }
.results-layout form { border-left: 1px solid var(--line); padding-left: 32px; }
.results-layout h3 { margin: 16px 0; font-size: 23px; }
.results-layout p { font-size: 17px; margin: 14px 0; }
.results-layout td, .results-layout th { text-align: left; padding: 12px 12px 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.results-layout table { border-collapse: collapse; width: 100%; }.results-layout caption { text-align: left; margin-top: 20px; font-weight: 700; font-size: 17px; }
.rewards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.reward-card { display: flex; flex-direction: column; padding: 16px 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 10px 24px #0d2f2510; }
.reward-card .secondary-button, .reward-card .status-tag { margin-top: auto; align-self: flex-start; }
.reward-visual { position: relative; display: grid; place-items: center; min-height: 240px; margin: 0 0 16px; border-radius: 14px; overflow: hidden; }
.reward-card[data-kind="survey"] .reward-visual { background: radial-gradient(80% 80% at 70% 20%, #2fa06c, #0f4a35); }
.reward-card[data-kind="offer"] .reward-visual { background: radial-gradient(80% 80% at 30% 20%, #3b4fd6, #141c55); }
.reward-card[data-kind="games"] .reward-visual { background: radial-gradient(80% 80% at 50% 10%, #8d2cc7, #2a0b45); display: grid; grid-template-rows: 1fr auto; padding: 12px 12px 10px; }
.mock-survey { width: 78%; padding: 12px; border-radius: 12px; background: #fff; color: #223d39; box-shadow: 0 12px 28px #00000055; transform: rotate(-3deg); }
.mock-q { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.mock-opt { display: block; margin-top: 5px; padding: 6px 9px; border: 1px solid #c8d4cc; border-radius: 8px; font-size: 12px; font-weight: 600; color: #60736e; }
.mock-opt.on { border-color: var(--green); background: #daf2df; color: var(--green); }
.mock-reward { position: absolute; bottom: 12px; right: 14px; padding: 6px 10px; border-radius: 99px; background: var(--gold-button, #f5c518); color: var(--gold-ink, #3a2800); font-size: 14px; font-weight: 800; box-shadow: 0 3px 0 #b07a05; animation: reward-pop 2.6s ease-in-out infinite; }
.mock-ad { position: relative; width: 78%; aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg, #1a1f3a, #0b0e22); box-shadow: 0 12px 28px #00000066, inset 0 0 0 1px #ffffff1f; display: grid; place-items: center; }
.mock-play { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #141c55; display: grid; place-items: center; font-size: 18px; padding-left: 4px; box-shadow: 0 6px 16px #00000055; }
.mock-bar { position: absolute; left: 12px; right: 52px; bottom: 12px; height: 5px; border-radius: 99px; background: #ffffff33; overflow: hidden; }
.mock-bar i { display: block; height: 100%; width: 40%; background: var(--gold, #f5c518); animation: ad-progress 5s linear infinite; }
.mock-timer { position: absolute; right: 12px; bottom: 7px; color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wheel-wrap { position: relative; display: grid; place-items: center; }
.wheel { position: relative; width: 168px; height: 168px; border-radius: 50%; padding: 7px;
  background: conic-gradient(from 0deg, #f7d774, #a8730a 12%, #ffe9a3 25%, #b8830f 38%, #fff1c2 50%, #a8730a 62%, #ffe9a3 75%, #b8830f 88%, #f7d774);
  box-shadow: 0 0 0 2px #5a3a05, 0 16px 34px #00000080, inset 0 0 0 1px #fff6c2aa; transition: transform 4.2s cubic-bezier(.12, .8, .1, 1); }
.wheel::before { content: ''; position: absolute; inset: 1px; border-radius: 50%; background: repeating-conic-gradient(from 11.25deg, #fff6c2 0 2deg, transparent 2deg 22.5deg); opacity: .9; -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 7px), #000 calc(50% - 6px)); mask: radial-gradient(circle, transparent 0 calc(50% - 7px), #000 calc(50% - 6px)); }
.wheel-face { position: relative; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 2px #3a2800, inset 0 0 24px #00000066;
  background: radial-gradient(circle at 50% 50%, #ffffff22 0, transparent 60%), conic-gradient(#b3121e 0 45deg, #15213f 45deg 90deg, #0e5a37 90deg 135deg, #c99a0f 135deg 180deg, #4b2a8f 180deg 225deg, #b3121e 225deg 270deg, #15213f 270deg 315deg, #0e5a37 315deg 360deg); }
.wheel-face::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #00000055 0 .8deg, transparent .8deg 45deg); }
.wheel-face span { position: absolute; left: 50%; top: 50%; width: 36px; height: 20px; margin: -10px 0 0 -18px; display: grid; place-items: center; transform: rotate(calc(var(--i) * 45deg + 22.5deg)) translateY(-54px); }
.wheel-face span b { font: 800 14px/1 'Barlow Condensed', sans-serif; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 2px #000000aa; }
.wheel-face span:nth-child(4) b { color: #3a2800; text-shadow: 0 1px 0 #ffffff80; }
.wheel::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c2, #f5c518 55%, #a8730a); box-shadow: 0 0 0 3px #3a2800, 0 3px 6px #00000080, inset 0 -2px 4px #00000040; }
.wheel-pin { position: absolute; top: -8px; left: 50%; z-index: 2; width: 0; height: 0; margin-left: -11px; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 22px solid #f5c518; filter: drop-shadow(0 0 0 #3a2800) drop-shadow(0 3px 3px #00000080); }
.wheel-spin { margin-top: 10px; min-height: 38px; padding: 8px 22px; border: 0; border-radius: 99px; background: var(--gold-button, #f5c518); color: var(--gold-ink, #3a2800); font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 #b07a05, 0 8px 18px #f5c51855; }
.wheel-spin:disabled { opacity: .7; cursor: wait; }
.wheel-result { min-height: 1.4em; margin: 10px 0 0; text-align: center; font-size: 13px; font-weight: 700; color: #fff; }
.status-tag.soon { background: #ede7fb; color: #4b2a8f; }
@keyframes reward-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.15) rotate(-6deg); } }
@keyframes ad-progress { from { width: 0; } to { width: 100%; } }
.step-number { color: var(--green); font-size: 16px; font-weight: 700; }
#rewards > .eyebrow, #account .eyebrow { color: var(--muted); margin-bottom: 10px; }
.rewards-grid h3 { margin: 10px 0 8px; font-size: 21px; }.rewards-grid p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.account-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.account-section h2 { font-size: 28px; }.account-section p:not(.eyebrow) { font-size: 18px; margin-top: 14px; }
.faq h2 { margin-bottom: 24px; font-size: 28px; }.faq details { border-top: 1px solid var(--line); }.faq summary { padding: 18px 0; font-weight: 700; cursor: pointer; }.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 700px; }
dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid #b9ccbf; border-radius: 12px; padding: 28px; color: var(--ink); background: white; }
dialog::backdrop { background: #182d26b8; }
.dialog-close { display: block; margin: -10px -10px 0 auto; width: 44px; height: 44px; border: 0; background: transparent; font-size: 30px; color: var(--ink); }
dialog .eyebrow { color: var(--green); margin-bottom: 10px; }dialog h2 { font-size: 28px; margin-bottom: 16px; }
#survey-progress { color: var(--muted); font-size: 17px; }
#survey-options { border: 0; padding: 0; margin: 24px 0; }
#survey-options legend { font-weight: 700; margin-bottom: 16px; }
#survey-options label { display: flex; align-items: center; gap: 12px; padding: 14px 8px; border-top: 1px solid var(--line); cursor: pointer; }
.dialog-actions { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
dialog > p.muted { font-size: 16px; }
.storage-message { position: fixed; bottom: 12px; left: 12px; right: 12px; padding: 16px; background: #fff0ca; color: #6d4811; border: 1px solid #e7c77a; z-index: 50; }
@media (min-width: 1450px) { .portal-host { max-width: 285px; right: 20px; } }
@media (max-width: 1150px) {
  .desktop-nav { gap: 18px; }.header-actions { gap: 12px; }
  main { padding: 22px 20px 0; }.app-layout { grid-template-columns: 250px minmax(0, 1fr); }.sidebar { padding-left: 12px; padding-right: 12px; }
  .overview-top { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); }.portal-hero { padding-left: 20px; }.portal-hero h2 { font-size: 32px; }
  .hero-copy { width: 50%; max-width: none; }.portal-hero h2 { font-size: 28px; }.hero-prize { font-size: 56px; }.hero-copy > p:not(.eyebrow) { max-width: 220px; font-size: 15px; }.portal-hero .primary-button { white-space: normal; }
  .portal-draws { grid-template-columns: repeat(2, minmax(0, 1fr)); }.draw-card strong { font-size: 54px; }.draw-emblem { width: 95px; height: 95px; right: 25px; }
  .play-section { grid-template-columns: minmax(0, 1fr) 270px; padding: 20px; gap: 18px; }.number-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }.ticket-panel { padding: 16px; }
}
@media (max-width: 900px) {
  .desktop-nav { display: none; }.menu-button { display: block; }.site-header { padding: 0 20px; min-height: 68px; }.brand { min-width: auto; }
  .app-layout { display: block; }.sidebar { display: none; }main { padding: 20px 20px 0; }
  .overview-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }.portal-hero h2 { font-size: 32px; }.hero-copy { width: 48%; }.hero-copy > p:not(.eyebrow) { max-width: 260px; }
}
@media (max-width: 640px) {
  .site-header { padding: 0 14px; gap: 10px; min-height: 64px; }.brand-crown { width: 25px; height: 24px; }.brand strong { font-size: 27px; }.brand b { font-size: 15px; }.brand { gap: 6px; }
  .header-actions { gap: 8px; }.header-tickets { font-size: 15px; gap: 4px; }.header-tickets .icon { width: 16px; }.signup { display: none; }
  main { padding: 18px 14px 0; }.workspace-heading h1 { font-size: 26px; }.workspace-heading .eyebrow { font-size: 14px; }.demo-banner { font-size: 15px; }
  .latest-preview { padding: 16px; }.preview-heading { padding-bottom: 12px; }.result-name { margin-top: 14px; }#latest-preview-content > .mini-balls { justify-content: start; gap: 10px; margin: 14px 0; }#latest-preview-content > .mini-balls span { width: 38px; }.result-meta { padding-bottom: 14px; }
  .section-heading.horizontal { align-items: start; }.section-heading h2 { font-size: 22px; }.section-heading p { font-size: 15px; }.section-heading > .text-link { flex-shrink: 0; font-size: 15px; }
  .portal-draws { gap: 10px; }.draw-card { padding: 14px 12px 12px; }.draw-card h3 { font-size: 15px; }.draw-card strong { font-size: 42px; }.draw-card .free-tag { font-size: 14px; }.draw-card .prize-caption { margin-top: 20px; font-size: 14px; }.draw-card time, .countdown { font-size: 15px; }.draw-emblem { width: 65px; height: 65px; right: 5px; }.draw-card .secondary-button { font-size: 15px; padding: 10px; min-height: 44px; }
  .play-section { display: block; padding: 18px; }.number-picker { margin-top: 24px; }.number-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }.lotto-number { min-height: 48px; }.ticket-panel { margin-top: 24px; padding: 20px; }.ticket-numbers span { width: 38px; height: 38px; }.play-intro .eyebrow { font-size: 14px; letter-spacing: .04em; }.play-intro h2 { font-size: 28px; }
  #entries, #results, #rewards, #account, #faq { padding: 20px 16px; }.results-layout, .rewards-grid, .account-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }.results-layout form { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }.results-layout { margin-top: 20px; }
  #results .section-heading { flex-wrap: wrap; }#entries .section-heading { flex-wrap: wrap; }.entry-row { gap: 8px; }.entry-row h3 { font-size: 18px; }.mini-balls { gap: 6px; }.mini-balls span { width: 42px; height: 42px; }
  footer { font-size: 15px; gap: 12px; }.footer-links { gap: 12px; }dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Responsive refinements ===== */
@media (max-width: 900px) {
  .overview-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .portal-hero { min-height: 400px; }
  .hero-copy { width: 60%; }
  .portal-host { width: 38%; right: 6px; bottom: 38px; }
  .hero-copy > p:not(.eyebrow) { max-width: 320px; }
  #latest-preview-content > .mini-balls { justify-content: start; gap: 12px; }
  #latest-preview-content > .mini-balls span { width: 50px; }
  .results-layout, .rewards-grid, .account-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .results-layout form { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .portal-hero { flex-direction: column; padding: 22px 18px 0; min-height: 0; }
  .hero-copy { width: 100%; order: 1; }
  .portal-hero h2 { font-size: clamp(30px, 8.5vw, 36px); }
  .hero-copy > p:not(.eyebrow) { max-width: none; }
  .portal-hero { min-height: 0; padding-bottom: 0; }.portal-hero .hero-art { display: none; }.portal-hero { background: radial-gradient(120% 150% at 88% 15%, #2f9a6c 0%, #196349 42%, #0b3327 100%); }.hero-mobile-host { display: block; position: relative; order: 3; width: 52%; max-width: 240px; right: -6px; bottom: auto; margin: -12px 0 -6px auto; }.hero-mobile-host img { display: block; width: 100%; height: auto; }.hero-copy { width: 100%; max-width: none; }.portal-hero::after { display: none; }.lotti-widget { display: none; }
  .workspace-heading { flex-wrap: wrap; }
  .demo-label { font-size: 13px; padding: 4px 6px; }
}
@media (max-width: 480px) {
  .portal-draws { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .draw-card { padding: 18px 16px 14px; }
  .draw-card strong { font-size: 52px; }
  .draw-card .prize-caption { margin-top: 14px; }
  .draw-card time { margin-top: 12px; }
  .section-heading.horizontal { flex-wrap: wrap; }
  .entry-row > div:last-child { width: 100%; }
  .results-layout .secondary-button, #profile-form .secondary-button { width: 100%; }
}

/* ===== Selector de idioma (banderas) ===== */
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.lang-switch button { width: 38px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; display: grid; place-items: center; opacity: .5; transition: opacity .2s, background .2s; }
.lang-switch button:hover { opacity: .85; }
.lang-switch button[aria-pressed="true"] { opacity: 1; background: var(--mint); }
.lang-switch svg { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
@media (max-width: 480px) {
  .lang-switch button { width: 30px; height: 30px; }
  .lang-switch svg { width: 20px; height: 14px; }
  .header-tickets .tickets-word { display: none; }
  .menu-button { width: 40px; height: 40px; padding: 9px; }
}

/* ===== Límite diario y anuncio de patrocinador (demo) ===== */
.daily-quota { margin-top: 20px; font-size: 16px; font-weight: 700; color: var(--green); }
.daily-quota.full { color: #a5481b; }
.quota-message { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff4dc; font-size: 15px; }
.unlock-choice label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.ad-screen { aspect-ratio: 16 / 9; border-radius: 10px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: white; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 16px; font-weight: 700; }
.ad-screen img { width: 72px; height: 72px; }
/* Anuncio del patrocinador: el logo (fondo blanco) ocupa la pantalla y entra con un zoom suave en cada apertura */
.ad-screen.sponsor-ad { aspect-ratio: 6 / 5; background: #fff; padding: 0; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.ad-screen.sponsor-ad img { width: 100%; height: 100%; object-fit: cover; object-position: center 51%; animation: sponsor-in 5s ease-out both; }
@keyframes sponsor-in { from { opacity: 0; transform: scale(1.06); } 15% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ad-screen.sponsor-ad img { animation: none; } }
.ad-progress { height: 8px; margin-top: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ad-progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width 1s linear; }
.ad-status { margin: 10px 0 16px; font-weight: 700; }
#ad-claim { width: 100%; margin-bottom: 16px; }
#ad-claim:disabled { opacity: .55; cursor: not-allowed; }

/* ===== Logo (assets/free_lotty_logo.svg, incrustado para usar Montserrat) ===== */
.brand-logo { display: block; height: 48px; width: auto; }
.brand-word { fill: #005238; }
@media (max-width: 640px) { .brand-logo { height: 38px; } }

/* ===== Resultados: próximo sorteo, filtros, revelación, historial y verificador ===== */
.draw-card strong.prize-text { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
.next-draw { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 20px; padding: 16px 20px; border-radius: 14px; background: linear-gradient(135deg, var(--green), #0f4a35); color: white; }
.next-draw .eyebrow { color: var(--yellow); font-size: 13px; margin-bottom: 2px; }
.next-draw b { font-size: 20px; margin-right: 10px; }
.next-count { font-size: 16px; color: #d6eedd; }
.result-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.result-filters button { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--ink); font-size: 15px; font-weight: 700; }
.result-filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.results-layout { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); margin-top: 18px; }
.result-card { position: relative; overflow: hidden; padding: 22px; border-radius: 16px; background: radial-gradient(circle at 25% 0%, #23805d, #0d2f25 72%); color: white; }
.result-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.result-card .eyebrow { color: var(--yellow); font-size: 13px; margin-bottom: 4px; }
.results-layout .result-card h3 { margin: 0; font-size: 20px; color: white; }
.results-layout .result-card h3::first-letter { text-transform: uppercase; }
#result-replay { color: var(--yellow); font-size: 14px; white-space: nowrap; }
.winning-balls { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.winning-balls span { --ball: #ffd64a; --ball-deep: #b8860b; position: relative; z-index: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #223d39; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 32% 28%, #ffffff 0, #ffffffcc 10%, transparent 34%), radial-gradient(circle at 50% 50%, var(--ball) 0 48%, var(--ball-deep) 100%);
  box-shadow: inset -5px -7px 12px #00000040, inset 2px 3px 6px #ffffff99, 0 6px 12px #00000066; }
.winning-balls span::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: #ffffffd9; box-shadow: inset 0 1px 3px #00000026; z-index: -1; }
.winning-balls span:nth-child(2) { --ball: #ff5c6e; --ball-deep: #8e0f1e; }
.winning-balls span:nth-child(3) { --ball: #4da3ff; --ball-deep: #163a7a; }
.winning-balls span:nth-child(4) { --ball: #35d078; --ball-deep: #0d5a33; }
.winning-balls span:nth-child(5) { --ball: #b38cff; --ball-deep: #4b2a8f; }
.winning-balls span:nth-child(6) { --ball: #ff9a3c; --ball-deep: #8a4206; }
.winning-balls.reveal span { animation: ball-drop .6s cubic-bezier(.2, 1.4, .4, 1) backwards; animation-delay: calc(var(--i) * .45s); }
.lotti-says { display: flex; align-items: center; gap: 12px; }
.lotti-says img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.results-layout .lotti-says p { margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: white; color: var(--ink); font-size: 16px; font-weight: 700; }
.lotti-says.reveal, .my-tickets.reveal { animation: fade-up .45s ease backwards; animation-delay: 2.9s; }
.my-tickets { margin-top: 20px; }
.my-tickets h4 { margin: 0 0 8px; font-size: 18px; }
.results-layout .my-tickets p { margin: 8px 0; font-size: 16px; }
.my-tickets a { color: var(--green); font-weight: 700; }
.my-ticket { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.my-ticket small { width: 100%; color: var(--muted); font-size: 14px; }
.my-ticket .mini-balls { margin: 0; gap: 6px; }
.my-ticket .mini-balls span { width: 38px; height: 38px; font-size: 15px; }
.my-ticket .status-tag { margin: 0 0 0 auto; }
.status-tag.result { background: #eef2ee; color: var(--muted); }
.status-tag.won { background: var(--gold-button); color: var(--gold-ink); box-shadow: 0 4px 12px #f5c51855; }
.status-tag.won::before { content: '🏆 '; }
.result-side h3 { margin: 0 0 10px; font-size: 18px; }
.result-history { display: grid; gap: 8px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.result-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); text-align: left; transition: border-color .15s, background .15s; }
.result-item:hover { border-color: var(--green); }
.result-item[aria-pressed="true"] { border-color: var(--green); background: var(--mint); box-shadow: inset 3px 0 0 var(--green); }
.result-item-head { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.result-item time { color: var(--muted); }
.result-item .mini-balls { flex-wrap: nowrap; gap: 4px; margin: 6px 0 0; }
.result-item .mini-balls span { width: 30px; height: 30px; font-size: 12px; }
.result-mine { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; background: #fff1b8; color: #7a4f03; font-size: 13px; font-weight: 700; }
@keyframes ball-drop { from { opacity: 0; transform: translateY(-50px) scale(.4) rotate(-120deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

/* ===== Reglas y ayuda ===== */
.rules > div + div { margin-top: 28px; }
.rules h3 { margin-bottom: 14px; font-size: 22px; }
.rules-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; min-height: 230px; padding: 22px 24px; border-radius: 16px; background: #0d2f25 image-set(url(assets/banner-rules.webp) 1x, url(assets/banner-rules@2x.webp) 2x) 78% 22% / cover no-repeat; color: white; }
.rules-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0a2d1df2 0%, #0a2d1dcc 38%, #0a2d1d33 62%, transparent 80%); }
.rules-hero > div { position: relative; max-width: 52%; }
.rules-hero img { display: none; }
.rewards-banner { position: relative; overflow: hidden; margin: 18px 0 6px; border-radius: 16px; aspect-ratio: 16 / 6; background: #1a0f2e; }
.rewards-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.rules-hero .eyebrow { color: var(--yellow); font-size: 13px; margin-bottom: 4px; }
.faq.rules .rules-hero h2 { margin: 0 0 6px; font-size: 32px; color: white; }
.rules-hero p:last-child { color: #d6eedd; font-size: 17px; }
.steps-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--muted); font-size: 15px; font-weight: 700; text-align: left; transition: border-color .15s, background .15s, color .15s; }
.steps-nav button span { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #eef2ee; color: #223d39; font-weight: 800; }
.steps-nav button:hover { border-color: var(--green); }
.steps-nav button[aria-selected="true"] { border-color: var(--green); background: var(--mint); color: var(--green); }
.steps-nav button[aria-selected="true"] span { background: var(--gold-button); color: var(--gold-ink); }
.step-panel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 170px; margin-top: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #f6f9f5; }
.step-panel.enter .step-visual, .step-panel.enter .step-copy { animation: fade-up .35s ease backwards; }
.step-panel.enter .step-copy { animation-delay: .08s; }
.step-copy .eyebrow { color: var(--green); font-size: 13px; margin-bottom: 4px; }
.step-copy h4 { margin: 0 0 8px; font-size: 24px; }
.step-copy p:last-child { color: var(--muted); font-size: 17px; }
.step-visual { display: grid; place-items: center; min-height: 120px; padding: 12px; border-radius: 14px; background: white; }
.step-visual .mini-balls { justify-content: center; gap: 6px; margin: 0; }
.step-visual .mini-balls { flex-wrap: nowrap; }
.step-visual .mini-balls span { width: 34px; height: 34px; font-size: 14px; }
.step-choices { display: grid; gap: 8px; width: 100%; }
.step-choices span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 15px; }
.step-choices b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: white; font-size: 14px; }
.step-ticket { display: grid; justify-items: center; gap: 6px; padding: 14px 22px; border: 2px dashed #e0b84a; border-radius: 12px; background: #fff8dd; }
.step-ticket .icon { width: 32px; height: 32px; color: var(--green); }
.step-ticket span { letter-spacing: .05em; font-size: 15px; }
.step-ticket em { font-style: normal; font-weight: 700; color: var(--green); font-size: 14px; }
.step-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.step-controls .text-button:disabled { visibility: hidden; }
.step-dots { display: flex; gap: 6px; }
.step-dots span { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.step-dots span.on { width: 22px; background: var(--green); }
#step-next { min-width: 160px; justify-content: center; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rules-card { padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--gold, #f5c518); border-radius: 16px; }
.rules-card h3 { font-size: 20px; margin-bottom: 12px; }
.rules-card p { font-size: 16px; }
.rules-card .muted { margin-top: 8px; font-size: 15px; }
.quota-visual { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.quota-visual[hidden] { display: none; }
.quota-ticket { position: relative; display: grid; place-items: center; width: 54px; height: 44px; border: 2px dashed #c8d4cc; border-radius: 10px; color: #9aa79e; }
.quota-ticket .icon { width: 24px; height: 24px; }
.quota-ticket.used { border-style: solid; border-color: var(--gold-deep); background: var(--gold-button); color: var(--gold-ink); }
.quota-ticket.extra { border-color: var(--green); color: var(--green); }
.quota-ticket.extra b { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--green); color: white; font-size: 12px; line-height: 20px; text-align: center; }
.quota-text { font-weight: 700; }
.win-balls { margin: 4px 0 12px; gap: 6px; }
.win-balls span { width: 38px; height: 38px; font-size: 15px; }
.rules-card table { width: 100%; margin-top: 12px; border-collapse: collapse; }
.rules-card th, .rules-card td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.calendar-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.calendar-card { position: relative; overflow: hidden; min-height: 170px; padding: 16px; border: 1px solid #ffffff2b; border-radius: 16px; color: white; background-color: #1a1420; background-size: cover; background-position: 100% 50%; box-shadow: inset 0 1px 0 #ffffff1f, 0 10px 24px #00000040; }
.calendar-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000000c0 0%, #00000080 50%, #00000030 100%); }
.calendar-card > * { position: relative; }
.calendar-card[data-kind="daily"] { background-image: image-set(url(assets/card-daily.webp) 1x, url(assets/card-daily@2x.webp) 2x); background-color: #0d3d22; }
.calendar-card[data-kind="weekly"] { background-image: image-set(url(assets/card-weekly.webp) 1x, url(assets/card-weekly@2x.webp) 2x); background-color: #0c1b55; }
.calendar-card[data-kind="monthly"] { background-image: image-set(url(assets/card-monthly.webp) 1x, url(assets/card-monthly@2x.webp) 2x); background-color: #5a0810; }
.calendar-card[data-kind="yearly"] { background-image: image-set(url(assets/card-yearly.webp) 1x, url(assets/card-yearly@2x.webp) 2x); background-color: #6b4a05; }
.calendar-card .eyebrow { color: var(--yellow); font-size: 12px; margin-bottom: 6px; }
.calendar-prize { display: block; font: 700 32px/1.05 'Barlow Condensed', sans-serif; color: var(--ink); }
.calendar-card p { margin-top: 6px; font-size: 15px; font-weight: 600; }
.calendar-card small { display: block; margin-top: 6px; color: #ffffffb3; font-size: 13px; }
.calendar-card :is(b, strong, h3, h4, p) { color: white; }
.faq-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #c8d4cc; border-radius: 12px; background: white; }
.faq-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.faq-search .icon { color: var(--muted); }
.faq-search input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; }
.faq-list { display: grid; gap: 8px; margin-top: 12px; }
.faq.rules .faq-list details { border: 1px solid var(--line); border-radius: 12px; background: white; transition: border-color .15s, box-shadow .15s; }
.faq.rules .faq-list details[open] { border-color: var(--green); box-shadow: 0 6px 18px #0d2f2512; }
.faq.rules .faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; list-style: none; }
.faq.rules .faq-list summary::-webkit-details-marker { display: none; }
.faq.rules .faq-list summary::after { content: '+'; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 20px; font-weight: 700; transition: transform .2s; }
.faq.rules .faq-list details[open] summary::after { transform: rotate(45deg); }
.faq.rules .faq-list details p { padding: 0 16px 16px; animation: fade-up .25s ease; }
#faq-empty { margin-top: 12px; }

/* ===== Boleto (vista previa en "Jugar" y "Mis boletos") ===== */
.lotto-ticket { --cut: var(--ground); --kind: var(--green); --kind-dark: #0f4a35; container-type: inline-size; position: relative; overflow: hidden; border-radius: 14px; color: #223d39; background: #fffaf0 radial-gradient(#f1e3b9 1px, transparent 1.3px) 0 0 / 12px 12px; box-shadow: 0 1px 0 #e6d6a8, 0 10px 24px #0d2f2518; text-align: left; }
.lotto-ticket[data-kind="weekly"] { --kind: #2d5fa8; --kind-dark: #1d3f73; }
.lotto-ticket[data-kind="monthly"] { --kind: #b4513f; --kind-dark: #7f3328; }
.lotto-ticket[data-kind="yearly"] { --kind: #9a6b07; --kind-dark: #684704; }
.lt-body { display: grid; grid-template-columns: minmax(0, 1fr) 106px; }
.lt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: linear-gradient(135deg, var(--kind), var(--kind-dark)); color: white; }
.lt-brand { display: inline-flex; align-items: center; gap: 6px; font: 800 13px/1 Montserrat, 'DM Sans', sans-serif; letter-spacing: .12em; white-space: nowrap; }
.lt-brand b { font-size: 16px; letter-spacing: -.02em; }
.lt-crown { width: 20px; height: 20px; }
.lt-draw { padding: 3px 8px; border-radius: 99px; background: #ffffff26; color: #ffe27a; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.lt-numbers { display: flex; justify-content: center; gap: 6px; padding: 16px 12px 12px; }
.lotto-ticket .lt-numbers span { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border: 1px solid #d9c48a; border-bottom-width: 3px; border-radius: 50%; background: white; color: #223d39; font-size: 16px; font-weight: 800; }
.lotto-ticket .lt-numbers span.hit, .lotto-ticket .lt-numbers span.filled { border-color: var(--gold-deep); background: var(--gold-button); color: var(--gold-ink); box-shadow: 0 3px 0 #b07a05, 0 6px 12px #f5c51844; }
.lt-meta { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; margin: 0; padding: 10px 14px 14px; border-top: 1px dashed #e3d3a3; }
.lt-meta dt { color: #8a7a4f; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lt-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: #223d39; }
.lt-meta div:first-child dd { white-space: nowrap; }
/* Talón: línea perforada y muescas recortadas */
.lt-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 8px 10px; border-left: 2px dashed #d9c48a; background: #fbf1d6; }
.lt-stub::before, .lt-stub::after { content: ''; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--cut); }
.lt-stub::before { top: -9px; }
.lt-stub::after { bottom: -9px; }
.lt-stamp { padding: 3px 6px; border: 2px solid currentColor; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .02em; line-height: 1.15; text-align: center; text-transform: uppercase; transform: rotate(-8deg); max-width: 100%; }
.lt-stamp.free, .lt-stamp.confirmed { color: #196349; }
.lt-stamp.pending { color: #b26a00; }
.lt-stamp.expired, .lt-stamp.result { color: #7d8a82; }
.lt-stamp.won { border-color: var(--gold-deep); background: var(--gold-button); color: var(--gold-ink); }
.lt-barcode { --bar-ink: #1f2d28; --bar-dir: 180deg; width: 52px; height: 56px; }
.lt-serial { color: #6b5a2c; font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .04em; white-space: nowrap; }
/* Boleto angosto (panel lateral, celular): el talón pasa abajo */
@container (max-width: 400px) {
  .lt-body { grid-template-columns: minmax(0, 1fr); }
  .lt-stub { flex-direction: row; padding: 10px 14px; border-left: 0; border-top: 2px dashed #d9c48a; }
  .lt-stub::before, .lt-stub::after { top: -10px; bottom: auto; }
  .lt-stub::before { left: -9px; }
  .lt-stub::after { left: auto; right: -9px; }
  .lt-barcode { --bar-dir: 90deg; flex: 1; max-width: 120px; height: 30px; }
  .lotto-ticket .lt-numbers span { width: min(38px, calc((100cqi - 54px) / 6)); height: auto; aspect-ratio: 1; font-size: 15px; }
}
/* Vista previa en "Jugar" */
.ticket-label { margin-bottom: 8px; color: var(--muted); font-size: 15px; }
.ticket-panel .lotto-ticket { --cut: #f1f5ef; }
.lotto-ticket.complete .lt-stamp { color: var(--gold-ink); border-color: var(--gold-deep); background: var(--gold-button); }
/* Lista de "Mis boletos" */
.entry-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.entry-list .lotto-ticket { --cut: white; }
.entry-card { display: grid; gap: 10px; align-content: start; animation: rise-in .45s ease both; transition: transform .25s; }
.entry-card:hover { transform: translateY(-3px); }
.entries-summary { margin-top: 6px; font-size: 15px; color: var(--muted); font-weight: 600; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-actions .secondary-button { flex: 1; }
.entry-list .empty-state { grid-column: 1 / -1; }

/* Hoja de elección de método (solo se abre en móvil) */
.method-dialog { padding: 22px 20px 16px; }
.method-dialog h2 { font-size: 22px; margin-bottom: 14px; }
.method-options { display: grid; gap: 10px; }
.method-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper, #fff); color: var(--ink); text-align: left; }
.method-option:hover { border-color: var(--green); }
.method-option > span:last-child { display: grid; gap: 2px; }
.method-option b { font-size: 16px; }
.method-option small { color: var(--muted); font-size: 13px; }
.method-icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-button, #f5c518); color: var(--gold-ink, #3a2800); font-weight: 800; font-size: 18px; box-shadow: 0 2px 0 #b07a05; }
.method-cancel { margin-top: 6px; width: 100%; }
@media (max-width: 640px) { .method-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; } }
