:root {
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --void: #03060a;
  --deep: #071018;
  --cyan: #11ffff;
  --ice: #9af7ff;
  --teal: #0a5a66;
  --mist: rgba(17, 255, 255, 0.14);
  --stroke-color: #11ffff;
  --glow-primary: #11ffff;
  --glow-secondary: #0088aa;
  --glow-hot: #9af7ff;
  --surface: rgba(7, 16, 24, 0.78);
  --surface-border: rgba(17, 255, 255, 0.2);
  --surface-highlight: rgba(17, 255, 255, 0.08);
  --text: #9af7ff;
  --text-muted: rgba(154, 247, 255, 0.42);
  --text-dim: rgba(154, 247, 255, 0.2);
  --error: #ef4444;
  --success: #22c55e;
  --font-display: 'Oxanium', sans-serif;
  --font-body: 'Figtree', sans-serif;
  --font-mono: 'Oxanium', sans-serif;
  --ticker-h: 52px;
  --nav-h: 64px;
  --draw-speed: 3.2s;
  --loop-pause: 1800;
  --float-speed: 28s;
  --glow-speed: 3.6s;
  --glow-intensity: 1;
  --max-width: 1200px;
  --focus-color: #11ffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--void);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, rgba(17, 255, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at center, var(--deep) 0%, var(--void) 72%);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-m);
  padding: var(--space-s) var(--space-m);
  background: var(--glow-primary);
  color: var(--void);
  font-size: 12px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-s);
}

:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

#bg-canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: url("patron-panot.svg");
  background-size: 112px 110.8px;
  background-repeat: repeat;
}

.ambient-glow {
  position: fixed;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--glow-primary) 0%, var(--glow-secondary) 35%, transparent 68%);
  filter: blur(110px);
  opacity: 0.1;
  pointer-events: none;
  z-index: 2;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  animation: ambientPulse var(--glow-speed) ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  0% { opacity: 0.07; transform: translate(-50%, -50%) scale(0.94); }
  50% { opacity: 0.14; transform: translate(-50%, -50%) scale(1.06); }
  100% { opacity: 0.09; transform: translate(-50%, -50%) scale(0.97); }
}

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

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.45) 2px,
    rgba(0, 0, 0, 0.45) 3px
  );
}

/* TICKER */
.ticker-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  z-index: 28;
  overflow: hidden;
  padding: 14px 0;
  background: rgba(3, 6, 10, 0.72);
  border-bottom: 1px solid rgba(17, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ticker-track {
  display: flex;
  align-items: center;
  animation: tickScroll 25s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: rgba(154, 247, 255, 0.55);
  white-space: nowrap;
  padding: 0 28px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ticker-sep {
  color: rgba(17, 255, 255, 0.3);
}

@keyframes tickScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* NAV */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  background: rgba(3, 6, 10, 0.85);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom-color: var(--surface-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.nav-logo span {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 6px var(--glow-primary));
}

.nav-logo span img {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  list-style: none;
}

.nav-links a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: var(--space-xs) 0;
}

.nav-links a:hover {
  color: var(--glow-hot);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: var(--space-xs);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-h) + var(--ticker-h) + var(--space-xl)) var(--space-l) var(--space-3xl);
}

.stage {
  position: relative;
  z-index: 10;
  width: min(92vw, 1280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.svg-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float var(--float-speed) ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.text-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.text-path {
  fill: none;
  stroke: var(--stroke-color);
  opacity: 0;
}

.text-path.glow-on {
  filter: url(#cyan-glow);
  animation: glowPulse var(--glow-speed) ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    filter: url(#cyan-glow)
            drop-shadow(0 0 8px rgba(17, 255, 255, calc(0.35 * var(--glow-intensity))))
            drop-shadow(0 0 28px rgba(17, 255, 255, calc(0.2 * var(--glow-intensity))))
            drop-shadow(0 0 55px rgba(0, 136, 170, calc(0.12 * var(--glow-intensity))));
    stroke: var(--stroke-color);
  }
  50% {
    filter: url(#cyan-glow)
            drop-shadow(0 0 16px rgba(154, 247, 255, calc(0.55 * var(--glow-intensity))))
            drop-shadow(0 0 42px rgba(17, 255, 255, calc(0.35 * var(--glow-intensity))))
            drop-shadow(0 0 70px rgba(0, 180, 200, calc(0.18 * var(--glow-intensity))));
    stroke: #9af7ff;
  }
  100% {
    filter: url(#cyan-glow)
            drop-shadow(0 0 10px rgba(17, 255, 255, calc(0.4 * var(--glow-intensity))))
            drop-shadow(0 0 32px rgba(17, 255, 255, calc(0.25 * var(--glow-intensity))))
            drop-shadow(0 0 58px rgba(0, 136, 170, calc(0.14 * var(--glow-intensity))));
    stroke: var(--stroke-color);
  }
}

.svg-container:hover .text-path.glow-on {
  --glow-intensity: 1.45;
}

.svg-container:hover {
  animation-play-state: paused;
}

.spark-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  box-shadow:
    0 0 4px #fff,
    0 0 10px #11ffff,
    0 0 18px #00c8e0;
  animation: sparkBurst var(--spark-duration, 0.5s) ease-out forwards;
}

.spark::before,
.spark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ray-len, 8px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #7ef9ff, #fff, #7ef9ff, transparent);
  transform-origin: center;
}

.spark::before {
  transform: translate(-50%, -50%) rotate(var(--ray-angle, 0deg));
}

.spark::after {
  transform: translate(-50%, -50%) rotate(calc(var(--ray-angle, 0deg) + 90deg));
}

@keyframes sparkBurst {
  0% { opacity: 1; transform: scale(1.4); }
  30% { opacity: 1; transform: scale(1) translate(var(--tx, 0), var(--ty, 0)); }
  100% { opacity: 0; transform: scale(0) translate(calc(var(--tx, 0) * 2), calc(var(--ty, 0) * 2)); }
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(154, 247, 255, 0.55);
}

.glass-panel {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 16, 24, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  z-index: 20;
  animation: fadeUp 1s ease-out 3.8s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.glass-panel span {
  font-family: var(--font-display);
  color: rgba(154, 247, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toggle-btn {
  font-family: var(--font-display);
  background: rgba(17, 255, 255, 0.06);
  border: 1px solid rgba(17, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(154, 247, 255, 0.75);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.toggle-btn:hover {
  background: rgba(17, 255, 255, 0.12);
  border-color: rgba(17, 255, 255, 0.4);
  color: #fff;
}

.toggle-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.toggle-btn.active {
  background: rgba(17, 255, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* SECTIONS */
section {
  position: relative;
  z-index: 10;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--glow-hot);
  margin-bottom: var(--space-s);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.section-header p {
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--text-muted);
  max-width: 520px;
  margin: var(--space-s) auto 0;
}

/* SERVICES */
.services {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--surface-border);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xs);
}

.service-card {
  position: relative;
  padding: var(--space-xl) var(--space-l);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 200px;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(17, 255, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--glow-primary);
  background: rgba(7, 16, 24, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(17, 255, 255, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 32px;
  line-height: 1;
  position: relative;
  z-index: 1;
  display: block;
  width: 40px;
  height: 40px;
}

.service-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* VÍDEO TARJETAS DE SERVICIO */
.service-video-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  z-index: 1;
}

.service-video {
  display: block;
  width: 100%;
  aspect-ratio: 560 / 752;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* Vídeo vertical CPM (acometidas y comunidades): proporción propia sin recorte */
.service-video-wrap--cpm .service-video {
  aspect-ratio: 464 / 688;
}

.service-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.service-video-play:hover,
.service-video-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.service-video-play-tri {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 18px solid rgba(255, 255, 255, 0.95);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.service-video-wrap.playing .service-video-play {
  display: none;
}

@media (max-width: 640px) {
  .service-video-wrap {
    max-width: 160px;
  }
  .service-video-play {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }
  .service-video-play-tri {
    margin-left: 4px;
    border-left-width: 14px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  max-width: 220px;
}

/* ABOUT */
.about {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--surface-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-m);
}

.about-content p {
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--text-muted);
  line-height: 1.7;
}

.about-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-xs);
}

.metric-card {
  text-align: center;
  padding: var(--space-xl) var(--space-m);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.metric-card:hover {
  border-color: var(--glow-primary);
  transform: translateY(-2px);
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--glow-hot);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.metric-card h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-card p {
  font-size: 10px;
  color: var(--text-muted);
}

/* PROJECTS */
.projects {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--surface-border);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--glow-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(17, 255, 255, 0.12);
}

.project-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 255, 255, 0.08), rgba(0, 136, 170, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 32px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-body {
  padding: var(--space-l);
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.project-body p {
  font-size: 11px;
  color: var(--text-muted);
}

/* TESTIMONIALS */
.testimonials {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--surface-border);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}

.testimonial-card {
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--glow-primary);
}

.quote {
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-l);
  font-style: italic;
}

.author {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glow-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--void);
  font-weight: 600;
}

.author-info strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: block;
}

.author-info span {
  font-size: 10px;
  color: var(--text-muted);
}

/* BLOG */
.blog {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--surface-border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--glow-primary);
  transform: translateY(-2px);
}

.blog-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(17, 255, 255, 0.08), rgba(0, 136, 170, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 24px;
}

.blog-body {
  padding: var(--space-l);
}

.blog-cat {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glow-hot);
  margin-bottom: var(--space-s);
}

.blog-body h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.blog-body p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FOOTER */
.site-footer {
  padding: var(--space-3xl) 0 0;
  border-top: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(17, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.footer-cta {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--space-m);
}

.footer-cta p {
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--text-muted);
  margin-bottom: var(--space-l);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: 440px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: var(--space-xs);
}

.form-group input {
  flex: 1;
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.form-group input:focus {
  border-color: var(--glow-primary);
  box-shadow: 0 0 0 3px rgba(17, 255, 255, 0.15);
}

.form-group input:user-valid {
  border-color: var(--success);
}

.form-group input:user-invalid {
  border-color: var(--error);
}

.form-group button {
  padding: var(--space-m) var(--space-l);
  background: var(--glow-primary);
  border: none;
  border-radius: 2px;
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
}

.form-group button:hover {
  background: var(--glow-hot);
  box-shadow: 0 0 32px rgba(154, 247, 255, 0.3);
}

.form-group button:active {
  transform: scale(0.96);
}

.form-group button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--void);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.form-group button.loading .spinner {
  display: inline-block;
}

.form-group button.loading .btn-text {
  display: none;
}

.form-error {
  display: none;
  font-size: 11px;
  color: var(--error);
  text-align: left;
  padding: var(--space-xs) var(--space-s);
}

.form-error.visible {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.footer-bottom {
  margin-top: var(--space-3xl);
  padding: var(--space-l) 0;
  border-top: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-m);
  font-size: 10px;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: var(--space-l);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--glow-hot);
}

/* SOCIAL PANEL (footer) */
.social-panel {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(17, 255, 255, 0.4);
  border-radius: 4px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.361);
  opacity: 0;
  animation: socialFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 4.3s forwards;
}

@keyframes socialFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* WHATSAPP FLOAT (bottom-left) */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(37, 211, 102, 0.08);
  border-radius: 50%;
  box-shadow: none;
  animation: whatsappFloatIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 4.3s forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  background: #25d366;
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 64px;
  height: 64px;
  display: block;
}

@keyframes whatsappFloatIn {
  from { transform: translateY(16px) scale(0.8); }
  to { transform: translateY(0) scale(1); }
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  border-radius: 2px;
}

.social-panel .social-link {
  color: rgba(154, 247, 255, 0.718);
}

.social-link:hover {
  color: var(--glow-hot);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.social-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fill-current { fill: currentColor; }
.stroke-transparent { stroke: transparent; }

/* STAGGER / FADE */
.stagger-card {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 0 var(--space-m);
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: rgba(3, 6, 10, 0.95);
    padding: var(--space-m);
    gap: var(--space-m);
    border-bottom: 1px solid var(--surface-border);
  }
  .nav-toggle {
    display: block;
  }

  .ticker-bar {
    padding: 10px 0;
  }
  .ticker-item {
    font-size: 10px;
    padding: 0 18px;
  }

  .hero {
    padding: calc(var(--nav-h) + var(--ticker-h) + var(--space-m)) var(--space-m) var(--space-2xl);
    min-height: 90vh;
  }
  .glass-panel {
    bottom: 80px;
    padding: 10px 16px;
    gap: 10px;
  }
  .glass-panel span {
    font-size: 10px;
  }
  .toggle-btn {
    font-size: 10px;
    padding: 5px 10px;
  }
  .ambient-glow {
    width: 85vmax;
    height: 85vmax;
  }

  .section-inner {
    padding: 0 var(--space-m);
  }
  section {
    padding: var(--space-2xl) 0;
  }

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

  .about-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .about-content {
    padding: var(--space-l);
  }

  .footer-cta {
    padding: 0 var(--space-m);
  }
  .form-group {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .svg-container,
  .ambient-glow,
  .ticker-track,
  .text-path.glow-on {
    animation: none !important;
  }
  .glass-panel {
    opacity: 1;
    animation: none;
  }
  .stagger-card,
  .testimonial-card,
  .fade-section {
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
