/* ==========================================================================
   INICIO • STORYTELLING HERO SCROLL & VIDEO SCRUBBER
   ========================================================================== */

#view-inicio {
  width: 100%;
  position: relative;
  background-color: #050811;
  color: #FFFFFF;
}

/* Hide Ecosystem Bubbles and 3D Canvas completely when on Inicio tab */
body[data-current-world="inicio"] #ecosystem-bubbles-dock,
body:not([data-current-world]) #ecosystem-bubbles-dock {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body[data-current-world="inicio"] #spheres-canvas-container,
body:not([data-current-world]) #spheres-canvas-container {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Scroll Wrapper Track: defines the scroll distance (~380vh) to scrub the 8s video */
.inicio-scroll-wrapper {
  position: relative;
  width: 100%;
  height: 380vh;
}

/* Fullscreen Hero Section: pinned/sticky while scrolling within wrapper */
.inicio-hero-section {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* 1. Background Storytelling Canvas (60fps GPU Hardware Accelerated) */
.inicio-canvas-bg,
.inicio-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
  background: #000000;
}

/* 2. Mensaje central en el segundo video (¿Cuál es tu camino?) */
.inicio-pointing-message {
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 24;
  text-align: center;
  pointer-events: none;
  user-select: none;
  width: 90%;
  max-width: 620px;
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.85s;
}

.inicio-pointing-message.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.85s; /* Aparece suavemente cuando el 2do video ya está avanzado */
}

.pointing-msg-title {
  margin: 0 0 6px 0;
  font-family: 'HelveticaNowDisplay-Medium', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 4px 25px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 0, 0, 0.7);
}

.pointing-msg-subtitle {
  margin: 0;
  font-family: 'HelveticaNowDisplay-Medium', 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.95),
    0 4px 20px rgba(0, 0, 0, 0.85);
}

@media (max-height: 720px) {
  .inicio-pointing-message {
    bottom: 56px;
  }
  .pointing-msg-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  }
  .pointing-msg-subtitle {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  }
}

/* ==========================================================================
   3 ZONAS INTERACTIVAS (COLEGIOS, CANADÁ, EMISORA)
   
   Arquitectura:
   - .inicio-hotspots-layer: contenedor invisible (se activa al llegar al frame)
   - .inicio-hotspot: botones transparentes para recibir clicks/focus (sin visual)
   - .inicio-hotspots-svg: SVG overlay con los paths exactos en forma blob
   - .blob-path: paths SVG con el contorno exacto de cada cápsula
   - JS activa .is-zone-active en el blob según el tercio del mouse en pantalla
   ========================================================================== */

/* Contenedor principal de capas sobre el video con perspectiva 3D */
.inicio-hotspots-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 130;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  perspective: 1200px;
  perspective-origin: 50% 42%;
}

/* ── Botones y láminas holográficas (Invisibles durante el Video 1, activas al empezar el Video 2) ── */
.inicio-hotspot {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  outline: none;
  padding: 0; margin: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.inicio-hotspots-layer.is-active .inicio-hotspot {
  pointer-events: auto;
  opacity: 1;
}

/* ── Tarjetas Holográficas de Vidrio Cian Traslúcidas por Código ── */
.inicio-hotspot.holo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  user-select: none;
  
  /* 1. Fondo de Cristal Traslúcido Frosted Glass (deja ver el fondo, nubes y ciudad) */
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.16) 0%, 
    rgba(180, 230, 255, 0.06) 40%, 
    rgba(100, 200, 255, 0.05) 70%, 
    rgba(0, 225, 255, 0.12) 100%
  );

  /* 2. Refracción óptica de fondo */
  backdrop-filter: blur(5px) saturate(115%) brightness(1.02);
  -webkit-backdrop-filter: blur(5px) saturate(115%) brightness(1.02);

  /* 3. Borde exterior de neón cian eléctrico con resplandor suave */
  border: 2px solid #5de4ff;
  box-shadow: 
    0 0 10px rgba(0, 240, 255, 0.7),
    0 0 20px rgba(0, 240, 255, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 0 10px rgba(0, 230, 255, 0.15);
  
  transform-style: preserve-3d;
}

/* 4. Contorno interior sutil de vidrio */
.inicio-hotspot.holo-card::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 1;
}

/* 5. Destello luminoso superior en el borde */
.inicio-hotspot.holo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ffffff 30%, #5de4ff 70%, transparent 100%);
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 2;
}

/* 6. Tipografía idéntica a la referencia */
.inicio-hotspot.holo-card span {
  position: relative;
  z-index: 3;
  color: #ffffff;
  font-family: Arial, 'Helvetica Neue', Helvetica, 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1;
  text-shadow: 
    0 2px 4px rgba(0, 15, 45, 0.35),
    0 0 12px rgba(90, 220, 255, 0.5);
}

.inicio-hotspot.holo-card.double-line span {
  font-size: clamp(23px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* Hover & Active microinteractions respetando la orientación 3D de cada tarjeta */
.inicio-hotspots-layer.is-active .inicio-hotspot.holo-card:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.24) 0%, 
    rgba(180, 230, 255, 0.12) 40%, 
    rgba(100, 200, 255, 0.09) 70%, 
    rgba(0, 225, 255, 0.22) 100%
  );
  box-shadow: 
    0 0 18px rgba(0, 240, 255, 0.95),
    0 0 36px rgba(0, 220, 255, 0.6),
    0 12px 24px rgba(0, 20, 50, 0.25),
    inset 0 1px 3px rgba(255, 255, 255, 0.95);
}

.inicio-hotspots-layer.is-active .hotspot-colegios:hover {
  transform: rotateY(16deg) rotateX(0.5deg) translateY(-5px) scale(1.025);
}
.inicio-hotspots-layer.is-active .hotspot-canada:hover {
  transform: rotateY(0deg) translateY(-5px) scale(1.025);
}
.inicio-hotspots-layer.is-active .hotspot-emisora:hover {
  transform: rotateY(-5deg) rotateX(0.5deg) translateY(-5px) scale(1.025);
}

.inicio-hotspots-layer.is-active .inicio-hotspot.holo-card:active {
  transform: translateY(1px) scale(0.98);
}

/* ── Posición y Orientación 3D exacta de cada tarjeta holográfica ── */

/* 1. Colegio: +2px lado derecho (width: 19.01%), +2px abajo (height: 22.08%) */
.hotspot-colegios {
  left: 8.35%; top: 32.2%;
  width: 19.01%; height: 22.08%;
  border-radius: 26px;
  transform-origin: center right;
  transform: rotateY(16deg) rotateX(0.5deg) translateY(14px) scale(0.96);
}

/* 2. Canadá: -4px izquierda (left: 46.51%, width: 20.69%), +2px abajo (height: 22.58%) */
.hotspot-canada {
  left: 46.51%; top: 32.6%;
  width: 20.69%; height: 22.58%;
  border-radius: 26px;
  transform-origin: center center;
  transform: rotateY(0deg) translateY(14px) scale(0.96);
}

/* 3. Emisora Digital: -3px de la derecha (width: 21.77%) */
.hotspot-emisora {
  left: 69.5%; top: 31.4%;
  width: 21.77%; height: 24.0%;
  border-radius: 26px;
  transform-origin: center left;
  transform: rotateY(-5deg) rotateX(0.5deg) translateY(14px) scale(0.96);
}

/* Entrada escalonada ultra suave cuando se activa al final del video */
.inicio-hotspots-layer.is-active .hotspot-colegios {
  opacity: 1;
  transform: rotateY(16deg) rotateX(0.5deg) translateY(0) scale(1);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.04s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.04s, box-shadow 0.3s ease;
}
.inicio-hotspots-layer.is-active .hotspot-canada {
  opacity: 1;
  transform: rotateY(0deg) translateY(0) scale(1);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, box-shadow 0.3s ease;
}
.inicio-hotspots-layer.is-active .hotspot-emisora {
  opacity: 1;
  transform: rotateY(-5deg) rotateX(0.5deg) translateY(0) scale(1);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.20s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.20s, box-shadow 0.3s ease;
}

/* ── SVG overlay con los contornos antiguos y resaltado por zona (Desactivado) ── */
.inicio-hotspots-svg {
  display: none !important;
}

/* ==========================================================================
   CAPA DE TEXTO NARRATIVO VIDEO 1 (MULTI-ESTILO CONMUTABLE)
   ========================================================================== */
.inicio-story-phrases {
  position: absolute;
  bottom: 36px;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 980px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 25;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tono suave de sombra difusa ambiental detrás del texto al aparecer (sin caja cerrada) */
.story-ambient-glow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 820px;
  height: 130px;
  background: radial-gradient(ellipse at center, rgba(3, 7, 18, 0.78) 0%, rgba(3, 7, 18, 0.42) 55%, transparent 75%);
  pointer-events: none;
  filter: blur(28px);
  z-index: 1;
  opacity: 0.95;
  border-radius: 999px;
  transition: opacity 0.4s ease;
}

.story-phrase {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform, filter;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.15s ease-out;
}

/* Metadatos (Tag de paso / número) */
.phrase-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.phrase-meta .meta-tag {
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.phrase-meta .meta-line {
  width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
}

.phrase-text-wrap {
  display: block;
}

.phrase-text {
  font-family: 'HelveticaNowDisplay-Medium', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  color: #FFFFFF !important;
  text-shadow: 
    0 3px 14px rgba(0, 0, 0, 0.98),
    0 6px 28px rgba(0, 0, 0, 0.92),
    0 0 50px rgba(0, 0, 0, 0.85) !important;
  display: inline-block;
  padding: 0 10px;
  user-select: none;
  transition: all 0.35s ease;
}

/* Énfasis editorial cursivo elegante */
.phrase-text em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, #FFFFFF 20%, #7DD3FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.45));
}

/* Indicador de 4 barras de progreso */
.story-dots-indicator {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
  transition: all 0.3s ease;
}

.story-dot {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease, box-shadow 0.35s ease;
}

.story-dot.is-active {
  width: 38px;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

.story-dot.dot-2.is-active {
  background: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}

.story-dot.dot-3.is-active {
  background: #F87171;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.9);
}

.story-dot.dot-4.is-active {
  background: #C084FC;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.9);
}

/* --------------------------------------------------------------------------
   TEMA 3: EDITORIAL MODERNO (.style-editorial - TAMAÑO GRANDE CON SOMBRA INFERIOR)
   -------------------------------------------------------------------------- */
.inicio-story-phrases.style-editorial {
  top: auto;
  bottom: 36px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.inicio-story-phrases.style-editorial .story-ambient-glow {
  display: block !important;
  opacity: 0.95;
}

.inicio-story-phrases.style-editorial .phrase-meta .meta-tag {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

.inicio-story-phrases.style-editorial .phrase-meta .meta-line {
  background: linear-gradient(90deg, #FFFFFF, rgba(255, 255, 255, 0.2)) !important;
  height: 1.5px !important;
  width: 44px !important;
}

.inicio-story-phrases.style-editorial .story-phrase .phrase-text {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  filter: none !important;
  text-shadow: 
    0 3px 14px rgba(0, 0, 0, 0.98),
    0 6px 28px rgba(0, 0, 0, 0.92),
    0 0 45px rgba(0, 0, 0, 0.85) !important;
}

.inicio-story-phrases.style-editorial #story-phrase-1 .phrase-text {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  text-shadow: 
    0 3px 14px rgba(0, 0, 0, 0.98),
    0 6px 28px rgba(0, 0, 0, 0.92),
    0 0 40px rgba(255, 255, 255, 0.45) !important;
}

.inicio-story-phrases.style-editorial #story-phrase-2 .phrase-text {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  text-shadow: 
    0 3px 14px rgba(0, 0, 0, 0.98),
    0 6px 28px rgba(0, 0, 0, 0.92),
    0 0 40px rgba(56, 189, 248, 0.65) !important;
}

.inicio-story-phrases.style-editorial #story-phrase-3 .phrase-text {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  text-shadow: 
    0 3px 14px rgba(0, 0, 0, 0.98),
    0 6px 28px rgba(0, 0, 0, 0.92),
    0 0 40px rgba(248, 113, 113, 0.65) !important;
}

.inicio-story-phrases.style-editorial #story-phrase-4 .phrase-text {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  text-shadow: 
    0 3px 14px rgba(0, 0, 0, 0.98),
    0 6px 28px rgba(0, 0, 0, 0.92),
    0 0 40px rgba(192, 132, 252, 0.65) !important;
}

/* Énfasis cursivo editorial luminoso */
.inicio-story-phrases.style-editorial .phrase-text em {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 0.95),
    0 0 35px rgba(56, 189, 248, 0.8),
    0 4px 18px rgba(0, 0, 0, 0.98) !important;
}

/* --------------------------------------------------------------------------
   TEMA 1: CINEMÁTICO MINIMALISTA (.style-minimal)
   -------------------------------------------------------------------------- */
.inicio-story-phrases.style-minimal {
  top: 50%;
}

.inicio-story-phrases.style-minimal .phrase-meta,
.inicio-story-phrases.style-minimal .story-dots-indicator {
  display: none !important;
}

.inicio-story-phrases.style-minimal .story-ambient-glow {
  max-width: 920px;
  height: 260px;
  opacity: 0.85;
  filter: blur(40px);
}

.inicio-story-phrases.style-minimal .story-phrase .phrase-text,
.inicio-story-phrases.style-minimal #story-phrase-1 .phrase-text,
.inicio-story-phrases.style-minimal #story-phrase-2 .phrase-text,
.inicio-story-phrases.style-minimal #story-phrase-3 .phrase-text,
.inicio-story-phrases.style-minimal #story-phrase-4 .phrase-text {
  font-family: 'HelveticaNowDisplay-Medium', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: clamp(3.4rem, 7.8vw, 6.2rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  filter: none !important;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 4px 25px rgba(0, 0, 0, 0.9),
    0 8px 50px rgba(0, 0, 0, 0.85) !important;
}

.inicio-story-phrases.style-minimal .phrase-text em {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  filter: none !important;
  text-shadow: inherit !important;
}

/* --------------------------------------------------------------------------
   TEMA 2: CÁPSULA GLASSMORFICA (.style-glass)
   -------------------------------------------------------------------------- */
.inicio-story-phrases.style-glass {
  top: 50%;
  background: rgba(10, 16, 32, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 36px;
  padding: 32px 50px;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.7),
    0 0 45px rgba(56, 189, 248, 0.12);
  width: auto;
  min-width: 480px;
  max-width: 860px;
  height: 190px;
}

.inicio-story-phrases.style-glass .story-ambient-glow {
  display: none !important;
}

.inicio-story-phrases.style-glass .phrase-meta .meta-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
}

.inicio-story-phrases.style-glass .phrase-text {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.inicio-story-phrases.style-glass .story-dots-indicator {
  bottom: 14px;
}

/* --------------------------------------------------------------------------
   TEMA 4: TRÁILER DE CINE (.style-trailer)
   -------------------------------------------------------------------------- */
.inicio-story-phrases.style-trailer {
  top: 50%;
  width: 100vw;
  max-width: 100vw;
  left: 0;
  transform: translateY(-50%);
}

.inicio-story-phrases.style-trailer .story-ambient-glow {
  width: 100vw;
  max-width: 100vw;
  left: 0;
  transform: none;
  top: 0;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.85) 70%, transparent 100%);
  filter: none;
  opacity: 1;
}

.inicio-story-phrases.style-trailer .phrase-meta {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.6);
}

.inicio-story-phrases.style-trailer .phrase-text {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #FFFFFF;
}

.inicio-story-phrases.style-trailer .phrase-text em {
  font-family: inherit;
  font-style: normal;
  color: #38BDF8;
  -webkit-text-fill-color: #38BDF8;
}

/* ==========================================================================
   LOGO 3D INTERACTIVO DESACOPLADO (SCROLL-REACTIVE & MAGNETIC TILT)
   Permite desacoplar el logotipo del video pre-renderizado para convertirlo
   en una entidad 3D viva que reacciona al scroll, al mouse y a los ecosistemas.
   ========================================================================== */
.inicio-interactive-logo {
  position: absolute;
  left: 48.50%;
  top: 11.80%;
  width: 25.50%;
  height: auto;
  aspect-ratio: 1767 / 796;
  z-index: 35;
  pointer-events: auto;
  cursor: pointer;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  opacity: 1;
  transform-origin: top left;
  will-change: transform;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Estado cuando se desactiva por el botón de prueba */
.inicio-interactive-logo.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Contenedor 3D con amortiguación para el tilt */
.logo-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* La imagen 3D ultra-nítida */
.logo-3d-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 30, 80, 0.35))
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  transition: filter 0.4s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, filter;
  pointer-events: none;
}

/* Efecto de clic elástico ("boing") */
.logo-3d-wrapper.is-clicked {
  animation: logoClickBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoClickBounce {
  0% { transform: scale(1) translateZ(0); }
  25% { transform: scale(0.92, 1.10) translateZ(-15px) rotate(-2deg); }
  50% { transform: scale(1.10, 0.94) translateZ(25px) rotate(3deg); }
  75% { transform: scale(0.98, 1.02) translateZ(8px) rotate(-1deg); }
  100% { transform: scale(1) translateZ(0) rotate(0deg); }
}

/* Aura ambiental de energía */
.logo-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 110%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.12) 45%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.80;
  transition: background 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
  z-index: -1;
  animation: auraPulse 4s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

/* Anillo orbital (oculto para estética escultórica limpia) */
.logo-orbit-ring {
  display: none;
}

@keyframes orbitRotate {
  0% { transform: translate(-50%, -50%) rotateX(68deg) rotateY(12deg) rotateZ(0deg); }
  100% { transform: translate(-50%, -50%) rotateX(68deg) rotateY(12deg) rotateZ(360deg); }
}

/* Partículas de luz en órbita */
.orbit-particle-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px #ffffff;
  top: -3.5px;
  left: 50%;
}
.orbit-particle-spark.p2 {
  top: auto;
  bottom: -3.5px;
  left: 20%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

/* Rayos de conexión holográfica entre el Logo y las 3 tarjetas (Desactivado) */
.logo-energy-beams {
  display: none !important;
}

.energy-beam {
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 8 14;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke-width 0.4s ease;
  animation: beamFlow 1.4s linear infinite;
}

@keyframes beamFlow {
  to { stroke-dashoffset: -44; }
}

.energy-beam.beam-colegios {
  stroke: url(#beam-grad-colegios);
  filter: drop-shadow(0 0 8px #38BDF8);
}
.energy-beam.beam-canada {
  stroke: url(#beam-grad-canada);
  filter: drop-shadow(0 0 8px #F87171);
}
.energy-beam.beam-emisora {
  stroke: url(#beam-grad-emisora);
  filter: drop-shadow(0 0 8px #C084FC);
}

/* Activar los rayos cuando los ecosistemas están visibles (scroll final) */
.inicio-hotspots-layer.is-active .energy-beam {
  opacity: 0.75;
}

/* Resonancia cromática al interactuar con las tarjetas */
.inicio-interactive-logo.focus-colegios .logo-3d-img {
  filter: drop-shadow(0 0 35px rgba(56, 189, 248, 1))
          drop-shadow(0 0 70px rgba(56, 189, 248, 0.6));
  transform: scale(1.06) translateZ(20px);
}
.inicio-interactive-logo.focus-colegios .logo-glow-aura {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.75) 0%, transparent 70%);
  opacity: 1;
}

.inicio-interactive-logo.focus-canada .logo-3d-img {
  filter: drop-shadow(0 0 35px rgba(248, 113, 113, 1))
          drop-shadow(0 0 70px rgba(248, 113, 113, 0.6));
  transform: scale(1.06) translateZ(20px);
}
.inicio-interactive-logo.focus-canada .logo-glow-aura {
  background: radial-gradient(circle, rgba(248, 113, 113, 0.75) 0%, transparent 70%);
  opacity: 1;
}

.inicio-interactive-logo.focus-emisora .logo-3d-img {
  filter: drop-shadow(0 0 35px rgba(192, 132, 252, 1))
          drop-shadow(0 0 70px rgba(192, 132, 252, 0.6));
  transform: scale(1.06) translateZ(20px);
}
.inicio-interactive-logo.focus-emisora .logo-glow-aura {
  background: radial-gradient(circle, rgba(192, 132, 252, 0.75) 0%, transparent 70%);
  opacity: 1;
}



