/* BitsOffers - Home (oscuro primero) */
:root {
  --h-bg: #f3f6fb; --h-bg-2: #e9eef6; --h-surface: #ffffff; --h-border: #dde4ee;
  --h-text: #0f172a; --h-muted: #5b6b82; --h-primary: #2563eb; --h-primary-2: #06b6d4;
  --h-gold: #f59e0b; --h-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
html[data-theme="dark"] {
  --h-bg: #080c14; --h-bg-2: #0d1320; --h-surface: #121a2a; --h-border: #1e2a3f;
  --h-text: #e8edf6; --h-muted: #97a3b8; --h-primary: #4f8cff; --h-primary-2: #22d3ee;
  --h-gold: #fbbf24; --h-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html, body { background: var(--h-bg); }
body.h-body { color: var(--h-text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; margin: 0; -webkit-font-smoothing: antialiased; }
.h-body a { color: inherit; text-decoration: none; }
.h-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.h-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--h-bg) 82%, transparent); border-bottom: 1px solid var(--h-border); }
.h-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.h-logo img { height: 44px; width: auto; display: block; }
.h-links { display: flex; gap: 26px; font-weight: 600; font-size: 15px; color: var(--h-muted); }
.h-links a:hover { color: var(--h-text); }
.h-actions { display: flex; align-items: center; gap: 10px; }
.h-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--h-border); background: var(--h-surface); color: var(--h-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 11px 20px; font-weight: 800; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, filter .2s, background .2s; white-space: nowrap; }
.h-btn:hover { transform: translateY(-2px); }
.h-btn.primary { background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2)); color: #fff !important; box-shadow: 0 10px 24px rgba(79, 140, 255, .35); }
.h-btn.ghost { background: var(--h-surface); border-color: var(--h-border); color: var(--h-text) !important; }
.h-btn.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #111 !important; }
.h-btn.lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.h-burger { display: none; }

/* Hero */
.h-hero { position: relative; overflow: hidden; padding: 80px 0 60px; }
.h-hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; background:
  radial-gradient(600px 300px at 20% 30%, rgba(79, 140, 255, .22), transparent 60%),
  radial-gradient(500px 300px at 85% 20%, rgba(34, 211, 238, .16), transparent 60%),
  radial-gradient(400px 260px at 60% 90%, rgba(251, 191, 36, .10), transparent 60%); pointer-events: none; }
.h-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.h-kicker { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--h-border); background: var(--h-surface); color: var(--h-muted); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.h-kicker b { color: #10b981; }
.h-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; font-weight: 900; letter-spacing: -.02em; margin: 18px 0 16px; }
.h-hero h1 span { background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero p.lead { color: var(--h-muted); font-size: 1.15rem; max-width: 560px; margin: 0 0 26px; }
.h-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.h-trust { display: flex; gap: 20px; margin-top: 26px; color: var(--h-muted); font-size: 14px; flex-wrap: wrap; }
.h-trust i { color: #10b981; margin-right: 6px; }

/* Mock offerwall en el hero */
.h-mock { background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 20px; box-shadow: var(--h-shadow); overflow: hidden; }
.h-mock-top { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--h-border); overflow: hidden; }
.h-mock-tab { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--h-muted); padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.h-mock-tab.on { background: var(--h-primary); color: #fff; }
.h-mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.h-mc { border: 1px solid var(--h-border); border-radius: 14px; overflow: hidden; background: var(--h-bg-2); }
.h-mc-t { display: flex; gap: 10px; padding: 10px; }
.h-mc-i { width: 42px; height: 42px; border-radius: 10px; background: #25365a; color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 42px; }
.h-mc-n { font-weight: 800; font-size: 13px; }
.h-mc-d { font-size: 11px; color: var(--h-muted); }
.h-mc-f { display: flex; background: #25365a; }
.h-mc-r { background: linear-gradient(180deg, #fbbf24, #f59e0b); color: #111; font-weight: 900; font-size: 12px; padding: 6px 10px; border-radius: 0 10px 0 0; }
.h-mc-b { flex: 1; color: #fff; font-weight: 900; font-size: 11px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; }

/* Secciones */
.h-sec { padding: 70px 0; }
.h-sec.alt { background: var(--h-bg-2); border-top: 1px solid var(--h-border); border-bottom: 1px solid var(--h-border); }
.h-title { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.h-title small { color: var(--h-primary); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.h-title h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; margin: 8px 0 10px; letter-spacing: -.01em; }
.h-title p { color: var(--h-muted); font-size: 1.05rem; margin: 0; }

.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -10px; }
.h-stat { background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 18px; padding: 20px; box-shadow: var(--h-shadow); }
.h-stat b { display: block; font-size: 1.9rem; font-weight: 900; }
.h-stat span { color: var(--h-muted); font-weight: 600; font-size: 14px; }

.h-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.h-card { background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 18px; padding: 22px; box-shadow: var(--h-shadow); transition: transform .2s; }
.h-card:hover { transform: translateY(-4px); }
.h-card .ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; margin-bottom: 14px; }
.h-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.h-card p { color: var(--h-muted); margin: 0; font-size: .96rem; line-height: 1.55; }

.h-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.h-step { background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 18px; padding: 22px; position: relative; }
.h-step::before { counter-increment: s; content: counter(s); position: absolute; top: 16px; right: 18px; font-size: 2.4rem; font-weight: 900; color: var(--h-border); }
.h-step i { font-size: 22px; color: var(--h-primary); }
.h-step h4 { font-size: 1.05rem; font-weight: 800; margin: 12px 0 6px; }
.h-step p { color: var(--h-muted); margin: 0; font-size: .93rem; }

.h-pay { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.h-pay span { display: inline-flex; align-items: center; gap: 8px; background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 999px; padding: 10px 16px; font-weight: 800; }
.h-pay i { color: var(--h-gold); }

.h-table-box { background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 18px; overflow: hidden; box-shadow: var(--h-shadow); }
.h-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.h-table th { text-align: left; padding: 12px 16px; color: var(--h-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--h-border); background: var(--h-bg-2); }
.h-table td { padding: 12px 16px; border-bottom: 1px solid var(--h-border); }
.h-table tr:last-child td { border-bottom: 0; }
.h-badge { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.h-badge.ok { background: rgba(16, 185, 129, .15); color: #10b981; }
.h-badge.no { background: rgba(239, 68, 68, .15); color: #ef4444; }
.h-badge.wait { background: rgba(245, 158, 11, .15); color: #f59e0b; }

.h-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.h-faq details { background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 14px; padding: 16px 18px; }
.h-faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.h-faq summary::after { content: "+"; color: var(--h-primary); font-size: 1.2rem; }
.h-faq details[open] summary::after { content: "–"; }
.h-faq p { color: var(--h-muted); margin: 10px 0 0; }

.h-final { background: linear-gradient(135deg, #1d4ed8, #0891b2); border-radius: 24px; padding: 40px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: var(--h-shadow); }
.h-final h2 { margin: 0 0 6px; font-weight: 900; font-size: 1.9rem; }
.h-final p { margin: 0; opacity: .9; }

.h-foot { padding: 50px 0 30px; border-top: 1px solid var(--h-border); color: var(--h-muted); font-size: 14px; }
.h-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 24px; }
.h-foot h5 { color: var(--h-text); font-size: 14px; font-weight: 800; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.h-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.h-foot a:hover { color: var(--h-text); }
.h-copy { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--h-border); }

/* Modal demo */
html[data-theme="dark"] .modal-content { background: var(--h-surface); color: var(--h-text); border: 1px solid var(--h-border); }
html[data-theme="dark"] .btn-close { filter: invert(1); }

@media (max-width: 992px) {
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-cards { grid-template-columns: 1fr 1fr; }
  .h-steps, .h-stats { grid-template-columns: 1fr 1fr; }
  .h-foot-grid { grid-template-columns: 1fr 1fr; }
  .h-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--h-surface); border-bottom: 1px solid var(--h-border); }
  .h-links.open { display: flex; }
  .h-links a { padding: 14px 20px; border-top: 1px solid var(--h-border); }
  .h-burger { display: inline-flex; }
}
@media (max-width: 600px) {
  .h-cards, .h-steps, .h-stats, .h-foot-grid { grid-template-columns: 1fr; }
  .h-hide-sm { display: none !important; }
  .h-hero { padding-top: 50px; }
}

/* ===== Movil: cabecera sin desbordar + boton Sign in visible ===== */
.h-menu-only { display: none !important; }
html, body { overflow-x: hidden; }
@media (max-width: 992px) {
  .h-links.open .h-menu-only { display: flex !important; align-items: center; gap: 8px; }
}
@media (max-width: 600px) {
  .h-wrap { padding: 0 14px; }
  .h-nav-in { gap: 8px; height: 62px; }
  .h-links { top: 62px; }
  .h-logo img { height: 28px; }
  .h-theme-btn { display: none !important; }        /* el cambio de tema pasa al menu */
  .h-actions { gap: 6px; }
  .h-actions .h-btn { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
  .h-burger { width: 36px; height: 36px; }
  .h-table-box { overflow-x: auto; }
  .h-mock { max-width: 100%; overflow: hidden; }
  .h-mock-top { overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 360px) {
  .h-logo img { height: 22px; }
  .h-actions .h-btn { padding: 7px 9px; font-size: 12px; }
}

/* Live demo */
.h-demo { max-width: 1040px; margin: 0 auto; background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 18px; overflow: hidden; box-shadow: var(--h-shadow); }
.h-demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--h-border); background: var(--h-bg-2); }
.h-demo-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.h-demo-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.h-demo-dots i:nth-child(2) { background: #febc2e; } .h-demo-dots i:nth-child(3) { background: #28c840; }
.h-demo-url { flex: 1; min-width: 0; font-size: .85rem; color: var(--h-muted); background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 999px; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-demo-url i { color: #22c55e; margin-right: 4px; }
.h-demo-full { color: var(--h-muted); font-size: 1rem; padding: 4px 6px; }
.h-demo-body { height: 620px; display: flex; align-items: center; justify-content: center; }
.h-demo-body.on { display: block; }
.h-demo-start { text-align: center; padding: 30px 20px; max-width: 460px; }
.h-demo-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 10px 30px rgba(124,58,237,.35); }
.h-demo-start h3 { font-weight: 800; font-size: 1.3rem; margin: 0 0 6px; }
.h-demo-start p { color: var(--h-muted); margin: 0 0 18px; }
.h-demo-start small { display: block; margin-top: 14px; color: var(--h-muted); font-size: .8rem; }
.h-demo code, .h-demo-note code { font-size: .8rem; background: var(--h-bg-2); border: 1px solid var(--h-border); border-radius: 6px; padding: 2px 6px; color: inherit; word-break: break-all; }
.h-demo-note { text-align: center; color: var(--h-muted); font-size: .9rem; margin: 16px auto 0; max-width: 1040px; }
@media (max-width: 640px) { .h-demo-body { height: 560px; } .h-demo-note code { display: inline-block; margin-top: 4px; } }
