/* ============================================================
   CERTISAT — Premium GPS Website
   Archetype 05: Mouse-Reactive Gradient — Navy Blue Edition
   ============================================================ */

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  --bg:          #060d17;
  --bg-2:        #091525;
  --bg-3:        #0c1e36;
  --bg-card:     #0d2040;
  --ink:         #e8f4ff;
  --ink-soft:    #b8d0e8;
  --ink-mute:    #6a90b0;
  --accent:      #00c8f0;
  --accent-dim:  rgba(0, 200, 240, 0.12);
  --accent-glow: rgba(0, 200, 240, 0.3);
  --brand:       #013c6c;
  --brand-mid:   #0056a8;
  --whatsapp:    #25d366;
  --whatsapp-dk: #1da851;
  --line:        rgba(0, 200, 240, 0.1);
  --line-soft:   rgba(232, 244, 255, 0.06);

  --font-display: "Space Grotesk", -apple-system, sans-serif;
  --font-body:    "Inter", -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --nav-h:    72px;
  --r:        12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
svg { flex-shrink: 0; }

/* ── CURSOR ────────────────────────────────────────────────── */
.cursor { opacity: 0; pointer-events: none; position: fixed; z-index: 9999; transition: opacity 0.25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: transform 0.18s var(--ease-out), width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s;
}
.cursor.is-hover .cursor-ring { width: 56px; height: 56px; opacity: 0.8; border-color: var(--accent); }
.cursor.is-hover .cursor-dot { transform: translate(-50%, -50%) scale(2.5); background: var(--accent); }
@media (hover: none) { .cursor { display: none; } }

/* ── SPLASH ────────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease-in), clip-path 0.7s var(--ease-in);
  animation: splashSafety 0.01s 4.5s forwards;
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.splash-logo { width: 80px; height: 80px; object-fit: contain; animation: splashPulse 1.4s ease-in-out infinite; }
@keyframes splashPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.95); }
}
.splash-bar {
  width: 140px; height: 2px;
  background: var(--line-soft);
  border-radius: 99px;
  overflow: hidden;
}
.splash-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-mid), var(--accent));
  border-radius: 99px;
  animation: splashProgress 1.8s var(--ease-out) forwards;
}
@keyframes splashProgress {
  to { width: 100%; }
}

/* ── LAYOUT ────────────────────────────────────────────────── */
.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--nav-h);
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(6, 13, 23, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 2rem;
  padding-inline: 1.5rem;
  max-width: 1200px;
  margin-inline: auto;
}
.nav-logo img {
  height: 74px;
  width: auto;
  object-fit: contain;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.scrolled .nav-logo img { height: 58px; }
.nav-links {
  display: flex; gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--ink); background: var(--line-soft); }
.nav-link.active { color: var(--cyan); }

.nav-cta {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--whatsapp);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--whatsapp-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(6, 13, 23, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-mobile.is-open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s;
}
.nav-mobile-link:hover { color: var(--ink); }
.nav-mobile-wa {
  display: flex; align-items: center; justify-content: center;
  margin-top: 1rem;
  padding: 0.85rem;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.6) brightness(0.35);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6,13,23,0.7) 0%,
    rgba(1,60,108,0.5) 40%,
    rgba(6,13,23,0.85) 100%
  );
}

.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle 600px at var(--mx, 25%) var(--my, 45%),
      rgba(0, 144, 200, 0.22) 0%, transparent 65%),
    radial-gradient(circle 400px at calc(var(--mx, 25%) + 15%) calc(var(--my, 45%) - 10%),
      rgba(1, 60, 108, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 100% 50% at 80% 80%, rgba(0,200,240,0.08) 0%, transparent 60%);
  filter: blur(1px);
}

.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(0,200,240,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,240,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 3;
  padding: 6rem 0 2rem;
  width: min(720px, 100% - 2.5rem);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease-out) forwards;
}
.kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50%       { opacity: 0.5; box-shadow: 0 0 2px var(--accent); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--ease-out) forwards;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 54ch;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s var(--ease-out) forwards;
}

.hero-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s var(--ease-out) forwards;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-wa {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--whatsapp);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  white-space: nowrap;
}
.btn-wa:hover {
  background: var(--whatsapp-dk);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.35);
}
.btn-wa:active { transform: translateY(-1px); }

.btn-wa-large { padding: 1.1rem 2.2rem; font-size: 1.1rem; border-radius: 12px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--line);
  transform: translateY(-2px);
}
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateY(3px); }

/* ── HERO STATS ─────────────────────────────────────────────── */
.hero-stats {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  margin-top: auto;
  padding: 1.5rem 2rem;
  background: rgba(9, 21, 37, 0.65);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 0.9s 1.1s var(--ease-out) forwards;
}
.hero-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.5rem 3rem;
  flex: 1 1 160px;
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.hero-stat-divider {
  width: 1px; height: 40px;
  background: var(--line);
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  animation: fadeIn 1s 1.4s ease forwards;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECTION SHARED ─────────────────────────────────────────── */
section { padding-block: 6rem; }

.section-header { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: 4rem; }

.kicker-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.section-sub {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--ink-mute);
  max-width: 50ch;
  margin-inline: auto;
}

.body-text {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 56ch;
  text-align: justify;
}

/* ── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* SAFETY: data-split elements must never be invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-pills {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 0.5rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
}

/* About Visual Card */
.about-visual { display: flex; justify-content: center; align-items: flex-start; }
.about-img-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,200,240,0.12);
}
.about-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.about-img-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(6, 13, 23, 0.75);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.about-map-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 60px rgba(0, 200, 240, 0.06), 0 20px 60px rgba(0,0,0,0.3);
}
.map-card-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.map-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-mute);
}
.map-dot.active {
  background: var(--whatsapp);
  box-shadow: 0 0 10px rgba(37,211,102,0.5);
  animation: dotPulse 2s ease-in-out infinite;
}
.map-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.map-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.map-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.map-stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}
.map-stat-value.accent { color: var(--accent); font-size: 0.9rem; letter-spacing: 0.08em; }
.map-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.map-ping-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.map-ping { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.ping-dot {
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ping-ring {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pingRing 2s ease-out infinite;
}
@keyframes pingRing {
  0% { width: 8px; height: 8px; opacity: 1; }
  100% { width: 28px; height: 28px; opacity: 0; }
}
.map-ping-text {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* ── SERVICES ────────────────────────────────────────────────── */
.services { background: var(--bg); }

/* ── Photo service cards (homepage preview) ─────────────── */
.svc-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.svc-photo-card {
  background: rgba(1,60,108,.1);
  border: 1px solid rgba(0,200,240,.1);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.svc-photo-card:hover {
  border-color: rgba(0,200,240,.3);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 30px rgba(0,200,240,.07);
}
.svc-photo-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}
.svc-photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.svc-photo-card:hover .svc-photo-img-wrap img {
  transform: scale(1.04);
}
.svc-photo-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(6,13,23,.6) 100%);
  pointer-events: none;
}
.svc-photo-tag {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6,13,23,.75);
  border: 1px solid rgba(0,200,240,.3);
  border-radius: 4px;
  padding: .2rem .55rem;
  backdrop-filter: blur(8px);
}
.svc-photo-body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.svc-photo-title {
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.svc-photo-desc {
  font-size: .83rem;
  color: var(--text-muted, #7a9ab8);
  line-height: 1.65;
  flex: 1;
  text-align: justify;
}
.svc-photo-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
  font-size: .82rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: gap .2s ease, opacity .2s ease;
  margin-top: .25rem;
}
.svc-photo-cta:hover { gap: .6rem; opacity: .8; }

/* "Ver todos" CTA row */
.svc-all-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.svc-all-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  background: transparent;
  border: 1.5px solid var(--cyan);
  border-radius: 100px;
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
  font-size: .9rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: background .25s ease, box-shadow .25s ease, gap .2s ease;
}
.svc-all-btn:hover {
  background: rgba(0,200,240,.1);
  box-shadow: 0 0 28px rgba(0,200,240,.2);
  gap: .75rem;
}
.svc-all-hint {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--text-muted, #7a9ab8);
  text-transform: uppercase;
}

/* Responsive photo grid */
@media (max-width: 1024px) {
  .svc-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-photo-grid { grid-template-columns: 1fr; }
  .svc-all-wrap { justify-content: center; text-align: center; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.service-card:hover {
  border-color: rgba(0,200,240,0.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,200,240,0.1);
}
.service-card-inner {
  position: relative; z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  width: fit-content;
}
.service-tag.featured { color: var(--accent); background: var(--accent-dim); border-color: var(--accent-dim); }
.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: background 0.3s, box-shadow 0.3s;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon {
  background: rgba(0,200,240,0.18);
  box-shadow: 0 0 20px rgba(0,200,240,0.2);
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
  flex-shrink: 0;
}
.service-features {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-top: auto;
}
.service-features li {
  font-size: 0.82rem;
  color: var(--ink-mute);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.service-features li::before {
  content: "▸";
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 0.65rem;
  top: 3px;
}
.service-cta {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
  transition: gap 0.2s, opacity 0.2s;
  gap: 0.3rem;
}
.service-cta:hover { gap: 0.6rem; opacity: 0.85; }

.service-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0,200,240,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover .service-glow { opacity: 1; }

/* ── FEATURES GRID ──────────────────────────────────────────── */
.features { background: var(--bg-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.feature-item:hover {
  border-color: rgba(0,200,240,0.25);
  background: rgba(13, 32, 64, 0.9);
  transform: translateY(-4px);
}
.feature-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.feature-desc {
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.6;
  text-align: justify;
}

/* ── APP SECTION ────────────────────────────────────────────── */
.app-section { background: var(--bg); }
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.app-phone-wrap { display: flex; justify-content: center; }
.app-phone {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}
.app-phone-frame {
  position: absolute; inset: -14px;
  border: 2px solid var(--line);
  border-radius: 46px;
  background: var(--bg-card);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.5),
    0 0 0 1px var(--line),
    inset 0 0 60px rgba(0,200,240,0.03);
  z-index: 0;
}
.app-slides {
  position: relative; z-index: 1;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 518 / 1000;
  background: var(--bg-3);
}
.app-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.app-slide.active { opacity: 1; position: relative; }
.app-dots {
  display: flex; gap: 0.5rem; justify-content: center;
  margin-top: 1.5rem;
  position: relative; z-index: 1;
}
.app-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-mute);
  transition: background 0.2s, width 0.2s;
}
.app-dot.active { background: var(--accent); width: 20px; border-radius: 4px; }

.app-text {
  display: flex; flex-direction: column; gap: 1.25rem;
}

.store-btn {
  display: inline-flex; align-items: center; gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  color: var(--ink);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  min-width: 160px;
}
.store-btn:hover {
  border-color: rgba(0,200,240,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.store-sub {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.store-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.app-store-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── CLIENTS ────────────────────────────────────────────────── */
.clients {
  background: var(--bg-2);
  padding-block: 4rem 4.5rem;
  text-align: center;
  overflow: hidden;
}

/* Franja full-width fuera del container */
.clients-marquee-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Fade suave en los bordes */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* Track de 2 copias (24 logos) que se deslizan — loop a -50% */
.clients-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: clientsScroll 36s linear infinite;
  gap: 0;
}
.clients-marquee-outer:hover .clients-marquee-track {
  animation-play-state: paused;
}

/* Contenedor individual de cada logo — tarjeta con fondo suave */
.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 1.75rem;
  height: 90px;
}

.client-logo-item-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  height: 64px;
  min-width: 100px;
  overflow: hidden;
  opacity: 0.75;
  transition: opacity 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.client-logo-item img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* Al hover: tarjeta a color pleno con glow cian */
.clients-marquee-outer:hover .client-logo-item-inner {
  opacity: 1;
  box-shadow: 0 4px 20px rgba(0, 200, 240, 0.2);
  transform: translateY(-3px);
}

/* Con 2 copias, el loop es a -50% del total */
@keyframes clientsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reducir movimiento: congelar el carrusel */
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track { animation: none; }
}

/* ── CTA SECTION ────────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  padding-block: 8rem;
}
.cta-bg {
  position: absolute; inset: 0; z-index: 0;
}
.cta-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(1,60,108,0.6) 0%, transparent 70%),
    var(--bg);
}
.cta-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,200,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,240,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cta-inner {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.cta-sub {
  font-size: 1.05rem;
  color: var(--ink-mute);
  max-width: 44ch;
  line-height: 1.7;
}
.cta-actions { margin-top: 0.5rem; }

.contact-details {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  width: 100%;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.contact-item svg { margin-top: 2px; color: var(--accent); flex-shrink: 0; }
.contact-item a:hover { color: var(--ink); }
.contact-sep { margin-inline: 0.25rem; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: rgba(4, 9, 18, 0.95);
  border-top: 1px solid var(--line);
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-logo { margin-bottom: 1rem; filter: brightness(1.2); }
.footer-desc {
  font-size: 0.875rem;
  color: var(--ink-mute);
  line-height: 1.7;
  max-width: 30ch;
}
.footer-social {
  display: flex; gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-mute);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--line); transform: translateY(-2px); }
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--ink-mute);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.5;
}
.footer-contact-list svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.footer-credit a { color: var(--accent); }

/* ── WHATSAPP FLOAT ─────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 700;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}
.wa-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
}
.wa-float-pulse {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-content { padding-bottom: 0; }
  .hero-stats { flex-direction: row; padding: 1rem; }
  .hero-stat { padding: 0.5rem 1.25rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }
  .about-map-card { max-width: 100%; }

  .services-grid { grid-template-columns: 1fr; }

  .app-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .app-phone-wrap { order: -1; }
  .app-store-btns { justify-content: center; }
  .body-text { max-width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  section { padding-block: 4rem; }
  .cta-section { padding-block: 5rem; }

  /* Justified text creates ugly word-gaps on narrow columns */
  .body-text, .svc-photo-desc, .feature-desc { text-align: left; }

  /* About section: center heading to match other sections when stacked */
  .about-text { text-align: center; }
  .about-text .body-text { text-align: left; margin-left: auto; margin-right: auto; }
  .about-pills { justify-content: center; }

  /* Hero kicker: smaller on mobile so it doesn't dominate */
  .hero-kicker { font-size: 0.7rem; letter-spacing: 0.08em; gap: 0.45rem; margin-bottom: 1.1rem; }

  .hero-stats { flex-direction: column; gap: 0; }
  .hero-stat-divider { width: 60%; height: 1px; }
  .hero-stat { padding: 0.85rem 0; width: 100%; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }

  /* Footer: two ordered columns, brand + contacto span full width */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .footer-desc { max-width: 100%; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.25rem; }

  .wa-float { bottom: 1.25rem; right: 1.25rem; }

  .contact-details { flex-direction: column; align-items: center; }
}

@media (max-width: 400px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
}

/* ── REDUCED MOTION: only gate intrusive effects ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; opacity: 1; }
  .kicker-dot  { animation: none; }
  .ping-ring   { animation: none; }
  .wa-float-pulse { animation: none; }
  .scroll-line { animation: none; }
  /* NOT disabling: hover effects, tilt, reveals, count-up */
}
