/* ===========================
   Design System — La Suerte de Gredos
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --blue-900: #0c2340;
  --blue-800: #14365a;
  --blue-700: #1a4a7a;
  --blue-600: #2563a0;
  --blue-500: #3b82c4;
  --gold-600: #a8892a;
  --gold-500: #c5a44e;
  --gold-400: #d4b96a;
  --gold-300: #e3cf8e;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --red-500: #ef4444;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ===========================
   Reset & Base
   =========================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--blue-900);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--blue-900);
  box-shadow: 0 4px 15px rgba(197, 164, 78, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  box-shadow: 0 6px 25px rgba(197, 164, 78, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-900);
  border: 2px solid var(--blue-900);
}

.btn-secondary:hover {
  background: var(--blue-900);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--blue-900);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--blue-900);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 13px;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 26px 0;
  transition: all var(--transition-normal);
}

.navbar.transparent {
  background: transparent;
}

.navbar.scrolled {
  background: rgba(12, 35, 64, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-brand .brand-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  line-height: 1.1;
}

.nav-brand .brand-tagline {
  font-size: 14px;
  color: var(--gold-400);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 46px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: width var(--transition-normal);
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta .btn {
  padding: 14px 32px;
  font-size: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(12, 35, 64, 0.85) 0%,
      rgba(12, 35, 64, 0.6) 40%,
      rgba(12, 35, 64, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 164, 78, 0.2);
  border: 1px solid rgba(197, 164, 78, 0.4);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--gold-300);
  font-weight: 500;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p .highlight {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-400);
  display: block;
}

.hero-stat .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ===========================
   Section Titles
   =========================== */

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 164, 78, 0.1);
  color: var(--gold-600);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===========================
   Games Section
   =========================== */

.games {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.section-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--blue-700));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-card .card-icon {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: transparent;
}

.game-card .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blue-900);
}

.game-card .card-desc {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.5;
}

.game-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  transition: all var(--transition-fast);
}

.game-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.game-card:hover .card-link {
  color: var(--blue-700);
}

.game-card:hover .card-link svg {
  transform: translateX(4px);
}

/* Card accent colors */
.game-card.loteria {
  --card-accent: #1a4a7a;
  --card-bg: rgba(26, 74, 122, 0.08);
}

.game-card.euromillones {
  --card-accent: #1e5fa6;
  --card-bg: rgba(30, 95, 166, 0.08);
}

.game-card.primitiva {
  --card-accent: #16a34a;
  --card-bg: rgba(22, 163, 74, 0.08);
}

.game-card.bonoloto {
  --card-accent: #dc2626;
  --card-bg: rgba(220, 38, 38, 0.08);
}

.game-card.gordo {
  --card-accent: #7c3aed;
  --card-bg: rgba(124, 58, 237, 0.08);
}

.game-card.quiniela {
  --card-accent: #ea580c;
  --card-bg: rgba(234, 88, 12, 0.08);
}

.game-card.quinigol {
  --card-accent: #0d9488;
  --card-bg: rgba(13, 148, 136, 0.08);
}

.game-card.eurodreams {
  --card-accent: #0f766e;
  --card-bg: rgba(15, 118, 110, 0.08);
}

.game-card.lototurf {
  --card-accent: #15803d;
  --card-bg: rgba(21, 128, 61, 0.08);
}

.game-card.quintuple {
  --card-accent: #b45309;
  --card-bg: rgba(180, 83, 9, 0.08);
}

/* ===========================
   History Section
   =========================== */

.history {
  padding: var(--section-padding);
  background: var(--white);
}

.history-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.history-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

.history-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-text p {
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.7;
}

.history-carousel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.history-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  font-weight: 700;
}

.history-carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.history-carousel-viewport {
  overflow: hidden;
}

.history-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-slide {
  min-width: 100%;
  margin: 0;
  background: var(--gray-50);
}

.history-slide img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: contain;
  background: var(--gray-50);
  padding: 18px;
}

.history-slide figcaption {
  padding: 14px 20px 18px;
  color: var(--blue-900);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.history-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px 20px;
  background: var(--white);
}

.history-carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-300);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.history-carousel-dot.active {
  width: 28px;
  background: var(--gold-500);
}

/* ===========================
   Contact Section
   =========================== */

.contact {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  padding: 40px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  border-radius: var(--radius-xl);
  color: var(--white);
}

.contact-info h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-info>p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item .icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item .item-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-item .item-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.contact-item .item-value a {
  color: var(--white);
}

.contact-item .item-value a:hover {
  color: var(--gold-400);
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-fast);
}

.contact-socials a:hover {
  background: var(--gold-500);
  color: var(--blue-900);
  transform: translateY(-2px);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.contact-form>p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-800);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 196, 0.15);
  background: var(--white);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  width: 100%;
}

.form-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.4;
}

.form-feedback.success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.form-feedback.error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

/* ===========================
   Map Section
   =========================== */

.map-section {
  width: 100%;
  background: var(--gray-100);
}

.map-container {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.4s ease;
}

.map-container:hover iframe {
  filter: grayscale(0%) contrast(1);
}

.cookie-map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.94), rgba(20, 54, 90, 0.9));
}

.cookie-map-placeholder[hidden] {
  display: none;
}

.cookie-map-placeholder strong {
  font-family: var(--font-heading);
  font-size: 22px;
}

.cookie-map-placeholder span {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.82);
}

/* ===========================
   Cookie Consent
   =========================== */

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent.is-collapsed {
  inset: auto;
  left: 20px;
  bottom: 18px;
  padding: 0;
}

.cookie-consent.is-collapsed .cookie-consent__backdrop,
.cookie-consent.is-collapsed .cookie-consent__dialog {
  display: none;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.cookie-consent__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.28);
  pointer-events: auto;
}

.cookie-consent__dialog {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px 30px 26px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
}

.cookie-consent__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--gray-900);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent__header {
  display: grid;
  grid-template-columns: 150px 1fr 34px;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.cookie-consent__logo {
  width: 132px;
  height: 58px;
  object-fit: contain;
}

.cookie-consent__header h2 {
  justify-self: center;
  padding: 0;
  color: var(--gray-800);
  background: transparent;
  font-size: 20px;
  font-weight: 700;
}

.cookie-consent__text {
  margin-bottom: 24px;
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.55;
}

.cookie-consent__preferences {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.cookie-consent__preferences[hidden] {
  display: none;
}

.cookie-consent__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 18px 18px;
  background: var(--gray-100);
}

.cookie-consent__row-title {
  border: 0;
  background: transparent;
  color: var(--gray-800);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.cookie-consent__always {
  color: var(--green-600);
  font-size: 16px;
  font-weight: 700;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 30px;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cookie-switch span::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--transition-fast);
}

.cookie-switch input:checked+span {
  background: var(--blue-600);
}

.cookie-switch input:checked+span::before {
  transform: translateX(20px);
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cookie-consent__actions .btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 18px;
}

.cookie-consent__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-size: 14px;
}

.cookie-consent__links a {
  color: var(--blue-600);
  text-decoration: underline;
}

.cookie-consent__manage {
  position: fixed;
  left: 20px;
  bottom: 18px;
  z-index: 0;
  border: 0;
  border-radius: var(--radius-full);
  padding: 10px 14px;
  background: var(--blue-900);
  color: var(--white);
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
}

.map-legend {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--gray-800);
  transition: box-shadow var(--transition-fast);
  z-index: 2;
  max-width: 340px;
}

.map-legend:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.map-legend-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-legend-content strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-900);
}

.map-legend-content span {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}

.map-legend-action {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.map-legend:hover .map-legend-action {
  background: var(--blue-600);
  color: var(--white);
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: var(--blue-900);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  margin-top: 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.footer-bottom-links a:hover {
  color: var(--gold-400);
}

/* ===========================
   Scroll Animations
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--blue-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 24px;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat .number {
    font-size: 24px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .history-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    padding: 12px;
  }

  .cookie-consent__dialog {
    padding: 24px 20px 22px;
  }

  .cookie-consent__header {
    grid-template-columns: 1fr 34px;
    gap: 12px;
    margin-bottom: 20px;
  }

  .cookie-consent__logo {
    display: none;
  }

  .cookie-consent__header h2 {
    justify-self: start;
    font-size: 18px;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions .btn {
    font-size: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .history-slide img {
    height: 340px;
    padding: 12px;
  }

  .history-carousel-header {
    padding: 16px;
  }

  .hero-stat {
    text-align: left;
  }
}

/* ===========================
   Mobile Nav Overlay
   =========================== */

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ===========================
   Legal Pages
   =========================== */

.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
  background: var(--gray-50);
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 8px;
}

.legal-update {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-900);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-800);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--blue-600);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--blue-700);
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cookies-table thead {
  background: var(--blue-900);
  color: var(--white);
}

.cookies-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookies-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.cookies-table tbody tr:last-child td {
  border-bottom: none;
}

.cookies-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

@media (max-width: 768px) {
  .legal-page {
    padding: 120px 0 60px;
  }

  .cookies-table {
    font-size: 13px;
  }

  .cookies-table th,
  .cookies-table td {
    padding: 10px 12px;
  }
}
