:root {
  --color-1: #a1d6e2;
  --color-2: #81c8e4;
  --color-3: #4fb7e3;
  --color-4: #2ea2c2;
  --color-5: #008fb3;
}

/* Reset y fondo */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  min-height: 100%;
}
body {
  min-height: 100%;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(#071a25, #00111a);
  color: white;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::-webkit-scrollbar {
  width: 0;  /* Chrome, Safari y Opera */
  background: transparent;
}

/* canvas */
#snowCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Overlay tormenta */
#stormOverlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0);
  pointer-events: none;
  z-index: 1;
  transition: background 1s ease;
}
#stormOverlay.show {
  background: rgba(255,255,255,0.12);
}

/* Contenido principal */
.center-menu { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 720px; margin: 120px auto 0; padding: 0 18px; }
.title { font-size: 2.6rem; color: var(--color-1); text-shadow: 0 0 12px rgba(78,180,220,0.18); margin-bottom: 14px; }
.description { margin-top: 10px; color: #e9fbff; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Menu central neon */
.menu { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 18px; }
.neon-btn {
  display:inline-block;
  text-decoration:none;
  color: #fff;
  background: rgba(0,0,0,0.22);
  border: 2px solid var(--color-3);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(79,183,227,0.12);
  transition: transform .14s ease, box-shadow .14s ease, background .14s;
}
.neon-btn:hover, .neon-btn:focus {
  transform: translateY(-4px);
  background: linear-gradient(90deg, var(--color-3), var(--color-5));
  box-shadow: 0 8px 30px rgba(46,162,194,0.18);
  outline: none;
}
.neon { text-shadow: 0 0 12px var(--color-2), 0 0 24px var(--color-3); }
.resaltado { color: var(--color-3); font-weight: 800; }

/* Zorro animado blanco */
#foxContainer {
  position: fixed;
  width: 120px;
  height: 70px;
  bottom: 70px;
  left: -150px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 1s ease, bottom 1s ease;
}
#foxContainer.show {
  opacity: 1;
}
.fox {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center;
}
.fox .body { background: #fff; position: absolute; width: 66%; height: 57%; left: 16%; top: 28%; border-radius: 40px 40px 30px 30px; }
.fox .head { background: #fff; position: absolute; width: 33%; height: 50%; left: 0; top: 0; border-radius: 40px 40px 20px 20px; }
.fox .ear1, .fox .ear2 { background: #fff; position: absolute; width: 16%; height: 30%; top: -22%; border-radius: 4px; }
.fox .ear1 { left: 5%; transform: rotate(-10deg); }
.fox .ear2 { left: 22%; transform: rotate(10deg); }
.fox .tail { background: #fff; position: absolute; width: 50%; height: 35%; right: -38%; top: 36%; border-radius: 30px 40px 40px 30; transform-origin: left center; animation: tailWag 0.8s ease-in-out infinite; }
@keyframes tailWag { 0% { transform: rotate(12deg); } 50% { transform: rotate(-12deg); } 100% { transform: rotate(12deg); } }

/* Responsive */
@media (max-width: 680px) {
  .title { font-size: 1.9rem; margin-top: 60px; }
  #foxContainer { width: 80px; height: 50px; bottom: 50px; left: -100px; }
  .menu { gap: 10px; }
  .neon-btn { padding: 9px 14px; font-size: 0.95rem; }
}

/* Contenedor invisible para posicionar la línea */
#customScroll {
  position: fixed;
  top: 0;
  right: 10px;
  width: 4px;            /* solo línea fina */
  height: 100%;
  z-index: 5;
  pointer-events: none;   /* que no bloquee clicks */
}

/* Pulgar que se arrastra */
#scrollThumb {
  width: 100%;
  height: 50px;           /* tamaño inicial, se ajusta con JS */
  background: linear-gradient(to bottom, #81c8e4, #2ea2c2);
  border-radius: 2px;
  box-shadow: 0 0 10px #81c8e4, 0 0 20px #2ea2c2, 0 0 30px #2ea2c2;
  cursor: pointer;
  position: relative;
  top: 0;
  transition: box-shadow 0.2s, background 0.2s;
  pointer-events: auto;   /* solo el thumb puede arrastrarse */
}

#scrollThumb:hover {
  box-shadow: 0 0 20px #81c8e4, 0 0 40px #2ea2c2, 0 0 60px #2ea2c2;
  background: linear-gradient(to bottom, #4fb7e3, #008fb3);
}

/* Contenedor interno que sí hace scroll */
#scrollWrapper {
  height: 100vh;
  overflow-y: scroll; /* scroll real aquí */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
}

#scrollWrapper::-webkit-scrollbar {
  width: 0;                     /* Chrome, Safari, Opera */
  background: transparent;
}

.image-container {
  display: flex;
  justify-content: center; /* centrar la imagen */
  margin: 30px 0;
  position: relative;
}

.image-container img {
  width: 100%;
  max-width: 400px;       /* tamaño máximo */
  border-radius: 15px;    /* bordes redondeados */
  box-shadow: 0 0 20px #81c8e4, 0 0 40px #2ea2c2; /* resplandor azul */
  border: 2px solid rgba(46, 162, 194, 0.7);     /* borde tipo hielo */
  transition: transform 0.3s, box-shadow 0.3s;
}

/* efecto al pasar el ratón */
.image-container img:hover {
  transform: scale(1.05); /* leve zoom */
  box-shadow: 0 0 30px #81c8e4, 0 0 60px #2ea2c2, 0 0 80px #4fb7e3;
}
