/* =========================================================
   RESET
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: "Poppins", sans-serif;
  background: #050505;
  color: #fff;
  scroll-behavior: smooth;
}

/* =========================================================
   HERO SUPERIOR
   ========================================================= */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.8)
  );
  z-index: 1;
}

/* =========================================================
   ETIQUETAS ROJAS (NAV Y BOTÓN)
   ========================================================= */
.red-label {
  background: #ff0000;
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  border-radius: 2px;
}

/* Botón volver */
.back-btn {
  position: fixed;
  top: 25px;
  left: 25px;
  z-index: 1000;
  text-decoration: none;
  transition: 0.2s;
}

.back-btn:hover {
  background: #d40000;
}

/* NAV */
.main-nav {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1000;
}

.main-nav ul {
  display: flex;
  gap: 12px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a .red-label:hover {
  background: #d40000;
}

/* =========================================================
   SECCIONES
   ========================================================= */
.section {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.section video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.section .boh-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.section .label-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.label-center .red-label {
  font-size: 14px;
  padding: 10px 18px;
}

/* =========================================================
   CÓDIGOS ROJOS (EFECTO DIGITAL)
   ========================================================= */
.code-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.code-tag {
  position: absolute;
  padding: 4px 8px;
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  opacity: 0;
  letter-spacing: 2px;
  transition: opacity .3s ease;
}

.code-tag.visible {
  opacity: 1;
}

/* Posiciones */
.code-tag[data-pos="tl"] { top: 30%; left: 8%; }
.code-tag[data-pos="tc"] { top: 38%; left: 46%; }
.code-tag[data-pos="tr"] { top: 22%; right: 10%; }
.code-tag[data-pos="bl"] { bottom: 25%; left: 15%; }
.code-tag[data-pos="br"] { bottom: 18%; right: 12%; }


/* Logo dentro del nav */
.nav-logo img {
  width: 25px;      /* tamaño base */
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  transition: transform 0.2s ease;
}

/* Hover suave */
.nav-logo img:hover {
  transform: scale(1.1);
}
