:root {
  --bg-900: #0b0c12;
  --bg-800: #111320;
  --bg-700: #171a2b;
  --text: #e6f1ff;
  --muted: #9bb0c8;
  --neon: #00f7ff;
  --neon-2: #7c4dff;
}

/* ===== Global ===== */
html, body {
  scroll-behavior: smooth;
  background: var(--bg-900);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
}

.page-wrapper {
  overflow-x: hidden;
}


img { max-width: 100%; display: block; }
.py-6 { padding-block: 5rem; }
.bg-dark-900 { background: var(--bg-800); }
.section-title { font-family: 'Orbitron', sans-serif; letter-spacing: .5px; }
.section-sub { color: var(--muted); }

/* ===== Glassy Navbar ===== */
.glass-nav {
  backdrop-filter: saturate(150%) blur(10px);
  background: rgba(10,12,18,.45);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar .brand-text { font-family: 'Orbitron', sans-serif; }
.navbar .nav-link { color: #cfe4ff; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--neon); }

/* ===== Buttons ===== */
.btn-neon {
  --bs-btn-bg: var(--neon);
  --bs-btn-border-color: transparent;
  --bs-btn-color: #051015;
  --bs-btn-hover-bg: #0ff;
  --bs-btn-hover-color: #051015;
  --bs-btn-padding-y: .6rem;
  --bs-btn-padding-x: 1.25rem;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0,247,255,.35);
}
.btn-neon:active { transform: scale(.99); transition: transform .06s; }

.btn-ghost {
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 999px;
  background: transparent;
}
.btn-ghost:hover { border-color: #fff; box-shadow: 0 0 16px rgba(255,255,255,.2); }

.link-more { color: var(--muted); text-decoration: none; }
.link-more:hover { color: #fff; }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-media, #particles {
  position: absolute;
  inset: 0;
}
.hero-media { z-index: -2; }
#particles { z-index: 1; pointer-events: none; }

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.99) saturate(1.8);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,9,14,.2), rgba(7,9,14,.7) 70%, rgba(7,9,14,1));
  z-index: -1;
}

.glitch {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: .5px;
  display: inline-block;
  position: relative;
  text-shadow: 0 0 28px rgba(0,247,255,.45);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  mix-blend-mode: screen;
  opacity: .6;
}
.glitch::before { transform: translate(2px,-2px); color: #ff2ea6; }
.glitch::after { transform: translate(-2px,2px); color: #00f7ff; }

.hero-cta-sub .btn { gap:.5rem; display:inline-flex; align-items:center; opacity:.9; }
.scroll-down {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1.25rem;
  opacity: .75;
  text-decoration: none;
}
.scroll-down:hover { opacity: 1; color: #fff; }

/* ===== Feature Cards ===== */
.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card i { font-size: 1.8rem; color: var(--neon); }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }

/* ===== News ===== */
.news-card {
  background: var(--bg-800);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
}
.news-card img {
  width: 100%; height: 180px;
  object-fit: cover;
  filter: saturate(1.05);
}
.news-card .content { padding: 1rem 1.2rem; }
.news-card h5 { margin: .4rem 0; }
.news-card time { color: var(--muted); font-size: .85rem; }
.badge.bg-gradient { background: linear-gradient(45deg,var(--neon),var(--neon-2)); }

/* ===== Media Swipers ===== */
.hero-swiper, .media-swiper {
  --swiper-theme-color: var(--neon);
  --swiper-pagination-bullet-inactive-color: #6f7d95;
}
.hero-swiper img { width: 100%; height: 320px; object-fit: cover; }
.media-swiper img { width: 100%; height: 420px; object-fit: cover; }

/* ===== CTA Cards ===== */
.cta-card {
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gradient-1 { background: linear-gradient(135deg,#162036,#3a2b5f); }
.gradient-2 { background: linear-gradient(135deg,#163628,#2b5f4b); }
.social { color:#cbd7ef; }
.social:hover { color:#fff; }

/* ===== Footer ===== */
.footer {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ===== Modal Base ===== */
.modal-backdrop.show {
  background: linear-gradient(180deg, rgba(3,6,12,.6), rgba(3,6,12,.78));
  z-index: 2000;
}
.modal { z-index: 2001; }
.modal .modal-content {
  transform: translateY(18px) scale(.995);
  opacity: 0;
  transition: transform .36s cubic-bezier(.2,.9,.3,1), opacity .28s ease;
  will-change: transform, opacity;
  border-radius: 18px;
  overflow: hidden;
}
.modal.show .modal-content { transform: translateY(0) scale(1); opacity: 1; }
.modal .modal-dialog, .modal .modal-content, .modal .modal-body { pointer-events: auto; }
.modal-open .hero-media, .modal-open main, .modal-open .scroll-down {
  filter: blur(4px) brightness(.45) saturate(.9);
  pointer-events: none;
  user-select: none;
  transition: filter .25s ease;
}
.modal .form-control:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 .2rem rgba(0,247,255,.12);
}

/* ===== Auth Modal ===== */
.modal-neon.modal-auth-epic {
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.04);
  background: linear-gradient(180deg, rgba(8,10,16,.75), rgba(6,8,12,.9));
  box-shadow: 0 20px 60px rgba(2,6,10,.7);
}
.auth-side {
  background:
    radial-gradient(600px 200px at 10% 10%, rgba(124,77,255,.06), transparent),
    linear-gradient(180deg, rgba(8,10,16,.85), rgba(12,14,22,.66));
  width: 100%; min-height: 100%; color: #dfefff; padding: 1.25rem;
}
.auth-side img { animation: floaty 6s ease-in-out infinite; }
.logo-row img { border-radius: 8px; box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.art-center img { max-height: 220px; object-fit: cover; border-radius: .5rem; }

.auth-panel { width: 100%; padding: .25rem 0; }
.auth-tabs { margin-bottom: .6rem; display:flex; gap:.6rem; }
.tab-btn {
  flex:1; background:transparent; border:0; border-radius:10px;
  padding:.55rem .6rem; font-weight:600; letter-spacing:.2px;
  color:#cfe4ff;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.tab-btn:hover { transform: translateY(-2px); }
.tab-btn.active {
  background: linear-gradient(90deg, rgba(0,247,255,.06), rgba(124,77,255,.06));
  color: var(--neon);
  box-shadow: inset 0 -2px 0 rgba(0,247,255,.04);
}

.btn-oauth {
  background: linear-gradient(90deg,#5865f2,#7289da);
  color: white; border:0; border-radius:10px; font-weight:700;
}
.btn-oauth-outline {
  border:1px dashed rgba(255,255,255,.06);
  background:transparent; color:var(--muted);
  width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  border-radius:10px;
}

.divider {
  display:flex; align-items:center; gap:10px; justify-content:center;
  color:var(--muted); font-size:.9rem;
}
.divider::before, .divider::after {
  content:''; flex:1; height:1px;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.03),transparent);
}

.auth-form {
  opacity:0; pointer-events:none; transform:translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.auth-form.show { opacity:1; pointer-events:auto; transform:none; }

.auth-form .form-control {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-radius:12px; border:1px solid rgba(255,255,255,.04);
  padding:.78rem 1rem; color:var(--text);
}
.toggle-pass {
  position:absolute; right:10px; bottom:10px;
  border:0; background:transparent; color:#9bb0c8;
}
.toggle-pass:hover { color:#fff; }
.btn-close-white { filter: invert(100%) brightness(1.4); width:36px; height:36px; border-radius:8px; }

.pw-meter { margin-top:.3rem; }
.pw-bar { width:100%; height:8px; background:rgba(255,255,255,.03); border-radius:6px; overflow:hidden; }
.pw-fill {
  height:100%; width:0%;
  background: linear-gradient(90deg,#ff4d4f,#00f7ff);
  transition: width .18s ease, background .18s ease;
  border-radius:6px;
}

.auth-toast {
  position:fixed; right:20px; bottom:24px;
  z-index:99999; padding:10px 14px;
  border-radius:10px; font-weight:700;
  color:#021417; box-shadow:0 8px 30px rgba(0,0,0,.5);
}

/* ===== Accessibility & Motion ===== */
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
@keyframes floaty { 0%{transform:translateY(0)} 50%{transform:translateY(-6px)} 100%{transform:translateY(0)} }
@media (max-width: 991.98px) {
  .hero-swiper img { height: 240px; }
  .media-swiper img { height: 280px; }
  .auth-side { display:none !important; }
  .modal-dialog { max-width: 720px; margin: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .modal .modal-content, .auth-side img, .auth-form { transition:none; animation:none; transform:none; }
}

/* Contenedor principal */
.auth-epic {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  background: #0b0c14;
  box-shadow: 0 0 30px rgba(0, 238, 255, 0.4);
  padding: 2rem 2.5rem;
  color:white;
}

/* Tamaño del modal */
.modal-dialog {
  max-width: 420px; /* más compacto */
}

/* Logo */
.logo-epic {
  display: block;
  margin: 0 auto 1rem auto;
  max-height: 100px;
}

/* Inputs */
.form-control-epic {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 77, 255, 0.3);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
}
.form-control-epic:focus {
  border-color: #00f7ff;
  box-shadow: 0 0 8px #00f7ff66;
  background: rgba(255, 255, 255, 0.08);
}

/* Botón */
.btn-epic {
  background: linear-gradient(90deg, #7c4dff, #00f7ff);
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-epic:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px #00f7ff88;
}

/* Links */
.link-switch {
  font-size: 0.85rem;
  color: #00f7ff;
}
.link-switch:hover {
  text-decoration: underline;
  color: #0863ff;
}

/* Ajuste de los textos */
.auth-form h4 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 6px #15b2e2;
}

.modal-backdrop.show {
  background: rgba(0, 0, 0, 0.75); /* más oscuro */
  backdrop-filter: blur(100px) contrast(400%) saturate(300%) brightness(100%);
}
.form-control-epic::placeholder {
  color: #ffffffcc; /* blanco con un poquito de transparencia */
  font-weight: 500; /* un poco más marcado */
}

