/* ==========================================================================
   OSCAR GARCÍA — PURE GSAP SCROLLTRIGGER + 21ST.DEV MICRO-INTERACTIONS
   100% Original Layout, Texts, Image Positions, and Fonts Preserved
   ========================================================================== */

/* 1. Subtle 2px Top Scroll Progress Line */
#oscar-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}

#oscar-scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: 0% 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #ff6705 0%, #ff8a00 65%, #ffb347 100%);
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.65);
}

/* 2. 21st.dev Spotlight Glow on Existing Cards (Zero Layout/Position Shift) */
.oscar-spotlight-card {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.oscar-spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 138, 0, 0.11),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.oscar-spotlight-card:hover::before {
  opacity: 1;
}

.oscar-spotlight-card:hover {
  border-color: rgba(255, 138, 0, 0.55) !important;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 138, 0, 0.08);
}

.oscar-spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* 3. 21st.dev Shimmer Sweep on Existing Primary Buttons (.btn-ember) */
.btn-ember {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background-color 0.3s ease !important;
}

.btn-ember::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: oscarBtnShimmer 5s infinite ease-in-out;
  pointer-events: none;
}

.btn-ember:hover {
  box-shadow: 0 0 24px rgba(255, 138, 0, 0.42);
}

@keyframes oscarBtnShimmer {
  0%, 70% {
    left: -130%;
  }
  100% {
    left: 160%;
  }
}

.btn-ghost {
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease !important;
}

.btn-ghost:hover {
  border-color: rgba(255, 138, 0, 0.55) !important;
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.12);
}

/* 4. Active Scroll Highlight on Existing O·S·C·A·R Letters & Timeline Dots (Zero Shift) */
.oscar-letter-active {
  color: #ff8a00 !important;
  text-shadow: 0 0 22px rgba(255, 138, 0, 0.35);
}

.oscar-dot-active {
  box-shadow: 0 0 0 4px #26262a, 0 0 14px 2px rgba(255, 138, 0, 0.8) !important;
}

/* 5. Editorial 4-Photo Carousel in Conferencia Section */
.oscar-conf-carousel {
  position: relative !important;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden !important;
  background: #141417;
  user-select: none;
  isolation: isolate;
  z-index: 1 !important;
}

/* Keep React's original hydrated <img> invisible in-place so React hydration never conflicts */
.oscar-conf-carousel > img[src*="2223523617.jpg"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ensure any sibling floating badge (like "PRÓXIMAS FECHAS — Consultar disponibilidad →") stays cleanly IN FRONT */
.oscar-conf-floating-front,
div.absolute.-bottom-5.-right-3 {
  z-index: 30 !important;
  background-color: var(--color-card, #323236) !important;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.oscar-conf-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  pointer-events: auto;
}

.oscar-conf-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06) blur(14px);
  opacity: 0;
  transform: scale(1.06);
  z-index: 1;
  will-change: opacity, filter, transform;
  transition:
    opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

/* Outgoing slide stays underneath (z-index: 2) while gently blurring & dissolving out */
.oscar-conf-slide.is-leaving {
  z-index: 2;
  opacity: 0;
  filter: grayscale(100%) contrast(1.06) blur(12px);
  transform: scale(1.03);
  transition:
    opacity 1.15s cubic-bezier(0.4, 0, 0.2, 1) 0.22s,
    filter 1.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Active incoming slide sits on top (z-index: 3) and unblurs smoothly into focus */
.oscar-conf-slide.is-active {
  z-index: 3;
  opacity: 1;
  filter: grayscale(100%) contrast(1.06) blur(0px);
  transform: scale(1);
  pointer-events: auto;
}

.oscar-conf-carousel:hover .oscar-conf-slide.is-active {
  filter: grayscale(0%) contrast(1.03) blur(0px);
}

.oscar-conf-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 20, 0.32) 0%,
    transparent 28%,
    transparent 65%,
    rgba(18, 18, 20, 0.78) 100%
  );
  z-index: 4;
  pointer-events: none;
}

.oscar-conf-counter {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 2px;
  background: rgba(24, 24, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #f4f4f5;
  text-transform: uppercase;
}

.oscar-conf-counter-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #ff8a00, #ff6705);
  box-shadow: 0 0 8px rgba(255, 138, 0, 0.8);
}

.oscar-conf-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(24, 24, 27, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
}

.oscar-conf-nav-btn:hover {
  background: rgba(255, 138, 0, 0.92);
  border-color: #ffb347;
  color: #111113;
  box-shadow: 0 0 18px rgba(255, 138, 0, 0.45);
}

.oscar-conf-prev {
  left: 12px;
}

.oscar-conf-next {
  right: 12px;
}

.oscar-conf-dots {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
}

.oscar-conf-dot {
  width: 26px;
  height: 3px;
  border: none;
  padding: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: all 0.35s ease;
}

.oscar-conf-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.oscar-conf-dot.is-active {
  width: 38px;
  background: linear-gradient(90deg, #ff6705 0%, #ff8a00 65%, #ffb347 100%);
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.7);
}
