/* ==========================================================================
   RESET BÁSICO Y VARIABLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #05020a;
  --card-bg: linear-gradient(145deg, #130a24, #080310);
  --purple-accent: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.6);
  --purple-border: rgba(168, 85, 247, 0.35);
  --text-main: #ffffff;
  --text-sub: #e9d5ff;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. PANTALLA DE BIENVENIDA (INTRO ANIMADA CON LUNA MORADA)
   ========================================================================== */
#welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: url('EXCELENTE.jpg') no-repeat center center / cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
}

#welcome-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(13, 6, 26, 0.5) 0%, rgba(5, 2, 10, 0.85) 100%);
}

.welcome-text-container {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.welcome-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #e9d5ff;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInText 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
  text-shadow: 0 0 20px var(--purple-glow);
}

.welcome-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0;
  animation: fadeInText 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s, pulseGlow 2.5s infinite alternate 2.7s;
  text-shadow: 0 0 30px #a855f7, 0 0 60px #9333ea, 0 0 90px rgba(147, 51, 234, 0.4);
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(25px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pulseGlow {
  from { text-shadow: 0 0 30px #a855f7, 0 0 60px #9333ea; }
  to { text-shadow: 0 0 45px #c084fc, 0 0 85px #a855f7, 0 0 110px rgba(168, 85, 247, 0.6); }
}

/* ==========================================================================
   2. BARRA DE NAVEGACIÓN Y ENCABEZADO
   ========================================================================== */
.top-navbar {
  width: 100%;
  max-width: 1300px;
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--purple-border);
  background: rgba(13, 6, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.nav-logo {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--purple-accent);
  box-shadow: 0 0 15px var(--purple-glow);
  transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

.nav-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 12px var(--purple-glow);
}

/* ENCABEZADO Y BANNER BIENVENIDA */
.hero-header {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  padding: 40px 20px 15px 20px;
}

.main-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 25px;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
}

.banner-container {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(147, 51, 234, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.banner-container:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(168, 85, 247, 0.5);
}

.welcome-banner {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-container:hover .welcome-banner {
  transform: scale(1.02);
}

/* ==========================================================================
   3. CATÁLOGO / TIENDA (BANNERS HORIZONTALES CON DEGRADADO)
   ========================================================================== */
.store-container {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
}

.section-title {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 3px;
  margin-bottom: 40px;
  color: var(--text-sub);
  text-shadow: 0 0 20px var(--purple-glow);
}

.ranks-grid {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.rank-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--purple-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.rank-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.85);
  box-shadow: 0 16px 45px rgba(147, 51, 234, 0.45);
}

.rank-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000;
}

.rank-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-card:hover .rank-img {
  transform: scale(1.04);
}

/* DEGRADADO SUTIL EN EL INFERIOR DE LA IMAGEN 16:9 */
.rank-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(13, 6, 26, 0.98) 0%, rgba(13, 6, 26, 0.6) 65%, transparent 100%);
  pointer-events: none;
}

/* TÍTULO BLANCO SOBRE EL DEGRADADO EN LA IMAGEN */
.rank-overlay-title {
  position: absolute;
  bottom: 18px;
  left: 30px;
  z-index: 2;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0,0,0,0.95), 0 0 12px rgba(168, 85, 247, 0.9);
}

.rank-details {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: rgba(13, 6, 26, 0.96);
  flex-wrap: wrap;
}

.rank-info-left {
  flex: 1;
  min-width: 250px;
}

.rank-short-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 8px;
  font-style: italic;
  line-height: 1.5;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-accent);
  text-shadow: 0 0 10px var(--purple-glow);
}

.btn-buy {
  display: inline-block;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 13px 32px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.btn-buy:hover {
  background-color: #e9d5ff;
  transform: scale(1.04);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.6);
}

.btn-buy:active {
  transform: scale(0.98);
}

/* FOOTER */
.main-footer {
  margin-top: auto;
  text-align: center;
  padding: 35px 20px;
  color: #6b7280;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  background: rgba(5, 2, 10, 0.5);
}