/* ------------------------------
   VARIABLES Y BASE
------------------------------ */
:root {
  --bg: #000000;
  --panel: #0b0b0f;
  --muted: #bfb8c9;
  --accent: #ff00a8;
  --accent-2: #9b2cff;
  --glass: rgba(255,255,255,0.03);
  --radius: 12px;
  --ff: 'Montserrat', system-ui, sans-serif;
  --gold: rgb(193, 163, 98);
}

* { 
  box-sizing: border-box; 
  cursor: none !important;
}

/* NO BLOQUEAMOS EL FONDO ANIMADO */
html, body {
  height: 100%;
  margin: 0;
  font-family: var(--ff);
  background: transparent !important;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------
   LOADER (SPINNER)
------------------------------ */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loader-overlay.active {
  display: flex;
  opacity: 1;
}

.loader-text {
  margin-top: 18px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
}

.spinner {
  background-image: linear-gradient(rgb(186, 66, 255) 35%, rgb(0, 225, 255));
  width: 100px;
  height: 100px;
  animation: spinning82341 1.7s linear infinite;
  text-align: center;
  border-radius: 50px;
  filter: blur(1px);
  box-shadow: 0px -5px 20px 0px rgb(186, 66, 255),
              0px 5px 20px 0px rgb(0, 225, 255);
}

.spinner1 {
  background-color: rgb(36, 36, 36);
  width: 100px;
  height: 100px;
  border-radius: 50px;
  filter: blur(10px);
}

@keyframes spinning82341 {
  to { transform: rotate(360deg); }
}

/* ------------------------------
   FONDO Y EFECTOS
------------------------------ */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: #000000;
}

.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  transform: translate3d(0,0,0);
  pointer-events: none;
}

.c1 {
  width: 700px;
  height: 700px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(255,0,168,0.5) 55%, transparent 100%);
  left: -160px;
  top: -140px;
  animation: floatA 9s ease-in-out infinite;
}

.c2 {
  width: 520px;
  height: 520px;
  background: linear-gradient(90deg, var(--accent-2) 0%, rgba(155,44,255,0.45) 60%, transparent 100%);
  right: -130px;
  bottom: -130px;
  animation: floatB 11s ease-in-out infinite;
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 120px 120px, 80px 80px;
  opacity: 0.18;
  mix-blend-mode: screen;
}

/* ------------------------------
   PORTADA
------------------------------ */
.hero-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px;
  text-align: center;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.hero-card {
  max-width: 900px;
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
  border-radius: 18px;
  padding: 48px 36px;
  border: 1px solid rgba(155,44,255,0.06);
  box-shadow: 0 18px 60px rgba(11,7,18,0.65);
  backdrop-filter: blur(6px);
  animation: cardIn 700ms cubic-bezier(.2,.9,.2,1);
}

.brand-title {
  margin: 0;
  font-size: 64px;
  letter-spacing: 6px;
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 6px 30px rgba(155,44,255,0.12);
  animation: titleIn 1s ease;
}

.brand-sub {
  margin: 12px 0 22px 0;
  color: #e7b6f2;
  font-size: 18px;
  max-width: 780px;
  margin-inline: auto;
  line-height: 1.4;
  animation: fadeInUp 1.2s ease;
}

/* ------------------------------
   BOTONES
------------------------------ */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 18px;
}

.button {
  position: relative;
  padding: 10px 24px;
  font-size: 18px;
  color: var(--accent-2);
  border: 2px solid var(--accent-2);
  border-radius: 34px;
  background-color: transparent;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: inherit;
  scale: 0;
  z-index: -1;
  background-color: var(--accent-2);
  transition: all 0.6s cubic-bezier(0.23,1,0.32,1);
}

.button:hover::before { scale: 3; }
.button:hover {
  color: #000;
  scale: 1.1;
  box-shadow: 0 0px 20px rgba(155,44,255,0.5);
}
.button:active { scale: 1; }

/* ------------------------------
   ANIMACIONES
------------------------------ */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.995); }
  to { opacity: 1; transform: none; }
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes floatA {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(18px) translateX(8px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes floatB {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-16px) translateX(-6px); }
  100% { transform: translateY(0) translateX(0); }
}

/* ------------------------------
   CURSOR (LUNA MORADA)
------------------------------ */
#moon-cursor {
    position: fixed;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 30% 30%, #d977ff, #7a00c5 70%);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(1px);
    box-shadow: 
        0 0 12px #c34bff,
        0 0 25px #b200ff,
        0 0 45px #a000ff;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* ------------------------------
   MENÚ LATERAL
------------------------------ */
.input {
  display: flex;
  flex-direction: column;
  width: 220px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center;
  border-radius: 12px;
  transition: 0.8s;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(140, 0, 255, 0.2);
}

.value {
  font-size: 15px;
  background-color: transparent;
  border: none;
  padding: 12px;
  color: #d7caff;
  display: flex;
  position: relative;
  gap: 8px;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.5s ease;
  box-sizing: border-box;
}

.value:hover,
.value:focus {
  border: 2px solid #5a0cae;
  color: #b892ff;
}

.value:focus,
.value:active {
  background-color: rgba(90, 12, 174, 0.2);
  outline: none;
  margin-left: 17px;
}

.value::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -15px;
  width: 5px;
  height: 80%;
  background: linear-gradient(180deg, #d600ff, #7a00d1);
  border-radius: 5px;
  opacity: 0;
  transition: 0.5s;
}

.value:focus::before,
.value:active::before {
  opacity: 1;
}

.value svg {
  width: 20px;
  fill: #caaaff;
}

.input:hover > :not(.value:hover) {
  transition: 300ms;
  filter: blur(2px);
  transform: scale(0.95);
}
