:root {
    --bg-main: #020617;
    --bg-secondary: #0b1120;
    --bg-card: #1e293b;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --primary: #00b4d8;
    --primary-hover: #0096c7;
    --success: #22c55e;
    --success-hover: #16a34a;
    --danger: #ef4444;
    --border: #334155;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s;
    font-size: 1rem;
    text-align: center;
}

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

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

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

.btn-success {
    background-color: var(--success);
    color: #fff;
}

.btn-success:hover {
    background-color: var(--success-hover);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

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

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

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.9)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    border: 1px solid var(--border);
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.quiniela-logo {
    height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}

.step-item {
    padding: 20px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--success);
    font-size: 1.5rem;
    border: 1px solid var(--border);
}

.testimonial {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    font-style: italic;
    border-left: 4px solid var(--primary);
}

.testimonial-author {
    display: block;
    margin-top: 15px;
    font-weight: 700;
    font-style: normal;
    color: var(--primary);
}

.contact-preview {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.form-container {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

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

.lottery-selector {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.number-btn {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.number-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.number-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-container {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.cart-item {
    background-color: var(--bg-main);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid var(--border);
}

.cart-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--danger);
    cursor: pointer;
    background: none;
    border: none;
}

.cart-total {
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
} 

.disclaimer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-links {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary);
}

.msg-box {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.msg-success {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.msg-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-secondary);
        flex-direction: column;
        padding: 40px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .buy-layout {
        grid-template-columns: 1fr;
    }
}.age-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.age-gate-modal {
    max-width: 400px;
    width: 90%;
    background: #020617;
    border: 1px solid #00b4d8;
    border-radius: 12px;
    padding: 24px 20px 20px;
    color: #e5e7eb;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.age-gate-modal h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #f9fafb;
}

.age-gate-modal p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.age-gate-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.age-gate-actions button {
    min-width: 140px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#ageConfirm {
    background: #00b4d8;
    color: #020617;
    font-weight: 600;
    box-shadow: 0 0 0 1px #00b4d8;
}

#ageConfirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.4);
}

#ageExit {
    background: transparent;
    color: #e5e7eb;
    box-shadow: 0 0 0 1px #334155;
}

#ageExit:hover {
    background: #111827;
}

.age-gate-note {
    font-size: 0.8rem;
    color: #9ca3af;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #020617;
    border-top: 1px solid #00b4d8;
    color: #e5e7eb;
    padding: 14px 16px;
    z-index: 9998;
    font-size: 0.9rem;
}

.cookie-banner-main {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-banner-text h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #f9fafb;
}

.cookie-banner-text p {
    margin: 0;
    max-width: 520px;
    line-height: 1.4;
    color: #cbd5f5;
    font-size: 0.9rem;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-banner-buttons button {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#cookieSettingsToggle {
    background: transparent;
    color: #e5e7eb;
    box-shadow: 0 0 0 1px #1f2937;
}

#cookieSettingsToggle:hover {
    background: #111827;
}

#cookieAcceptAll {
    background: #00b4d8;
    color: #020617;
    font-weight: 600;
    box-shadow: 0 0 0 1px #00b4d8;
}

#cookieAcceptAll:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 180, 216, 0.35);
}

.cookie-banner-settings {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #1f2937;
    display: none;
    gap: 8px;
    flex-direction: column;
}

.cookie-banner-settings.open {
    display: flex;
}

.cookie-setting {
    margin-bottom: 6px;
}

.cookie-setting label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 2px;
}

.cookie-setting p {
    margin: 0 0 4px 22px;
    font-size: 0.82rem;
    color: #9ca3af;
}

.cookie-setting input[type="checkbox"] {
    accent-color: #00b4d8;
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

#cookieSave {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #00b4d8;
    color: #020617;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 0 0 1px #00b4d8;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#cookieSave:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 180, 216, 0.35);
}

@media (max-width: 640px) {
    .cookie-banner-main {
        align-items: flex-start;
    }
    .cookie-banner-text p {
        max-width: none;
    }
}
