/* ═══════════════════════════════════════════════════════
   A&J NEXLUM — Ultra-Professional Dark Tech UI
   Typography: Space Grotesk (display) + DM Sans (body) + JetBrains Mono (mono)

   © 2026 A&J NEXLUM. Todos los derechos reservados.
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:          #030509;
  --bg-soft:     #080b13;
  --bg-card:     rgba(10, 14, 24, 0.76);
  --bg-elevated: rgba(18, 24, 38, 0.55);

  /* Borders */
  --line:        rgba(255, 255, 255, 0.07);
  --line-hover:  rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text:        #f0f2f8;
  --text-soft:   #a0aec0;
  --text-muted:  #6b7a90;

  /* Accent palette */
  --cyan:        #00e5ff;
  --cyan-dim:    rgba(0, 229, 255, 0.12);
  --cyan-glow:   rgba(0, 229, 255, 0.35);
  --green:       #39ff80;
  --green-dim:   rgba(57, 255, 128, 0.10);
  --green-glow:  rgba(57, 255, 128, 0.30);
  --orange:      #ff9130;
  --orange-dim:  rgba(255, 145, 48, 0.10);
  --danger:      #ff5d5d;

  /* Shadows */
  --shadow-sm:   0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md:   0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px var(--cyan-dim);

  /* Radii */
  --r-sm:  12px;
  --r-md:  18px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* Layout */
  --container:   1260px;
  --gap:         24px;

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:    0.4s;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background-color: var(--bg);
  /* Gradiente vertical sutil: el fondo respira en vez de ser una pared plana */
  background-image: linear-gradient(180deg, #080b16 0%, #030509 30%, #020307 65%, #04060d 100%);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS safe area support */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  /* Prevent horizontal bounce on iOS */
  overscroll-behavior-x: none;
  /* Enable touch scroll momentum on iOS */
  -webkit-overflow-scrolling: touch;
  /* Prevent tap highlight color */
  -webkit-tap-highlight-color: transparent;
}

/* iOS safe area for fixed elements */
.nav-shell { padding-top: max(14px, env(safe-area-inset-top)); }
.fab-wrap {
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
}
.footer { padding-bottom: env(safe-area-inset-bottom); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* Universal image rounding — forces visual clipping on all browsers/mobile */
.product-media img,
.modal-media img,
.lightbox__img {
  border-radius: 15px;
  -webkit-border-radius: 15px;
  clip-path: inset(0 round 15px);
  -webkit-clip-path: inset(0 round 15px);
}

/* ── Ambient Background — profundidad tipo aurora ──── */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }

/* Aurora: campos de color luminosos con deriva lenta.
   background-blend-mode screen = los campos se intensifican
   al cruzarse en vez de agrisarse (adiós efecto mate). */
.ambient::before {
  content: '';
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(34% 30% at 14% 15%, rgba(0, 195, 255, 0.30), transparent 62%),
    radial-gradient(27% 27% at 87% 7%, rgba(90, 85, 255, 0.24), transparent 65%),
    radial-gradient(36% 32% at 85% 86%, rgba(0, 255, 145, 0.13), transparent 66%),
    radial-gradient(23% 21% at 5% 89%, rgba(150, 65, 255, 0.14), transparent 68%),
    radial-gradient(54% 42% at 50% -8%, rgba(0, 215, 255, 0.17), transparent 58%);
  background-color: #010204;
  background-blend-mode: screen;
  filter: blur(66px) saturate(1.5);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(2.5%, -2%, 0) rotate(3deg) scale(1.07); }
}

/* Haces de luz diagonales — como si el LED iluminara la escena */
.ambient__beams {
  position: absolute;
  inset: -12% -22%;
  background:
    linear-gradient(115deg, transparent 40%, rgba(0, 220, 255, 0.05) 45%, rgba(0, 220, 255, 0.11) 48%, rgba(0, 220, 255, 0.05) 51%, transparent 56%),
    linear-gradient(115deg, transparent 58%, rgba(120, 120, 255, 0.04) 64%, rgba(120, 120, 255, 0.09) 67%, rgba(120, 120, 255, 0.04) 70%, transparent 76%),
    linear-gradient(115deg, transparent 16%, rgba(57, 255, 128, 0.045) 23%, transparent 30%);
  filter: blur(20px);
  transform-origin: 50% -30%;
  animation: beamsSway 32s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 82%);
  mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 82%);
}
@keyframes beamsSway {
  from { transform: rotate(-1.6deg) translateX(-2%); opacity: 0.65; }
  to   { transform: rotate(1.6deg) translateX(2%);   opacity: 0.9; }
}

/* Luz de horizonte arriba + viñeta más profunda = volumen */
.ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 70% at 50% -18%, rgba(0, 229, 255, 0.13), transparent 55%),
    radial-gradient(140% 140% at 50% 40%, transparent 44%, rgba(0, 1, 3, 0.86) 100%);
}

/* Orbes anteriores sustituidos por la aurora */
.ambient__orb { display: none; }

/* orbFloat se conserva: lo usa el brillo del panel del hero */
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

.ambient__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Container & Section ───────────────────────────── */
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section--tight { padding: 32px 0; }

.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 16px 0 18px;
}
.section-heading p { color: var(--text-soft); font-size: 1.05rem; line-height: 1.75; max-width: 640px; }

/* ── Badge / Eyebrow ───────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--inline { margin-bottom: 4px; }
.badge__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-hover);
  background: rgba(255,255,255,0.04);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  /* Touch optimizations */
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: linear-gradient(135deg, rgba(0,229,255,0.16), rgba(57,255,128,0.10));
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 0 0 1px rgba(0,229,255,0.08) inset, 0 4px 20px rgba(0,229,255,0.08);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(0,229,255,0.16) inset, 0 8px 32px rgba(0,229,255,0.14);
  border-color: rgba(0,229,255,0.35);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
}
.btn--ghost:hover { background: rgba(255,255,255,0.04); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 0.96rem; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.84rem; }

/* ── Navigation ────────────────────────────────────── */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}
.nav {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: rgba(8, 11, 20, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: padding 0.35s var(--ease-out), background 0.35s, box-shadow 0.35s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__logo { width: 180px; height: 56px; object-fit: contain; border-radius: 10px; }
.brand__mark {
  width: 60px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan-dim), var(--green-dim));
  border: 1px solid var(--line);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.nav__menu { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.nav__links { display: flex; gap: 6px; margin-right: auto; padding-left: 24px; }
.nav__link {
  color: var(--text-soft);
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  transition: all 0.2s var(--ease-out);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 2px;
  transition: width 0.35s var(--ease-out), left 0.35s var(--ease-out);
}
.nav__link:hover::after { width: 60%; left: 20%; }
.nav__link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__link--active { color: var(--cyan) !important; }
.nav__link--active::after { width: 60% !important; left: 20% !important; opacity: 0.6; }
.nav__cta { display: flex; gap: 8px; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--line-strong); }
.hamburger__line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}
/* Hamburger open state */
.nav--open .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────── */
.hero { padding-top: 32px; padding-bottom: 48px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.7rem, 5.2vw, 5.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--cyan), var(--green));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease-in-out infinite;
}
.hero__text { color: var(--text-soft); font-size: 1.08rem; line-height: 1.8; max-width: 600px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Hero Visual Panel */
.hero__panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: 20px;
  background: rgba(14, 18, 30, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.hero__panel-glow {
  position: absolute;
  top: -30%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  filter: blur(60px);
  opacity: 0.3;
  animation: orbFloat 15s ease-in-out infinite alternate;
}
.hero__badge-floating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
}
.hero__canvas {
  position: relative;
  min-height: 480px;
  margin-top: 16px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 40% 20%, var(--cyan-dim), transparent 40%),
    radial-gradient(circle at 70% 80%, var(--green-dim), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.hero__legend-item { color: var(--text-muted); font-size: 0.82rem; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--cyan   { background: var(--cyan);   box-shadow: 0 0 10px var(--cyan-glow); }
.dot--green  { background: var(--green);  box-shadow: 0 0 10px var(--green-glow); }
.dot--orange { background: var(--orange); box-shadow: 0 0 10px rgba(255,145,48,0.5); }

/* Stats Strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.stat:hover { border-color: var(--line-hover); box-shadow: var(--shadow-glow); }
.stat__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--cyan-dim);
  color: var(--cyan);
  flex-shrink: 0;
}
.stat__value { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.stat__label { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

/* ── Family Filter Strip ───────────────────────────── */
.family-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--r-xl);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.family-strip::-webkit-scrollbar { display: none; }
.family-strip__label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.family-strip__pills { display: flex; gap: 8px; }

.pill {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.25s var(--ease-out);
}
.pill:hover { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line-hover); }
.pill.active {
  color: var(--text);
  background: var(--cyan-dim);
  border-color: rgba(0,229,255,0.2);
  box-shadow: 0 0 16px rgba(0,229,255,0.06);
  transform: scale(1.05);
  transition: all 0.3s var(--ease-spring);
}

/* ── Bento Grid ────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento__card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.3s;
}
.bento__card:hover { border-color: var(--line-hover); transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 30px var(--cyan-dim); }
.bento__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s;
  animation: borderSlide 3s linear infinite;
}
.bento__card:hover::before { opacity: 0.8; }
.bento__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,255,0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bento__card:hover::after { opacity: 1; }
.bento__card--wide { grid-column: span 2; }

.bento__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--cyan-dim);
  color: var(--cyan);
  margin-bottom: 16px;
}
.bento__card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.bento__card p { color: var(--text-soft); line-height: 1.7; font-size: 0.94rem; }

/* ── Comparison ────────────────────────────────────── */
.comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.comparison__card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.3s;
}
.comparison__card:hover { border-color: var(--line-hover); transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 24px var(--cyan-dim); }
.comparison__card--featured {
  background: linear-gradient(180deg, rgba(0,229,255,0.06), var(--bg-card));
  border-color: rgba(0,229,255,0.15);
}
.comparison__accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--cyan);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.4s;
}
.comparison__card:hover .comparison__accent { opacity: 0.12; }

.comparison__tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.comparison__card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.comparison__card p { color: var(--text-soft); line-height: 1.7; font-size: 0.92rem; }

/* ── Products Toolbar ──────────────────────────────── */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.toolbar__label { display: block; color: var(--text-muted); font-size: 0.82rem; font-weight: 500; margin-bottom: 8px; }
.toolbar__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar__count {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Product Cards ─────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  transition: opacity 0.3s var(--ease-out);
}
.products--filtering {
  opacity: 0;
  transform: translateY(8px);
}

.product-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 22px;
  align-items: start;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s;
}
.product-card:hover { border-color: var(--line-hover); box-shadow: var(--shadow-md); }
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,255,0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }

.product-media {
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 200px;
  cursor: pointer;
}
.product-media img { width: 100%; height: auto; max-height: 340px; object-fit: contain; border-radius: 15px; }
.product-media-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  padding: 16px; text-align: center; color: var(--text-soft); font-size: 0.86rem;
  background: linear-gradient(135deg, var(--cyan-dim), var(--green-dim));
  border-radius: 15px;
}

.product-tags, .spec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  font-size: 0.74rem;
  color: var(--text-soft);
  background: rgba(255,255,255,0.03);
  font-weight: 500;
}
.tag--warn {
  border-color: rgba(255,145,48,0.25);
  color: var(--orange);
  background: var(--orange-dim);
}

.product-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; line-height: 1.2; }
.product-category { color: var(--cyan); font-size: 0.86rem; font-weight: 500; margin-bottom: 10px; }
.product-desc { color: var(--text-soft); line-height: 1.7; margin-bottom: 14px; font-size: 0.92rem; }

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.feature-list li {
  color: var(--text-soft);
  font-size: 0.86rem;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.honest-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--orange-dim);
  border: 1px solid rgba(255,145,48,0.18);
  color: #ffd8b2;
  font-size: 0.88rem;
  line-height: 1.6;
}

.card-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Solutions Grid ────────────────────────────────── */
.solutions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.solutions__card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.3s;
}
.solutions__card:hover { border-color: var(--line-hover); transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-md), 0 0 30px var(--cyan-dim); }
.solutions__card::before {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--cyan);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.4s;
}
.solutions__card:hover::before { opacity: 0.1; }

.solutions__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--cyan-dim), var(--green-dim));
  color: var(--cyan);
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.solutions__card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.solutions__card p { color: var(--text-soft); line-height: 1.7; font-size: 0.92rem; }

/* ── Contact Section ───────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.contact__copy h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 16px 0 14px;
}
.contact__copy > p { color: var(--text-soft); line-height: 1.7; }

.contact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.contact__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.contact__card:hover { border-color: var(--line-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact__card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--cyan-dim);
  color: var(--cyan);
}
.contact__card-label { color: var(--text-muted); font-size: 0.82rem; }
.contact__card strong { font-family: 'JetBrains Mono', monospace; font-size: 0.92rem; }

/* Contact Form */
.contact__form-shell {
  border-radius: var(--r-xl);
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.contact__form { display: grid; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-field { display: grid; gap: 6px; }
.form-field__label { color: var(--text-soft); font-weight: 500; font-size: 0.88rem; }
.form-field__label abbr { color: var(--cyan); text-decoration: none; }
.form-field__error { color: var(--danger); font-size: 0.8rem; min-height: 1.2em; }

.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--text);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.92rem;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: rgba(0,229,255,0.45);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.contact__form input.error,
.contact__form select.error,
.contact__form textarea.error {
  border-color: rgba(255,93,93,0.5);
  box-shadow: 0 0 0 3px rgba(255,93,93,0.08);
}
.contact__form select { cursor: pointer; }
.contact__form textarea { resize: vertical; min-height: 100px; }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Marquee ────────────────────────────────────────── */
.marquee-section { overflow: hidden; padding: 40px 0; }
.marquee-section::before { display: none; }
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
  cursor: pointer;
}
.marquee__item:hover { border-color: var(--line-hover); transform: translateY(-3px); }
.marquee__item img {
  width: 56px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.marquee__item-text { white-space: nowrap; }
.marquee__item-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.88rem; }
.marquee__item-cat { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ── Footer ────────────────────────────────────────── */
.footer {
  padding: 0;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 16, 0.6);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer__logo { width: 200px; height: 60px; object-fit: contain; border-radius: 10px; margin-bottom: 14px; }
.footer__brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-top: 12px; max-width: 280px; }
.footer__brand strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; }
.footer__brand-fallback { margin-bottom: 0; }

.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: all 0.25s var(--ease-out);
}
.footer__social-link:hover { color: var(--cyan); border-color: rgba(0,229,255,0.3); background: var(--cyan-dim); transform: translateY(-2px); }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.footer__col a { color: var(--text-muted); font-size: 0.86rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer__tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Floating Action Button ────────────────────────── */
.fab-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab__tooltip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(14, 18, 30, 0.92);
  border: 1px solid var(--line-hover);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}
.fab__tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab__tooltip-close {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s;
}
.fab__tooltip-close:hover { background: rgba(255,255,255,0.15); }

.fab {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(57,255,128,0.2), rgba(0,229,255,0.2));
  border: 1px solid var(--line-strong);
  color: var(--green);
  box-shadow: var(--shadow-md), 0 0 24px var(--green-dim);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.fab:hover { transform: scale(1.1); box-shadow: var(--shadow-lg), 0 0 40px var(--green-glow); }

.fab__online {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--green-glow);
  animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 8px var(--green-glow); }
  50%      { box-shadow: 0 0 16px var(--green-glow), 0 0 24px var(--green-dim); }
}

/* ── Modal ─────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,5,10,0.85);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease-out);
}
.modal__panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--r-xl);
  padding: 28px;
  background: rgba(9, 12, 22, 0.96);
  border: 1px solid var(--line-hover);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  animation: modalSlideUp 0.4s var(--ease-out);
}
.modal__close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.modal__close:hover { background: rgba(255,255,255,0.1); border-color: var(--line-strong); }

.modal-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 28px;
}
.modal-media {
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: sticky;
  top: 28px;
  cursor: pointer;
}
.modal-media img { width: 100%; height: auto; max-height: min(60vh, 520px); object-fit: contain; border-radius: 15px; }
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 8px 0 10px;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.modal-section { margin-top: 20px; }
.modal-section h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}
.modal-section p, .modal-section li { color: var(--text-soft); line-height: 1.7; font-size: 0.92rem; }
.modal-section ul { padding-left: 18px; }
.modal-section ul li { margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════
   ADVANCED ANIMATION SYSTEM
   ═══════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ───────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  z-index: 999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* ── Animated Section Dividers ─────────────────────── */
.section::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hover), var(--cyan-dim), var(--line-hover), transparent);
  margin-bottom: 48px;
  opacity: 0.6;
}
.hero::before { display: none; }
.section--tight::before { display: none; }

/* ── Reveal Variants ──────────────────────────────── */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-rotate {
  opacity: 0;
  transform: translateY(24px) rotate(-2deg);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-rotate.visible { opacity: 1; transform: translateY(0) rotate(0deg); }

/* ── 3D Tilt Card Effect ──────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.tilt-card > * {
  transform: translateZ(0);
}

/* ── Animated Gradient Border ─────────────────────── */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle, 0deg), transparent 40%, var(--cyan), var(--green), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
  animation: rotateBorder 4s linear infinite;
}
.glow-border:hover::before { opacity: 0.6; }

/* ── Hero Particles ────────────────────────────────── */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: var(--color, var(--cyan));
  opacity: 0;
  animation: particleFloat var(--dur, 12s) var(--delay, 0s) ease-in-out infinite;
}

/* ── Stat Counter Animation ────────────────────────── */
.stat__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.stat.visible .stat__icon {
  animation: statPop 0.5s var(--ease-spring) forwards;
}

/* ── Product Card Enhanced Glow ────────────────────── */
.product-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 22px;
  align-items: start;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s, transform 0.4s var(--ease-out);
  transform-style: preserve-3d;
}
.product-card:hover {
  border-color: var(--line-hover);
  box-shadow: var(--shadow-md), 0 0 40px var(--cyan-dim);
  transform: translateY(-4px);
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,255,0.07), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s;
  animation: borderSlide 4s linear infinite;
}
.product-card:hover::after { opacity: 0.5; }

/* ── FAB Pulse Ring ────────────────────────────────── */
.fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: fabPulse 2.5s ease-out infinite;
}

/* ── Badge Animated Dot ────────────────────────────── */
.badge__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  animation: pulse 2.5s ease-in-out infinite;
  position: relative;
}
.badge__pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0;
  animation: pulseRing 2.5s ease-out infinite;
}

/* ── Hover Lift for Contact Cards ──────────────────── */
.contact__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.contact__card:hover {
  border-color: var(--line-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm), 0 0 20px var(--cyan-dim);
}

/* ── Toolbar Count Glow ────────────────────────────── */
.toolbar__count span {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ── Nav Scroll State: se compacta al sumergirte ───── */
.nav--scrolled {
  background: rgba(4, 6, 12, 0.94) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 0 1px rgba(0,229,255,0.1);
  padding: 8px 16px;
}

/* ═══════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════ */

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(var(--base-rotate, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--base-rotate, 0deg)); }
}

@keyframes borderSlide {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotateBorder {
  from { --border-angle: 0deg; }
  to   { --border-angle: 360deg; }
}
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translate(0, 0) scale(0); }
  10%  { opacity: 0.6; transform: scale(1); }
  90%  { opacity: 0.6; }
  100% { opacity: 0; transform: translate(var(--dx, 40px), var(--dy, -200px)) scale(0); }
}

@keyframes statPop {
  0%   { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes fabPulse {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes textReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--cyan-dim); }
  50%      { box-shadow: 0 0 40px var(--cyan-glow), 0 0 60px var(--cyan-dim); }
}

/* ── Reveal Animations ─────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Reduced Motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-rotate { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
}

/* ── Responsive ────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════
   RESPONSIVE SYSTEM — Multi-breakpoint coverage
   Mobile-first, touch-friendly, all device sizes
   ═══════════════════════════════════════════════════════ */

/* ── XL Desktop (1400px+) — Larger spacing ─────────── */
@media (min-width: 1400px) {
  :root { --container: 1320px; }
  .section { padding: 100px 0; }
  .hero__title { font-size: clamp(3rem, 5.5vw, 5.8rem); }
}

/* ── Large Desktop / Small Desktop (1200px) ────────── */
@media (max-width: 1200px) {
  .nav__links { gap: 2px; }
  .nav__link { padding: 8px 10px; font-size: 0.84rem; }
  .bento { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablet Landscape (1100px) ──────────────────────── */
@media (max-width: 1100px) {
  .products { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .comparison { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { gap: 28px; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:nth-child(4) { grid-column: span 2; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .footer__col:nth-child(4) h4 { width: 100%; }
}

/* ── Tablet Portrait (960px) — Mobile menu activates ─ */
@media (max-width: 960px) {
  .hamburger {
    display: flex;
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
  }
  .nav {
    flex-wrap: wrap;
    border-radius: var(--r-lg);
    padding: 10px 14px;
    justify-content: space-between;
  }
  .brand {
    order: 1;
  }
  .brand__logo { width: 140px; height: 44px; }
  .brand__mark { width: 48px; height: 44px; }

  .nav__menu {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease-out), opacity 0.35s var(--ease-out), padding 0.35s;
    padding: 0;
  }
  .nav--open .nav__menu {
    max-height: 500px;
    opacity: 1;
    padding-top: 12px;
  }
  .nav__links {
    flex-direction: column;
    padding: 0;
    gap: 4px;
  }
  .nav__link {
    padding: 14px 16px;
    border-radius: var(--r-sm);
    font-size: 0.95rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav__link::after { display: none; }
  .nav__cta {
    flex-direction: column;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    gap: 8px;
  }
  .nav__cta .btn { width: 100%; min-height: 48px; }

  .hero { padding-top: 24px; }
  .hero__grid,
  .contact__grid,
  .modal-grid { grid-template-columns: 1fr; }

  .hero__title { font-size: clamp(2.4rem, 6vw, 4rem); }
  .hero__text { font-size: 1rem; }

  .stats { grid-template-columns: 1fr; gap: 12px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .comparison { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide { grid-column: span 2; }

  .hero__legend { grid-template-columns: 1fr; gap: 6px; }

  .contact__cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .modal-media { position: static; }
  .modal__panel { padding: 22px; max-height: calc(100vh - 32px); }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; padding: 44px 0 32px; }
  .footer__col:nth-child(4) { grid-column: auto; flex-direction: column; }
  .footer__col:nth-child(4) h4 { width: auto; }

  .marquee__item { padding: 12px 18px; }
  .marquee__item img { width: 48px; height: 36px; }
}

/* ── Mobile Large (768px) ───────────────────────────── */
@media (max-width: 768px) {
  :root { --container: 100%; }
  .container { padding: 0 16px; }

  .section { padding: 60px 0; }
  .section--tight { padding: 24px 0; }
  .section-heading { margin-bottom: 32px; }

  .nav-shell { padding: 10px 0; }
  .nav { width: calc(100% - 16px); padding: 8px 12px; }
  .brand__logo { width: 130px; height: 40px; }
  .brand__mark { width: 44px; height: 40px; }
  .hamburger { width: 42px; height: 42px; }

  .hero__canvas { min-height: 360px; }
  .hero__title { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; }
  .hero__panel { padding: 14px; border-radius: var(--r-lg); }

  .product-card { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .product-media { min-height: 180px; }
  .product-card h3 { font-size: 1.2rem; }
  .feature-list { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { width: 100%; min-height: 46px; }

  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
  .bento__card { padding: 22px; }

  .comparison { grid-template-columns: 1fr; }
  .comparison__card { padding: 22px; min-height: auto; }

  .solutions { grid-template-columns: 1fr; }
  .solutions__card { padding: 22px; min-height: auto; }

  .contact__cards { grid-template-columns: 1fr; }
  .contact__form-shell { padding: 20px; }

  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; min-height: 50px; }

  .modal__panel { padding: 16px; border-radius: var(--r-lg); }
  .modal-title { font-size: 1.5rem; }
  .modal__close { width: 38px; height: 38px; }

  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .toolbar__count { text-align: right; font-size: 0.8rem; }
  .toolbar__pills { gap: 6px; }

  .pill { padding: 8px 12px; font-size: 0.82rem; min-height: 38px; }
  .family-strip { padding: 10px 14px; gap: 12px; }
  .family-strip__label { font-size: 0.78rem; }

  .footer__top { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 24px; text-align: center; }
  .footer__brand p { margin-left: auto; margin-right: auto; }
  .footer__social { justify-content: center; }
  .footer__col { align-items: center; text-align: center; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 8px; padding: 16px 0; }
  .footer__logo { margin-left: auto; margin-right: auto; }

  /* FAB sizing for mobile */
  .fab-wrap { right: 14px; bottom: 14px; }
  .fab { width: 54px; height: 54px; }
  .fab__tooltip { font-size: 0.78rem; padding: 8px 14px; }

  /* Scroll progress on mobile */
  .scroll-progress { height: 2px; }

  /* Modal media on mobile */
  .modal-media img { max-height: 50vh; }
  .lightbox__close { top: -8px; right: -8px; width: 38px; height: 38px; }
  .lightbox__img-wrap { max-width: 92vw; }
}

/* ── Mobile Medium (560px) ──────────────────────────── */
@media (max-width: 560px) {
  .container { padding: 0 14px; }
  .nav { padding: 8px 10px; gap: 8px; }
  .brand__logo { width: 110px; height: 36px; }
  .brand__mark { width: 42px; height: 36px; font-size: 0.75rem; }

  .hero__title {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
    line-height: 1.12;
  }
  .hero__text { font-size: 0.95rem; line-height: 1.65; }
  .hero__canvas { min-height: 300px; }

  .badge { font-size: 0.74rem; padding: 5px 12px 5px 7px; }

  .section-heading h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); line-height: 1.22; }
  .section-heading p { font-size: 0.95rem; }

  .stat { padding: 16px; }
  .stat__icon { width: 40px; height: 40px; }

  .bento__card, .comparison__card, .solutions__card { padding: 18px; border-radius: var(--r-md); }
  .bento__icon, .solutions__icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .bento__card h3, .comparison__card h3, .solutions__card h3 { font-size: 1.05rem; }

  .product-card { padding: 14px; border-radius: var(--r-lg); }
  .product-card h3 { font-size: 1.1rem; }
  .product-desc { font-size: 0.88rem; }

  .contact__form input,
  .contact__form select,
  .contact__form textarea { padding: 12px 14px; font-size: 0.9rem; }

  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  .marquee__item { padding: 10px 14px; gap: 10px; }
  .marquee__item img { width: 42px; height: 32px; }
  .marquee__item-name { font-size: 0.8rem; }
  .marquee__item-cat { font-size: 0.7rem; }
  .marquee__track { gap: 16px; }
}

/* ── Mobile Small (380px) ───────────────────────────── */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .nav { padding: 6px 10px; }
  .brand__logo { width: 95px; height: 32px; }
  .brand__mark { width: 38px; height: 32px; font-size: 0.7rem; }

  .hero__title { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .hero__canvas { min-height: 260px; }

  .section { padding: 48px 0; }

  .product-tags { gap: 4px; }
  .tag { font-size: 0.7rem; padding: 4px 8px; }

  .badge { font-size: 0.7rem; }

  .fab-wrap { right: 12px; bottom: 12px; }
  .fab { width: 50px; height: 50px; }
  .fab svg { width: 22px; height: 22px; }
  .fab__online { width: 10px; height: 10px; top: 0; right: 0; }

  .toolbar { padding: 14px; }
}

/* ── Landscape orientation on phones ────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 16px; padding-bottom: 24px; }
  .hero__canvas { min-height: 240px; }
  .hero__title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
  .nav-shell { padding: 6px 0; }
  .nav { padding: 6px 12px; }
  .modal__panel { max-height: calc(100vh - 16px); }
}

/* ── High DPI / Retina adjustments ─────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
}

/* ── Touch device improvements ─────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover-only effects on touch devices */
  .product-card:hover,
  .bento__card:hover,
  .comparison__card:hover,
  .solutions__card:hover,
  .contact__card:hover { transform: none !important; }

  /* Ensure all interactive elements meet 44px touch target */
  .btn { min-height: 46px; }
  .nav__link { min-height: 44px; }
  .pill { min-height: 40px; }

  /* Disable 3D tilt that doesn't make sense on touch */
  .product-card,
  .bento__card,
  .comparison__card,
  .solutions__card { transform: none !important; }

  /* Make tooltip more visible on touch */
  .fab__tooltip { font-size: 0.84rem; }

  /* Increase tap targets for filter pills */
  .pill { padding: 10px 14px; }

  /* Better mobile menu touch targets */
  .nav__link { padding: 14px 18px; }
  .menu-toggle, .hamburger { min-width: 44px; min-height: 44px; }
}

/* ── Lightbox (Image Viewer) ───────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.lightbox__img-wrap {
  position: relative;
  max-width: min(90vw, 800px);
  max-height: 85vh;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.4s var(--ease-out);
  z-index: 1;
}
.lightbox.active .lightbox__img-wrap {
  transform: scale(1) translateY(0);
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 229, 255, 0.08);
}
.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(14, 18, 30, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}
.lightbox__caption {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 14px;
  font-family: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════════════════
   SHOWCASE — Productos reales con presentación 3D sutil
   ═══════════════════════════════════════════════════════ */
.product-media { position: relative; }

.showcase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
  perspective: 1200px;
}
.showcase__stage {
  position: relative;
  flex: 1;
  margin: 14px 14px 0;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
}
.showcase__item {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(16px) scale(0.975);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  pointer-events: none;
  cursor: pointer;
}
.showcase__item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.showcase__img {
  max-width: 92%;
  max-height: 66%;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.55));
  animation: showcaseBreathe 9s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes showcaseBreathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.showcase__reflection {
  max-width: 92%;
  max-height: 20%;
  object-fit: contain;
  transform: scaleY(-1);
  margin-top: 4px;
  opacity: 0.14;
  filter: blur(1.5px) saturate(0.8);
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 65%);
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 65%);
  pointer-events: none;
}

.showcase__meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px 16px;
}
.showcase__caption { display: grid; gap: 3px; min-width: 0; }
.showcase__family {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.showcase__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.showcase__family {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcase__caption.swap .showcase__family,
.showcase__caption.swap .showcase__name {
  animation: captionIn 0.6s var(--ease-out) both;
}
.showcase__caption.swap .showcase__name { animation-delay: 0.08s; }
@keyframes captionIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.showcase__dots { display: flex; gap: 7px; flex-shrink: 0; padding-bottom: 5px; }
.showcase__dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s, width 0.3s var(--ease-out);
}
.showcase__dot:hover { background: rgba(255, 255, 255, 0.3); }
.showcase__dot.active {
  width: 36px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

/* ── Agua sutil (estilo alberca) en natación ────────── */
.water-fx {
  position: absolute;
  left: 4px; right: 4px; bottom: 0;
  height: 42%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  opacity: 0.75;
  transition: opacity 0.5s;
  z-index: 2;
}
.product-card--swim:hover .water-fx,
.showcase__item .water-fx { opacity: 1; }

.water-fx__glow {
  position: absolute;
  left: -10%; right: -10%; bottom: -35%;
  height: 75%;
  background: radial-gradient(ellipse at 50% 100%, rgba(0, 170, 230, 0.16), transparent 70%);
}
.water-fx__shimmer {
  position: absolute;
  left: -30%; right: -30%; bottom: 6%;
  height: 45%;
  background: linear-gradient(100deg,
    transparent 25%,
    rgba(130, 220, 255, 0.05) 42%,
    rgba(130, 220, 255, 0.11) 50%,
    rgba(130, 220, 255, 0.05) 58%,
    transparent 75%);
  transform: skewX(-12deg);
  filter: blur(2px);
  animation: shimmerDrift 8s ease-in-out infinite alternate;
}
@keyframes shimmerDrift {
  from { transform: skewX(-12deg) translateX(-7%); opacity: 0.7; }
  to   { transform: skewX(-12deg) translateX(7%);  opacity: 1; }
}
.water-fx__bubble {
  position: absolute;
  bottom: -8px;
  left: calc(10% + var(--i) * 15%);
  width: calc(2.5px + var(--i) * 0.5px);
  height: calc(2.5px + var(--i) * 0.5px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), rgba(170, 228, 255, 0.12) 75%);
  opacity: 0;
  animation: bubbleRise calc(5.5s + var(--i) * 1.2s) calc(var(--i) * -1.9s) linear infinite;
}
@keyframes bubbleRise {
  0%   { transform: translate(0, 0);        opacity: 0; }
  12%  { opacity: 0.65; }
  80%  { opacity: 0.4; }
  100% { transform: translate(7px, -110px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   PRIVACIDAD — Consentimiento, banner y página legal
   ═══════════════════════════════════════════════════════ */

/* Casilla de consentimiento del formulario */
.form-consent-wrap { display: grid; gap: 6px; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.form-consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.form-consent__box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: transparent;
  transition: all 0.25s var(--ease-out);
}
.form-consent input:checked + .form-consent__box {
  background: var(--cyan-dim);
  border-color: rgba(0, 229, 255, 0.55);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}
.form-consent input:focus-visible + .form-consent__box {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.form-consent.error .form-consent__box { border-color: rgba(255, 93, 93, 0.6); }
.form-consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.form-consent abbr { color: var(--cyan); text-decoration: none; }
.form-consent__error { display: block; }
.form-privacy-note {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}
.form-privacy-note a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.form-privacy-note a:hover { color: var(--cyan); }

/* Banner de privacidad */
.privacy-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 460px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: rgba(7, 10, 18, 0.97);
  border: 1px solid var(--line-hover);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.privacy-banner.visible { transform: none; opacity: 1; }
.privacy-banner__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--cyan-dim);
  color: var(--cyan);
}
.privacy-banner__body p {
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.privacy-banner__body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.privacy-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.footer__legal-link { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal-link:hover { color: var(--cyan); }

/* Página legal (aviso-privacidad.html) */
.legal-main { padding: 40px 0 80px; }
.legal { max-width: 860px; margin: 0 auto; }
.legal h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 16px 0 10px;
}
.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 28px;
  display: block;
}
.legal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-top: 8px;
}
.legal h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  margin-bottom: 12px;
}
.legal p, .legal li { color: var(--text-soft); line-height: 1.8; font-size: 0.95rem; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0 16px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin: 16px 0 20px;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Responsive: nuevos elementos ───────────────────── */
@media (max-width: 768px) {
  .showcase__stage { margin: 10px 10px 0; }
  .showcase__img { max-height: 68%; }
  .showcase__reflection { max-height: 14%; }
  .showcase__meta { padding: 8px 14px 12px; }
  .showcase__name { font-size: 0.84rem; -webkit-line-clamp: 1; }
  .showcase__family { font-size: 0.58rem; letter-spacing: 0.22em; }
  .showcase__dot { width: 18px; }
  .showcase__dot.active { width: 30px; }
  .privacy-banner {
    left: 12px;
    right: 12px;
    bottom: 82px;
    max-width: none;
  }
}
@media (max-width: 560px) {
  .hero__canvas--showcase { min-height: 330px; }
}
@media (max-width: 380px) {
  .hero__canvas--showcase { min-height: 300px; }
  .showcase__reflection { display: none; }
  .showcase__img { max-height: 78%; }
}

/* Movimiento reducido: estados finales visibles */
@media (prefers-reduced-motion: reduce) {
  .water-fx__bubble, .water-fx__shimmer { display: none; }
  .privacy-banner { transition: none; }
}

/* ═══════════════════════════════════════════════════════
   PULIDO GLOBAL — Detalles de acabado premium
   ═══════════════════════════════════════════════════════ */

/* <picture> transparente para el layout existente */
picture { display: contents; }

/* Protección de imágenes: sin arrastre ni selección (el texto sí se puede seleccionar) */
img, picture, figure {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Selección de texto con la identidad de marca */
::selection {
  background: rgba(0, 229, 255, 0.25);
  color: #ffffff;
}

/* Scrollbar oscuro y delgado */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 255, 0.35); }

/* Foco visible accesible en toda la interfaz */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .pill:focus-visible { outline-offset: 2px; }

/* Enlace de salto (accesibilidad con teclado) */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04131a;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus-visible { top: 16px; outline-offset: 2px; }

/* Zoom sutil de fotos de producto al pasar el cursor */
.product-media img {
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-media img { transform: scale(1.025); }

/* ── Banda CTA final ────────────────────────────────── */
.cta-band__inner {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.05), var(--bg-card) 45%);
  border: 1px solid rgba(0, 229, 255, 0.14);
  overflow: hidden;
}
.cta-band__glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.14), transparent 65%);
  pointer-events: none;
}
.cta-band__eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.cta-band__inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  max-width: 640px;
  margin: 0 auto 14px;
  position: relative;
}
.cta-band__inner p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 28px;
  position: relative;
}
.cta-band__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
@media (max-width: 560px) {
  .cta-band__inner { padding: 44px 20px; }
  .cta-band__actions { flex-direction: column; }
  .cta-band__actions .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   TECH MOTION LAYER — HUD, blueprint, sheen y entradas
   ═══════════════════════════════════════════════════════ */

/* Anclajes sin quedar bajo el nav pegajoso */
section[id] { scroll-margin-top: 96px; }

/* Entrada escalonada del título del hero */
.hero__title-line {
  opacity: 0;
  transform: translateY(26px);
  animation: heroLineIn 0.85s var(--ease-out) forwards;
}
.hero__title-line:nth-child(1) { animation-delay: 0.1s; }
.hero__title-line:nth-child(2) { animation-delay: 0.24s; }
.hero__title-line:nth-child(3) { animation-delay: 0.38s; }
.hero__title-line--accent {
  animation:
    heroLineIn 0.85s var(--ease-out) 0.24s forwards,
    shimmer 6s ease-in-out 1.3s infinite;
}
@keyframes heroLineIn {
  to { opacity: 1; transform: none; }
}

/* Esquinas HUD tipo visor de ingeniería */
.hero__canvas--showcase::before,
.hero__canvas--showcase::after,
.showcase::before,
.showcase::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 0 solid rgba(0, 229, 255, 0.38);
  pointer-events: none;
  z-index: 3;
}
.hero__canvas--showcase::before { top: 10px; left: 10px;  border-top-width: 2px; border-left-width: 2px;  border-top-left-radius: 6px; }
.hero__canvas--showcase::after  { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }
.showcase::before { top: 10px; right: 10px;  border-top-width: 2px; border-right-width: 2px;  border-top-right-radius: 6px; }
.showcase::after  { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }

/* Rejilla blueprint tras el producto (se mueve con el parallax) */
.showcase__item { z-index: 1; }
.showcase__stage::before {
  content: '';
  position: absolute;
  inset: -14px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 60%, black 30%, transparent 78%);
}

/* Barrido de luz sobre el producto en cada cambio de slide */
.showcase__stage::after {
  content: '';
  position: absolute;
  inset: 0 -14px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(185, 240, 255, 0.10) 50%, transparent 58%);
  transform: translateX(-130%);
  opacity: 0;
}
.showcase__stage.sweep::after {
  animation: sheenSweep 1.3s var(--ease-out) 0.35s 1 both;
}
@keyframes sheenSweep {
  0%   { transform: translateX(-130%); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateX(130%);  opacity: 0; }
}

/* Chip del hero con acento de terminal */
.hero__badge-floating {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.hero__badge-floating::after {
  content: '▍';
  color: var(--cyan);
  margin-left: 2px;
  font-size: 0.85em;
  animation: cursorBlink 1.1s steps(2) infinite;
}
@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* Títulos letra por letra al hacer scroll */
.split { display: inline; }
.split__word { display: inline-block; white-space: nowrap; }
.split__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.55s var(--ease-spring);
  transition-delay: min(calc(var(--ci, 0) * 22ms), 850ms);
}
.visible .split__char {
  opacity: 1;
  transform: none;
}

/* Etiquetas eyebrow: tracking-in (se comprimen al enfocar) */
.badge--inline {
  transition: letter-spacing 0.9s var(--ease-out) 0.1s;
}
.reveal-up:not(.visible) .badge--inline,
.reveal-left:not(.visible) .badge--inline {
  letter-spacing: 0.22em;
}

/* Número fantasma: entra deslizándose al revelar la sección */
.section-heading::before {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.9s var(--ease-out) 0.15s, transform 0.9s var(--ease-out) 0.15s;
}
.section-heading.visible::before {
  opacity: 1;
  transform: none;
}

/* Subrayado degradado que se dibuja al revelar cada sección */
.section-heading h2::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green), transparent);
  transition: width 1s var(--ease-out) 0.25s;
}
.section-heading.visible h2::after { width: 92px; }

/* View Transitions: morph suave al filtrar productos */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
}

/* ═══════════════════════════════════════════════════════
   DATA AS DECORATION — Specs reales como lenguaje visual
   ═══════════════════════════════════════════════════════ */

/* ── Cinta de especificaciones (ticker HUD) ─────────── */
.spec-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.55);
  padding: 11px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.spec-ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marqueeScroll 55s linear infinite;
}
.spec-ticker:hover .spec-ticker__track { animation-play-state: paused; }
.spec-ticker__item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  white-space: nowrap;
}
.spec-ticker__sep {
  color: var(--cyan);
  font-size: 0.5rem;
  opacity: 0.7;
}
.spec-ticker__sep--green { color: var(--green); }

/* ── Números fantasma de sección (blueprint) ────────── */
main { counter-reset: sec; }
main > .section:not(.hero):not(.section--tight):not(.cta-band) { counter-increment: sec; }
.section-heading {
  position: relative;
  z-index: 0;
}
.section-heading::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: -38px;
  left: -8px;
  z-index: -1;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(4.4rem, 9vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 229, 255, 0.10);
  pointer-events: none;
  user-select: none;
}

/* ── Overlay de specs al hover (solo desktop) ───────── */
.spec-peek {
  position: absolute;
  left: 4px; right: 4px; bottom: 0;
  z-index: 4;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 11, 0.88) 30%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}
.product-card:hover .spec-peek {
  opacity: 1;
  transform: translateY(0);
}
.spec-peek span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spec-peek span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--cyan-glow);
}
@media (hover: none) and (pointer: coarse) {
  .spec-peek { display: none; }
}

/* ── Parallax nativo al hacer scroll (progresivo) ───── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .product-media img {
      animation: mediaParallax linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 100%;
    }
    @keyframes mediaParallax {
      from { translate: 0 16px; }
      to   { translate: 0 -16px; }
    }
  }
}

/* ── Inmersión de scroll: viajar a través de la página ─ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    /* El hero se queda atrás al avanzar */
    .hero__grid {
      animation: heroRecede linear both;
      animation-timeline: scroll();
      animation-range: 0 85vh;
      transform-origin: 50% 25%;
    }
    @keyframes heroRecede {
      from { opacity: 1;   transform: perspective(950px) scale(1)    rotateX(0deg) translateY(0); }
      to   { opacity: 0.1; transform: perspective(950px) scale(0.93) rotateX(8deg) translateY(74px); }
    }

    /* Cada sección se despide al dejarla arriba */
    .section:not(.hero) > .container {
      animation: sectionExit linear both;
      animation-timeline: view();
      animation-range: exit 25% exit 100%;
    }
    @keyframes sectionExit {
      to { opacity: 0.22; translate: 0 -30px; scale: 0.985; }
    }

    /* Profundidad del fondo: cada capa viaja a su ritmo */
    .ambient::before {
      animation:
        auroraDrift 26s ease-in-out infinite alternate,
        ambientRise linear both;
      animation-timeline: auto, scroll();
    }
    @keyframes ambientRise {
      to { translate: 0 -7%; }
    }
    .ambient__beams {
      animation:
        beamsSway 32s ease-in-out infinite alternate,
        beamsRise linear both;
      animation-timeline: auto, scroll();
    }
    @keyframes beamsRise {
      to { translate: 0 -13%; }
    }
  }
}

/* ── Firma geográfica del footer ────────────────────── */
.footer__geo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Responsive de la capa de datos */
@media (max-width: 768px) {
  .spec-ticker__item { font-size: 0.62rem; letter-spacing: 0.14em; }
  .spec-ticker__track { gap: 18px; }
  .footer__geo { font-size: 0.62rem; }
  /* Aurora y haces más ligeros en móvil: menos blur, deriva más lenta */
  .ambient::before {
    inset: -10%;
    filter: blur(44px) saturate(1.3);
    animation-duration: 38s;
  }
  .ambient__beams {
    filter: blur(14px);
    animation-duration: 44s;
  }
}
@media (max-width: 560px) {
  .section-heading::before { display: none; }
}
