/* =========================================
   EL BARRIO RP - Custom CSS Enhancement
   ========================================= */

:root {
  --gold: #ffbb00;
  --gold-dark: #e6a800;
  --orange: #ff8800;
  --dark-bg: #010a0f;
  --dark-card: #01111a;
  --dark-border: rgba(255, 187, 0, 0.25);
  --text-light: #c8d8e8;
}

/* ---- GLOBAL ---- */
body {
  background-color: var(--dark-bg);
  scroll-behavior: smooth;
}

/* ---- NAVBAR ---- */
.navbar.navbar-dropdown {
  background: rgba(1, 10, 15, 0.97) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  transition: all 0.3s ease;
}

.navbar-caption {
  font-family: 'Fredoka One', cursive !important;
  font-size: 1.3rem !important;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-connect-nav {
  background: linear-gradient(135deg, var(--gold), var(--orange)) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 15px rgba(255, 187, 0, 0.3);
  margin-left: 8px;
}

.btn-connect-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 187, 0, 0.55) !important;
  filter: brightness(1.1);
}

/* ---- HERO SECTION ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(1, 10, 15, 0.95) 0%,
    rgba(1, 17, 26, 0.85) 50%,
    rgba(30, 15, 0, 0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 187, 0, 0.12);
  border: 1px solid rgba(255, 187, 0, 0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

.hero-title {
  font-family: 'Fredoka One', cursive !important;
  font-size: clamp(3rem, 7vw, 6rem) !important;
  line-height: 1.1 !important;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold) 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px !important;
  filter: drop-shadow(0 0 40px rgba(255,187,0,0.2));
}

.hero-subtitle {
  color: var(--text-light) !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  max-width: 520px;
  margin-bottom: 32px !important;
}

/* Stats bar */
.hero-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--dark-border);
  align-self: center;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #000 !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255,187,0,0.35);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-hero-primary:hover::before { left: 100%; }

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,187,0,0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Hero logo glow */
.hero-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,187,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  from { transform: scale(0.9); opacity: 0.6; }
  to   { transform: scale(1.1); opacity: 1; }
}

.hero-logo-wrap img {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 0 30px rgba(255,187,0,0.4));
  animation: float 6s ease-in-out infinite;
}

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

/* ---- SECTION TITLES ---- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  height: 1px;
  width: 30px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title-big {
  font-family: 'Fredoka One', cursive !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  color: #fff !important;
  margin-bottom: 12px !important;
}

.section-title-big span {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- FEATURE CARDS (¿Qué es?) ---- */
.features-section {
  background: var(--dark-bg);
  padding: 100px 0;
}

.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover { 
  transform: translateY(-6px);
  border-color: rgba(255,187,0,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255,187,0,0.15), rgba(255,136,0,0.08));
  border: 1px solid rgba(255,187,0,0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h4 {
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}

.feature-card p {
  color: var(--text-light) !important;
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* ---- HOW TO JOIN SECTION ---- */
.how-section {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #020d14 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,187,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.step-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,187,0,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.step-number-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: #000;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(255,187,0,0.35);
}

.step-card h4 {
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}

.step-card p {
  color: var(--text-light) !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.step-connector {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.4rem;
  opacity: 0.4;
  z-index: 2;
}

/* ---- CTA CONNECT SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, #01111a, #020d14);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,187,0,0.06) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-inner h2 {
  font-family: 'Fredoka One', cursive !important;
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  color: #fff !important;
  margin-bottom: 12px !important;
}

.cta-inner p {
  color: var(--text-light) !important;
  font-size: 1.05rem !important;
  margin-bottom: 32px !important;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Server IP badge */
.server-ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 20px;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 20px;
  font-family: monospace;
  letter-spacing: 1px;
}

.server-ip-badge span.label {
  color: var(--gold);
  font-weight: 700;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* ---- STORY SECTION ---- */
.story-section {
  background: var(--dark-bg);
  padding: 100px 0;
}

.story-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 32px;
  font-size: 10rem;
  color: rgba(255,187,0,0.05);
  font-family: 'Fredoka One', cursive;
  line-height: 1;
  pointer-events: none;
}

.story-card h5 {
  color: var(--gold) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px !important;
}

.story-card p {
  color: var(--text-light) !important;
  font-size: 1rem !important;
  line-height: 1.8 !important;
}

/* ---- DISCORD CTA ---- */
.discord-section {
  background: linear-gradient(135deg, #5865f2 0%, #404eed 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.discord-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.discord-section h3 {
  color: #fff !important;
  font-family: 'Fredoka One', cursive !important;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  margin-bottom: 8px !important;
}

.discord-section p {
  color: rgba(255,255,255,0.8) !important;
  font-size: 1rem !important;
  margin-bottom: 28px !important;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #5865f2 !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-discord:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ---- FAQ ---- */
.faq-section {
  background: var(--dark-bg);
  padding: 100px 0;
}

.faq-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-card:hover {
  border-color: rgba(255,187,0,0.4);
}

.faq-card .card-header {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.faq-card .panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  text-decoration: none !important;
}

.faq-card .panel-title-edit {
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

.faq-card .sign {
  color: var(--gold) !important;
  font-size: 1.2rem !important;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-card .panel-title:not(.collapsed) .sign {
  transform: rotate(180deg);
}

.faq-card .panel-body {
  padding: 0 24px 20px !important;
}

.faq-card .panel-text {
  color: var(--text-light) !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* ---- FOOTER ---- */
.footer-main {
  background: #000a0f;
  border-top: 1px solid var(--dark-border);
  padding: 60px 0 30px;
}

.footer-logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 12px;
}

.footer-desc {
  color: #6b8a9a !important;
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
  max-width: 280px;
}

.footer-heading {
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin-bottom: 16px !important;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #6b8a9a !important;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: #3d5a6a !important;
  font-size: 0.82rem !important;
  margin: 0 !important;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b8a9a !important;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255,187,0,0.12);
  border-color: rgba(255,187,0,0.4);
  color: var(--gold) !important;
  transform: translateY(-2px);
}

/* ---- RULES PAGE ---- */
.rules-section {
  background: var(--dark-bg);
  padding: 80px 0;
}

.rules-sidebar {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 100px;
}

.rules-sidebar h5 {
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin-bottom: 16px !important;
}

.rules-nav .nav-link {
  color: #8aaabb !important;
  font-size: 0.88rem;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  margin-bottom: 4px;
  transition: all 0.2s ease !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  text-align: left;
  width: 100%;
}

.rules-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255,187,0,0.08) !important;
  border-color: rgba(255,187,0,0.2) !important;
}

.rules-nav .nav-link.active {
  color: #000 !important;
  background: linear-gradient(135deg, var(--gold), var(--orange)) !important;
  border-color: transparent !important;
  font-weight: 700 !important;
}

.rules-content-box {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 44px;
  min-height: 500px;
}

.rules-content-box h2 {
  font-family: 'Fredoka One', cursive !important;
  font-size: 1.8rem !important;
  color: var(--gold) !important;
  border-bottom: 2px solid rgba(255,187,0,0.2);
  padding-bottom: 16px;
  margin-bottom: 28px !important;
}

.rules-content-box p {
  color: var(--text-light) !important;
  font-size: 0.92rem !important;
  line-height: 1.75 !important;
  margin-bottom: 12px !important;
}

.rules-content-box strong {
  color: #fff !important;
}

.rules-content-box li {
  color: var(--text-light) !important;
  font-size: 0.92rem !important;
  line-height: 1.75 !important;
  margin-bottom: 8px !important;
}

/* ---- LEGAL PAGES (privacy, tos, imprint) ---- */
.legal-section {
  background: var(--dark-bg);
  padding: 80px 0;
}

.legal-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 52px;
}

.legal-card h3 {
  font-family: 'Fredoka One', cursive !important;
  font-size: 2rem !important;
  color: #fff !important;
  margin-bottom: 32px !important;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255,187,0,0.2);
}

.legal-card h4 {
  color: var(--gold) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-top: 28px !important;
  margin-bottom: 10px !important;
}

.legal-card p, .legal-card li {
  color: var(--text-light) !important;
  font-size: 0.92rem !important;
  line-height: 1.8 !important;
}

.legal-card strong {
  color: #fff !important;
}

.legal-card ul {
  padding-left: 20px;
}

/* ---- HERO PAGE HEADER (subpages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #020e18 100%);
  border-bottom: 1px solid var(--dark-border);
  /* Cambiamos el primer valor (padding-top) de 140px a 100px para subirlo */
  padding: 100px 0 60px; 
  text-align: center;
  position: relative;
  /* CAMBIO CLAVE: Cambia 'hidden' por 'visible' para que no corte la G */
  overflow: visible; 
}



.page-hero::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(255,187,0,0.08) 0%, transparent 70%);
}

.page-hero h1 {
  font-family: 'Fredoka One', cursive !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* CAMBIO CLAVE: Aumentamos line-height para dar espacio a la letra */
  line-height: 1.3 !important; 
  margin-bottom: 8px !important;
}

.page-hero p {
  color: var(--text-light) !important;
  font-size: 1rem !important;
  max-width: 500px;
  margin: 0 auto 24px !important;
}

.page-hero .breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.page-hero .breadcrumb-link:hover { opacity: 0.7; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .story-card { padding: 32px 24px; }
  .legal-card { padding: 32px 24px; }
  .rules-content-box { padding: 28px 20px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
