/* ---- RESET BÁSICO ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  border: 0 solid transparent;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  line-height: 1.5;
  background-color: #0b1020;
  color: #f9fafb;
}

/* Imágenes responsivas */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---- SISTEMA DE COLORES (igual que tu CSS) ---- */

:root {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
}

/* ---- UTILIDADES GENERALES ---- */

.font-sans {
  font-family: Inter, sans-serif;
}

.min-h-screen {
  min-height: 100vh;
}

.min-h-\[500px\] {
  min-height: 500px;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* Posicionamiento */

.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }

/* Display / Flex / Grid */

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tamaños */

.w-full { width: 100%; }
.w-48 { width: 12rem; }
.w-24 { width: 6rem; }
.w-1\/3 { width: 33.333333%; }
.w-1\/2 { width: 50%; }

.h-48 { height: 12rem; }
.h-24 { height: 6rem; }
.h-auto { height: auto; }

.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-\[220px\] { max-width: 220px; }
.max-w-\[150px\] { max-width: 150px; }

.aspect-video { aspect-ratio: 16 / 9; }

/* Márgenes y padding */

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Espaciado vertical tipo space-y */

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Texto */

.text-center { text-align: center; }

.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }

.font-bold { font-weight: 700; }

.text-white {
  color: rgb(255 255 255);
}
.text-gray-300 {
  color: rgb(209 213 219);
}
.text-yugioh-gold {
  color: rgb(255 215 0);
}

.leading-relaxed { line-height: 1.625; }

/* Listas */

.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* ---- FONDOS / COLORES ---- */

.bg-yugioh-navy {
  background-color: rgb(26 31 44);
}

.bg-card {
  background-color: hsl(var(--card));
}
.text-card-foreground {
  color: hsl(var(--card-foreground));
}

.bg-black\/50 {
  background-color: rgba(0, 0, 0, 0.5);
}
.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Gradientes */

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}
.from-yugioh-navy {
  --tw-gradient-from: #1a1f2c;
}
.to-yugioh-purple {
  --tw-gradient-to: #8b00ff;
}
.from-yugioh-purple {
  --tw-gradient-from: #8b00ff;
}
.to-yugioh-navy {
  --tw-gradient-to: #1a1f2c;
}

/* Tarjetas y bordes */

.rounded-lg { border-radius: 0.5rem; }
.border { border-width: 1px; border-color: hsl(var(--border)); }

.shadow-sm {
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Fondos con arte (mismos que tu CSS original) */

.bg-top {
  background-size: cover;
  background-image: url('/uploads/suda01bg.png');
  background-color: rgba(0,0,0,0.85);
  background-blend-mode: darken;
}

.bg-middle {
  background-size: cover;
  background-image: url('/uploads/suda02bg.png');
  background-color: rgba(0,0,0,0.85);
  background-blend-mode: darken;
}

.bg-middle2 {
  background-size: cover;
  background-image: url('/uploads/suda03bg.png');
  background-color: rgba(0,0,0,0.85);
  background-blend-mode: darken;
}

/* ---- UTILIDADES VARIAS ---- */

.text-gray-300 { color: rgb(209 213 219); }

.text-white { color: #fff; }

.text-yugioh-gold {
  color: rgb(255 215 0);
}

.text-center { text-align: center; }

.object-contain {
  object-fit: contain;
}

.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* Hover animación en las tarjetas de premios */

.transition-transform {
  transition: transform 0.15s cubic-bezier(.4, 0, .2, 1);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}
