/* Single font import instead of multiple */
@import url("https://fonts.googleapis.com/css2?family=Boldonse&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,700;1,6..96,400&display=swap");

/* Variables for easy customization */
:root {
  --primary-font: "Boldonse", sans-serif;
  --secondary-font: "Bodoni Moda", serif;
  --primary-color: #FA6142;
  --secondary-color: rgba(255, 255, 255, 0.5);
  --quote-size: 8vw;
  --author-size: 1vw;
  --cursor-size: 20px;
  --ghost-color: #000000;
  --eye-glow-color: #ffff00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: none;
  background-color: #111;
  letter-spacing: -0.03em;
  position: relative;
}

/* Background noise effect with will-change optimization */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: transparent
    url("http://assets.iceable.com/img/noise-transparent.png") repeat 0 0;
  background-size: 300px 300px;
  animation: noise-animation 0.3s steps(5) infinite;
  opacity: 1;
  will-change: transform;
  z-index: 100;
  pointer-events: none;
}

@keyframes noise-animation {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -3%);
  }
  20% {
    transform: translate(-4%, 2%);
  }
  30% {
    transform: translate(2%, -4%);
  }
  40% {
    transform: translate(-2%, 5%);
  }
  50% {
    transform: translate(-4%, 2%);
  }
  60% {
    transform: translate(3%, 0);
  }
  70% {
    transform: translate(0, 3%);
  }
  80% {
    transform: translate(-3%, 0);
  }
  90% {
    transform: translate(2%, 2%);
  }
  100% {
    transform: translate(1%, 0);
  }
}

/* Content to be revealed */
.content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
  padding: 20px;
  text-align: center;
  color: var(--primary-color);
}

.quote-container {
  max-width: 90%;
  overflow: hidden;
}

.quote {
  font-family: var(--primary-font);
  font-size: var(--quote-size);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 5vh;
  opacity: 1;
  text-transform: uppercase;
}

.author {
  font-family: var(--secondary-font);
  font-size: var(--author-size);
  font-style: italic;
  opacity: 0.7;
  margin-top: 2vh;
}

.book {
  font-family: var(--secondary-font);
  font-size: var(--author-size);
  opacity: 0.5;
  margin-top: 1vh;
}

/* Custom cursor */
.custom-cursor {
  position: fixed;
  width: var(--cursor-size);
  height: var(--cursor-size);
  border-radius: 50%;
  background-color: var(--secondary-color);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999;
  transition: width 0.2s, height 0.2s;
  will-change: transform;
}

/* Canvas overlay */
canvas {
  display: block;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2;
  pointer-events: none;
}

.info {
  position: fixed;
  bottom: 10px;
  left: 10px;
  color: white;
  font-family: monospace;
  font-size: 12px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 10;
}

/* Controls panel */
.dg.ac {
  z-index: 101 !important;
}

/* ===== MENÚ AGREGADO (NO TOCA NADA MÁS) ===== */
.nav-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  background: transparent;
  z-index: 200;
  pointer-events: auto;
}

.nav-container{
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-logo-img{
  width: 80px;
  height: auto;
}

.nav-logo-name {
  width: 100px; /* o el tamaño que te guste */
}

.nav-logo-star {
  width: 50px;   /* pequeña, chispa */
  margin-right: -20px;
  opacity: 0.9;
}

.nav-links{
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a{
  text-decoration: none;
  color: #ededed;
  font-size: .85rem;
  font-weight: 600;
  opacity: .85;
  transition: 0.2s ease;
}

.nav-links a:hover{
  opacity: 1;
}

/* stickers */
.stickers-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 250; /* ahora sí sobre el texto */
}

.sticker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) scale(var(--s)) rotate(var(--r, 0deg));
  width: 80px;
  max-width: 15vw;
  height: auto;
  transition: transform 0.3s ease;
}

.sticker-front {
  z-index: 300;
}

.sticker-back {
  z-index: 200;
  opacity: 0.95;
}

/* ===== Responsive (móvil) ===== */
.desktop-only { display: block; }
.stickers-mobile { display: none; }

@media (max-width: 768px) {

  html, body {
    overflow-y: auto;
  }

  :root {
    --quote-size: 12vw;
    --author-size: 3vw;
  }

  .content {
    position: relative;
    height: auto;
    padding-top: 20vh;
    padding-bottom: 20vh;
  }

  .stickers-layer {
    position: absolute;
  }

  .sticker-back {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .stickers-mobile {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 260;
  }

  .sticker-mobile {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 50px;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {

  html, body {
    overflow-y: auto;
  }

  :root {
    --quote-size: 12vw;
    --author-size: 3vw;
  }

.content {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .stickers-layer {
    position: absolute;
    display: none; /* 👈 ESTA LÍNEA */
  }

  .sticker-back {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .stickers-mobile {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 260;
  }

  .sticker-mobile {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 50px;
    transform: translate(-50%, -50%);
  }
}
