/* Mega Casino ES – Site 1 | Prefix: hero-panel / top-bar / wrap */
/* Font: Raleway | Theme: Dark Gold */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    background: #111111;
    color: #f0f0f0;
    line-height: 1.65;
    padding-bottom: 64px; /* promo strip */
}

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

a { color: #C9A227; text-decoration: none; }

/* ===== LAYOUT ===== */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #C9A227, #D4AF37);
    color: #111;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 30px;
    border-radius: 4px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(201,162,39,.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,162,39,.5);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid #C9A227;
    color: #C9A227;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.btn-secondary:hover {
    background: #C9A227;
    color: #111;
}

/* ===== PROMO STRIP ===== */
.promo-strip {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(90deg, #C9A227, #D4AF37);
    color: #111;
    z-index: 9999;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    font-size: 13px;
}
.promo-strip a {
    background: #111;
    color: #C9A227;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ps-close {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
    color: #111;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
}

/* ===== HEADER ===== */
.top-bar {
    position: sticky;
    top: 0;
    background: #0d0d0d;
    border-bottom: 2px solid #C9A227;
    z-index: 1000;
}
.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
}
.brand-logo img { height: 42px; width: auto; }
.top-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}
.top-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s;
}
.top-nav a:hover { color: #C9A227; }
.top-bar__cta a {
    background: #C9A227;
    color: #111;
    padding: 9px 22px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.top-bar__cta a:hover { background: #D4AF37; }
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger-btn span { display: block; width: 24px; height: 2px; background: #C9A227; }

/* ===== TOC ===== */
.page-toc {
    background: #181818;
    border-bottom: 1px solid #2a2a2a;
    padding: 10px 0;
    overflow-x: auto;
}
.toc-list {
    display: flex;
    gap: 4px;
    list-style: none;
    white-space: nowrap;
}
.toc-list a {
    display: inline-block;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.toc-list a:hover {
    background: #C9A227;
    color: #111;
}

/* ===== HERO PANEL ===== */
.hero-panel {
    padding: 70px 0 60px;
    background: linear-gradient(135deg, #111111 0%, #1a1300 100%);
}
.hero-panel__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-panel__content h1 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-panel__content p {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 28px;
    max-width: 520px;
}
.hero-panel__image img {
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
}

/* ===== INFO SECTION (como funciona) ===== */
.info-section {
    padding: 64px 0;
    background: #141414;
}
.info-section h2 {
    font-size: 30px;
    font-weight: 800;
    color: #C9A227;
    margin-bottom: 16px;
}
.info-section > .wrap > p {
    color: #bbb;
    font-size: 15px;
    max-width: 780px;
    margin-bottom: 36px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.step-card {
    background: #1e1e1e;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    padding: 24px;
    transition: border-color .2s, transform .2s;
}
.step-card:hover {
    border-color: #C9A227;
    transform: translateY(-3px);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #C9A227;
    color: #111;
    font-weight: 800;
    font-size: 16px;
    border-radius: 50%;
    margin-bottom: 14px;
}
.step-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.step-card p { font-size: 13px; color: #aaa; }

/* ===== GAMES SECTION ===== */
.games-section {
    padding: 64px 0;
    background: #111;
}
.games-section h2 {
    font-size: 30px;
    font-weight: 800;
    color: #C9A227;
    margin-bottom: 12px;
}
.games-section > .wrap > p {
    color: #bbb;
    font-size: 15px;
    max-width: 780px;
    margin-bottom: 36px;
}
.games-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 52px;
}
.game-cat-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: border-color .2s, transform .2s;
}
.game-cat-card:hover {
    border-color: #C9A227;
    transform: translateY(-4px);
}
.game-cat-card img { width: 100%; height: 180px; object-fit: cover; }
.game-cat-info {
    padding: 16px;
}
.game-cat-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.game-cat-info p { font-size: 13px; color: #999; }

/* Sub sections */
.sub-section { margin-top: 52px; }
.sub-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 12px;
}
.sub-section > p {
    color: #bbb;
    font-size: 14px;
    max-width: 780px;
    margin-bottom: 24px;
}

/* Slots grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.slot-card {
    background: #1e1e1e;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    text-align: center;
    transition: border-color .2s;
}
.slot-card:hover { border-color: #C9A227; }
.slot-card img { width: 100%; height: 100px; object-fit: cover; }
.slot-card span {
    display: block;
    font-size: 11px;
    color: #ccc;
    padding: 6px 4px;
    font-weight: 600;
}

/* Live grid */
.live-grid, .table-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.live-card, .table-card {
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
    text-align: center;
    transition: border-color .2s, transform .2s;
}
.table-card { background: #1e1e1e; border-color: #2a2a2a; }
.live-card:hover, .table-card:hover {
    border-color: #C9A227;
    transform: translateY(-2px);
}
.live-card img, .table-card img { width: 100%; height: 140px; object-fit: cover; }
.live-card span, .table-card span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #ccc;
    padding: 8px 6px;
}

/* ===== REGISTRO ===== */
.registro-section {
    padding: 64px 0;
    background: #141414;
}
.registro-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.registro-section__text h2 {
    font-size: 30px;
    font-weight: 800;
    color: #C9A227;
    margin-bottom: 16px;
}
.registro-section__text p {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 14px;
    max-width: 500px;
}
.registro-section__text .btn-primary { margin-top: 10px; }
.registro-section__image img {
    border-radius: 8px;
    box-shadow: 0 6px 32px rgba(0,0,0,.5);
}

/* ===== PAYMENTS ===== */
.payments-section {
    padding: 64px 0;
    background: #111;
}
.payments-section h2 {
    font-size: 30px;
    font-weight: 800;
    color: #C9A227;
    margin-bottom: 12px;
}
.payments-section > .wrap > p {
    color: #bbb;
    font-size: 14px;
    max-width: 780px;
    margin-bottom: 28px;
}
.payment-icons-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.payment-icons-row img {
    height: 36px;
    max-width: 80px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    object-fit: contain;
}
.payment-badge {
    display: inline-flex;
    align-items: center;
    height: 36px;
    background: #fff;
    color: #333;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
}
.payment-sub { margin-top: 36px; }
.payment-sub h3 {
    font-size: 20px;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 10px;
}
.payment-sub > p {
    color: #bbb;
    font-size: 14px;
    max-width: 700px;
    margin-bottom: 16px;
}
.pay-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pay-table th {
    background: #1e1e1e;
    color: #C9A227;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #C9A227;
}
.pay-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #252525;
    color: #ddd;
}
.pay-table tr:hover td { background: #1a1a1a; }

/* ===== HOW TO ===== */
.howto-section {
    padding: 64px 0;
    background: #141414;
}
.howto-section h2 {
    font-size: 30px;
    font-weight: 800;
    color: #C9A227;
    margin-bottom: 12px;
}
.howto-section > .wrap > p {
    color: #bbb;
    font-size: 14px;
    max-width: 780px;
    margin-bottom: 32px;
}
.howto-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}
.howto-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #1e1e1e;
    border-left: 4px solid #C9A227;
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
}
.howto-num {
    font-size: 28px;
    font-weight: 900;
    color: #C9A227;
    line-height: 1;
    min-width: 44px;
}
.howto-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}
.howto-text strong { color: #fff; }

/* ===== BONUSES ===== */
.bonuses-section {
    padding: 64px 0;
    background: #111;
}
.bonuses-section h2 {
    font-size: 30px;
    font-weight: 800;
    color: #C9A227;
    margin-bottom: 12px;
}
.bonuses-section > .wrap > p {
    color: #bbb;
    font-size: 14px;
    max-width: 780px;
    margin-bottom: 36px;
}
.bonus-sub { margin-top: 44px; }
.bonus-sub h3 {
    font-size: 22px;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 10px;
}
.bonus-sub > p {
    color: #bbb;
    font-size: 14px;
    max-width: 700px;
    margin-bottom: 22px;
}
.bonus-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.bonus-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.bonus-card:hover {
    border-color: #C9A227;
    transform: translateY(-3px);
}
.bonus-card img { width: 100%; height: 140px; object-fit: cover; }
.bonus-card__body {
    padding: 14px;
}
.bonus-card__body strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.bonus-card__body p { font-size: 13px; color: #aaa; }

.nodeposit-block, .freespins-block {
    display: flex;
    align-items: center;
    gap: 28px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 20px;
}
.nodeposit-block img, .freespins-block img {
    border-radius: 8px;
    flex-shrink: 0;
    max-width: 280px;
}
.nodeposit-info strong, .freespins-info strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.nodeposit-info p, .freespins-info p {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 16px;
}

/* ===== WINNING ===== */
.winning-section {
    padding: 64px 0;
    background: #141414;
}
.winning-section h2 {
    font-size: 30px;
    font-weight: 800;
    color: #C9A227;
    margin-bottom: 12px;
}
.winning-section > .wrap > p {
    color: #bbb;
    font-size: 14px;
    max-width: 780px;
    margin-bottom: 32px;
}
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 16px 18px;
    border: 1px solid #2a2a2a;
    transition: border-color .2s;
}
.tip-item:hover { border-color: #C9A227; }
.tip-icon { flex-shrink: 0; padding-top: 2px; }
.tip-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}
.tip-text strong { color: #fff; }

/* ===== FAQ ===== */
.faq-section {
    padding: 64px 0;
    background: #111;
}
.faq-section h2 {
    font-size: 30px;
    font-weight: 800;
    color: #C9A227;
    margin-bottom: 28px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 860px;
}
.faq-item {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
}
.faq-item[open] { border-color: #C9A227; }
.faq-item summary {
    cursor: pointer;
    padding: 16px 20px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: #C9A227;
    font-weight: 700;
    transition: transform .2s;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item p {
    padding: 0 20px 16px;
    font-size: 14px;
    color: #aaa;
    line-height: 1.65;
}

/* ===== AUTHOR ===== */
.author-section {
    padding: 40px 0;
    background: #141414;
    border-top: 1px solid #2a2a2a;
}
.author-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.author-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #C9A227;
    flex-shrink: 0;
}
.author-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.author-info span {
    font-size: 13px;
    color: #999;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0a0a0a;
    border-top: 2px solid #C9A227;
    padding: 36px 0;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}
.footer-legal p {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.5;
}
.footer-legal strong { color: #C9A227; }

/* ===== RESPONSIVE ===== */

/* 768px */
@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }
    .footer-brand { flex-shrink: 0; }
}

/* 1024px */
@media (min-width: 1024px) {
    .hero-panel__content h1 { font-size: 42px; }
}

/* 1440px */
@media (min-width: 1440px) {
    .hero-panel__content h1 { font-size: 48px; }
    .steps-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile overrides (max-width) */
@media (max-width: 767px) {
    .top-nav { display: none; }
    .top-nav.open { display: block; position: absolute; top: 70px; left: 0; right: 0; background: #0d0d0d; padding: 16px 20px; border-top: 1px solid #2a2a2a; }
    .top-nav.open ul { flex-direction: column; gap: 12px; }
    .burger-btn { display: flex; }
    .top-bar__cta { display: none; }

    .hero-panel { padding: 40px 0; }
    .hero-panel__grid { grid-template-columns: 1fr; }
    .hero-panel__content h1 { font-size: 26px; }
    .hero-panel__image { display: none; }

    .steps-grid { grid-template-columns: 1fr; }
    .games-cat-grid { grid-template-columns: 1fr; }
    .slots-grid { grid-template-columns: repeat(2, 1fr); }
    .live-grid, .table-grid { grid-template-columns: repeat(2, 1fr); }
    .registro-section__grid { grid-template-columns: 1fr; }
    .registro-section__image { display: none; }
    .bonus-cards { grid-template-columns: 1fr; }
    .nodeposit-block, .freespins-block { flex-direction: column; }
    .nodeposit-block img, .freespins-block img { max-width: 100%; }
    .author-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .games-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .slots-grid { grid-template-columns: repeat(3, 1fr); }
    .live-grid, .table-grid { grid-template-columns: repeat(2, 1fr); }
    .bonus-cards { grid-template-columns: repeat(2, 1fr); }
    .hero-panel__content h1 { font-size: 32px; }
}
