/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — Archetype 05 adapted: dark tech with cyan accent */
  --bg:          #090909;
  --bg-2:        #111111;
  --bg-3:        #181818;
  --ink:         #f5f5f5;
  --ink-soft:    #a8a8a8;
  --ink-mute:    #767676; /* bumped from #5a5a5a → ratio ~4.6:1 on --bg, pasa WCAG AA */
  --accent:      #00c8ff;
  --accent-2:    #0066ff;
  --accent-3:    #00ff88;
  --gradient-1:  #0066ff;
  --gradient-2:  #00c8ff;
  --gradient-3:  #0033aa;
  --gradient-4:  #00ff88;
  --line:        rgba(245,245,245,0.08);

  /* Typography */
  --sans:    'Space Grotesk', 'Inter', sans-serif;
  --body:    'Inter', sans-serif;
  --mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --gutter:    clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Nav */
  --nav-h: 72px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Desactivar todas las animaciones y transiciones decorativas */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Mantener transiciones funcionales (focus, hover de color) a duración mínima */
  :focus-visible {
    transition: none;
  }

  /* Revelar elementos inmediatamente (el JS también lo hace, esto es fallback CSS) */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Ocultar el cursor personalizado y el canvas del hero */
  #cursor { display: none !important; }
  .hero-canvas { display: none !important; }
}
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.025em; font-family: var(--sans); }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reveal base */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Evita que letras itálicas al final del texto queden cortadas */
  display: inline-block;
  padding-right: 0.1em;
  padding-bottom: 0.08em;
}

/* =============================================================
   5. Components — Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

/* ── btn-primary: Glitch Pulse (reposo) + Corner Brackets (hover) ── */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  position: relative;
  overflow: hidden;
  animation: btn-primary-glitch 4.5s ease-in-out infinite;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

/* Shine en hover (::before) */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
}

/* Corner brackets (::after) — aparecen en hover */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 5px;
  background:
    linear-gradient(var(--bg), var(--bg)) top    left  / 11px 1.5px no-repeat,
    linear-gradient(var(--bg), var(--bg)) top    left  / 1.5px 11px no-repeat,
    linear-gradient(var(--bg), var(--bg)) top    right / 11px 1.5px no-repeat,
    linear-gradient(var(--bg), var(--bg)) top    right / 1.5px 11px no-repeat,
    linear-gradient(var(--bg), var(--bg)) bottom left  / 11px 1.5px no-repeat,
    linear-gradient(var(--bg), var(--bg)) bottom left  / 1.5px 11px no-repeat,
    linear-gradient(var(--bg), var(--bg)) bottom right / 11px 1.5px no-repeat,
    linear-gradient(var(--bg), var(--bg)) bottom right / 1.5px 11px no-repeat;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  pointer-events: none;
  border-radius: inherit;
}

.btn-primary:hover {
  background: #33d4ff;
  box-shadow: 0 8px 32px rgba(0,200,255,0.45), 0 0 0 3px rgba(0,200,255,0.15);
  animation: none;
}
.btn-primary:hover::before {
  animation: btn-shine 0.55s var(--ease-out) forwards;
}
/* Brackets cierran al hacer hover */
.btn-primary:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Glitch: 85% del tiempo estático, 15% micro-distorsión */
@keyframes btn-primary-glitch {
  0%, 82%, 100% {
    box-shadow: none;
    transform: translateX(0) translateY(0);
  }
  84% {
    transform: translateX(-2px) translateY(0);
    box-shadow: 3px 0 10px rgba(255,0,128,0.35), -3px 0 10px rgba(0,200,255,0.5);
  }
  86% {
    transform: translateX(3px) translateY(0);
    box-shadow: -3px 0 10px rgba(255,0,128,0.35), 3px 0 10px rgba(0,200,255,0.5);
  }
  88% {
    transform: translateX(-1px) translateY(0);
    box-shadow: 2px 0 6px rgba(0,200,255,0.3);
  }
  90% { transform: translateX(0); box-shadow: none; }
}

/* ── btn-ghost: Shimmer Diagonal continuo ── */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out);
}

/* Banda diagonal que barre en loop */
.btn-ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.11) 50%,
    transparent 80%
  );
  transform: skewX(-12deg);
  animation: btn-ghost-shimmer 3.8s ease-in-out infinite 0.8s;
  pointer-events: none;
}

.btn-ghost:hover {
  border-color: rgba(245,245,245,0.3);
  background: rgba(245,245,245,0.05);
}
/* En hover el shimmer se acelera un poco */
.btn-ghost:hover::before {
  animation-duration: 1.8s;
}

@keyframes btn-ghost-shimmer {
  0%         { left: -80%; opacity: 0; }
  10%        { opacity: 1; }
  65%        { opacity: 1; }
  80%, 100%  { left: 130%; opacity: 0; }
}

@keyframes btn-shine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.btn-nav {
  display: none;
  align-items: center;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  color: var(--accent);
  position: relative;
  overflow: hidden;
  animation: btn-nav-pulse 2.8s ease-in-out infinite;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.18s var(--ease-bounce);
}
.btn-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0%, rgba(0,200,255,0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0s;
}
.btn-nav:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 18px rgba(0,200,255,0.45), 0 0 36px rgba(0,200,255,0.2);
  transform: scale(1.04);
  animation: none;
}
.btn-nav:hover::before {
  animation: btn-shine 0.55s var(--ease-out) forwards;
}
@keyframes btn-nav-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,255,0); border-color: rgba(0,200,255,0.5); }
  50%       { box-shadow: 0 0 10px 3px rgba(0,200,255,0.35), 0 0 22px 6px rgba(0,200,255,0.12); border-color: rgba(0,200,255,1); }
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: var(--bg-3);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.tag--sm {
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(9,9,9,0.9);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 0 8px rgba(0,200,255,0.25));
}
.nav-logo-text {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nav-logo-sub {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-left: auto;
}
.nav-link {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-arrow { font-size: 10px; opacity: 0.6; margin-left: 2px; transition: transform 0.2s; display: inline-block; }
.nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.97);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 6px 6px;
  min-width: 240px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease;
  backdrop-filter: blur(12px);
  z-index: 200;
}
/* puente invisible que cubre el gap entre el link y el menú */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: rgba(0,200,255,0.07);
  color: var(--accent);
}
.nav-dropdown-num {
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  color: var(--accent);
  opacity: 0.6;
  min-width: 20px;
}

/* Service link */
.service-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.service-link:hover { opacity: 0.75; }

.nav-socials {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* empuja todo el bloque derecho al extremo */
}
.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}
.nav-social-link:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.07);
}
.btn-nav { margin-left: 0.5rem; flex-shrink: 0; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-hamburger.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9,9,9,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;   /* contenido desde arriba, sin salto al expandir */
  justify-content: center;
  overflow-y: auto;          /* scroll si el dropdown agranda el menú */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(5rem, 18vw, 7rem) 2rem clamp(3rem, 8vw, 5rem);
  width: 100%;
  max-width: 400px;
}
.mobile-link {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.2s;
  letter-spacing: -0.02em;
}
.mobile-link:hover { color: var(--ink); }
.mobile-link--cta {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.75rem 2rem;
  border-radius: 100px;
}
.mobile-link--cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Botón toggle Servicios */
.mobile-link--toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.mobile-toggle-arrow {
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  color: var(--ink-mute);
}
.mobile-link--toggle[aria-expanded="true"] .mobile-toggle-arrow {
  transform: rotate(180deg);
}
.mobile-link--toggle[aria-expanded="true"] {
  color: var(--accent);
}

/* Dropdown de servicios — fade + slide */
.mobile-services-wrap {
  display: none;
}
.mobile-services-wrap.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0 0.5rem;
  animation: mobile-drop-in 0.3s var(--ease-out) both;
}
@keyframes mobile-drop-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sub-links */
.mobile-link--sub {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.mobile-link--sub:hover { color: var(--ink); }
.mobile-sub-num {
  font-family: var(--mono);
  font-size: 0.65em;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* =============================================================
   6a. Sections — Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Hero canvas geometric animation */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

/* Mouse-reactive gradient */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle 700px at var(--mx, 30%) var(--my, 60%),
      rgba(0,102,255,0.18) 0%, transparent 55%),
    radial-gradient(circle 900px at calc(var(--mx, 30%) + 15%) calc(var(--my, 60%) - 10%),
      rgba(0,200,255,0.12) 0%, transparent 50%),
    radial-gradient(circle 500px at 80% 20%,
      rgba(0,255,136,0.07) 0%, transparent 50%);
  transition: background 0.05s linear;
}

/* Ambient blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero-blob--1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: rgba(0,102,255,0.12);
  top: -10%;
  right: -5%;
  animation: blobDrift1 18s ease-in-out infinite;
}
.hero-blob--2 {
  width: clamp(200px, 30vw, 450px);
  height: clamp(200px, 30vw, 450px);
  background: rgba(0,200,255,0.09);
  bottom: 5%;
  left: -5%;
  animation: blobDrift2 22s ease-in-out infinite;
}
.hero-blob--3 {
  width: clamp(150px, 20vw, 300px);
  height: clamp(150px, 20vw, 300px);
  background: rgba(0,255,136,0.07);
  top: 40%;
  right: 20%;
  animation: blobDrift3 15s ease-in-out infinite;
}
@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.1); }
}
@keyframes blobDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grain */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  padding-top: 2rem;
}

.hero-content--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-content--centered .hero-title {
  max-width: none;
}
.hero-content--centered .hero-sub {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-content--centered .hero-actions {
  justify-content: center;
}
.hero-content--centered .hero-kicker {
  justify-content: center;
}

/* Hero logo mark — logo unificado (prisma + texto dentro del PNG) */
.hero-logo-mark {
  margin-bottom: 1.8rem;
}
.hero-logo-mark img {
  width: clamp(240px, 80vw, 960px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 48px rgba(0,200,255,0.30));
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}
.kicker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent); }
  50% { box-shadow: 0 0 18px var(--accent), 0 0 32px rgba(0,200,255,0.4); }
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 2rem;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-right: 0.12em;
  padding-bottom: 0.1em;
}

.hero-sub {
  font-family: var(--body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
/* Botones del hero: misma anchura para simetría */
.hero-actions .btn {
  min-width: 188px;
  justify-content: center;
}

/* ── Scroll indicator — Dot Scanner (fixed, desaparece al hacer scroll) ── */
.hero-scroll {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
  animation: scroll-appear 0.8s var(--ease-out) 1.2s forwards;
}
.hero-scroll.is-hidden {
  opacity: 0 !important;
  animation: none;
}
@keyframes scroll-appear {
  to { opacity: 1; }
}

/* Pista: línea fija tenue de fondo */
.hero-scroll-track {
  position: relative;
  width: 1px;
  height: 64px;
  background: rgba(0,200,255,0.1);
  overflow: visible;
}

/* Trail: gradiente que crece de arriba a abajo en sync con el dot */
.hero-scroll-track::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(to bottom, transparent, rgba(0,200,255,0.7));
  animation: dot-trail 2.2s cubic-bezier(0.4, 0, 0.55, 1) infinite 1.5s;
}
@keyframes dot-trail {
  0%         { height: 0%;   opacity: 0; }
  8%         { opacity: 1; }
  85%        { opacity: 0.5; }
  100%       { height: 100%; opacity: 0; }
}

/* Dot: punto que cae por la línea */
.hero-scroll-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 6px  2px rgba(0,200,255,0.8),
    0 0 14px 5px rgba(0,200,255,0.35),
    0 0 28px 8px rgba(0,200,255,0.12);
  animation: dot-fall 2.2s cubic-bezier(0.4, 0, 0.55, 1) infinite 1.5s;
}
@keyframes dot-fall {
  0%         { top: -3px;          opacity: 0; }
  8%         { opacity: 1; }
  82%        { opacity: 1; }
  100%       { top: calc(100% + 3px); opacity: 0; }
}

/* Label SCROLL */
.hero-scroll-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,200,255,0.45);
  writing-mode: vertical-lr;
}

/* =============================================================
   6b. Stats
   ============================================================= */
.stats {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem 4rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.stat-value {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-small {
  font-size: 0.55em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stat-sep {
  display: none;
  width: 1px;
  height: 50px;
  background: var(--line);
}

/* =============================================================
   6c. About
   ============================================================= */
.about {
  padding: var(--section-y) var(--gutter);
}
.about-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text { max-width: 60ch; }
.about-body {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.about-body:first-of-type { margin-top: 30px; }
.about-body strong { color: var(--ink); font-weight: 600; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* About visual */
.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-card {
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,255,0.25);
}
.about-card-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.about-card-label {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.about-card-sub {
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.about-card--accent {
  background: linear-gradient(135deg, rgba(0,102,255,0.08) 0%, rgba(0,200,255,0.05) 100%);
  border-color: rgba(0,200,255,0.15);
}
.about-card--float {
  position: absolute;
  top: -1.5rem;
  right: -1rem;
  padding: 1.2rem 1.6rem;
  background: var(--accent);
  border-color: transparent;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,200,255,0.3);
}
.about-card--float:hover {
  transform: translateY(-4px);
  border-color: transparent;
}
.about-float-num {
  display: block;
  font-family: var(--sans);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bg);
  line-height: 1;
  letter-spacing: -0.04em;
}
.about-float-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(9,9,9,0.7);
}

/* =============================================================
   6d. Services
   ============================================================= */
.services {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
}
.services-header {
  max-width: 1360px;
  margin: 0 auto 4rem;
}
.services-list {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.service-row {
  border-top: 1px solid var(--line);
  transition: background 0.3s;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover { background: rgba(255,255,255,0.02); }

.service-row-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
}
.service-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  min-width: 2ch;
}
.service-title {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.2s;
}
.service-row:hover .service-title { color: var(--accent); }

.service-tags {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.service-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.35s var(--ease-out);
}
.service-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.service-toggle.is-open {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: rotate(45deg);
}
.service-toggle-icon {
  position: relative;
  width: 12px;
  height: 12px;
}
.service-toggle-icon::before,
.service-toggle-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.service-toggle-icon::before {
  width: 12px; height: 2px;
  top: 5px; left: 0;
}
.service-toggle-icon::after {
  width: 2px; height: 12px;
  top: 0; left: 5px;
}

.service-row-body {
  padding: 0 0 2rem 0;
  max-width: 65ch;
}
.service-row-body p {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: var(--ink-soft);
  line-height: 1.8;
}
.service-row-body[hidden] { display: none; }

/* =============================================================
   6e-gallery. Gallery mosaic
   ============================================================= */
.gallery {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
}
.gallery-header {
  max-width: 1360px;
  margin: 0 auto 3rem;
}

.gallery-mosaic {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-3);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease-out), filter 0.4s var(--ease-out);
  filter: saturate(1.1) brightness(0.9);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.25) brightness(1.0);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9,9,9,0.5) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-item--wide {
  grid-column: span 2;
}
.gallery-item--tall {
  grid-row: span 2;
}

/* Lightbox con navegación */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  touch-action: pan-y; /* permite scroll vertical pero capturamos swipe horizontal */
  user-select: none;
  -webkit-user-select: none;
}
.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Wrapper de imagen para la animación de slide */
.gallery-lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.gallery-lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
  display: block;
}

/* Botón cerrar */
.gallery-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--ink);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 1;
}
.gallery-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

/* Botones prev / next */
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,200,255,0.25);
  background: rgba(0,0,0,0.5);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s var(--ease-bounce);
  z-index: 1;
}
.gallery-lightbox-prev { left: 1.25rem; }
.gallery-lightbox-next { right: 1.25rem; }
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,200,255,0.08);
  transform: translateY(-50%) scale(1.1);
}

/* Contador "3 / 11" */
.gallery-lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

@media (max-width: 600px) {
  .gallery-lightbox-prev { left: 0.5rem; }
  .gallery-lightbox-next { right: 0.5rem; }
  .gallery-lightbox img  { max-width: 95vw; max-height: 80vh; }
}

/* =============================================================
   6e. Marquee
   ============================================================= */
.marquee-section {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  padding: 0 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.marquee-dot {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* =============================================================
   6f. Testimonials
   ============================================================= */
.testimonials {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
}
.testimonials-header {
  max-width: 1360px;
  margin: 0 auto 4rem;
}
.testi-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.testi-card {
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.testi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.testi-card blockquote {
  margin-bottom: 1.5rem;
}
.testi-card blockquote p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.8;
  position: relative;
  padding-left: 1.5rem;
}
.testi-card blockquote p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.15em;
  font-family: var(--sans);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.testi-card footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testi-card footer strong {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.testi-card footer span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

/* =============================================================
   6g. CTA Section
   ============================================================= */
.cta-section {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
}
.cta-inner {
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  border-radius: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.cta-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(0,102,255,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(0,200,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 0%, rgba(0,255,136,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.cta-hours {
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  text-align: center;
}
.cta-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 48ch;
  margin: 0 auto 1rem;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.cta-address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.cta-address span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.cta-address svg { flex-shrink: 0; color: var(--accent); }

/* ── Mapa oscuro ── */
.cta-map {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cta-map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,200,255,0.18);
  box-shadow:
    0 0 0 1px rgba(0,200,255,0.06),
    0 8px 40px rgba(0,0,0,0.55),
    0 0 32px rgba(0,200,255,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-map-frame:hover {
  border-color: rgba(0,200,255,0.38);
  box-shadow:
    0 0 0 1px rgba(0,200,255,0.12),
    0 12px 48px rgba(0,0,0,0.6),
    0 0 48px rgba(0,200,255,0.14);
}
.cta-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  /* Tema oscuro: invertir colores + rotar matiz para preservar rojos/verdes */
  filter: invert(92%) hue-rotate(180deg) saturate(0.8) brightness(0.88) contrast(1.05);
  transition: filter 0.3s;
}
.cta-map-frame:hover iframe {
  filter: invert(92%) hue-rotate(180deg) saturate(0.9) brightness(0.92) contrast(1.05);
}
/* Esquinas decorativas tipo HUD */
.cta-map-frame::before,
.cta-map-frame::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 2;
  pointer-events: none;
}
.cta-map-frame::before {
  top: 8px; left: 8px;
  border-top: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
  border-radius: 2px 0 0 0;
  opacity: 0.7;
}
.cta-map-frame::after {
  bottom: 8px; right: 8px;
  border-bottom: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  border-radius: 0 0 2px 0;
  opacity: 0.7;
}
.cta-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.2s;
  align-self: flex-end;
}
.cta-map-link:hover { color: var(--accent); }

@media (max-width: 899px) {
  .cta-map-frame { max-height: 240px; }
}

/* =============================================================
   6h. Footer
   ============================================================= */
.footer {
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand img {
  width: 32px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(0,200,255,0.2));
}
.footer-brand span {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
  max-width: 40ch;
}
.footer-social {
  display: flex;
  gap: 1.25rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,200,255,0.06);
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

/* =============================================================
   Back to top button
   ============================================================= */
#btn-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(9,9,9,0.85);
  border: 1.5px solid rgba(0,200,255,0.35);
  color: var(--accent, #00c8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s, box-shadow 0.2s;
}
#btn-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#btn-top:hover {
  border-color: var(--accent, #00c8ff);
  box-shadow: 0 0 20px rgba(0,200,255,0.25);
}
#btn-top:active { transform: scale(0.93); }
@media (max-width: 480px) {
  #btn-top { bottom: 1.25rem; left: 1.25rem; }
}

/* =============================================================
   7. Custom cursor — tech / HUD crosshair
   ============================================================= */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }

/* Center dot */
.cursor-dot {
  position: absolute;
  top: -3px; left: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent), 0 0 14px var(--accent);
  transform: translate3d(0,0,0);
  transition: background 0.18s, box-shadow 0.18s;
}

/* Crosshair lines */
.cursor-cross {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
}
.cursor-cross-h,
.cursor-cross-v {
  position: absolute;
  background: rgba(0,200,255,0.22);
  transition: background 0.18s;
}
.cursor-cross-h {
  top: -0.5px; left: -20px;
  width: 40px; height: 1px;
}
.cursor-cross-v {
  top: -20px; left: -0.5px;
  width: 1px; height: 40px;
}

/* Wrapper: solo translate via JS */
#cursor-ring-pos {
  position: absolute;
  top: 0; left: 0;
}

/* Inner: centrado -50px y solo scale via CSS — JS nunca toca su transform */
.cursor-ring {
  position: absolute;
  top: -50px; left: -50px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.cursor-ring .lb { transition: stroke 0.18s; }

/* Hover */
.cursor-ring.is-hovering { transform: scale(0.62); }
.cursor-ring.is-hovering .lb { stroke: var(--accent-3) !important; }

/* Glitch flash */
.cursor-ring.is-glitch .lb:nth-child(odd)  { stroke: #ff003c !important; }
.cursor-ring.is-glitch .lb:nth-child(even) { stroke: #00ffcc !important; }
.cursor-ring.is-glitch ~ .cursor-dot {
  background: #ff003c;
  box-shadow: 0 0 6px #ff003c, 2px 0 0 var(--accent), -2px 0 0 #ff003c;
}
.cursor-ring.is-glitch ~ .cursor-cross .cursor-cross-h,
.cursor-ring.is-glitch ~ .cursor-cross .cursor-cross-v {
  background: rgba(255,0,60,0.3);
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stat-sep { display: block; }
  .about-card--float { display: flex; flex-direction: column; }
}

@media (min-width: 720px) {
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .service-tags { display: flex; }
  .stat-sep { display: block; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
  .nav-socials { display: flex; }
  .btn-nav { display: inline-flex; }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
  }
  .about-visual {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .about-card { flex: 1 1 45%; }
  .about-card--float {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
  }
}

@media (min-width: 1280px) {
  .stat-sep { display: block; }
  .gallery-mosaic { grid-auto-rows: 300px; }
}

/* Gallery responsive */
@media (max-width: 719px) {
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 1; }
}
@media (max-width: 479px) {
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item--wide { grid-column: span 1; }
}

/* =============================================================
   9. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
  .kicker-dot { animation: none; }
  .hero-scroll { animation: none; opacity: 0.5; }
  .hero-scroll-dot { animation: none; top: 50%; opacity: 0.6; }
  .hero-scroll-track::before { animation: none; height: 50%; opacity: 0.4; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================
   10. WhatsApp flotante
   ============================================================= */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem 0.75rem 1rem;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  animation: wa-pulse 2.4s ease-in-out infinite;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s;
}
.wa-float:hover {
  background: #1ebe5c;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 32px rgba(37,211,102,0.65), 0 0 0 4px rgba(37,211,102,0.2);
  animation: none;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.6), 0 0 18px 6px rgba(37,211,102,0.3); }
}
.wa-float svg { flex-shrink: 0; }
.wa-float-label { white-space: nowrap; }

/* Dot "en línea" sobre el botón */
.wa-online-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #4ade80;
  border: 2.5px solid #090909;
  animation: online-ring 2.4s ease-in-out infinite;
  z-index: 1;
}
@keyframes online-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* ── Chat Bubble — diseño oscuro coherente con el sitio ── */
.wa-bubble {
  position: fixed;
  bottom: 5.8rem;
  right: 2rem;
  width: 300px;
  background: #1a1a1a;
  border: 1px solid rgba(37,211,102,0.28);
  border-radius: 20px 20px 6px 20px;
  box-shadow:
    0 0 0 1px rgba(37,211,102,0.08),
    0 0 32px rgba(37,211,102,0.14),
    0 24px 60px rgba(0,0,0,0.65),
    0 4px 16px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.88);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
  z-index: 899;
}
/* Cola que apunta al botón de WA */
.wa-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 26px;
  border: 9px solid transparent;
  border-top-color: #1a1a1a;
  border-bottom: 0;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}
.wa-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.wa-bubble-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  background: linear-gradient(135deg, rgba(37,211,102,0.12) 0%, rgba(37,211,102,0.03) 60%);
  border-radius: 20px 20px 0 0;
}
.wa-bubble-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #1aab52 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(37,211,102,0.25), 0 4px 12px rgba(37,211,102,0.2);
}
.wa-bubble-name {
  display: block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.wa-bubble-status {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.wa-bubble-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: online-ring 2s ease-in-out infinite;
}
.wa-bubble-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-bounce);
}
.wa-bubble-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--ink);
  transform: rotate(90deg) scale(1.1);
}

/* Body — burbuja de mensaje estilo WhatsApp */
.wa-bubble-body {
  padding: 0.9rem 1.1rem 1.1rem;
  min-height: 52px;
  display: flex;
  align-items: flex-start;
}
.wa-bubble-inner {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 4px 14px 14px 14px;
  padding: 0.65rem 0.9rem;
  min-width: 60px;
}

/* Typing dots */
.wa-bubble-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 22px;
}
.wa-bubble-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-mute);
  animation: typing-bounce 1.3s ease-in-out infinite;
}
.wa-bubble-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-bubble-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.35; }
  30%            { transform: translateY(-5px); opacity: 1;    }
}

/* Mensaje */
.wa-bubble-msg {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Pie del mensaje — timestamp estilo chat */
.wa-bubble-time {
  display: block;
  font-size: 0.65rem;
  color: var(--ink-mute);
  font-family: var(--mono);
  text-align: right;
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .wa-bubble { right: 1.25rem; width: 260px; bottom: 5rem; }
  .wa-online-dot { top: 2px; right: 2px; }
}

@media (max-width: 480px) {
  .wa-float { padding: 0.85rem; border-radius: 50%; bottom: 1.25rem; right: 1.25rem; }
  .wa-float-label { display: none; }
}

/* =============================================================
   11. Google Reviews
   ============================================================= */
.greviews {
  padding: var(--section-y) var(--gutter);
  background: var(--bg-2);
}
.greviews-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.greviews-header { text-align: center; }

/* Badge de rating — clicable, abre reseñas en Google */
.greviews-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 2rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}
.greviews-badge:hover {
  border-color: rgba(251,188,4,0.4);
  box-shadow: 0 6px 28px rgba(251,188,4,0.1), 0 0 0 1px rgba(251,188,4,0.15);
  transform: translateY(-2px);
}
.greviews-badge-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.greviews-score-num {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.greviews-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.greviews-score-label {
  font-size: 0.72rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.greviews-glogo { flex-shrink: 0; opacity: 0.9; }

/* ── Carrusel ── */
.greviews-carousel {
  position: relative;
  width: 100%;
  outline: none;
}
.greviews-carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}
.greviews-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}
.greviews-track {
  display: flex;
  width: 100%;
  gap: 1.25rem;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
  cursor: grab;
}
.greviews-track:active {
  cursor: grabbing;
}
/* Desktop: 3 tarjetas visibles */
.greviews-track .greview-card {
  flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
  max-width: calc((100% - 2 * 1.25rem) / 3);
  min-width: 0;
}
/* Móvil: 1 tarjeta visible */
@media (max-width: 767px) {
  .greviews-track { gap: 0; }
  .greviews-track .greview-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Barra de progreso auto-play */
.greviews-track-wrapper::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: 0 0 16px 16px;
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.greviews-track-wrapper.is-playing::after {
  width: 100%;
  opacity: 1;
  transition: width 5s linear, opacity 0.2s;
}

/* Controles: flechas + dots */
.greviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.greview-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s var(--ease-bounce);
}
.greview-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,200,255,0.07);
  transform: scale(1.1);
}
.greview-nav-btn:active { transform: scale(0.95); }

/* Dots indicadores */
.greview-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.greview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-mute);
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.45;
  transition: width 0.35s var(--ease-out), border-radius 0.35s var(--ease-out),
              background 0.35s, opacity 0.35s, box-shadow 0.35s;
}
.greview-dot.is-active {
  width: 26px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 10px rgba(0,200,255,0.45);
}
.greview-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s, transform 0.25s var(--ease-out);
}
.greview-card:hover {
  border-color: rgba(0,200,255,0.25);
  transform: translateY(-4px);
}
.greview-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.greview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4285F4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.greview-avatar--b { background: #34A853; }
.greview-avatar--c { background: #EA4335; }
.greview-name {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.2rem;
}
.greview-stars { display: flex; gap: 2px; }
.greview-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}
.greview-date {
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-family: var(--mono);
}

/* CTA dejar reseña */
.greviews-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.25s var(--ease-out), background 0.2s;
}
.btn-google:hover {
  background: var(--bg);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.greviews-cta-note {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-family: var(--mono);
  text-align: center;
}

.greviews-score-count {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

@media (max-width: 768px) {
  .greviews-badge { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .greview-nav-btn { width: 40px; height: 40px; }
}
