/* ==========================================================================
   HERO INTERACTIVE LOGO: SURREAL MULTI-DIRECTIONAL PARTICLE BURST
   - Radial explosion in multiple directions (high, low, steep, wide, lateral)
   - Real physics: explosive launch, repulsion overshoot, and zero-gravity levitation
   - Clean, modern, letter-spaced phrase with fast diffusion blur (no pen)
   - Progressive distance-aware reassembly as mouse retreats
   ========================================================================== */

.hero-interactive-logo-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 4px auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  z-index: 20;
}

/* Mobile Tap Hints: 100% ocultos en escritorio y pantallas >= 769px */
.mobile-tap-hint {
  display: none !important;
}

/* When JavaScript physics engine is active, disable CSS animations so JS has 100% direct 60/120fps physics control */
.hero-interactive-logo-wrapper.has-js-physics .logo-pieces-stage,
.hero-interactive-logo-wrapper.has-js-physics .logo-piece,
.hero-interactive-logo-wrapper.has-js-physics .floating-item,
.hero-interactive-logo-wrapper.has-js-physics .logo-phrase-stage {
  animation: none !important;
  transition: none !important;
}

/* Container for the two halves */
.logo-pieces-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* Sombra unificada perfectamente equilibrada para el logo entero como un solo objeto cerrado */
  filter: 
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.58))
    drop-shadow(0 2px 5px rgba(0, 0, 0, 0.42));
  transition: filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-interactive-logo-wrapper:hover .logo-pieces-stage {
  filter: 
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.68))
    drop-shadow(0 3px 7px rgba(0, 0, 0, 0.48));
}

/* Sombra sutil de apoyo en el suelo bajo el logo principal para darle relieve y realismo */
.hero-interactive-logo-wrapper::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 135px;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0) 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
  opacity: var(--logo-ground-shadow-opacity, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-interactive-logo-wrapper.is-open::after {
  opacity: 0;
  transform: translateX(-50%) scale(0.6);
}

/* Individual Logo Halves (Left: Orange, Right: Camera Lens) */
.logo-piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 170px;
  height: 170px;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.logo-piece img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* El sombreado se aplica al contenedor unificado (.logo-pieces-stage) para evitar sombras asimétricas */
  filter: none;
}

.logo-piece-orange img,
.logo-piece-lens img {
  filter: none;
}

.hero-interactive-logo-wrapper:hover .logo-piece-orange img,
.hero-interactive-logo-wrapper:hover .logo-piece-lens img {
  filter: none;
}

/* Solid halves fade out smoothly as they dissolve into the floating constellations */
.hero-interactive-logo-wrapper.is-open .logo-piece-orange {
  animation: openSolidFadeOutLeft 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-interactive-logo-wrapper.is-open .logo-piece-lens {
  animation: openSolidFadeOutRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes openSolidFadeOutLeft {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  60% {
    opacity: 0.4;
  }
  100% {
    transform: translate3d(-140px, 0, 0) rotate(-8deg);
    opacity: 0;
  }
}

@keyframes openSolidFadeOutRight {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  60% {
    opacity: 0.4;
  }
  100% {
    transform: translate3d(140px, 0, 0) rotate(8deg);
    opacity: 0;
  }
}

/* ==========================================================================
   CENTRAL PHRASE: MODERN CINEMATIC TYPOGRAPHY & FAST BLUR DIFFUSION FADE
   ========================================================================== */

.logo-phrase-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 5;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  filter: blur(14px);
  will-change: transform, opacity, filter;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), filter 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.phrase-text {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(0.72rem, 1.8vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background: linear-gradient(110deg, #ffffff 0%, #fff4e5 35%, #ffbb77 75%, #ff7a1a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 120, 20, 0.45);
  display: inline-block;
}

.hero-interactive-logo-wrapper.is-open .logo-phrase-stage {
  opacity: 1;
  filter: blur(0px);
  transform: translate(-50%, -50%) scale(1);
}

.hero-interactive-logo-wrapper.is-closing .logo-phrase-stage {
  opacity: 0 !important;
  filter: blur(8px) !important;
  transform: translate(-50%, -50%) scale(0.92) !important;
  transition: opacity 0.18s ease-out, filter 0.18s ease-out, transform 0.18s ease-out !important;
}

/* ==========================================================================
   FLOATING CLUSTERS: BASE STYLES
   ========================================================================== */

.floating-cluster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.floating-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.15);
  will-change: transform, opacity;
}

/* Sombra sutil debajo de cada elemento disperso para darles apoyo y volumen realista en el espacio */
.floating-item::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 11px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0) 75%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3.5px);
  z-index: -1;
  opacity: 0.9;
}

.floating-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  /* Sombra direccional hacia abajo en la silueta exacta del objeto */
  filter: 
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.72))
    drop-shadow(0 4px 6px rgba(0, 0, 0, 0.48));
  transition: filter 0.3s ease;
}

/* Matiz de sombreado realista específico para los fragmentos de naranja */
.orange-item img {
  filter: 
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.72))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 10px rgba(255, 120, 20, 0.18));
}

/* Matiz de sombreado realista específico para los lentes de cámara */
.lens-item img {
  filter: 
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.78))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 10px rgba(100, 180, 255, 0.14));
}

/* ==========================================================================
   BURST & FLOAT ANIMATIONS FOR 8 ORANGES AND 8 LENSES
   ========================================================================== */

/* Floating Orange 1 */
.orange-item-1 {
  width: 76px;
  height: 76px;
  margin-top: -38px;
  margin-left: -38px;
  --target-x: -215px;
  --target-y: -18px;
  --target-rot: -12deg;
}
.hero-interactive-logo-wrapper.is-open .orange-item-1 {
  animation: burstOrange1 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatOrange1 4.2s ease-in-out 0.65s infinite alternate;
}
@keyframes burstOrange1 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(-247px, -21px, 0) scale(1.08) rotate(-15deg); }
  100% { transform: translate3d(-215px, -18px, 0) scale(1) rotate(-12deg); opacity: 1; }
}
@keyframes floatOrange1 {
  0% { transform: translate3d(-215px, -18px, 0) scale(1) rotate(-12deg); }
  100% { transform: translate3d(-208px, -9px, 0) scale(1.04) rotate(-4deg); }
}

/* Floating Orange 2 */
.orange-item-2 {
  width: 58px;
  height: 58px;
  margin-top: -29px;
  margin-left: -29px;
  --target-x: -155px;
  --target-y: -118px;
  --target-rot: 22deg;
}
.hero-interactive-logo-wrapper.is-open .orange-item-2 {
  animation: burstOrange2 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatOrange2 4.6s ease-in-out 0.65s infinite alternate;
}
@keyframes burstOrange2 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(-178px, -136px, 0) scale(1.08) rotate(28deg); }
  100% { transform: translate3d(-155px, -118px, 0) scale(1) rotate(22deg); opacity: 1; }
}
@keyframes floatOrange2 {
  0% { transform: translate3d(-155px, -118px, 0) scale(1) rotate(22deg); }
  100% { transform: translate3d(-146px, -111px, 0) scale(1.04) rotate(30deg); }
}

/* Floating Orange 3 */
.orange-item-3 {
  width: 46px;
  height: 46px;
  margin-top: -23px;
  margin-left: -23px;
  --target-x: -275px;
  --target-y: -42px;
  --target-rot: -28deg;
}
.hero-interactive-logo-wrapper.is-open .orange-item-3 {
  animation: burstOrange3 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatOrange3 4.0s ease-in-out 0.65s infinite alternate;
}
@keyframes burstOrange3 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(-316px, -48px, 0) scale(1.08) rotate(-35deg); }
  100% { transform: translate3d(-275px, -42px, 0) scale(1) rotate(-28deg); opacity: 1; }
}
@keyframes floatOrange3 {
  0% { transform: translate3d(-275px, -42px, 0) scale(1) rotate(-28deg); }
  100% { transform: translate3d(-264px, -36px, 0) scale(1.04) rotate(-20deg); }
}

/* Floating Orange 4 */
.orange-item-4 {
  width: 64px;
  height: 64px;
  margin-top: -32px;
  margin-left: -32px;
  --target-x: -168px;
  --target-y: 112px;
  --target-rot: 16deg;
}
.hero-interactive-logo-wrapper.is-open .orange-item-4 {
  animation: burstOrange4 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatOrange4 4.5s ease-in-out 0.65s infinite alternate;
}
@keyframes burstOrange4 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(-193px, 129px, 0) scale(1.08) rotate(20deg); }
  100% { transform: translate3d(-168px, 112px, 0) scale(1) rotate(16deg); opacity: 1; }
}
@keyframes floatOrange4 {
  0% { transform: translate3d(-168px, 112px, 0) scale(1) rotate(16deg); }
  100% { transform: translate3d(-162px, 122px, 0) scale(1.04) rotate(24deg); }
}

/* Floating Orange 5 */
.orange-item-5 {
  width: 42px;
  height: 42px;
  margin-top: -21px;
  margin-left: -21px;
  --target-x: -92px;
  --target-y: 158px;
  --target-rot: -19deg;
}
.hero-interactive-logo-wrapper.is-open .orange-item-5 {
  animation: burstOrange5 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatOrange5 4.8s ease-in-out 0.65s infinite alternate;
}
@keyframes burstOrange5 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(-106px, 182px, 0) scale(1.08) rotate(-24deg); }
  100% { transform: translate3d(-92px, 158px, 0) scale(1) rotate(-19deg); opacity: 1; }
}
@keyframes floatOrange5 {
  0% { transform: translate3d(-92px, 158px, 0) scale(1) rotate(-19deg); }
  100% { transform: translate3d(-84px, 166px, 0) scale(1.04) rotate(-11deg); }
}

/* Floating Orange 6 */
.orange-item-6 {
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  --target-x: -88px;
  --target-y: -152px;
  --target-rot: 24deg;
}
.hero-interactive-logo-wrapper.is-open .orange-item-6 {
  animation: burstOrange6 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatOrange6 4.3s ease-in-out 0.65s infinite alternate;
}
@keyframes burstOrange6 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(-101px, -175px, 0) scale(1.08) rotate(30deg); }
  100% { transform: translate3d(-88px, -152px, 0) scale(1) rotate(24deg); opacity: 1; }
}
@keyframes floatOrange6 {
  0% { transform: translate3d(-88px, -152px, 0) scale(1) rotate(24deg); }
  100% { transform: translate3d(-81px, -143px, 0) scale(1.04) rotate(32deg); }
}

/* Floating Orange 7 */
.orange-item-7 {
  width: 36px;
  height: 36px;
  margin-top: -18px;
  margin-left: -18px;
  --target-x: -125px;
  --target-y: 48px;
  --target-rot: -10deg;
}
.hero-interactive-logo-wrapper.is-open .orange-item-7 {
  animation: burstOrange7 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatOrange7 4.7s ease-in-out 0.65s infinite alternate;
}
@keyframes burstOrange7 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(-144px, 55px, 0) scale(1.08) rotate(-12deg); }
  100% { transform: translate3d(-125px, 48px, 0) scale(1) rotate(-10deg); opacity: 1; }
}
@keyframes floatOrange7 {
  0% { transform: translate3d(-125px, 48px, 0) scale(1) rotate(-10deg); }
  100% { transform: translate3d(-120px, 55px, 0) scale(1.04) rotate(-2deg); }
}

/* Floating Orange 8 */
.orange-item-8 {
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  --target-x: -112px;
  --target-y: -58px;
  --target-rot: 14deg;
}
.hero-interactive-logo-wrapper.is-open .orange-item-8 {
  animation: burstOrange8 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatOrange8 4.4s ease-in-out 0.65s infinite alternate;
}
@keyframes burstOrange8 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(-129px, -67px, 0) scale(1.08) rotate(18deg); }
  100% { transform: translate3d(-112px, -58px, 0) scale(1) rotate(14deg); opacity: 1; }
}
@keyframes floatOrange8 {
  0% { transform: translate3d(-112px, -58px, 0) scale(1) rotate(14deg); }
  100% { transform: translate3d(-106px, -53px, 0) scale(1.04) rotate(22deg); }
}

/* Floating Lens 1 */
.lens-item-1 {
  width: 76px;
  height: 76px;
  margin-top: -38px;
  margin-left: -38px;
  --target-x: 215px;
  --target-y: -18px;
  --target-rot: 12deg;
}
.hero-interactive-logo-wrapper.is-open .lens-item-1 {
  animation: burstLens1 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatLens1 4.2s ease-in-out 0.65s infinite alternate;
}
@keyframes burstLens1 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(247px, -21px, 0) scale(1.08) rotate(15deg); }
  100% { transform: translate3d(215px, -18px, 0) scale(1) rotate(12deg); opacity: 1; }
}
@keyframes floatLens1 {
  0% { transform: translate3d(215px, -18px, 0) scale(1) rotate(12deg); }
  100% { transform: translate3d(222px, -9px, 0) scale(1.04) rotate(4deg); }
}

/* Floating Lens 2 */
.lens-item-2 {
  width: 58px;
  height: 58px;
  margin-top: -29px;
  margin-left: -29px;
  --target-x: 155px;
  --target-y: -118px;
  --target-rot: -22deg;
}
.hero-interactive-logo-wrapper.is-open .lens-item-2 {
  animation: burstLens2 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatLens2 4.6s ease-in-out 0.65s infinite alternate;
}
@keyframes burstLens2 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(178px, -136px, 0) scale(1.08) rotate(-28deg); }
  100% { transform: translate3d(155px, -118px, 0) scale(1) rotate(-22deg); opacity: 1; }
}
@keyframes floatLens2 {
  0% { transform: translate3d(155px, -118px, 0) scale(1) rotate(-22deg); }
  100% { transform: translate3d(164px, -111px, 0) scale(1.04) rotate(-30deg); }
}

/* Floating Lens 3 */
.lens-item-3 {
  width: 46px;
  height: 46px;
  margin-top: -23px;
  margin-left: -23px;
  --target-x: 275px;
  --target-y: -42px;
  --target-rot: 28deg;
}
.hero-interactive-logo-wrapper.is-open .lens-item-3 {
  animation: burstLens3 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatLens3 4.0s ease-in-out 0.65s infinite alternate;
}
@keyframes burstLens3 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(316px, -48px, 0) scale(1.08) rotate(35deg); }
  100% { transform: translate3d(275px, -42px, 0) scale(1) rotate(28deg); opacity: 1; }
}
@keyframes floatLens3 {
  0% { transform: translate3d(275px, -42px, 0) scale(1) rotate(28deg); }
  100% { transform: translate3d(286px, -36px, 0) scale(1.04) rotate(20deg); }
}

/* Floating Lens 4 */
.lens-item-4 {
  width: 64px;
  height: 64px;
  margin-top: -32px;
  margin-left: -32px;
  --target-x: 168px;
  --target-y: 112px;
  --target-rot: -16deg;
}
.hero-interactive-logo-wrapper.is-open .lens-item-4 {
  animation: burstLens4 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatLens4 4.5s ease-in-out 0.65s infinite alternate;
}
@keyframes burstLens4 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(193px, 129px, 0) scale(1.08) rotate(-20deg); }
  100% { transform: translate3d(168px, 112px, 0) scale(1) rotate(-16deg); opacity: 1; }
}
@keyframes floatLens4 {
  0% { transform: translate3d(168px, 112px, 0) scale(1) rotate(-16deg); }
  100% { transform: translate3d(174px, 122px, 0) scale(1.04) rotate(-24deg); }
}

/* Floating Lens 5 */
.lens-item-5 {
  width: 42px;
  height: 42px;
  margin-top: -21px;
  margin-left: -21px;
  --target-x: 92px;
  --target-y: 158px;
  --target-rot: 19deg;
}
.hero-interactive-logo-wrapper.is-open .lens-item-5 {
  animation: burstLens5 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatLens5 4.8s ease-in-out 0.65s infinite alternate;
}
@keyframes burstLens5 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(106px, 182px, 0) scale(1.08) rotate(24deg); }
  100% { transform: translate3d(92px, 158px, 0) scale(1) rotate(19deg); opacity: 1; }
}
@keyframes floatLens5 {
  0% { transform: translate3d(92px, 158px, 0) scale(1) rotate(19deg); }
  100% { transform: translate3d(100px, 166px, 0) scale(1.04) rotate(11deg); }
}

/* Floating Lens 6 */
.lens-item-6 {
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  --target-x: 88px;
  --target-y: -152px;
  --target-rot: -24deg;
}
.hero-interactive-logo-wrapper.is-open .lens-item-6 {
  animation: burstLens6 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatLens6 4.3s ease-in-out 0.65s infinite alternate;
}
@keyframes burstLens6 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(101px, -175px, 0) scale(1.08) rotate(-30deg); }
  100% { transform: translate3d(88px, -152px, 0) scale(1) rotate(-24deg); opacity: 1; }
}
@keyframes floatLens6 {
  0% { transform: translate3d(88px, -152px, 0) scale(1) rotate(-24deg); }
  100% { transform: translate3d(95px, -143px, 0) scale(1.04) rotate(-32deg); }
}

/* Floating Lens 7 */
.lens-item-7 {
  width: 36px;
  height: 36px;
  margin-top: -18px;
  margin-left: -18px;
  --target-x: 125px;
  --target-y: 48px;
  --target-rot: 10deg;
}
.hero-interactive-logo-wrapper.is-open .lens-item-7 {
  animation: burstLens7 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatLens7 4.7s ease-in-out 0.65s infinite alternate;
}
@keyframes burstLens7 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(144px, 55px, 0) scale(1.08) rotate(12deg); }
  100% { transform: translate3d(125px, 48px, 0) scale(1) rotate(10deg); opacity: 1; }
}
@keyframes floatLens7 {
  0% { transform: translate3d(125px, 48px, 0) scale(1) rotate(10deg); }
  100% { transform: translate3d(130px, 55px, 0) scale(1.04) rotate(2deg); }
}

/* Floating Lens 8 */
.lens-item-8 {
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  --target-x: 112px;
  --target-y: -58px;
  --target-rot: -14deg;
}
.hero-interactive-logo-wrapper.is-open .lens-item-8 {
  animation: burstLens8 0.65s cubic-bezier(0.12, 1.1, 0.22, 1.2) forwards, floatLens8 4.4s ease-in-out 0.65s infinite alternate;
}
@keyframes burstLens8 {
  0% { transform: translate3d(0, 0, 0) scale(0.15) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translate3d(129px, -67px, 0) scale(1.08) rotate(-18deg); }
  100% { transform: translate3d(112px, -58px, 0) scale(1) rotate(-14deg); opacity: 1; }
}
@keyframes floatLens8 {
  0% { transform: translate3d(112px, -58px, 0) scale(1) rotate(-14deg); }
  100% { transform: translate3d(118px, -53px, 0) scale(1.04) rotate(-22deg); }
}


/* ==========================================================================
   CLOSING STATE: PROGRESSIVE REASSEMBLY & SLAM-SHUT COLLISION
   ========================================================================== */

.hero-interactive-logo-wrapper.is-closing .floating-item {
  animation: collapseFloatingToCenter 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes collapseFloatingToCenter {
  0% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(0.12) rotate(0deg);
    opacity: 0;
  }
}

.hero-interactive-logo-wrapper.is-closing .logo-piece-orange {
  animation: closeReboundLeft 0.52s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.hero-interactive-logo-wrapper.is-closing .logo-piece-lens {
  animation: closeReboundRight 0.52s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

@keyframes closeReboundLeft {
  0% {
    transform: translate3d(-140px, 0, 0) rotate(-8deg);
    opacity: 0.8;
  }
  38% {
    /* High velocity collision at the center */
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  54% {
    /* Primary elastic rebound impact */
    transform: translate3d(-15px, 0, 0) rotate(-2.5deg);
  }
  70% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  82% {
    transform: translate3d(-4px, 0, 0) rotate(-0.6deg);
  }
  92% {
    transform: translate3d(-0.8px, 0, 0) rotate(-0.1deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes closeReboundRight {
  0% {
    transform: translate3d(140px, 0, 0) rotate(8deg);
    opacity: 0.8;
  }
  38% {
    /* High velocity collision at the center */
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  54% {
    /* Primary elastic rebound impact */
    transform: translate3d(15px, 0, 0) rotate(2.5deg);
  }
  70% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  82% {
    transform: translate3d(4px, 0, 0) rotate(0.6deg);
  }
  92% {
    transform: translate3d(0.8px, 0, 0) rotate(0.1deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
}

/* ==========================================================================
   TABLET & MOBILE SCALING
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1023px) {
  .hero-interactive-logo-wrapper {
    width: 155px;
    height: 155px;
  }

  .logo-piece {
    width: 155px;
    height: 155px;
  }

  .phrase-text {
    font-size: clamp(0.68rem, 2vw, 0.84rem);
    letter-spacing: 0.20em;
  }
}

@media (max-width: 768px) {
  .hero-interactive-logo-wrapper {
    width: 135px;
    height: 135px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .logo-piece {
    width: 135px;
    height: 135px;
  }

  .phrase-text {
    font-size: clamp(0.56rem, 2.6vw, 0.76rem);
    letter-spacing: 0.15em;
  }

  /* Mobile Tap Hints - Subtle Cinematic Indicators (Solo Smartphone, 3s de duración) */
  .mobile-tap-hint {
    display: flex !important;
    align-items: center;
    position: absolute;
    top: 50%;
    z-index: 30;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    will-change: transform, opacity;
  }

  .mobile-tap-hint-left {
    right: calc(100% + 8px);
    gap: 5px;
    animation: mobileHintLeft 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .mobile-tap-hint-right {
    left: calc(100% + 8px);
    gap: 5px;
    animation: mobileHintRight 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .mobile-tap-hint .hint-text {
    font-family: var(--font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(0.55rem, 2.2vw, 0.68rem);
    font-weight: 500;
    letter-spacing: 0.13em;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85), 0 0 10px rgba(255, 106, 0, 0.22);
  }

  .mobile-tap-hint .hint-arrow {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--color-brand-orange-light, #ff8533);
    filter: drop-shadow(0 0 5px rgba(255, 106, 0, 0.55));
  }

  /* Desvanecimiento inmediato si el logotipo se abre o si expiran los 3 segundos */
  .hero-interactive-logo-wrapper.is-open .mobile-tap-hint,
  .hero-interactive-logo-wrapper.hints-expired .mobile-tap-hint,
  .mobile-tap-hint.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    animation: none !important;
  }
}

@media (max-width: 380px) {
  .hero-interactive-logo-wrapper {
    width: 120px;
    height: 120px;
  }

  .logo-piece {
    width: 120px;
    height: 120px;
  }

  .phrase-text {
    font-size: clamp(0.50rem, 2.4vw, 0.68rem);
    letter-spacing: 0.12em;
  }

  .mobile-tap-hint-left {
    right: calc(100% + 5px);
    gap: 4px;
  }

  .mobile-tap-hint-right {
    left: calc(100% + 5px);
    gap: 4px;
  }

  .mobile-tap-hint .hint-text {
    font-size: clamp(0.50rem, 2vw, 0.58rem);
    letter-spacing: 0.10em;
  }

  .mobile-tap-hint .hint-arrow {
    width: 13px;
    height: 13px;
  }
}

/* Keyframes de animación sutil y refinada (3 segundos en total) */
@keyframes mobileHintLeft {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-6px);
  }
  9% {
    opacity: 0.95;
    transform: translateY(-50%) translateX(0);
  }
  20% {
    transform: translateY(-50%) translateX(3px);
  }
  31% {
    transform: translateY(-50%) translateX(0);
  }
  42% {
    transform: translateY(-50%) translateX(3px);
  }
  53% {
    transform: translateY(-50%) translateX(0);
  }
  64% {
    transform: translateY(-50%) translateX(3px);
  }
  75% {
    transform: translateY(-50%) translateX(0);
  }
  84% {
    opacity: 0.95;
    transform: translateY(-50%) translateX(2px);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(-5px);
    visibility: hidden;
  }
}

@keyframes mobileHintRight {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(6px);
  }
  9% {
    opacity: 0.95;
    transform: translateY(-50%) translateX(0);
  }
  20% {
    transform: translateY(-50%) translateX(-3px);
  }
  31% {
    transform: translateY(-50%) translateX(0);
  }
  42% {
    transform: translateY(-50%) translateX(-3px);
  }
  53% {
    transform: translateY(-50%) translateX(0);
  }
  64% {
    transform: translateY(-50%) translateX(-3px);
  }
  75% {
    transform: translateY(-50%) translateX(0);
  }
  84% {
    opacity: 0.95;
    transform: translateY(-50%) translateX(-2px);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(5px);
    visibility: hidden;
  }
}

