/* ================================================================
   LEXATEK v2.2 — MODERN EFFECTS CSS
   Efectos premium adicionales: glassmorphism, parallax, overlays
   ================================================================ */

/* ── Hero: Parallax & Mesh ── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 18% 38%, rgba(26,111,212,0.20) 0%, transparent 65%),
    radial-gradient(ellipse 55% 65% at 82% 22%, rgba(58,142,232,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 60% 80%, rgba(26,111,212,0.10) 0%, transparent 55%);
  animation: meshPulse 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -160px; right: -160px;
  background: radial-gradient(circle, rgba(26,111,212,0.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbFloat 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Subtle scanline overlay — tech feel */
.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 3px,
    rgba(26,111,212,0.018) 3px, rgba(26,111,212,0.018) 4px
  );
  pointer-events: none;
  z-index: 1;
}

@keyframes meshPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.03); }
  100% { opacity: 0.75; transform: scale(1.01); }
}
@keyframes orbFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-40px, 30px) scale(1.08); }
  66%      { transform: translate(30px, -20px) scale(0.95); }
}

/* ── Navbar: Progress bar on scroll ── */
.scroll-progress {
  position: fixed;
  top: 64px; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #1A6FD4, #3B8EE8);
  width: 0%;
  z-index: 99;
  transition: width 0.1s linear;
  box-shadow: 0 0 6px rgba(26,111,212,0.5);
}

/* ── Service cards: Hover glow accents ── */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(26,111,212,0.04) 0%, rgba(59,142,232,0.02) 100%);
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }

/* ── Section headers: accent line ── */
.section-header h2::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--grad-blue);
  margin: 12px auto 0;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(26,111,212,0.4);
}
/* Left-aligned variant */
.section-header.left h2::after { margin-left: 0; }

/* ── About: decorative background blob ── */
.about::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  right: -200px; top: -100px;
  background: radial-gradient(circle, rgba(26,111,212,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.about > .container { position: relative; z-index: 1; }

/* ── Stats: neon number glow on hover ── */
.stat-box:hover .stat-number {
  text-shadow: 0 0 30px rgba(26,111,212,0.4);
}

/* ── Projects: shimmer on image ── */
.project-image::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.project-card:hover .project-image::after {
  left: 125%;
}

/* ── Buttons: shimmer sweep ── */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
  border-radius: inherit;
}
.btn-primary:hover::before { left: 140%; }

/* ── Contact: form glass card slight enhancement ── */
.contact-form-container {
  position: relative;
  overflow: hidden;
}
.contact-form-container::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(26,111,212,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Footer: particle dots ── */
.footer::after {
  content: '';
  position: absolute;
  bottom: 0; left: -50%;
  width: 200%; height: 250px;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(26,111,212,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Scroll-reveal enhanced ── */
.reveal-fade-blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition:
    opacity 0.75s cubic-bezier(0.16,1,0.3,1),
    filter 0.75s cubic-bezier(0.16,1,0.3,1),
    transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal-fade-blur.active {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* ── Section blob backgrounds ── */
.section-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,111,212,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -30px) scale(1.06); }
}

/* ── Mobile menu animation ── */
.nav-menu.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(10,13,20,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
  gap: 0;
  border-bottom: 1px solid rgba(26,111,212,0.15);
  animation: menuSlide 0.3s cubic-bezier(0.16,1,0.3,1);
  z-index: 99;
}
@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-menu.mobile-open .nav-link {
  padding: 14px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}
.nav-menu.mobile-open .nav-lang {
  padding-top: 16px;
  justify-content: flex-start;
}

/* ── Tooltip ── */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--graphite);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Partner card ── */
.tech-partner-card {
  margin-top: 40px;
  text-align: center;
  background: rgba(26,111,212,0.05);
  padding: 24px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(26,111,212,0.12);
}
.tech-partner-card span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.tech-partner-card a {
  display: inline-block;
  transition: transform var(--t-mid);
}
.tech-partner-card a:hover { transform: scale(1.03); }
.tech-partner-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}

/* ── Service hero pages ── */
.service-hero {
  padding-top: 64px;
  min-height: 55vh;
  display: flex;
  align-items: center;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(26,111,212,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 70% at 80% 30%, rgba(26,111,212,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.service-hero .container { position: relative; z-index: 1; padding: 80px 24px; }
.service-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}
.service-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Page-level content sections ── */
.page-section {
  padding: 80px 0;
}
.page-section:nth-child(even) {
  background: var(--off-white);
}

/* ── Micro-interactions ── */
.micro-interaction {
  transition: transform var(--t-fast);
}
.micro-interaction:hover { transform: scale(1.02); }
.micro-interaction:active { transform: scale(0.98); }

/* ── High contrast ── */
@media (prefers-contrast: high) {
  :root {
    --blue: #0046AA;
    --text-1: #000;
    --text-2: #222;
    --border: rgba(0,0,0,0.3);
  }
  .service-card, .project-card, .contact-form-container {
    border: 2px solid #000;
  }
}
