body {
  background-color: #ffffff;
  color: white;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Navbar */
.navbar {
    padding: 0.8rem 1rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color .3s ease;
}

.navbar-nav .nav-link:hover {
    color: #facc15;
}

/* Móvil */
@media (max-width: 991px) {

    .navbar-nav {
        margin-top: 1rem;
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: .25rem 0;
    }

}

/* Estilo de cartas.html */
#contenedor-imagenes img {
  width: 100%;
  border-radius: 20px;
  border: 0px solid transparent;
  transition: transform .2s ease;
}

#contenedor-imagenes img:hover {
  transform: scale(1.05);
}

/* Grid tipo galería */
#contenedor-imagenes {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  background: url('./images/fondo-principal1.png') no-repeat 60% center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

/* Fondo con movimiento */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroZoom 12s ease-in-out infinite alternate;
  transform: scale(1);
}

/* Contenido */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  animation: heroFadeUp 1.4s ease forwards;
}

/* Título */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #000;

}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.25),
      rgba(212, 175, 13, 0.35),
      rgba(255, 255, 255, 0.65));
}

.hero-tag {
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  margin: 10px 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #333;
}

/* caja del título */
.title-box {
  background: #facc15;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 800;
  margin: 10px auto;
  animation: titleRise 1.2s ease forwards;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.35);
}

/* caja del subtítulo */
.subtitle-box {
  background: white;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  margin: 10px auto;
  animation: subtitleFade 2s ease forwards;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Scroll infinito */
#scroll-loader {
  text-align: center;
  padding: 1.5rem 0;
  font-weight: 600;
  color: #facc15;
  display: none;
}

/* Imagen ¿Qué es Skill Blast X?*/
.col-md-6 img {
  border-radius: 20px;
  animation: imageEntrance 1.4s ease forwards,
    floatingImage 4s ease-in-out infinite;
  opacity: 0;
  transform: translateX(60px) scale(0.95);
  transition: transform 0.4s ease;
}

/* Hover */
.col-md-6 img:hover {
  transform: scale(1.03) translateY(-8px);
}

/* Personajes */
.slider-personajes {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
}

/* Buscador de cartas*/
container #buscador-cartas {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 30px auto;
}

input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  border: 2px solid #facc15;
  border-radius: 8px;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
}

.slider-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollInfinite 35s linear infinite;
}

.card {
  width: 280px;
  flex-shrink: 0;
}

.card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  transition: 0.4s ease;
}

.card img:hover {
  transform: scale(1.05);
}

.slider-track:hover {
  animation-play-state: paused;
}

/* Tabla de Banlist */
.carta-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carta-info img {
  height: 90px;
  width: auto;
}

.table td:nth-child(2),
.table th:nth-child(2) {
  text-align: center;
}

.table td:first-child,
.table th:first-child {
  text-align: left;
}

td:first-child {
  width: 280px;
}

.carta-info span {
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 600;
}

.table {
  margin: 0 auto;
  width: 90%;
}

.table td,
.table th {
  text-align: center;
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: #f5f5f5;
}


/* reglas.html */
.codigo-conducta {
  margin-top: 20px;
  padding: 20px;
}

.reglas {
  margin-top: 20px;
  padding: 20px;
}


@keyframes scrollInfinite {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 10px));
  }
}

/* Animación imagen */
.col-md-6 img:hover {
  transform: scale(1.03) translateY(-8px);
}

/* Tamaño Carrusel Personajes */
#carouselPersonajes {
  max-width: 750px;
  margin: auto;
}

.img-carousel {
  height: 420px;
  object-fit: cover;
}

/* Contenedor del buscador */
#buscador-cartas {
  max-width: 500px;
  margin: 20px auto;
}

/* Input de búsqueda */
#buscador {
  height: 45px;
  padding: 0 15px;
  font-size: 16px;
  border-radius: 10px 0 0 10px;
  box-sizing: border-box;
}

/* Botón */
#buscador-cartas .btn {
  height: 45px;
  border-radius: 0 10px 10px 0;
  padding: 0 20px;
}

/* Efecto al seleccionar el input */
#buscador:focus {
  border-color: #0066cc;
  box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
}

/* Ajuste de tamaños para dispositivos*/
/* Tablet */
@media (max-width: 768px) {
  .img-carousel {
    height: 320px;
  }
}

/* Celular */
@media (max-width: 576px) {
  .img-carousel {
    height: 220px;
  }
}

/* Entrada */
@keyframes imageEntrance {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Flotación */
@keyframes floatingImage {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Animaciones */
@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtitleFade {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobile */
@media (max-width: 768px) {
  #carouselPersonajes .carousel-item img {
    height: 260px;
  }
}

/* Separación para móviles */
@media (max-width: 768px) {
  .footer-link {
    display: inline-block;
    margin: 0.4rem 0.75rem;
  }
}

/* Ajustes de Responsividad */
@media (max-width: 1024px) {
  .lg\:w-1\/2 {
    width: 100% !important;
  }

  .lg\:flex-row {
    flex-direction: column !important;
  }
}

@media (max-width: 640px) {
  .sm\:text-3xl {
    font-size: 1.875rem !important;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 80vh;
    background-position: center bottom;
  }
}