/* ===== Base / Tokens ===== */
:root {
    --bg: #0f172a;
    --bg-2: rgba(15, 23, 42, 0.66);
    --card: rgba(255, 255, 255, 0.06);
    --card-strong: rgba(255, 255, 255, 0.09);
    --stroke: rgba(148, 163, 184, 0.22);
    --text: rgba(226, 232, 240, 0.92);
    --muted: rgba(226, 232, 240, 0.72);
    --green: #22c55e;
    --green-2: #16a34a;
    --blue: #0ea5e9;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius: 18px;
    --radius-lg: 26px;
    --max: 1120px;
}

/* Respecta accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background:
        radial-gradient(900px 400px at 18% 8%, rgba(14, 165, 233, 0.18), transparent 60%),
        radial-gradient(900px 500px at 86% 10%, rgba(34, 197, 94, 0.14), transparent 62%),
        radial-gradient(700px 420px at 50% 92%, rgba(14, 165, 233, 0.10), transparent 60%),
        var(--bg);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Glass UI Helpers ===== */
.glass {
    background: var(--card);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.glass-strong {
    background: var(--card-strong);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.9rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--blue);
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.45);
}

/* ===== Header / Nav ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(34, 197, 94, 0.25));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.brand-name {
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 1rem;
}

.brand-sub {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: -2px;
}

/* Mobile nav */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
}

.main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 72px;
    z-index: 60;
    display: none;
    padding: 14px;
}

.main-nav.open {
    display: block;
}

.nav-links {
    display: grid;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 600;
}

.nav-link:hover {
    border-color: rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.08);
}

.nav-link small {
    font-weight: 600;
    color: var(--muted);
}

@media (min-width: 960px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        display: block !important;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-link {
        padding: 10px 12px;
        border-radius: 999px;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    user-select: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
    border: 1px solid rgba(14, 165, 233, 0.40);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(255, 255, 255, 0.06));
}

.btn-primary:hover {
    box-shadow: 0 22px 55px rgba(14, 165, 233, 0.18);
}

.btn-melbet {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-left: 15px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.btn-melbet:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

/* ===== Layout blocks ===== */
main {
    padding: 22px 0 34px;
}

.section {
    padding: 18px 0;
}

.section-title {
    font-size: 1.35rem;
    margin: 0 0 10px;
    letter-spacing: 0.2px;
}

.section-lead {
    margin: 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 860px) {
    .grid.cols-2 {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    padding: 16px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

/* ===== Tables ===== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.04);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 14px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    vertical-align: top;
}

th {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.78);
    background: rgba(255, 255, 255, 0.05);
}

tr:hover td {
    background: rgba(14, 165, 233, 0.06);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
    font-size: 0.9rem;
}

.tag.recommended {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

/* ===== Tip / Warning blocks ===== */
.notice {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 12px;
    padding: 14px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.06);
}

.notice .bar {
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.7);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.25);
}

.notice.tip .bar {
    background: rgba(34, 197, 94, 0.75);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.22);
}

.notice.warning {
    border-color: rgba(245, 158, 11, 0.30);
}

.notice.warning .bar {
    background: rgba(245, 158, 11, 0.75);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.22);
}

.notice strong {
    display: block;
    margin-bottom: 3px;
}

.notice p {
    margin: 0;
    color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 26px 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
    display: grid;
    gap: 12px;
}

@media (min-width: 860px) {
    .footer-inner {
        grid-template-columns: 1.3fr 0.7fr;
        align-items: start;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 650;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.28);
}

.footer-links a:hover {
    color: var(--text);
    border-bottom-color: rgba(14, 165, 233, 0.45);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    display: none;
    padding: 14px;
}

.cookie-banner.show {
    display: block;
}

.cookie-inner {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.cookie-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cookie-title strong {
    font-size: 1.02rem;
}

.cookie-text {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-actions .btn {
    flex: 1 1 auto;
}

@media (min-width: 860px) {
    .cookie-banner {
        left: auto;
        right: 18px;
        width: 420px;
    }
}

/* ===== Forms (for Contact page later) ===== */
.input,
textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    outline: none;
}

.input:focus,
textarea:focus {
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

label {
    display: block;
    margin: 0 0 6px;
    color: rgba(226, 232, 240, 0.85);
    font-weight: 700;
}