:root {
    --bg: #07111f;
    --bg-alt: #0d1b2f;
    --panel: rgba(13, 27, 47, 0.92);
    --panel-soft: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.10);
    --text: #f5f7fb;
    --muted: rgba(245, 247, 251, 0.74);
    --accent: #35c2ff;
    --accent-2: #ffbf4d;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #1b2430;
    background: #ffffff;
    padding-bottom: 140px;
}

main {
    width: 100%;
}

.footer {
    flex-shrink: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(135deg, #003b6c 0%, #00528f 52%, #0069b4 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.topbar-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    color: var(--text);
}

.brand small,
.eyebrow,
.section-heading span {
    color: #6a7788;
    font-size: 0.82rem;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topnav a {
    color: rgba(245, 247, 251, 0.76);
    padding: 0.55rem 0.78rem;
    border-radius: 999px;
}

.topnav a:hover {
    color: var(--text);
}

.topnav a.is-active,
.topnav .topnav-button.is-active {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
}

.topbar .brand small,
.topbar .eyebrow,
.topbar .section-heading span {
    color: rgba(245, 247, 251, 0.72);
}

.topbar .brand strong {
    color: var(--text);
}

.footer strong {
    color: var(--text);
}

.topnav-button,
.button,
.link-button,
.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.topnav-button {
    padding: 0.8rem 1rem;
    background: rgba(53, 194, 255, 0.14);
    border: 1px solid rgba(53, 194, 255, 0.28);
    color: var(--text) !important;
}

.hero {
    padding: 64px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 26px;
    align-items: center;
}

.hero-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #0e1723;
}

.hero-copy p,
.footer p {
    color: #5f6d7a;
    line-height: 1.7;
}

.card p,
.card h2,
.card h3,
.card time,
.card .muted,
.draw-card time,
.draw-code,
.stat-number,
.stat-value,
.panel-card p,
.panel-card strong {
    color: #1b2430;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button {
    padding: 0.92rem 1.2rem;
    border: 1px solid transparent;
    font-weight: 700;
}

.button:hover,
.link-button:hover,
.footer-link:hover,
.topnav-button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), #1a80ff);
    color: #03111e;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.hero-panel,
.card,
.draw-card {
    background: rgba(0, 59, 108, 0.08);
    border: 1px solid rgba(0, 59, 108, 0.15);
    border-radius: 24px;
    box-shadow: none;
    color: #1b2430;
}

.hero-panel {
    padding: 0;
    display: grid;
    gap: 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.panel-card {
    padding: 0;
    border-radius: 20px;
    background: rgba(0, 59, 108, 0.08);
    border: 1px solid rgba(0, 59, 108, 0.15);
    color: #1b2430;
    overflow: hidden;
}

.panel-card-header {
    background: rgba(0, 59, 108, 0.5);
    color: #ffffff;
    padding: 10px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 59, 108, 0.2);
}

.panel-card-body {
    padding: 20px;
}

.panel-card-feature .panel-card-body {
    padding: 24px;
}

.panel-card.accent {
    background: rgba(0, 59, 108, 0.08);
    border-color: rgba(0, 59, 108, 0.15);
}

.panel-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 2rem;
}

.countdown-value {
    font-size: 2.8rem;
    letter-spacing: -0.05em;
}

.panel-card p {
    margin: 0;
}

.extra-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 59, 108, 0.2);
}

.extra-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #1b2430;
}

.extra-label-small {
    font-weight: 600;
    font-size: 0.85rem;
    color: #5f6d7a;
    margin-right: 8px;
}

.draw-numbers-wrapper {
    width: 100%;
}

.extra-numbers {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 59, 108, 0.15);
}

.extra-numbers .chip-row {
    margin-top: 0;
    flex: 1;
}

.section {
    padding: 26px 0;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.section-heading.small h2 {
    font-size: 1.45rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    padding: 0;
    overflow: hidden;
}

.card-header {
    background: rgba(0, 59, 108, 0.5);
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 59, 108, 0.2);
}

.card-body {
    padding: 22px;
}

.card h3 {
    margin: 8px 0 10px;
    font-size: 1.2rem;
}

.link-button {
    margin-top: 8px;
    padding: 0.8rem 1rem;
    background: #eef2f6;
    border: 1px solid #d9e0e8;
    color: #1b2430;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #003b6c 0%, #00528f 52%, #0069b4 100%);
    box-shadow: 0 2px 8px rgba(0, 59, 108, 0.3);
    flex-shrink: 0;
}

.chip-oro {
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 52%, #ffd54f 100%);
    color: #1b2430;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.chip-soft {
    background: #e8e8e8;
    color: #1b2430;
    border: 2px solid #ff9500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.chip-row.compact .chip {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
}

.muted {
    color: #5f6d7a;
}

.draw-list {
    display: grid;
    gap: 12px;
}

.draw-card {
    padding: 0;
    overflow: hidden;
}

.draw-card-header {
    background: rgba(0, 59, 108, 0.5);
    color: #ffffff;
    padding: 10px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 59, 108, 0.2);
}

.draw-card-body {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.draw-code {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
}

.stat-list {
    display: grid;
    gap: 10px;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #dde3ea;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-number {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #003b6c 0%, #00528f 52%, #0069b4 100%);
    box-shadow: 0 2px 8px rgba(0, 59, 108, 0.3);
    flex-shrink: 0;
}

.stat-value {
    color: #1b2430;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 34px 0 44px;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, #003b6c 0%, #00528f 52%, #0069b4 100%);
    color: var(--text);
    width: 100%;
    z-index: 10;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer strong {
    /*
    display: block;
    margin-bottom: 6px;
    */
}

.footer p {
    margin: 0;
    color: var(--muted);
}

.footer-link {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: inherit;
}

.footer-link.no-highlight {
    border: none;
    background: none;
    padding: 0;
}

.footer-link.no-highlight:hover {
    transform: none;
    text-decoration: underline;
}

.app-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.app-preview {
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #1b2430;
}

.app-preview img {
    width: min(260px, 80%);
    border-radius: 28px;
}

.app-badge {
    max-width: 180px;
}

@media (max-width: 940px) {
    .hero-grid,
    .grid-3,
    .split-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 20px, 1160px);
    }

    .hero {
        padding-top: 40px;
    }

    .topnav {
        gap: 12px;
    }

    .card,
    .hero-panel {
        border-radius: 20px;
    }

    .draw-card,
    .stat-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #003b6c 0%, #00528f 52%, #0069b4 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.cookie-banner-content {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-banner-content a {
    color: #ffd54f;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
}

.cookie-banner-buttons .button {
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-banner-buttons .button {
        width: 100%;
    }
}
