/* =========================================
   7bee SITI — Visual FX: Circuit BG + Image Sections
   ========================================= */

/* ---- CIRCUIT CANVAS (global fixed layer) ---- */
#circuit-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

/* All page elements sit above the canvas */
section, footer, .wa-float, .mobile-nav,
.img-block-02, .img-block-01, .hero {
  position: relative;
  z-index: 2;
}

/* Navbar must remain fixed — do NOT override position here */
.navbar {
  z-index: 1000;
}

/* ---- SEMI-TRANSPARENT BACKGROUNDS (allow circuits to show through) ----
   Replaces solid dark backgrounds with rgba equivalents.
   --dark   = #0D1117 => rgba(13,17,23)
   --dark-2 = #131921 => rgba(19,25,33)
   --dark-3 = #1A2332 => rgba(26,35,50)
*/

/* Cards */
.card {
  background: rgba(19, 25, 33, 0.80) !important;
}
.service-feature-card {
  background: linear-gradient(135deg, rgba(19,25,33,0.82) 0%, rgba(26,35,50,0.82) 100%) !important;
}
.mini-card {
  background: rgba(0, 0, 0, 0.40) !important;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(26,35,50,0.85) 0%, rgba(19,25,33,0.85) 100%) !important;
}

/* img-block-02 */
.img-block-02 {
  background: rgba(13, 17, 23, 0.82) !important;
}
.img-block-02::before {
  background: rgba(13, 17, 23, 0.75) !important;
}
.img-block-02__stat {
  background: rgba(13, 17, 23, 0.72) !important;
}

/* Navbar stays opaque for readability */
.navbar {
  z-index: 1000 !important;
}

/* =========================================
   HOME-01 — Hero-fused cinematic image
   Bleeds into the hero section from below,
   creating a seamless continuation
   ========================================= */

.img-block-01 {
  position: relative;
  width: 100%;
  margin-top: -120px;        /* pull up to overlap hero bottom */
  overflow: hidden;
  background: transparent;
  z-index: 1;
}

.img-block-01__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1380 / 680;
  max-height: 700px;
  overflow: hidden;
}

.img-block-01__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transform: scale(1.06);
  transition: transform 9s ease;
  filter: brightness(0.78) saturate(0.75) contrast(1.08);
}

.img-block-01__inner.in-view img {
  transform: scale(1.0);
}

/* TOP gradient: seamlessly merges hero above into image */
.img-block-01__overlay {
  position: absolute;
  inset: 0;
  background:
    /* top: strong fade from hero dark bg */
    linear-gradient(180deg,
      var(--black)         0%,
      rgba(8,10,14,0.70)  18%,
      rgba(8,10,14,0.10)  38%,
      transparent         55%,
      rgba(8,10,14,0.35)  75%,
      var(--dark)         100%),
    /* sides: vignette */
    linear-gradient(90deg,
      rgba(8,10,14,0.65)  0%,
      transparent         20%,
      transparent         80%,
      rgba(8,10,14,0.65)  100%);
  pointer-events: none;
  z-index: 2;
}

/* Subtle scanline texture */
.img-block-01__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0.12) 4px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Amber glowing bottom edge — connects to sections below */
.img-block-01__overlay::after {

  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,166,35,0.5) 20%,
    rgba(255,190,11,0.95) 50%,
    rgba(245,166,35,0.5) 80%,
    transparent 100%);
  box-shadow: 0 0 18px 2px rgba(245,166,35,0.35);
  z-index: 3;
  pointer-events: none !important;
  touch-action: none !important;
}

/* Tech corner brackets */
.img-block-01__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.img-block-01__frame::before,
.img-block-01__frame::after {

  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-color: rgba(245,166,35,0.6);
  border-style: solid;
  pointer-events: none !important;
  touch-action: none !important;
}
.img-block-01__frame::before {
  top: 28px; left: 36px;
  border-width: 2px 0 0 2px;
  box-shadow: -2px -2px 12px rgba(245,166,35,0.15);
}
.img-block-01__frame::after {
  bottom: 28px; right: 36px;
  border-width: 0 2px 2px 0;
  box-shadow: 2px 2px 12px rgba(245,166,35,0.15);
}

/* Floating label tag */
.img-block-01__tag {

  position: absolute;
  bottom: 40px;
  left: 52px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8,10,14,0.82);
  border: 1px solid rgba(245,166,35,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 100px;
  padding: 9px 22px 9px 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s 0.35s ease, transform 0.8s 0.35s ease;
  pointer-events: none !important;
  touch-action: none !important;
}
.img-block-01__tag.visible {
  opacity: 1;
  transform: translateY(0);
}
.img-block-01__tag .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(245,166,35,0.8);
}
.img-block-01__tag span {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--white);
}

/* Accent horizontal line that "bleeds" from hero content */
.img-block-01__hero-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(245,166,35,0.3) 30%,
    rgba(14,165,233,0.25) 60%,
    transparent);
  z-index: 5;
  pointer-events: none;
}

/* Glowing circuit node overlaid on image (top-right) */
.img-block-01__hud {

  position: absolute;
  top: 36px;
  right: 48px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.9s 0.6s ease, transform 0.9s 0.6s ease;
  pointer-events: none !important;
  touch-action: none !important;
}
.img-block-01__hud.visible {
  opacity: 1;
  transform: translateY(0);
}
.img-block-01__hud-line {
  height: 1px;
  background: rgba(245,166,35,0.5);
  border-radius: 2px;
  animation: hudPulse 3s ease-in-out infinite;
}
.img-block-01__hud-line:nth-child(1) { width: 80px; animation-delay: 0s; }
.img-block-01__hud-line:nth-child(2) { width: 48px; animation-delay: 0.4s; }
.img-block-01__hud-line:nth-child(3) { width: 64px; animation-delay: 0.8s; }

@keyframes hudPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* =========================================
   HOME-02 — Professional masked image section
   Image shows through a diagonal/polygon clip
   on the right side, content floats on left
   ========================================= */

.img-block-02 {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: var(--dark);
  isolation: isolate;
}

/* Full-area dark bg so content is always readable */
.img-block-02::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark);
  z-index: 0;
  pointer-events: none;
}

/* The masked image pane — right-side polygon */
.img-block-02__bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.img-block-02__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.42) saturate(0.55) contrast(1.1);
  transform: scale(1.04);
  transition: transform 0.8s ease;
  pointer-events: none;
}

/* Multi-layer overlays on the image pane */
.img-block-02__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(13,17,23,0.95) 0%,
      rgba(13,17,23,0.55) 30%,
      transparent 65%),
    linear-gradient(180deg,
      rgba(13,17,23,0.5) 0%,
      transparent 20%,
      transparent 80%,
      rgba(13,17,23,0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Grid-dot texture over the image */
.img-block-02__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(245,166,35,0.10) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  z-index: 3;
  pointer-events: none;
  mask-image: linear-gradient(135deg, transparent 0%, black 40%);
}

/* Diagonal border line (the cut edge) */
.img-block-02__cut {
  position: absolute;
  top: 0; bottom: 0;
  left: 42%;
  width: 2px;
  background: linear-gradient(180deg,
    transparent,
    rgba(245,166,35,0.6) 20%,
    rgba(245,166,35,0.9) 50%,
    rgba(245,166,35,0.6) 80%,
    transparent);
  transform: skewX(-8deg);
  box-shadow: 0 0 20px rgba(245,166,35,0.25);
  z-index: 4;
  pointer-events: none;
}

/* Animated scan line across the image */
.img-block-02 .scan-line {
  position: absolute;
  left: 40%; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(14,165,233,0.45) 30%,
    rgba(14,165,233,0.45) 70%,
    transparent);
  animation: scanMove 6s linear infinite;
  z-index: 5;
  pointer-events: none;
}

@keyframes scanMove {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Content layout */
.img-block-02__content {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.img-block-02__text h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.15;
}

.img-block-02__text p {
  color: var(--gray);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 32px;
}

/* Stats panel */
.img-block-02__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.img-block-02__stat {
  background: rgba(13,17,23,0.80);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.img-block-02__stat::before {

  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none !important;
  touch-action: none !important;
}

.img-block-02__stat:hover {
  border-color: rgba(245,166,35,0.28);
  transform: translateY(-3px);
  background: rgba(13,17,23,0.92);
}
.img-block-02__stat:hover::before { opacity: 1; }

.img-block-02__stat .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.img-block-02__stat .lbl {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.4;
}

.img-block-02__stat .corner {

  position: absolute;
  top: 10px; right: 10px;
  width: 16px; height: 16px;
  border-top: 1.5px solid rgba(245,166,35,0.35);
  border-right: 1.5px solid rgba(245,166,35,0.35);
  pointer-events: none !important;
  touch-action: none !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
  .img-block-01 {
    margin-top: -60px;
  }
  .img-block-02__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .img-block-02__text p { max-width: 100%; }
  .img-block-02__bg {
    width: 100%;
    height: 300px;
    top: auto;
    bottom: 0;
    clip-path: polygon(0% 20%, 100% 0%, 100% 100%, 0% 100%);
  }
  .img-block-02__cut { display: none; }
  .img-block-02 {
    padding-bottom: 340px;
  }
}

@media (max-width: 600px) {
  .img-block-01__tag { left: 20px; bottom: 20px; }
  .img-block-01__hud { right: 20px; top: 20px; }
  .img-block-01__frame::before { top: 12px; left: 12px; }
  .img-block-01__frame::after  { bottom: 12px; right: 12px; }
  .img-block-02__panel { grid-template-columns: 1fr 1fr; }
  .img-block-02__bg { height: 240px; }
  .img-block-02 { padding-bottom: 280px; }
}


/* =========================================
   VISUAL FX — MOBILE TOUCH FIX
   Los pseudo-elementos decorativos NO deben
   bloquear interacciones táctiles en ningún caso.
   ========================================= */

/* Garantía global: ningún ::before/::after bloquea */
section::before, section::after,
.img-block-01::before, .img-block-01::after,
.img-block-02::before, .img-block-02::after,
.page-hero::before, .page-hero::after,
.cta-banner::before, .cta-banner::after,
.card::before, .card::after,
.hero::before, .hero::after,
.img-block-01__inner::before, .img-block-01__inner::after {
  pointer-events: none !important;
  touch-action: none !important;
}

/* Circuit canvas nunca interfiere */
#circuit-canvas {
  pointer-events: none !important;
  touch-action: none !important;
  z-index: 0 !important;
}
