/* Luckia Colombia — casinoluckia.co
   Diseño propio: rojo ibérico corporativo + red de locales como mapa de puntos, tono serio. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }

:root {
  --red: #dc4405;
  --red-dark: #b03600;
  --ink: #212121;
  --ink-soft: #4a4a4a;
  --gray-mid: #d6d6d6;
  --gray-light: #efefef;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  --header-h: 72px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sticky footer: on short pages (e.g. blog listing with few posts) main
   stretches to fill the viewport instead of leaving a blank strip below
   the footer. */
main { flex: 1 0 auto; width: 100%; }

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Barra superior institucional ---------- */
.top-bar {
  background: var(--ink);
  color: var(--gray-mid);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 12px;
}
.top-bar .top-license {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.top-bar .top-age {
  flex: 0 0 auto;
  color: var(--white);
  font-weight: 600;
  border: 1px solid var(--gray-mid);
  border-radius: 3px;
  padding: 1px 6px;
}

/* ---------- Header ---------- */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gray-mid);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.brand img { height: 32px; width: auto; }
.brand .brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  justify-content: center;
}
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--red); text-decoration: none; }
.main-nav a.is-current { color: var(--red); }

.cta-button {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  white-space: nowrap;
  flex: 0 0 auto;
}
.cta-button:hover { background: var(--red-dark); color: var(--white); text-decoration: none; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile off-canvas (fuera del header, sin backdrop-filter) ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 45;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 84vw);
  background: var(--white);
  box-shadow: -6px 0 24px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 46;
  overflow-y: auto;
  padding: 20px;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav .mobile-nav-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.mobile-nav .close-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}
.mobile-nav .close-btn img { width: 16px; height: 16px; }
.mobile-nav ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.mobile-nav li { border-bottom: 1px solid var(--gray-light); }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  color: var(--ink);
  font-weight: 600;
}
.mobile-nav a:hover { color: var(--red); text-decoration: none; }
.mobile-nav .cta-button { display: block; text-align: center; }
.mobile-nav .mobile-fineprint {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- Hero (index) ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 44px 0 40px;
  border-bottom: 4px solid var(--red);
}
.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.hero .hero-col { min-width: 0; }
.hero .eyebrow {
  display: inline-block;
  color: var(--red);
  background: rgba(220,68,5,0.15);
  border: 1px solid var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin: 0 0 14px;
}
.hero .hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.hero .hero-lead {
  color: var(--gray-mid);
  font-size: 1.02rem;
  margin: 0 0 22px;
  max-width: 52ch;
}
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .hero-note { font-size: 0.82rem; color: var(--gray-mid); }
.hero-figure {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-figure img { width: 100%; height: auto; }

.hero-panel {
  min-width: 0;
  background: linear-gradient(155deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 28px 26px 24px;
  color: var(--white);
}
.hero-panel-kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.hero-panel-num {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
}
.hero-panel-num-label {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.85);
}
.hero-panel-rule {
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 18px 0;
}
.hero-panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.hero-panel-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
}
.hero-panel-city i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

/* ---------- Cabecera compacta (páginas internas) ---------- */
.page-header {
  background: var(--ink);
  color: var(--white);
  padding: 26px 0 22px;
  border-bottom: 4px solid var(--red);
}
.page-header .page-kicker {
  color: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.page-header .page-title {
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gray-mid); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Datos clave ---------- */
.quickfacts {
  padding: 30px 0;
  border-bottom: 1px solid var(--gray-light);
}
.quickfacts .qf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.qf-item {
  min-width: 0;
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 16px;
  border-left: 3px solid var(--red);
}
.qf-item .qf-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}
.qf-item .qf-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Red de locales: mapa de puntos ---------- */
.locations {
  padding: 34px 0;
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
}
.locations .locations-flex {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.locations .locations-copy { flex: 1 1 260px; min-width: 0; }
.locations .locations-copy .loc-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.locations .locations-copy .loc-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 46ch;
}
.locations-map {
  flex: 1 1 280px;
  min-width: 0;
  position: relative;
  height: 92px;
}
.locations-map .map-line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gray-mid) 0 8px, transparent 8px 16px);
}
.map-point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.map-point .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--red);
}
.map-point .dot.dot-more { background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.map-point .pt-label {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.map-point:nth-child(2) { left: 14%; }
.map-point:nth-child(3) { left: 50%; }
.map-point:nth-child(4) { left: 86%; }

/* ---------- Artículo / bloque SEO ---------- */
.seo-content { padding: 36px 0 8px; }
.seo-content h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.seo-content h2 {
  font-size: 1.35rem;
  margin: 34px 0 12px;
  color: var(--ink);
  border-left: 4px solid var(--red);
  padding-left: 12px;
  overflow-wrap: anywhere;
}
.seo-content h3 {
  font-size: 1.08rem;
  margin: 22px 0 8px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.seo-content p { margin: 0 0 14px; color: var(--ink-soft); max-width: 76ch; }
.seo-content p strong { color: var(--ink); }
.seo-content a { font-weight: 600; }

/* Tabla responsiva */
.table-wrap { width: 100%; overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.seo-content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}
.seo-content table th,
.seo-content table td {
  border: 1px solid var(--gray-mid);
  padding: 10px 12px;
  text-align: left;
  overflow-wrap: anywhere;
}
.seo-content table th {
  background: var(--ink);
  color: var(--white);
}
.seo-content table tr:nth-child(even) td { background: var(--gray-light); }
@media (max-width: 560px) {
  .seo-content table { font-size: 0.82rem; }
  .seo-content table th, .seo-content table td { padding: 7px 8px; }
}

/* FAQ acordeón (progresivo: sin JS se ve todo el contenido) */
.faq-list h3.faq-q {
  cursor: pointer;
  position: relative;
  padding-right: 26px;
  user-select: none;
}
.faq-list h3.faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--red);
  font-weight: 800;
  font-size: 1.2rem;
}
.faq-list h3.faq-q.is-open::after { content: "\2212"; }
.js-ready .faq-list .faq-a { display: none; }
.js-ready .faq-list .faq-a.is-open { display: block; }

.rg-line {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 20px 0 0;
  max-width: none;
}

/* ---------- Banda CTA intermedia ---------- */
.cta-band {
  margin: 30px 0;
  padding: 26px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.cta-band p { margin: 0; font-weight: 700; max-width: 46ch; color: var(--white); }
.cta-band .cta-button { background: var(--ink); }
.cta-band .cta-button:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--gray-mid);
  padding: 40px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid #3a3a3a;
}
.footer-col { min-width: 0; }
.footer-col .footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-col .footer-brand img { height: 26px; }
.footer-col .footer-brand span { color: var(--white); font-weight: 700; }
.footer-col p { font-size: 0.88rem; line-height: 1.5; margin: 0 0 10px; }
.footer-col .footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--gray-mid); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-payments span {
  font-size: 0.76rem;
  border: 1px solid #4a4a4a;
  border-radius: 3px;
  padding: 3px 8px;
  color: var(--gray-mid);
  white-space: nowrap;
}
.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom .footer-rg { color: var(--white); font-weight: 700; }
.footer-bottom .footer-copy { color: var(--gray-mid); min-width: 0; overflow-wrap: anywhere; }
.footer-bottom .footer-disclaimer {
  flex-basis: 100%;
  color: #9a9a9a;
  font-size: 0.78rem;
  max-width: 90ch;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  padding: 8px 0 34px;
}
.post-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--gray-light);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 22px;
}
.post-card .post-date {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.post-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--red); text-decoration: none; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.post-card .link-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--red);
}
.post-card .link-more .arr { display: inline-block; }
.post-card .link-more:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.error-page {
  padding: 70px 0;
  text-align: center;
}
.error-page h1 { font-size: 2rem; margin: 0 0 14px; color: var(--ink); }
.error-page p { color: var(--ink-soft); margin: 0 0 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav, .site-header .cta-button { display: none; }
  .burger { display: block; }
  .hero .hero-grid { grid-template-columns: 1fr; }
  .locations .locations-flex { flex-direction: column; align-items: stretch; }
  .locations-map { width: 100%; }
}

@media (max-width: 480px) {
  .top-bar .top-license { display: none; }
  .brand .brand-name { display: none; }
}
