* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Press Start 2P", monospace;
}

body {
  background-color: #0d0d14;
  color: white;
  cursor: none;
}

/* Cursor personalizado */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: #ac3232;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;

  /* Glow */
  box-shadow:
    0 0 6px rgba(255, 80, 120, 0.8),
    0 0 12px rgba(255, 80, 120, 0.6);

  transition:
    width 0.15s ease,
    height 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

/* Efecto al pasar sobre links y botones */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor {
  width: 24px;
  height: 24px;
}

/* Partículas de brillo */
.sparkle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;

  background: radial-gradient(
    circle,
    rgba(255, 90, 90, 1) 0%,
    rgba(220, 40, 40, 0.9) 40%,
    rgba(220, 40, 40, 0) 70%
  );

  box-shadow:
    0 0 6px rgba(255, 60, 60, 0.9),
    0 0 12px rgba(180, 20, 20, 0.7);

  animation: sparkleFade 0.8s ease-out forwards;
}


@keyframes sparkleFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* BOTÓN ABRIR */
.open-vn {
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #ff77b7, #ffb3d9);
  color: white;
  cursor: pointer;
}

/* VENTANA */
.vn-window {
  position: fixed;
  top: 20%;
  left: 30%;
  width: 420px;
  background: #0d0d14;
  border-radius: 12px;
  overflow: hidden;
  display: none;
  z-index: 9999;
  border: 3px solid #52263e;
  box-shadow: 0 0 0 4px #000;
}

/* HEADER DRAGGABLE */
.vn-header {
  background: #52263e;
  border-bottom: 2px solid #000;
  font-size: 0.7rem;
  color: white;
  padding: 0.6rem 1rem;
  cursor: grab;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

/* ESCENA */
.vn-scene {
  position: relative;
  height: 300px;
}

/* FONDO */
.vn-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PERSONAJE */
.vn-character {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  height: 200px;
}

/* DIÁLOGO */
.vn-dialogue {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 2px solid #52263e;
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem;
  color: white;
  font-size: 0.6rem;
}

.vn-dialogue p {
  margin: 0;
}

/* NAVBAR */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  gap: 1rem;
  border-bottom: 2px solid #52263e;
}

.logo {
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
    color: white;
  text-shadow: 2px 2px 0 #000;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.nav-buttons a {
  text-decoration: none;
  background-color: #52263e;
  color: white;
  padding: 0.9rem 1.6rem;
  border: 2px solid #000;
  font-size: 0.7rem;
  box-shadow: 4px 4px 0 #000;
  transition: background-color 0.15s, transform 0.1s, box-shadow 0.1s;
}

.nav-buttons a:hover {
  background-color: #ac3232;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}


/* HERO */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  border-bottom: 2px solid #52263e;
}

.hero h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 0 #000;
}

.hero p {
  font-size: 0.65rem;
  max-width: 600px;
  line-height: 1.6;
}


/* FOOTER */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}
