:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

/* HEADER NAV */
.main-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  mix-blend-mode: difference;
  pointer-events: auto !important;
}

.brand-icon {
  width: 40px;
  height: 40px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.menu-trigger {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer !important;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  padding: 1rem; /* Área de toque aumentada */
  margin: -1rem; /* Compensa el padding para no mover el icono */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hamburger {
  width: 24px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  width: 100%;
  height: 1px;
  background-color: #fff;
}

/* SIDEBAR - CENTRADO GARANTIZADO */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: #000;
  z-index: 20000 !important; /* Prioridad máxima absoluta */
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  pointer-events: none; /* Inactivo por defecto */
}

.sidebar.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto; /* Activo cuando se abre */
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10001;
  padding: 1rem;
  line-height: 1;
}

.sidebar-nav {
  margin-top: 4rem;
  width: 100%;
}

.sidebar-nav ul {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-nav li {
  margin-bottom: 3rem;
  width: 100%;
  text-align: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.sidebar-footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.4;
  letter-spacing: 0.2em;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-family: var(--font-body);
  opacity: 0.6;
  mix-blend-mode: difference;
  pointer-events: none;
}

/* STORY SECTIONS */
.scene {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}

.scene-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-frame {
  width: 100%;
  height: 100%;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.scene-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
}

.scene-text {
  padding: 0 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.reveal-text {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.static-text {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 4vw, 1.2rem);
  font-weight: 300;
  opacity: 0;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  transform: translateY(20px);
}

/* BOTÓN IR A LA TIENDA - REHECHO TOTALMENTE */
.cta-wrapper {
  margin-top: 3rem;
  opacity: 0; 
  transform: translateY(20px);
  width: 100%;
  display: flex;
  justify-content: center;
}

.cta-button {
  display: inline-block !important;
  padding: 1rem 3rem !important;
  background-color: transparent !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  border: 1px solid #ffffff !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0;
}

.cta-button:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* BLINDAJE DE PALABRAS */
.word {
  display: inline-block !important;
  white-space: nowrap !important;
  margin-right: 0.3em;
  word-break: keep-all !important;
}

.char {
  display: inline-block;
  opacity: 0.15;
}

@media (max-width: 768px) {
  .main-header {
    padding: 2.5rem 1.5rem;
    mix-blend-mode: normal;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  }
  
  .reveal-text {
    font-size: clamp(1.4rem, 8vw, 2.4rem);
  }
  
  .sidebar {
    max-width: 100%;
  }
}
