/* ==========================================================================
   SYNAPSE • JULY EXPERIENCE (IDIOMAS MOUSE-TRACK & HUB SCROLL-SCRUB)
   Award-Winning Immersive Video & Frame Scrubbing Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. IDIOMAS HERO: MOUSE-TRACKING CHARACTER (JULY)
   -------------------------------------------------------------------------- */
.july-idiomas-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #060A10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.july-idiomas-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* Vignette & Ambient Radial Glows */
.july-idiomas-overlay-grad {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(6, 10, 16, 0.88) 0%, rgba(6, 10, 16, 0.45) 50%, rgba(6, 10, 16, 0.15) 100%),
    linear-gradient(180deg, rgba(6, 10, 16, 0.6) 0%, transparent 20%, transparent 75%, rgba(6, 10, 16, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
}

.july-idiomas-content {
  position: relative;
  z-index: 5;
  max-width: 680px;
  padding: 0 40px;
  margin-left: max(24px, calc((100vw - 1280px) / 2));
}

.july-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.july-eyebrow-badge .pulse-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
  animation: pulseCyan 2s infinite ease-in-out;
}

@keyframes pulseCyan {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.july-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 18px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.july-hero-title span {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.july-hero-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: #CBD5E1;
  margin: 0 0 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.july-actions-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.july-btn-tef {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 24px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.july-btn-tef:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(220, 38, 38, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}

.july-btn-ielts {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 24px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.july-btn-ielts:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.95);
  border-color: #38BDF8;
  color: #38BDF8;
}

/* Floating Interactive Mouse Hint Pill */
.july-mouse-tracking-hint {
  position: absolute;
  bottom: 24px;
  left: 40px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(10, 16, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  color: #E2E8F0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.july-mouse-tracking-hint svg {
  color: #38BDF8;
  animation: mouseHintSlide 2s infinite ease-in-out;
}

@keyframes mouseHintSlide {
  0%, 100% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
}

/* Typewriter Quote Bubble (Bottom Right) */
.july-quote-bubble {
  position: absolute;
  bottom: 28px;
  right: 40px;
  z-index: 6;
  max-width: 380px;
  padding: 16px 20px;
  border-radius: 20px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(10, 16, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 0 25px rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.july-avatar-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38BDF8;
  flex-shrink: 0;
}

.july-quote-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #F1F5F9;
}

.july-quote-text strong {
  color: #38BDF8;
}

/* --------------------------------------------------------------------------
   2. S-COOL HUB: FULL-SCREEN PINNED SCROLL SCRUBBER
   -------------------------------------------------------------------------- */
.hub-july-scroll-stage {
  position: relative;
  width: 100%;
  height: 340vh; /* Luxurious scroll distance for slow cosmic singularity absorption */
  background: #04070B;
  box-sizing: border-box;
}

.hub-july-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04070B url('../assets/frames_july_hub/frame_0001.webp') center/cover no-repeat;
}

.hub-july-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.hub-july-scrim {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 25% 45%, rgba(4, 7, 11, 0.35) 0%, rgba(4, 7, 11, 0.10) 60%, transparent 100%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.55) 0%, transparent 18%, transparent 82%, rgba(4, 7, 11, 0.90) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Narrative Story Cards (Invisible Black Hole Singularity Absorption & Cosmic Emergence) */
.hub-story-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  pointer-events: none;
  perspective: 1600px;
  perspective-origin: 35% 50%;
  transform-style: preserve-3d;
}

.hub-chapter-card {
  position: absolute;
  left: 40px;
  max-width: 590px;
  padding: 34px 38px;
  border-radius: 28px;
  /* Frosted Glass: Translucent crystal body allowing video to blur through */
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(56, 189, 248, 0.05) 100%),
    rgba(8, 14, 26, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.40);
  border-left: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 
    0 30px 70px -10px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 0 25px rgba(255, 255, 255, 0.03),
    0 0 35px rgba(56, 189, 248, 0.15);
  pointer-events: none;
  opacity: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
  overflow: hidden;
  transition: 
    transform 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gravitational Lensing Refraction Ripple on Card Emergence */
.hub-chapter-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.35) 0%, rgba(129, 140, 248, 0.15) 40%, transparent 70%);
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.0s ease;
}

.hub-chapter-card.is-active::after {
  opacity: 0;
  transform: scale(2.2);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 1.1s ease 0.2s;
}

/* 1. STATE: INCOMING (Materializándose y expandiéndose desde la singularidad invisible) */
.hub-chapter-card.is-incoming,
.hub-chapter-card:not(.is-active):not(.is-outgoing) {
  opacity: 0;
  transform: translate3d(0, 0, -480px) rotateZ(160deg) rotateX(-35deg) rotateY(40deg) scale3d(0.015, 0.015, 0.015);
  filter: blur(32px) brightness(2.6) saturate(220%);
  pointer-events: none;
}

/* 2. STATE: ACTIVE (Totalmente desplegada, en perfecto foco y equilibrio) */
.hub-chapter-card.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
  filter: blur(0px) brightness(1) saturate(100%);
  pointer-events: auto;
  animation: cosmicGlassFloat 7s infinite ease-in-out;
}

/* 3. STATE: OUTGOING (Absorbida en vórtice hacia el centro de un agujero negro invisible) */
.hub-chapter-card.is-outgoing {
  opacity: 0;
  transform: translate3d(0, 0, -420px) rotateZ(-160deg) rotateX(42deg) rotateY(-36deg) scale3d(0.015, 0.015, 0.015);
  filter: blur(30px) brightness(2.8) saturate(240%);
  pointer-events: none;
  transition: 
    transform 1.35s cubic-bezier(0.6, 0.02, 0.3, 1),
    opacity 1.0s cubic-bezier(0.7, 0, 0.8, 0.6) 0.25s,
    filter 1.25s cubic-bezier(0.6, 0.02, 0.3, 1);
}

/* Sutil respiración cósmica gravitatoria mientras está activa */
@keyframes cosmicGlassFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg);
  }
  40% {
    transform: translate3d(0, -6px, 12px) rotateZ(0.4deg) rotateX(1deg) rotateY(-0.8deg);
  }
  75% {
    transform: translate3d(0, -2px, 6px) rotateZ(-0.3deg) rotateX(-0.6deg) rotateY(0.6deg);
  }
}

/* Vórtice gravitacional en elementos internos (títulos, pastillas, texto) */
.hub-chapter-pill,
.hub-chapter-title,
.hub-chapter-desc,
.hub-chapter-features {
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
  transition: 
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), 
    opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.3s ease;
}

.hub-chapter-card.is-active .hub-chapter-pill {
  opacity: 1;
  transform: scale(1) rotateZ(0deg) translate3d(0, 0, 20px);
  filter: blur(0px);
  transition-delay: 0.12s;
}

.hub-chapter-card.is-active .hub-chapter-title {
  opacity: 1;
  transform: scale(1) rotateZ(0deg) translate3d(0, 0, 32px);
  filter: blur(0px);
  transition-delay: 0.20s;
}

.hub-chapter-card.is-active .hub-chapter-desc {
  opacity: 1;
  transform: scale(1) rotateZ(0deg) translate3d(0, 0, 24px);
  filter: blur(0px);
  transition-delay: 0.28s;
}

.hub-chapter-card.is-active .hub-chapter-features {
  opacity: 1;
  transform: scale(1) rotateZ(0deg) translate3d(0, 0, 28px);
  filter: blur(0px);
  transition-delay: 0.36s;
}

/* Colapso de los elementos hacia el centro del vórtice */
.hub-chapter-card.is-outgoing .hub-chapter-pill,
.hub-chapter-card.is-outgoing .hub-chapter-title,
.hub-chapter-card.is-outgoing .hub-chapter-desc,
.hub-chapter-card.is-outgoing .hub-chapter-features {
  opacity: 0;
  transform: scale(0.04) rotateZ(-140deg);
  filter: blur(20px);
  transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 1.1s ease;
}

.hub-chapter-card.is-incoming .hub-chapter-pill,
.hub-chapter-card.is-incoming .hub-chapter-title,
.hub-chapter-card.is-incoming .hub-chapter-desc,
.hub-chapter-card.is-incoming .hub-chapter-features {
  opacity: 0;
  transform: scale(0.04) rotateZ(140deg);
  filter: blur(20px);
}

.hub-chapter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.hub-chapter-pill .pulse-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
  animation: pulseCyan 2s infinite ease-in-out;
}

.hub-chapter-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 16px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.hub-chapter-title span {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-chapter-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.65;
  color: #CBD5E1;
  margin: 0 0 22px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hub-chapter-desc strong {
  color: #38BDF8;
  font-weight: 700;
}

.hub-chapter-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #F1F5F9;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.hub-feature-pill:hover {
  border-color: #38BDF8;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.hub-chapter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284C7 0%, #4F46E5 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 24px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-chapter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(79, 70, 229, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Bottom HUD Scrubber Telemetry (Removed by user request) */
.hub-july-hud-bottom {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.hub-progress-track {
  flex: 1;
  max-width: 480px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.hub-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
  border-radius: 4px;
  transition: width 0.08s ease-out;
}

/* Step-by-Step Chapter Navigation Stepper */
.hub-chapter-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hub-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(10, 16, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94A3B8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.hub-step-chip:hover {
  background: rgba(30, 41, 59, 0.90);
  border-color: rgba(56, 189, 248, 0.5);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.hub-step-chip.is-active {
  background: rgba(14, 165, 233, 0.18);
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.hub-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748B;
  transition: all 0.28s ease;
}

.hub-step-chip.is-active .hub-step-dot {
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
  animation: pulseCyan 2s infinite ease-in-out;
}

.hub-step-idx {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.85;
}

.hub-step-title {
  white-space: nowrap;
}

.hub-hud-chips {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-hud-chip {
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(10, 16, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  color: #94A3B8;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hub-hud-chip strong {
  color: #38BDF8;
}

.hub-hud-label {
  color: #64748B;
  font-weight: 500;
  margin-right: 2px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .july-idiomas-content {
    padding: 0 20px;
    margin-left: 0;
  }
  .july-quote-bubble {
    display: none;
  }
  .hub-chapter-card {
    left: 20px;
    right: 20px;
    max-width: calc(100% - 40px);
    padding: 24px;
  }
  .hub-july-hud-bottom {
    left: 20px;
    right: 20px;
    bottom: 16px;
    gap: 12px;
  }
  .hub-chapter-stepper {
    order: 2;
    width: 100%;
    justify-content: center;
  }
  .hub-step-title {
    display: none;
  }
}

/* ==========================================================================
   3D BRANDMARK EMBLEM: S-COOL TEF CANADÁ (OPTION B - THREE.JS WEBGL)
   Free-floating pure 3D emblem pinned to top-left of Destination Canada
   ========================================================================== */
.hub-tef-brand-badge {
  position: absolute;
  top: 36px;
  left: 48px;
  z-index: 50;
  display: block;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.75)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.50));
  transition: 
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease;
  will-change: transform, opacity, filter;
}

.hub-tef-brand-badge.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hub-tef-brand-badge:hover {
  filter: 
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 20px rgba(229, 9, 20, 0.35));
}

.hub-tef-brand-canvas {
  width: 210px;
  height: 120px;
  display: block;
}

@media (max-width: 900px) {
  .hub-tef-brand-badge {
    top: 20px;
    left: 20px;
  }
  .hub-tef-brand-canvas {
    width: 175px;
    height: 100px;
  }
}

