/* ============================================================
   assets/css/main.css — ConstruyendoRD (Edición Pure OLED Black)
   Paleta: Negro Absoluto (#000000) / Blanco Puro / Verde Neón
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* PURE BLACK PALETTE */
  --bg-black:       #000000;
  --bg-surface:     #0a0a0a;
  --bg-surface-2:   #121212;
  --bg-card:        rgba(15, 15, 15, 0.9);
  --bg-card-hover:  rgba(24, 24, 24, 0.95);
  
  /* NEON EMERALD ACCENTS */
  --emerald:        #00e676;
  --emerald-light:  #69f0ae;
  --emerald-dark:   #00b248;
  --emerald-glow:   rgba(0, 230, 118, 0.4);
  --emerald-soft:   rgba(0, 230, 118, 0.1);
  
  /* RD ACCENT COLORS */
  --rd-red:         #ff3b30;
  --rd-blue:        #007aff;
  
  /* HIGH CONTRAST WHITE */
  --white:          #ffffff;
  --white-90:       rgba(255, 255, 255, 0.90);
  --white-70:       rgba(255, 255, 255, 0.70);
  --white-40:       rgba(255, 255, 255, 0.40);
  --white-10:       rgba(255, 255, 255, 0.10);
  --white-05:       rgba(255, 255, 255, 0.05);
  
  /* BORDERS */
  --border-subtle:  rgba(255, 255, 255, 0.1);
  --border-emerald: rgba(0, 230, 118, 0.35);
  
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ========= VIDEO BACKGROUND ========= */
.video-bg-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.video-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
}

/* Gradient overlay: strong black at bottom, semi-transparent on top */
.video-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.7) 0%,
      rgba(0,0,0,0.55) 40%,
      rgba(0,0,0,0.75) 70%,
      rgba(0,0,0,0.97) 100%
    );
}

/* Hero section when video is active — transparent, no solid bg */
.hero-with-video {
  background: transparent !important;
}

/* Sections below stay fully black */
.container-wide {
  position: relative;
  z-index: 1;
}

/* Subtle Emerald Ambient Radial in Black */
body::before {
  content: '';
  position: fixed;
  top: -180px; left: 15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: 0; right: 5%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 178, 72, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: #222222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald-dark); }

/* ========= NAVBAR ========= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 2.5rem;
  height: 76px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 48px;
}
.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-link {
  color: var(--white-70);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: var(--white); background: var(--white-05); }
.nav-link.active {
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(0, 230, 118, 0.3);
  font-weight: 700;
}

.navbar-cta {
  background: var(--white);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-cta:hover {
  background: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--emerald-glow);
}

/* ========= HERO SECTION ========= */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 3rem;
  align-items: start;
}

.hero-main { position: relative; }

/* Top Pill Badge */
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--border-emerald);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.15);
}
.hero-pill-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.4); }
}

/* Hero Typography */
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.hero-title .white-text { color: var(--white); display: block; }
.hero-title .gradient-green {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #69f0ae 40%, #00e676 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(0, 230, 118, 0.4);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--white-90);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--white-70);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

/* Huge Counter Banner in Deep Black */
.hero-counter-card {
  background: linear-gradient(135deg, rgba(15, 25, 20, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
  border: 1.5px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(0, 230, 118, 0.05);
}

.counter-digits {
  font-family: 'Outfit', sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 0 30px var(--emerald-glow);
}

.counter-tag-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

.counter-badge-live {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid var(--emerald);
  color: var(--emerald-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 4 Key Stat Cards */
.hero-stats-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.stat-box-modern {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: all 0.25s;
}
.stat-box-modern:hover {
  background: var(--bg-surface-2);
  border-color: var(--emerald);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0,230,118,0.2);
}

.s-box-icon { font-size: 1.6rem; margin-bottom: 6px; }
.s-box-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
}
.s-box-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white-70);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* ========= REGISTRATION PANEL (Sticky Lateral) ========= */
.reg-panel-wrap {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reg-panel-card {
  background: #0d0d0d;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 230, 118, 0.1);
}

.reg-top-badge {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.reg-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.reg-card-sub {
  text-align: center;
  font-size: 0.82rem;
  color: var(--white-70);
  margin-bottom: 1.5rem;
}

.f-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.f-icon-wrap .icon {
  position: absolute;
  left: 14px;
  color: var(--emerald);
  font-size: 0.95rem;
  pointer-events: none;
}

.form-control-dark {
  width: 100%;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  padding: 12px 14px 12px 42px;
  transition: all 0.2s;
  outline: none;
}
.form-control-dark:focus {
  border-color: var(--emerald);
  background: #1c1c1c;
  box-shadow: 0 0 20px var(--emerald-glow);
}
.form-control-dark option { background: #121212; color: white; }

textarea.form-control-dark {
  resize: vertical;
  min-height: 75px;
  padding-left: 14px;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-emerald-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #000000;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 25px var(--emerald-glow);
  margin-top: 0.5rem;
}
.btn-emerald-cta:hover {
  background: linear-gradient(135deg, #ffffff, var(--emerald-light));
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(0, 230, 118, 0.6);
}

/* Activity Feed Card in Deep Black */
.activity-card-black {
  background: #0a0a0a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}

.act-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.act-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.act-row-item:last-child { border-bottom: none; }

.act-avatar-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.act-usr-name { font-size: 0.82rem; font-weight: 700; color: var(--white); }
.act-usr-prov { font-size: 0.72rem; color: var(--white-70); }
.act-usr-time { margin-left: auto; font-size: 0.7rem; color: var(--emerald); white-space: nowrap; }

/* ========= SECTIONS BELOW ========= */
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2.5rem 5rem;
}

.box-section-dark {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 3.5rem;
}

.center-heading-group {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.badge-pill-sub {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.big-title-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
}

/* MAP STYLING IN BLACK */
.map-wrap-box {
  position: relative;
  background: #050505;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}
.map-svg-element { width: 100%; height: auto; display: block; max-height: 480px; }
.map-province-path {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.5;
  cursor: pointer;
  transition: all 0.2s;
}
.map-province-path:hover {
  opacity: 0.9;
  filter: brightness(1.4) drop-shadow(0 0 10px rgba(0,230,118,0.7));
}

.map-tooltip-dark {
  position: absolute;
  background: #000000;
  border: 1.5px solid var(--emerald);
  border-radius: 10px;
  padding: 10px 14px;
  pointer-events: none;
  z-index: 100;
  min-width: 170px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}
.tooltip-name { font-weight: 800; font-size: 0.9rem; color: var(--emerald); }
.tooltip-count { font-size: 1.15rem; font-weight: 900; color: var(--white); margin: 2px 0; }
.tooltip-pct { font-size: 0.72rem; color: var(--white-70); }

.map-legend-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.legend-pill { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--white-90); }
.legend-color-box { width: 14px; height: 14px; border-radius: 3px; }

/* TABLE RANKING */
.table-ranking-dark { width: 100%; border-collapse: collapse; }
.table-ranking-dark th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--emerald);
  border-bottom: 1px solid var(--border-subtle);
}
.table-ranking-dark td {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.table-ranking-dark tr:hover td { background: rgba(0, 230, 118, 0.06); }

.pos-trophy { font-family: 'Outfit', sans-serif; font-weight: 900; }
.pos-trophy.gold   { color: #FFD700; font-size: 1.15rem; }
.pos-trophy.silver { color: #E2E8F0; font-size: 1.15rem; }
.pos-trophy.bronze { color: #CD7F32; font-size: 1.15rem; }

/* AMBASSADOR PANEL */
.ref-ambassador-box {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.ref-stats-3col { display: flex; justify-content: space-around; margin-bottom: 1.2rem; }
.ref-stat-item { text-align: center; }
.ref-stat-digit { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 900; color: var(--white); }
.ref-stat-tag { font-size: 0.68rem; color: var(--white-70); text-transform: uppercase; }

.copy-input-group { display: flex; gap: 0.5rem; }
.copy-input-ctrl {
  flex: 1;
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--white-90);
  font-size: 0.78rem;
  padding: 9px 12px;
  outline: none;
}
.btn-copy-action {
  background: var(--emerald);
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-copy-action:hover { background: #ffffff; }

.share-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.8rem;
}
.btn-share-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #141414;
  border: 1px solid var(--border-subtle);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 11px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-share-social:hover { transform: translateY(-2px); border-color: var(--emerald); }
.btn-share-social.wa { background: rgba(37, 211, 102, 0.15); border-color: #25d366; color: #25d366; }
.btn-share-social.fb { background: rgba(24, 119, 242, 0.15); border-color: #1877f2; color: #1877f2; }
.btn-share-social.tw { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

/* TOAST */
.toast-notice {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: #000000;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 900;
  z-index: 99999;
  box-shadow: 0 10px 35px rgba(0,230,118,0.5);
  animation: toastSlide 0.3s ease;
}
@keyframes toastSlide {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* FOOTER */
footer {
  background: var(--bg-black);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .navbar-nav { display: none; }
  .hero-stats-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding: 1.8rem 1rem; }
  .counter-digits { font-size: 2.6rem; }
  .hero-counter-card { flex-direction: column; gap: 1rem; text-align: center; }
  .form-grid-2col { grid-template-columns: 1fr; }
}
