/* reset y base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html {
  height: 100%;
  width: 100%;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  overflow: hidden;
  background: #0f0f10;
  color: #fff;
}
a { text-decoration: none; color: inherit; }

/* social icons */
.social-nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 1rem;
  z-index: 60;
}
.social-nav img {
  width: 1.2rem;
  height: 1.2rem;
  filter: invert(1);
  transition: filter .3s;
}
.social-nav a:hover img {
  filter: invert(0.7) sepia(1) saturate(4) hue-rotate(180deg);
}

/* hero */
.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform-style: preserve-3d;
  padding: 0 1rem;
}

/* video / image background */
.background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 1;
  cursor: pointer;

  /* RECIBE los clics para tu JS */
  pointer-events: auto;
}
.background video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 120%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;

  /* YA NO recibe clics; deja que pasen a .background */
  pointer-events: none;
  filter: brightness(1);
}
.fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;

  /* no bloquea clicks */
  pointer-events: none;
}

/* brillo en guantes */
.glove-highlight {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 55%, rgba(255,235,200,0.2), transparent 60%);
  filter: brightness(1);
  transition: filter .2s;
  animation: shimmer 8s ease-in-out infinite;
  z-index: 3;

  /* no bloquea clicks */
  pointer-events: none;
}
@keyframes shimmer {
  0%,100% { opacity: .15; }
  50% { opacity: .3; }
}

/* links panel */
.links-panel {
  position: absolute;
  top: 32px;
  left: 32px;
  display: flex;
  gap: 1.5rem;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  color: rgba(255,255,255,0.9);
  font-size: .75rem;
  backdrop-filter: blur(6px);
  padding: .4rem .8rem;
  border-radius: 12px;
  background: rgba(10,20,40,0.35);
  box-shadow: 0 12px 48px -10px rgba(0,0,0,0.6);

  /* por encima de todo */
  z-index: 60;
  pointer-events: auto;
}
.links-panel a {
  position: relative;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: background .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;

  /* siempre clicable */
  pointer-events: auto;
}
.links-panel a:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.label {
  font-size: .5rem;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 2px;
}

/* contenido */
.hero-content {
  position: relative;
  z-index: 8;
  max-width: 800px;
  padding: 0 1rem;
  text-shadow: 0 0 14px rgba(0,0,0,0.5);
}
.hero-content h1 {
  font-size: clamp(1.8rem,6vw,2.8rem);
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.05;
}
.intro {
  color: #fff;
  font-weight: 700;
  font-size: 1em;
}
.name {
  color: #7fccff;
  font-weight: 700;
}
.subtitle {
  font-size: clamp(0.85rem,2vw,1.05rem);
  opacity: .85;
  margin-top: 4px;
}
.small-speed {
  margin-top: 8px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.65rem;
}
.small-speed input {
  width: 90px;
}
.small-speed button {
  background: rgba(255,255,255,0.08);
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-size: .65rem;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.small-speed button:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

/* asegúrate de que el footer esté al final pero sin barra sólida */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}
.page-wrapper {
  flex: 1;
}
.site-footer {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  font-size: 0.75rem;
  background: none;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 50;
}

/* responsive */
@media (max-width: 900px) {
  .links-panel { flex-wrap: wrap; }
  .hero-content h1 { font-size: clamp(1.6rem,10vw,2.2rem); }
}
