/* Ultra Casino Chile — guía independiente — hoja de estilos única */

:root {
  --bg: #0c0c0c;
  --bg-soft: #141416;
  --panel: #1a1b20;
  --panel-2: #202230;
  --slate: #3a4b67;
  --red: #ff3e3e;
  --red-deep: #c81f1f;
  --paper: #ebecf0;
  --paper-dim: #b7bac4;
  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--paper);
  background: var(--bg);
  line-height: 1.55;
  min-width: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; min-width: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
::selection { background: var(--red); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.01em; white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(255, 62, 62, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255, 62, 62, 0.45); }
.btn-ghost { background: rgba(235, 236, 240, 0.06); color: var(--paper); border-color: rgba(235, 236, 240, 0.18); }
.btn-ghost:hover { background: rgba(235, 236, 240, 0.12); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(235, 236, 240, 0.08);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  height: 76px; min-width: 0;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { width: auto; height: 38px; }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: 12px; min-width: 0; }
.desktop-nav a {
  font-size: 0.92rem; font-weight: 700; color: var(--paper-dim);
  letter-spacing: 0.01em; white-space: nowrap;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 10px; background: rgba(235, 236, 240, 0.08);
  flex-shrink: 0;
}
.burger span, .burger::before, .burger::after {
  content: ""; display: block; height: 2px; width: 20px; margin: 0 auto;
  background: var(--paper); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav lives OUTSIDE .site-header on purpose (no backdrop-filter containing block bug) */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 45;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100%; width: min(84vw, 340px);
  background: var(--panel); z-index: 46; padding: 20px;
  transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5); overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-close {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(235, 236, 240, 0.08);
  font-size: 1.1rem;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  padding: 13px 10px; font-weight: 800; font-size: 1.02rem; border-radius: 10px;
}
.mobile-nav-links a:hover { background: rgba(235, 236, 240, 0.06); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

@media (max-width: 860px) {
  .desktop-nav, .header-actions { display: none; }
  .burger { display: flex; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-width: 0;
  background: radial-gradient(1200px 600px at 15% -10%, var(--violet-glow), transparent 60%), var(--bg);
  border-bottom: 1px solid rgba(235, 236, 240, 0.08);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(180deg, rgba(12,12,12,0.35) 0%, rgba(12,12,12,0.92) 78%), url("images/hero-burst-bg.jpg");
  background-size: cover; background-position: center; opacity: 0.55;
}
.hero-inner {
  position: relative; z-index: 1; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: 32px; padding: 56px 20px 40px;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); background: rgba(255, 62, 62, 0.12); border: 1px solid rgba(255, 62, 62, 0.35);
  padding: 7px 14px; border-radius: 999px;
}
.hero-title {
  margin: 0 0 16px; font-weight: 900; line-height: 0.96; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7.4vw, 4.6rem); text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hero-title .line-2 { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.hero-title .accent { color: var(--red); -webkit-text-stroke: 0; }
.hero-sub {
  margin: 0 0 26px; max-width: 52ch; color: var(--paper-dim); font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px;
  background: rgba(235, 236, 240, 0.06); border: 1px solid rgba(235, 236, 240, 0.14);
  border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--paper-dim);
}
.hero-chip strong { color: var(--paper); font-weight: 800; }
.hero-visual { position: relative; min-width: 0; display: flex; justify-content: center; }
.hero-mascot { width: min(100%, 420px); height: auto; aspect-ratio: 1700 / 400; filter: drop-shadow(0 20px 40px rgba(255, 62, 62, 0.35)); }
.hero-fx {
  position: absolute; inset: -10% -10% auto auto; width: 60%; height: auto;
  aspect-ratio: 1700 / 400; opacity: 0.85; pointer-events: none;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Facts strip ---------- */
.facts {
  padding: 40px 0; border-bottom: 1px solid rgba(235, 236, 240, 0.08);
  background: var(--bg-soft);
}
.facts-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; min-width: 0;
}
.fact-card {
  min-width: 0; background: var(--panel); border: 1px solid rgba(235, 236, 240, 0.08);
  border-radius: var(--radius); padding: 18px;
}
.fact-label {
  margin: 0 0 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-dim);
}
.fact-value { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--paper); overflow-wrap: anywhere; }
.fact-value.accent { color: var(--red); }
@media (max-width: 760px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Article / SEO block ---------- */
.page-body { padding-top: 52px; padding-bottom: 20px; min-width: 0; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
article.seo-content { width: 100%; min-width: 0; max-width: 780px; margin: 0 auto; }
article.seo-content h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.35rem); font-weight: 900; line-height: 1.15;
  margin: 0 0 20px; color: var(--paper); overflow-wrap: anywhere;
}
article.seo-content h2 {
  font-size: clamp(1.25rem, 3.2vw, 1.55rem); font-weight: 800; margin: 44px 0 14px;
  color: var(--paper); padding-top: 6px; border-top: 1px solid rgba(235, 236, 240, 0.1);
  overflow-wrap: anywhere;
}
article.seo-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
article.seo-content h3 { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--paper); }
article.seo-content p { color: var(--paper-dim); margin: 0 0 16px; }
article.seo-content strong { color: var(--paper); }
article.seo-content ul { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
article.seo-content ul li {
  position: relative; padding-left: 22px; color: var(--paper-dim);
}
article.seo-content ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  background: var(--red); border-radius: 2px; transform: rotate(45deg);
}
article.seo-content ul li strong { color: var(--paper); }

.table-scroll { overflow-x: auto; margin: 0 0 20px; border-radius: var(--radius-sm); border: 1px solid rgba(235, 236, 240, 0.1); }
article.seo-content table {
  width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 420px;
  background: var(--panel);
}
article.seo-content th, article.seo-content td {
  padding: 12px 16px; text-align: left; font-size: 0.94rem;
  border-bottom: 1px solid rgba(235, 236, 240, 0.08); overflow-wrap: anywhere;
}
article.seo-content th {
  background: rgba(255, 62, 62, 0.1); color: var(--red); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800;
}
article.seo-content td { color: var(--paper-dim); }
article.seo-content tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  article.seo-content th, article.seo-content td { padding: 10px 12px; font-size: 0.84rem; }
}

/* callout (payout speed + verification caveat) */
.callout {
  display: flex; gap: 14px; margin: 22px 0 28px; padding: 18px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(255, 62, 62, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.35); border-radius: var(--radius);
  min-width: 0;
}
.callout-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  background: var(--violet); display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; font-size: 1rem;
}
.callout-body { min-width: 0; }
.callout-title { margin: 0 0 4px; font-weight: 800; color: var(--paper); font-size: 0.92rem; }
.callout-text { margin: 0; color: var(--paper-dim); font-size: 0.92rem; }

/* game showcase (visual reinforcement of the catalog section) */
.game-showcase {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  margin: 6px 0 26px; min-width: 0;
}
.game-card {
  min-width: 0; background: var(--panel); border: 1px solid rgba(235, 236, 240, 0.08);
  border-radius: var(--radius-sm); overflow: hidden; text-align: center;
}
.game-card img { width: 100%; height: auto; aspect-ratio: 408 / 546; object-fit: cover; }
.game-name {
  margin: 0; padding: 8px 6px 10px; font-size: 0.72rem; font-weight: 700;
  color: var(--paper-dim); overflow-wrap: anywhere; line-height: 1.25;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; min-width: 0; }
.filter-chip {
  padding: 8px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 800;
  background: rgba(235, 236, 240, 0.06); border: 1px solid rgba(235, 236, 240, 0.14);
  color: var(--paper-dim);
}
.filter-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 640px) { .game-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 400px) { .game-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* payment chips */
.pay-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 24px; min-width: 0; }
.pay-chip {
  padding: 10px 18px; border-radius: 10px; font-weight: 800; font-size: 0.9rem;
  background: var(--panel); border: 1px solid rgba(235, 236, 240, 0.14); color: var(--paper);
  letter-spacing: 0.01em;
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
article.seo-content h3.faq-h { margin: 0; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; padding: 16px 18px; background: var(--panel);
  border: 1px solid rgba(235, 236, 240, 0.1); border-radius: var(--radius-sm);
  font-weight: 800; font-size: 0.98rem; color: var(--paper); min-width: 0;
}
.faq-q::after {
  content: "+"; flex-shrink: 0; font-size: 1.3rem; font-weight: 700; color: var(--red);
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 18px; margin: 0;
  transition: max-height 0.25s ease, padding 0.25s ease; color: var(--paper-dim);
}
.faq-a.is-open { max-height: 400px; padding: 4px 18px 16px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 50px; padding: 46px 0 30px; background: var(--bg-soft);
  border-top: 1px solid rgba(235, 236, 240, 0.08);
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px;
  padding-bottom: 26px; border-bottom: 1px solid rgba(235, 236, 240, 0.08); min-width: 0;
}
.footer-brand { max-width: 340px; min-width: 0; }
.footer-logo-img { height: 30px; width: auto; margin-bottom: 12px; }
.footer-tagline { margin: 0; color: var(--paper-dim); font-size: 0.88rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; min-width: 0; }
.footer-col p.footer-heading {
  margin: 0 0 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper-dim);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.88rem; color: var(--paper-dim); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; min-width: 0; }
.rg-line { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.82rem; color: var(--paper-dim); }
.age-badge {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--red);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.68rem; color: #fff;
}
.copyright { margin: 0; font-size: 0.8rem; color: var(--paper-dim); max-width: 60ch; }
.disclaimer { margin: 10px 0 0; font-size: 0.78rem; color: #7b7e88; max-width: 70ch; }

/* ---------- Blog ---------- */
.page-hero {
  padding: 40px 0 34px; background: var(--bg-soft);
  border-bottom: 1px solid rgba(235, 236, 240, 0.08); min-width: 0;
}
.breadcrumbs { margin: 0 0 16px; font-size: 0.82rem; color: var(--paper-dim); min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--paper-dim); }
.breadcrumbs a:hover { color: var(--paper); }
.page-hero-title {
  margin: 0 0 14px; font-weight: 900; line-height: 1.08; letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 5vw, 3rem); color: var(--paper); text-transform: uppercase;
  overflow-wrap: anywhere;
}
.page-hero-lede { margin: 0; max-width: 66ch; color: var(--paper-dim); font-size: 1.02rem; }

.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px; margin: 8px 0 4px; min-width: 0;
}
.blog-card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--panel); border: 1px solid rgba(235, 236, 240, 0.08);
  border-radius: var(--radius); padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.blog-card:hover { transform: translateY(-2px); border-color: rgba(255, 62, 62, 0.4); }
.b-date { margin: 0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.b-title { margin: 0; font-size: 1.12rem; font-weight: 800; color: var(--paper); line-height: 1.32; overflow-wrap: anywhere; }
.b-excerpt { margin: 0; color: var(--paper-dim); font-size: 0.9rem; flex-grow: 1; }
.b-more { margin-top: 2px; font-weight: 800; font-size: 0.85rem; color: var(--red); }

.article-meta { display: flex; align-items: center; gap: 8px; margin: -4px 0 22px; font-size: 0.85rem; color: var(--paper-dim); }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--paper-dim); flex-shrink: 0; }

.rg-notice { margin: 34px auto 0; max-width: 780px; font-size: 0.82rem; color: var(--paper-dim); text-align: center; }

@media (max-width: 560px) { .page-hero { padding: 30px 0 26px; } }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center;
}
.error-inner { max-width: 480px; }
.error-code {
  margin: 0; font-weight: 900; font-size: clamp(4rem, 18vw, 7rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--red);
}
