/* ==========================================================================
   SuerteBelatra.com — Tema oscuro (negro + acentos azules)
   Bootstrap 5 + Montserrat · Mobile-first
   ========================================================================== */

:root,
[data-bs-theme="dark"] {
  --sb-bg: #05070d;
  --sb-bg-2: #080c15;
  --sb-panel: #0d1424;
  --sb-panel-2: #111b30;
  --sb-border: #1c2740;
  --sb-blue: #2f7bff;
  --sb-blue-2: #5b9bff;
  --sb-indigo: #6a5cff;
  --sb-text: #ffffff;
  --sb-muted: #9aa7c0;
  --sb-gold: #f5b83d;
  --sb-green: #22c55e;

  /* Sobrescribir variables de Bootstrap */
  --bs-body-bg: var(--sb-bg);
  --bs-body-color: #e6ecf7;
  --bs-primary: var(--sb-blue);
  --bs-primary-rgb: 47, 123, 255;
  --bs-link-color: var(--sb-blue-2);
  --bs-link-hover-color: #8ab4ff;
  --bs-border-color: var(--sb-border);
  --bs-font-sans-serif: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--sb-bg);
  color: var(--sb-muted);
  overflow-x: hidden;
}

a { text-decoration: none; }
a:hover { color: var(--bs-link-hover-color); }

::selection { background: rgba(47, 123, 255, 0.35); color: #fff; }

/* Utilidades */
.text-gradient {
  background: linear-gradient(100deg, var(--sb-blue-2), var(--sb-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section { padding: 72px 0; }
.section-alt { background: var(--sb-bg-2); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head.text-start { margin-left: 0; }

.section-title {
  color: var(--sb-text);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub { font-size: 1.02rem; margin: 0; }
.sub-title { color: var(--sb-text); font-weight: 700; font-size: 1.15rem; }

/* ============================= NAVBAR ============================= */
.sb-nav {
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sb-border);
  padding-top: 12px;
  padding-bottom: 12px;
}
.sb-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff !important;
  letter-spacing: -0.5px;
}
.brand-dice { margin-right: 4px; }
.sb-nav .nav-link {
  color: var(--sb-muted) !important;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 4px;
  transition: color 0.2s;
}
.sb-nav .nav-link:hover { color: #fff !important; }
.sb-cta-nav { font-weight: 700; }

/* ============================= BOTONES ============================= */
.btn { font-weight: 700; border-radius: 10px; letter-spacing: 0.2px; }
.btn-primary {
  background: linear-gradient(120deg, var(--sb-blue), #1d5ff0);
  border: none;
  box-shadow: 0 6px 20px rgba(47, 123, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(120deg, var(--sb-blue-2), var(--sb-blue));
  box-shadow: 0 8px 26px rgba(47, 123, 255, 0.5);
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.btn-outline-light {
  border-color: #33405e;
  color: #fff;
  font-weight: 700;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: #5b9bff; }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  padding: 168px 0 96px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(47, 123, 255, 0.22), transparent 60%),
    var(--sb-bg);
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 520px at 15% 110%, rgba(106, 92, 255, 0.16), transparent 60%),
    radial-gradient(520px 520px at 85% 110%, rgba(47, 123, 255, 0.14), transparent 60%);
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  background: var(--sb-panel);
  color: var(--sb-blue-2);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.hero-title {
  color: #fff;
  font-weight: 900;
  font-size: clamp(2.1rem, 6.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-lead strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  color: var(--sb-muted); font-size: 0.9rem; font-weight: 600;
}
.hero-trust span { white-space: nowrap; }

/* ============================= CASINOS ============================= */
.casino-card {
  position: relative;
  background: linear-gradient(180deg, var(--sb-panel-2), var(--sb-panel));
  border: 1px solid var(--sb-border);
  border-radius: 18px;
  padding: 28px 22px 22px;
  height: 100%;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.casino-card:hover {
  transform: translateY(-6px);
  border-color: var(--sb-blue);
  box-shadow: 0 18px 44px rgba(47, 123, 255, 0.16);
}
.casino-featured { border-color: rgba(47, 123, 255, 0.6); }
.casino-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, var(--sb-blue), var(--sb-indigo));
  color: #fff;
  font-weight: 800;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.casino-logo {
  display: flex; align-items: center; justify-content: center;
  height: 46px; margin: 0 auto 16px;
}
.casino-logo-word-img {
  max-height: 46px; max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.casino-logo-white { filter: brightness(0) invert(1); opacity: 0.95; }
.casino-banner {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1146 / 360;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--sb-border);
}
.casino-name { color: #fff; font-weight: 800; font-size: 1.35rem; margin-bottom: 4px; }
.casino-rating { color: var(--sb-gold); font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 10px; }
.casino-rating span { color: #fff; font-weight: 700; letter-spacing: 0; margin-left: 4px; }
.casino-bonus {
  color: var(--sb-blue-2);
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 16px;
  line-height: 1.3;
}
.casino-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
  font-size: 0.92rem;
}
.casino-features li { padding: 6px 0 6px 26px; position: relative; }
.casino-features li::before {
  content: "✔";
  position: absolute; left: 0;
  color: var(--sb-blue-2);
  font-weight: 700;
}
.casinos-note { text-align: center; font-size: 0.82rem; margin-top: 24px; color: var(--sb-muted); }

/* ============================= FILTROS ============================= */
.catalog-filters { margin-bottom: 24px; }
.sb-input,
.form-control.sb-input,
.form-select.sb-input {
  background-color: var(--sb-panel);
  border: 1px solid var(--sb-border);
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 500;
}
.sb-input:focus { border-color: var(--sb-blue); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.22); background-color: var(--sb-panel); color: #fff; }
.sb-input::placeholder { color: #6b7890; }
.form-select.sb-input { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239aa7c0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); }
.catalog-count { font-size: 0.85rem; margin: 12px 2px 0; color: var(--sb-muted); }

/* ============================= SLOTS ============================= */
.slot-card {
  background: linear-gradient(180deg, var(--sb-panel-2), var(--sb-panel));
  border: 1px solid var(--sb-border);
  border-radius: 16px;
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.slot-card:hover {
  transform: translateY(-4px);
  border-color: var(--sb-blue);
  box-shadow: 0 14px 34px rgba(47, 123, 255, 0.15);
}
.slot-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: none;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120px 120px at 50% 38%, rgba(47, 123, 255, 0.35), transparent 70%),
    linear-gradient(135deg, #15203c 0%, #0e1530 55%, #0a1122 100%);
  transition: filter 0.18s;
}
.slot-poster:hover { filter: brightness(1.12); }
.slot-poster .slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-rtp {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid rgba(47, 123, 255, 0.55);
  border-radius: 7px;
  padding: 3px 7px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.2px;
  z-index: 2;
}
.slot-emoji { font-size: clamp(2.4rem, 6vw, 3.4rem); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.slot-body { padding: 12px 6px 4px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.slot-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.25;
  min-height: 2.4em;
}
.slot-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sb-muted);
  line-height: 1.35;
}
.slot-actions { display: flex; gap: 8px; margin-top: auto; }
.slot-actions .btn { flex: 1; padding: 7px 6px; font-size: 0.85rem; }

.catalog-empty { text-align: center; padding: 30px 0; color: var(--sb-muted); }

/* ============================= SOBRE / DATOS ============================= */
.facts-card {
  background: linear-gradient(180deg, var(--sb-panel-2), var(--sb-panel));
  border: 1px solid var(--sb-border);
  border-radius: 18px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.fact {
  text-align: center;
  padding: 22px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.fact-num {
  display: block;
  color: var(--sb-blue-2);
  font-weight: 800;
  font-size: 1.5rem;
}
.fact-label { display: block; font-size: 0.78rem; color: var(--sb-muted); margin-top: 4px; }

.top-table-wrap { padding-top: 8px; }
.sb-table { --bs-table-bg: transparent; border-color: var(--sb-border); }
.sb-table thead th { color: var(--sb-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.6px; border-color: var(--sb-border); }
.sb-table td { color: #e6ecf7; border-color: var(--sb-border); }

.pc-card {
  background: linear-gradient(180deg, var(--sb-panel-2), var(--sb-panel));
  border: 1px solid var(--sb-border);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
}
.pc-pros { border-top: 3px solid var(--sb-green); }
.pc-cons { border-top: 3px solid #f43f5e; }
.pc-list { list-style: none; padding: 0; margin: 14px 0 0; }
.pc-list li { padding: 7px 0 7px 24px; position: relative; }
.pc-pros .pc-list li::before { content: "✔"; position: absolute; left: 0; color: var(--sb-green); font-weight: 700; }
.pc-cons .pc-list li::before { content: "✘"; position: absolute; left: 0; color: #f43f5e; font-weight: 700; }

/* ============================= PASOS ============================= */
.step-card {
  background: linear-gradient(180deg, var(--sb-panel-2), var(--sb-panel));
  border: 1px solid var(--sb-border);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  transition: transform 0.18s, border-color 0.18s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--sb-blue); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--sb-blue), var(--sb-indigo));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step-card h3 { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.92rem; margin: 0; }

/* ============================= FAQ ============================= */
.faq-wrap { max-width: 800px; }
.sb-accordion .accordion-item {
  background: var(--sb-panel);
  border: 1px solid var(--sb-border);
  border-radius: 14px !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.sb-accordion .accordion-button {
  background: var(--sb-panel);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 18px 20px;
  box-shadow: none;
}
.sb-accordion .accordion-button:not(.collapsed) {
  background: var(--sb-panel-2);
  color: var(--sb-blue-2);
}
.sb-accordion .accordion-button::after { filter: invert(1) grayscale(1); }
.sb-accordion .accordion-body { color: var(--sb-muted); padding: 6px 20px 20px; }

/* ============================= JUEGO RESPONSABLE ============================= */
.rg-banner {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(120deg, var(--sb-panel-2), var(--sb-panel));
  border: 1px solid var(--sb-border);
  border-radius: 18px;
  padding: 26px;
  flex-wrap: wrap;
}
.rg-badge {
  flex: 0 0 auto;
  width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--sb-blue);
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  background: rgba(47, 123, 255, 0.1);
}
.rg-text h3 { color: #fff; font-weight: 800; margin-bottom: 6px; }
.rg-text p { margin: 0; }

/* ============================= FOOTER ============================= */
.sb-footer {
  background: #03050a;
  border-top: 1px solid var(--sb-border);
  padding: 56px 0 30px;
}
.footer-about { margin-top: 14px; font-size: 0.92rem; max-width: 320px; }
.footer-title { color: #fff; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--sb-muted); font-size: 0.92rem; font-weight: 500; }
.footer-links a:hover { color: var(--sb-blue-2); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--sb-border);
  font-size: 0.8rem;
  color: #6b7890;
  text-align: center;
}
.footer-bottom p { margin-bottom: 6px; }
.footer-credit a { color: var(--sb-blue-2); }

/* ============================= MODAL / POPUP ============================= */
.sb-modal {
  background: var(--sb-panel);
  border: 1px solid var(--sb-border);
  border-radius: 18px;
  color: var(--sb-muted);
}
.sb-modal .modal-header { border-color: var(--sb-border); padding: 18px 22px; }
.sb-modal .modal-title { color: #fff; font-weight: 800; }
.sb-modal .modal-body { padding: 22px; }

.slot-popup-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sb-border);
  background:
    radial-gradient(160px 160px at 50% 40%, rgba(47, 123, 255, 0.35), transparent 70%),
    linear-gradient(135deg, #15203c, #0a1122);
  aspect-ratio: 16 / 10;
  width: 100%;
}
.slot-popup-poster {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.slot-popup-poster .slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-popup-poster .btn-play { position: relative; z-index: 2; }
.slot-popup-poster .slot-emoji { font-size: 5rem; }
.slot-popup-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.btn-play {
  background: linear-gradient(120deg, var(--sb-blue), var(--sb-indigo));
  color: #fff;
  border: none;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(47, 123, 255, 0.4);
  transition: transform 0.15s;
}
.btn-play:hover { transform: scale(1.05); }

.slot-popup-title { color: #fff; font-weight: 800; font-size: 1.5rem; margin-bottom: 4px; }
.slot-popup-provider { font-size: 0.9rem; margin-bottom: 18px; }

.slot-popup-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.pm {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.pm-k { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sb-muted); margin-bottom: 4px; }
.pm-v { display: block; color: #fff; font-weight: 700; font-size: 1.05rem; }
.pm-v.pm-highlight { color: var(--sb-blue-2); }

.slot-popup-casinos { margin-top: 4px; }
.slot-popup-casinos .label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.casino-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sb-muted);
  transition: border-color 0.15s, background 0.15s;
}
.casino-mini:hover { border-color: var(--sb-blue); background: rgba(47, 123, 255, 0.08); color: #fff; }
.casino-mini-emoji { font-size: 1.4rem; }
.casino-mini-name { font-weight: 700; color: #fff; flex: 0 0 auto; }
.casino-mini-bonus { font-size: 0.85rem; margin-left: auto; text-align: right; color: var(--sb-blue-2); }

/* ============================= RESPONSIVE ============================= */
@media (max-width: 575.98px) {
  .section { padding: 52px 0; }
  .hero { padding: 140px 0 72px; }
  .facts-card { grid-template-columns: repeat(2, 1fr); }
  .slot-popup-metrics { grid-template-columns: 1fr 1fr; }
  .slot-popup-title { font-size: 1.25rem; }
  .casino-mini { flex-wrap: wrap; }
  .casino-mini-bonus { margin-left: 0; width: 100%; text-align: left; }
}
