﻿/* ==========================================================================
   ANI DIMENSION - VISTA INICIO CSS (Exclusivo para la página de Inicio)
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  padding: 2rem 1rem 3.5rem;
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  min-height: 74vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-brand-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-title .hero-brand-wrap .gradient-text {
  display: inline-block;
}

.beta-tag {
  font-size: 1.15rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.3px;
  vertical-align: baseline;
  display: inline-block;
  line-height: 1;
  font-family: inherit;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
  color: #050608;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.45);
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.75);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--primary);
}

/* Hero Visual / Server Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-backdrop-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(157, 78, 221, 0.15) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.server-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition-normal);
}

.server-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 25px 50px rgba(0, 240, 255, 0.2);
}

.card-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-title-wrap img {
  height: 34px;
  width: auto;
  max-width: 65px;
  object-fit: contain;
  border-radius: 6px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-item {
  background: rgba(10, 12, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.85rem;
  border-radius: 10px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.2rem;
}

.server-notice {
  background: rgba(0, 240, 255, 0.05);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Features Section */
.features-section {
  width: 95%;
  max-width: 95%;
  margin: 4rem auto;
  padding: 0 1rem;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-heading {
  font-size: 2.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.75rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner-section {
  width: 95%;
  max-width: 95%;
  margin: 5rem auto 2rem;
  padding: 0 1rem;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(20, 24, 45, 0.9) 0%, rgba(10, 12, 20, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Responsividad */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-badge-tag {
    margin: 0 auto;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .server-card {
    margin: 0 auto;
  }
}

/* ==========================================================================
   CRONÓMETRO: GRAN INAUGURACIÓN
   ========================================================================== */
.countdown-inauguracion {
  display: none !important;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(250, 204, 21, 0.2);
  backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.cd-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.cd-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  animation: cdPulse 1.6s infinite ease-in-out;
}

@keyframes cdPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.cd-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fde047;
  text-transform: uppercase;
}

.cd-timer-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cd-unit {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  text-align: center;
  min-width: 50px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cd-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  font-family: 'JetBrains Mono', Consolas, monospace;
  line-height: 1;
  display: block;
}

.cd-txt {
  font-size: 0.6rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.06em;
  display: block;
  text-transform: uppercase;
  margin-top: 3px;
}

.cd-sep {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fde047;
  margin-bottom: 0.6rem;
  user-select: none;
}

@media (max-width: 900px) {
  .countdown-inauguracion {
    margin: 0.5rem auto 0;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .cta-banner {
    padding: 2rem 1.25rem;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   DUEL LINKS 3D CARD SHOWCASE & BOOSTER REEL (Estilo Yu-Gi-Oh! Anime)
   ========================================================================== */
.duel-showcase-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 27, 75, 0.8) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 22px;
  padding: 1.5rem 1.25rem 1.2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 240, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.magic-circle-wrap {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -55%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.magic-circle-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(0, 240, 255, 0.7);
}

.ring-outer {
  animation: spinClockwise 28s linear infinite;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35), inset 0 0 25px rgba(168, 85, 247, 0.35);
}

.ring-inner {
  width: 78%;
  height: 78%;
  top: 11%;
  left: 11%;
  border: 1px solid rgba(168, 85, 247, 0.8);
  border-style: dotted;
  animation: spinCounter 20s linear infinite;
}

.magic-circle-core {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(168, 85, 247, 0.15) 50%, transparent 75%);
  filter: blur(15px);
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.duel-card-stage {
  position: relative;
  width: 100%;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  margin: 0.5rem 0 1rem;
  z-index: 2;
  cursor: pointer;
}

.fan-card {
  position: absolute;
  width: 155px;
  height: 226px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fan-card-left {
  transform: translate3d(-78px, 12px, -80px) rotateY(-24deg) scale(0.88);
  opacity: 0.55;
  filter: brightness(0.65) blur(0.5px);
}

.fan-card-right {
  transform: translate3d(78px, 12px, -80px) rotateY(24deg) scale(0.88);
  opacity: 0.55;
  filter: brightness(0.65) blur(0.5px);
}

.main-duel-card {
  position: relative;
  width: 190px;
  height: 278px;
  border-radius: 12px;
  transform-style: preserve-3d;
  animation: cardFloat 4s ease-in-out infinite;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  z-index: 5;
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0px) rotateY(0deg) rotateX(2deg);
  }
  50% {
    transform: translateY(-9px) rotateY(4deg) rotateX(-2deg);
  }
}

.card-inner-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(0, 240, 255, 0.6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.4);
  background: #000;
}

.card-inner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-holo-foil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 15%,
    rgba(255, 255, 255, 0.35) 30%,
    rgba(0, 240, 255, 0.35) 45%,
    rgba(236, 72, 153, 0.35) 55%,
    rgba(250, 204, 21, 0.35) 65%,
    transparent 80%
  );
  background-size: 250% 250%;
  mix-blend-mode: color-dodge;
  animation: holoFoilGlitter 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes holoFoilGlitter {
  0% { background-position: 0% 0%; opacity: 0.4; }
  50% { background-position: 100% 100%; opacity: 0.85; }
  100% { background-position: 0% 0%; opacity: 0.4; }
}

.card-glow-aura {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, rgba(168, 85, 247, 0.25) 50%, transparent 70%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
  animation: pulseAura 3s ease-in-out infinite alternate;
}

@keyframes pulseAura {
  from { opacity: 0.6; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.05); }
}

.card-rarity-chip {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(250, 204, 21, 0.7);
  border-radius: 999px;
  color: #fde047;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.card-revealing {
  animation: revealFlip 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes revealFlip {
  0% {
    transform: scale(0.85) rotateY(90deg);
    filter: brightness(2.5);
  }
  50% {
    filter: brightness(2);
  }
  100% {
    transform: scale(1) rotateY(0deg);
    filter: brightness(1);
  }
}

.duel-card-hud {
  position: relative;
  z-index: 3;
  width: 100%;
  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.85rem;
}

.hud-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.hud-badge-tcg {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hud-stars {
  color: #fbbf24;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.7);
}

.hud-card-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.2px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-card-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.server-stats-integrated {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  background: rgba(10, 15, 30, 0.65);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  font-size: 0.74rem;
}

.stat-pill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-discord-btn:hover {
  background: rgba(88, 101, 242, 0.45) !important;
  border-color: #5865F2 !important;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.75) !important;
  transform: translateY(-1px);
}
