/* Lassie.ai (Bakken & Bæck) Scroll Transitions + Widget Orbital BPGP 2026 */
:root {
  --lassie-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lassie-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1. Hero "Chosica, la gestión se ve en tu barrio": Portada Full-Bleed Trazos -> Full Color */
.hero-chosica-card,
.hero-chosica-full {
  position: relative; overflow: hidden; background: #0f172a; isolation: isolate;
}
.hero-chosica-card {
  border-radius: 2rem;
  box-shadow: 0 32px 68px -20px rgba(21, 56, 15, 0.42), 0 0 0 1px rgba(151, 209, 63, 0.35);
}
.hero-sketch-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: grayscale(1) contrast(2.35) invert(0.92) sepia(0.35) hue-rotate(55deg) saturate(1.8);
  opacity: 0.9; transform: scale(1.03);
  transition: transform 1.25s var(--lassie-ease), opacity 0.9s ease;
}
.hero-color-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  clip-path: circle(0% at 35% 52%);
  transition: clip-path 1.35s var(--lassie-ease), transform 1.4s var(--lassie-ease);
  will-change: clip-path, transform;
}
.hero-chosica-card.is-opened .hero-color-layer,
.hero-chosica-full.is-opened .hero-color-layer { clip-path: circle(150% at 45% 50%); }
.hero-chosica-card.is-opened .hero-sketch-layer,
.hero-chosica-full.is-opened .hero-sketch-layer { transform: scale(1); opacity: 0.15; }
.hero-chosica-card:hover .hero-color-layer { transform: scale(1.025); }
.hero-abre-mapa-pill { animation: lassieFloatPill 4.8s ease-in-out infinite; }
@keyframes lassieFloatPill {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -6px, 0) rotate(1deg); }
}

/* 2. Widget Orbital Semicircular Premio BPGP 2026 (Pinterest Pin 338966309472305541) */
.bpgp-orbit-shell {
  position: relative; border-radius: 2.25rem; overflow: hidden;
  background: radial-gradient(65% 85% at 50% 58%, rgba(151, 209, 63, 0.14) 0%, rgba(244, 247, 240, 0.92) 56%, #fff 100%);
  border: 1px solid rgba(31, 82, 22, 0.12);
  box-shadow: 0 28px 64px -26px rgba(31, 82, 22, 0.16);
}
.bpgp-arc-svg path {
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.5s var(--lassie-ease);
}
.bpgp-orbit-shell.is-drawn .bpgp-arc-svg path { stroke-dashoffset: 0; }
.bpgp-orbit-node {
  position: absolute; z-index: 4; cursor: pointer;
  transform: translate(-50%, -50%) scale(0.84); opacity: 0;
  transition: transform 0.68s var(--lassie-spring), opacity 0.55s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  transition-delay: var(--node-d, 0ms);
}
.bpgp-orbit-shell.is-drawn .bpgp-orbit-node { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.bpgp-orbit-node.is-highlighted {
  transform: translate(-50%, -54%) scale(1.06) !important;
  box-shadow: 0 16px 32px -10px rgba(31, 82, 22, 0.28), 0 0 0 2px #97D13F; z-index: 6;
}
.bpgp-orbit-node.is-dimmed { opacity: 0.58 !important; }
.bpgp-kpi-col {
  transition: transform 0.45s var(--lassie-spring), background-color 0.35s ease, box-shadow 0.35s ease;
  border-radius: 1.5rem; padding: 0.75rem 1rem;
}
.bpgp-kpi-col.is-focused {
  transform: translate3d(0, -4px, 0) scale(1.03);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 34px -18px rgba(31, 82, 22, 0.22);
}

/* 3. Selector magnético de píldoras estilo Lassie.ai */
.bpgp-tabs-bar {
  position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem; padding: 0.45rem; border-radius: 9999px;
  background: rgba(241, 245, 236, 0.92); border: 1px solid rgba(31, 82, 22, 0.14);
}
.bpgp-tab-indicator {
  position: absolute; top: 0; left: 0; border-radius: 9999px; background: #1F5216;
  box-shadow: 0 10px 24px -8px rgba(31, 82, 22, 0.45);
  transition: transform 0.46s var(--lassie-ease), width 0.46s var(--lassie-ease), height 0.35s var(--lassie-ease);
  pointer-events: none; z-index: 1;
}
.bpgp-tab-btn {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.1rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 600;
  color: #2A4325; transition: color 0.28s ease;
}
.bpgp-tab-btn.is-active { color: #ffffff; }
.bpgp-chip {
  display: inline-flex; align-items: center; border-radius: 9999px;
  background: rgba(151, 209, 63, 0.18); border: 1px solid rgba(31, 82, 22, 0.18);
  padding: 0.28rem 0.78rem; font-size: 0.75rem; font-weight: 600; color: #1F5216;
}
@keyframes lassieDetailIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
.lassie-detail-swap { animation: lassieDetailIn 0.42s var(--lassie-ease) both; }

/* 4. Lassie Scroll-Scrubbed Morphing + Arrastre con mouse en Seis Frentes */
[data-lassie-morph] {
  --lassie-p: 1;
  transform: translate3d(0, calc((1 - var(--lassie-p)) * 28px), 0) scale(calc(0.955 + (var(--lassie-p) * 0.045)));
  transition: transform 0.38s var(--lassie-ease), box-shadow 0.4s ease;
  will-change: transform;
}
#ejes-grid { --deck-drag-x: 0px; cursor: grab; user-select: none; -webkit-user-select: none; }
#ejes-grid.is-dragging { cursor: grabbing; }
#ejes-grid .shop-hito-card, #ejes-grid img { -webkit-user-drag: none; user-select: none; }
#ejes-grid.is-dragging .shop-hito-slide { transition: none !important; }
#ejes-grid .shop-hito-slide[data-pos="center"],
#ejes-grid .shop-hito-slide[data-pos="prev"],
#ejes-grid .shop-hito-slide[data-pos="next"] {
  margin-left: var(--deck-drag-x, 0px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-color-layer { clip-path: none !important; transition: none !important; }
  .bpgp-orbit-node, [data-lassie-morph] { transform: none !important; opacity: 1 !important; transition: none !important; }
  .bpgp-arc-svg path { stroke-dashoffset: 0 !important; transition: none !important; }
}
