@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #334155;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --success: #10b981;
    --success-hover: #059669;
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 10px rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
}

.btn-secondary:hover {
    box-shadow: 0 6px 10px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

.top-bar {
    background-color: var(--primary);
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    font-weight: 500;
}

.top-bar i {
    color: var(--accent);
    margin-right: 6px;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #cbd5e1;
    font-weight: 300;
}

.hero .btn {
    padding: 16px 32px;
    font-size: 1rem;
    margin: 0 8px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.game-header {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.game-header img {
    height: 90px;
}

.game-icon {
    font-size: 3.5rem;
    background: -webkit-linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.game-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-body h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.4rem;
}

.game-tag {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.game-body p {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
}

.game-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    background-color: #fcfcfc;
}

.game-footer .btn {
    width: 100%;
}

.info-block {
    background-color: var(--bg-surface);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-block h2 {
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 1.8rem;
}

.buy-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.buy-layout h2 {
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.buy-layout h2 i {
    color: var(--accent);
}

.buy-layout p {
    color: var(--text-muted);
    margin-bottom: 24px;
}


.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.auth-card {
    max-width: 480px;
    margin: 40px auto;
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-surface);
}

.game-selector {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.game-btn {
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
}

.game-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.game-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.ticket-builder {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.cart-panel {
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    height: fit-content;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin-top: 24px;
}

.num-btn {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    background: #f8fafc;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.1s;
}

.num-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.num-btn.selected {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .buy-layout {
        grid-template-columns: 1fr;
    }

    .game-selector {
        gap: 8px;
    }

    .game-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--bg-surface);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideIn 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--primary);
}

.ticket-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.digit-input {
    width: 50px;
    height: 60px;
    font-size: 2rem;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.2s;
}

.digit-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.serie-input {
    background-color: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cart-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.cart-item-info strong {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
}

.cart-item-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.delete-btn {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
}

.delete-btn:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selection-counter {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--accent);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.order-summary {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--primary);
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.policy-content {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.policy-content h2 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    margin-bottom: 15px;
    color: var(--text-main);
    text-align: justify;
}

.policy-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-style: italic;
}

.terms-content {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.terms-content h2 {
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content h3 {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-content p {
    margin-bottom: 15px;
    color: var(--text-main);
    text-align: justify;
}

.terms-content ul,
.terms-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.terms-content li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.terms-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.alert-box {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 15px;
    margin: 20px 0;
    color: #b91c1c;
    font-size: 0.95rem;
}

.rp-content {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.rp-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.rp-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.rp-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.rp-section {
    margin-bottom: 40px;
}

.rp-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rp-section h2 i {
    color: var(--success);
}

.rp-section p {
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.8;
    text-align: justify;
}

.tips-list {
    list-style: none;
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--success);
}

.tips-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.tips-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success);
    top: 2px;
}

.alert-box {
    background-color: #fff1f2;
    border: 1px solid #fda4af;
    border-radius: 8px;
    padding: 20px;
    color: #9f1239;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: start;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.help-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: 0.2s;
}

.help-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.help-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.quiz-box {
    background-color: #f0fdf4;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.quiz-box ul {
    list-style: none;
}

.quiz-box li {
    margin-bottom: 10px;
    padding-left: 20px;
    border-left: 3px solid #86efac;
}

.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.age-modal {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s;
}

.age-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.age-icon span {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.age-modal h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.age-modal p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.age-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.age-footer {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 5000;
    padding: 20px;
    animation: slideUp 0.5s;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}


.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
}

.cookie-option-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 400px;
}


.cookie-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.switch-label:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.switch-label {
    background-color: var(--success);
}

input:focus+.switch-label {
    box-shadow: 0 0 1px var(--success);
}

input:checked+.switch-label:before {
    transform: translateX(24px);
}

input:disabled+.switch-label {
    background-color: #94a3b8;
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}