@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cinzel:wght@700;900&family=Rajdhani:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --purple-dark:   #0d0010;
  --purple-deep:   #130018;
  --purple-mid:    #2a0040;
  --purple-bright: #7b2fff;
  --purple-glow:   #a855f7;
  --purple-light:  #c084fc;
  --gold:          #f59e0b;
  --gold-light:    #fcd34d;
  --green-wow:     #a0e860;
  --red-wow:       #ff4444;
  --text-main:     #e2d9f3;
  --text-dim:      #9d86b8;
  --border:        #3d1a5c;
  --card-bg:       #1a0028;
  --card-border:   #4a1a6e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--purple-dark);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(123,47,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168,85,247,0.06) 0%, transparent 50%);
  color: var(--text-main);
  font-family: 'Open Sans', sans-serif;
  min-height: 100vh;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 0, 16, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand .brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--purple-light);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(168,85,247,0.7), 0 0 40px rgba(123,47,255,0.4);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.25rem;
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.25s;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-light);
  background: rgba(123,47,255,0.15);
  border-color: rgba(123,47,255,0.4);
  text-shadow: 0 0 10px rgba(168,85,247,0.5);
}


/* ── CHAPAS NAV HIGHLIGHT ─────────────────────────────────── */
.nav-chapas {
  position: relative;
  color: #ffd060 !important;
  border-color: rgba(255,200,60,0.35) !important;
  background: rgba(255,180,30,0.08) !important;
  animation: chapas-pulse 2.5s ease-in-out infinite;
}
.nav-chapas::after {
  content: 'NUEVO';
  position: absolute;
  top: -8px;
  right: -4px;
  background: #ff6060;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.4;
}
.nav-chapas:hover, .nav-chapas.active {
  color: #ffd060 !important;
  border-color: rgba(255,200,60,0.6) !important;
  background: rgba(255,180,30,0.15) !important;
  text-shadow: 0 0 12px rgba(255,200,60,0.7) !important;
}
@keyframes chapas-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,180,30,0); }
  50% { box-shadow: 0 0 8px 2px rgba(255,180,30,0.3); }
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(123,47,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo { margin-bottom: 2rem; }

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--purple-light);
  text-shadow: 0 0 40px rgba(168,85,247,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-divider {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent);
  margin: 0 auto;
}

/* ── SECTION TITLES ───────────────────────────────────────── */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(245,158,11,0.4);
}

.section-title::before,
.section-title::after {
  content: '  ⟡  ';
  color: var(--purple-bright);
  font-size: 0.9rem;
}

/* ── CARD GRID ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dungeon-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: block;
  position: relative;
}

.dungeon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,47,255,0.06), transparent);
  pointer-events: none;
  border-radius: 10px;
}

.dungeon-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-bright);
  box-shadow: 0 8px 32px rgba(123,47,255,0.3);
}

.dungeon-card:hover .card-arrow { color: var(--purple-light); }

.card-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--purple-mid);
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}

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

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,0,16,0.8) 100%);
}

.card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-bosses {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 3px;
}

.card-arrow {
  font-size: 1.4rem;
  color: var(--border);
  transition: color 0.3s;
  flex-shrink: 0;
}

/* ── CONSTRUCTION PAGE ────────────────────────────────────── */
.construction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 4rem 2rem;
}

.construction-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.construction h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.construction p {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 420px;
  line-height: 1.7;
}

/* ── DUNGEON PAGE ─────────────────────────────────────────── */
.dungeon-page { padding: 2rem; max-width: 1100px; margin: 0 auto; }

.dungeon-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: rgba(123,47,255,0.15);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--purple-light);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.back-btn:hover {
  background: rgba(123,47,255,0.3);
  border-color: var(--purple-bright);
}

.dungeon-page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--purple-light);
  text-shadow: 0 0 30px rgba(168,85,247,0.4);
  letter-spacing: 2px;
}

/* ── BOSS TABLE ───────────────────────────────────────────── */
.boss-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  margin-bottom: 2.5rem;
}

.boss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.boss-table thead tr {
  background: linear-gradient(90deg, var(--purple-mid), rgba(74,26,110,0.6));
  border-bottom: 2px solid var(--purple-bright);
}

.boss-table thead th {
  padding: 0.9rem 1.2rem;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-light);
}

.boss-table tbody tr {
  border-bottom: 1px solid rgba(61,26,92,0.5);
  transition: background 0.2s;
}

.boss-table tbody tr:hover { background: rgba(123,47,255,0.08); }
.boss-table tbody tr:last-child { border-bottom: none; }

.boss-table tbody td {
  padding: 1rem 1.2rem;
  vertical-align: top;
  line-height: 1.6;
}

.boss-name-cell {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.mechanic-cell {
  color: var(--purple-light);
  font-weight: 600;
}

.action-cell { color: var(--text-main); }

/* ── DUNGEON IMAGE SECTION ────────────────────────────────── */
.guide-image-section { margin-bottom: 3rem; }

.guide-image-section h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-image-section h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--purple-bright);
  border-radius: 2px;
}

.guide-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

footer span { color: var(--purple-light); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .navbar-brand .brand-name { font-size: 1rem; }
  .nav-links a { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
  .card-grid { grid-template-columns: 1fr; padding: 1rem; }
  .dungeon-page { padding: 1rem; }
}

/* ── LOGO IMAGE ───────────────────────────────────────────── */
.navbar-brand img,
.hero-logo img {
  border-radius: 12px;
  mix-blend-mode: screen;
  background: transparent;
}

.hero-logo img {
  border-radius: 20px;
  filter: drop-shadow(0 0 30px rgba(123,47,255,0.6));
  mix-blend-mode: screen;
}
