:root {
  --bg-deep: #0a0f1a;
  --bg-card: #111827;
  --bg-elevated: #1a2332;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-warm: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
  --font: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.age-banner {
  background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.age-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.age-banner__badge {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.age-banner a {
  color: #fef3c7;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-deep) 0%,
    rgba(10, 15, 26, 0.92) 45%,
    rgba(10, 15, 26, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  width: 100%;
}

.hero__content--center {
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Después de .hero p: recentrar el bloque (evita que margin:0 lo deje alineado al inicio) */
.hero__content--center p {
  margin-left: auto;
  margin-right: auto;
  max-width: min(40rem, 100%);
  text-align: center;
}

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.casino-grid {
  display: grid;
  gap: 1.5rem;
  /* Una sola columna a todo el ancho del .main (evita columnas “fantasma” con auto-fill) */
  grid-template-columns: minmax(0, 1fr);
}

.casino-grid > .casino-card {
  width: 100%;
  min-width: 0;
}

.casino-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.casino-card--featured {
  padding: 1.35rem 1.5rem 1.5rem;
}

.casino-card__layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .casino-card__layout {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) minmax(130px, 240px);
    gap: 1.75rem;
    align-items: center;
    width: 100%;
  }
}

.casino-card__col--brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.casino-card__ribbons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.casino-card__ribbon {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #0f172a;
}

.casino-card__ribbon--muted {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-weight: 700;
}

.casino-card__promo {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.casino-card__col--cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .casino-card__col--cta {
    align-items: center;
    text-align: center;
  }

  .casino-card__col--cta .btn-primary {
    width: 100%;
    max-width: 220px;
  }
}

.casino-card__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.casino-card__logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.casino-card__rating {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.casino-card__star {
  width: 22px;
  height: 22px;
}

.casino-card__score {
  margin-left: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-warm);
}

.casino-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  background: linear-gradient(135deg, var(--accent-warm), #f59e0b);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.25);
}

.guide {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.guide__lead-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.guide__intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 40rem;
}

.guide-block {
  margin-bottom: 2.25rem;
}

.guide-block:last-child {
  margin-bottom: 0;
}

.guide-block__title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #c4b5fd;
  letter-spacing: -0.01em;
}

.guide-block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.guide-block p:last-child {
  margin-bottom: 0;
}

.faq {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.faq__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.faq__intro {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 40rem;
  line-height: 1.55;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.faq__question {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  padding-right: 2.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
  transform: translateY(-35%) rotate(-135deg);
}

.faq__question:hover {
  color: var(--accent);
}

.faq__answer {
  padding: 0 1.15rem 1.05rem;
  border-top: 1px solid var(--border);
}

.faq__answer p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.disclaimer-18 {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.35) 0%, rgba(10, 15, 26, 0.95) 100%);
  border-top: 1px solid rgba(248, 113, 113, 0.25);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.25rem;
}

.disclaimer-18__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .disclaimer-18__inner {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

.disclaimer-18__badge {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.disclaimer-18__title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fecaca;
}

.disclaimer-18__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.disclaimer-18__link {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.disclaimer-18__link a {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #070b12;
  padding: 2.5rem 1.25rem 6rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.site-footer__rg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.site-footer__rg a {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-footer__rg a:hover {
  opacity: 1;
  text-decoration: none;
}

.site-footer__rg img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.site-footer__legal a {
  color: var(--text-muted);
}

.site-footer__disclaimer {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.site-footer__copy {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.legal-page h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-cookie--primary {
  background: var(--accent);
  color: #0f172a;
  border-color: transparent;
}

.btn-cookie:hover {
  filter: brightness(1.08);
}
