:root {
  --bg: #14161b;
  --bg-alt: #1b1e25;
  --text: #f6f7f9;
  --text-soft: #c4cad4;
  --accent: #2e8bff;
  --accent-dark: #1a6fe0;
  --accent-2: #2fe3c2;
  --accent-3: #ff6fae;
  --border: #333945;
  --card-bg: #1f232b;
  --radius: 12px;
  --sombra: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: -4;
  background-image:
    linear-gradient(rgba(46, 139, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 139, 255, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: derivar 24s linear infinite;
  translate: 0 calc(var(--scroll, 0) * -120px);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(520px 520px at 15% 20%, rgba(46, 139, 255, 0.16), transparent 65%),
    radial-gradient(620px 620px at 85% 75%, rgba(47, 227, 194, 0.11), transparent 65%),
    radial-gradient(560px 560px at 60% 110%, rgba(255, 111, 174, 0.13), transparent 65%);
  translate: 0 calc(var(--scroll, 0) * 180px);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes derivar {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(46px, 46px, 0); }
}

@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(4%, -3%, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(-3%, 4%, 0) scale(1.04); opacity: 0.9; }
}

/* Red de puntos del fondo */
.fondo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Puntero propio */
.con-puntero, .con-puntero a, .con-puntero button { cursor: none; }
.con-puntero input, .con-puntero [type="search"] { cursor: text; }

.cursor-punto, .cursor-anillo {
  opacity: 0;
  transition: opacity 0.2s ease;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  border-radius: 50%;
  pointer-events: none;
}

.cursor-punto {
  width: 7px;
  height: 7px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.con-puntero.mouse-vivo .cursor-punto,
.con-puntero.mouse-vivo .cursor-anillo { opacity: 1; }

.cursor-anillo {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cursor-anillo.grande {
  width: 58px;
  height: 58px;
  border-color: var(--accent-3);
  background: rgba(255, 111, 174, 0.1);
}

/* Barra de lectura */
.progreso {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  pointer-events: none;
}

.progreso span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  box-shadow: 0 0 12px rgba(46, 139, 255, 0.8);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  position: relative;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  position: relative;
  padding-bottom: 14px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
}

.contact h2::after { left: 50%; transform: translateX(-50%); }

h3 { font-size: 1.12rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; color: var(--text-soft); }

/* Placa */
html, body { height: 100%; overflow: hidden; }

.cinta-sup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: rgba(20, 22, 27, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.marca-app {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.marca-app img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  
}

.marca-app em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chips button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chips button:hover { border-color: var(--accent); color: var(--text); }

.chips button.activo {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #0f1116;
}

.tablero {
  position: fixed;
  inset: 60px 0 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.tablero.agarrando { cursor: grabbing; }

.mundo {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}

/* Pistas de cobre */
.pistas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pista {
  fill: none;
  stroke: rgba(46, 139, 255, 0.28);
  stroke-width: 5;
  stroke-linejoin: round;
}

.pista-viva {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-dasharray: 26 220;
  filter: drop-shadow(0 0 6px var(--accent-2));
  animation: correr-pista 6s linear infinite;
}

@keyframes correr-pista {
  from { stroke-dashoffset: 246; }
  to { stroke-dashoffset: 0; }
}

.isla {
  fill: var(--bg);
  stroke: rgba(46, 139, 255, 0.5);
  stroke-width: 3;
}

/* Módulos soldados a la placa */
.modulo {
  position: absolute;
  background: linear-gradient(180deg, rgba(34, 39, 49, 0.97), rgba(26, 30, 38, 0.97));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Patitas del chip. */
.modulo::before,
.modulo::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  width: 6px;
  background: repeating-linear-gradient(180deg, var(--border) 0 8px, transparent 8px 20px);
}

.modulo::before { left: -6px; }
.modulo::after { right: -6px; }

.modulo.activo {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modulo-cab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.modulo-cab h2 {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.modulo-cab h2::after { display: none; }

.modulo-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: destello 2.6s ease-in-out infinite;
}

.modulo-ref {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.modulo-cuerpo { padding: 22px; }

/* Carrusel dentro de un módulo */
.carrusel {
  display: flex !important;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.carrusel::-webkit-scrollbar { display: none; }

.carrusel > * {
  flex: 0 0 calc(33.333% - 11px);
  max-width: none;
  scroll-snap-align: start;
}

.carrusel-mandos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.carrusel-mandos button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.carrusel-mandos button:hover:not(:disabled) { border-color: var(--accent-2); }
.carrusel-mandos button:disabled { opacity: 0.25; cursor: default; }

.modulo-cuerpo > h2 { display: none; }

/* Chip central */
.chip-central { text-align: center; }

.chip-central img {
  width: 190px;
  margin: 0 auto 10px;
  
  animation: flotar 6s ease-in-out infinite, latir 4s ease-in-out infinite;
}

.chip-central h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.chip-central .hero-actions { justify-content: center; margin-bottom: 0; }

/* Mandos */
.mandos {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 22, 27, 0.86);
  backdrop-filter: blur(8px);
}

.mandos button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.mandos button:hover { background: rgba(255, 255, 255, 0.08); color: var(--accent-2); }

/* Barra de recorrido */
.recorrido {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 22, 27, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--sombra);
}

.recorrido button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f1116;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.recorrido button:hover:not(:disabled) { transform: scale(1.08); }
.recorrido button:disabled { opacity: 0.3; cursor: default; }

.recorrido-datos {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  line-height: 1.25;
}

.recorrido-datos strong { font-size: 0.95rem; }
.recorrido-datos span { font-size: 0.75rem; color: var(--text-soft); }

.pista-uso {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 30;
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(20, 22, 27, 0.86);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  transition: opacity 0.5s ease;
}

.pista-uso.ida { opacity: 0; pointer-events: none; }

/* Portada, piezas heredadas */
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-logo {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Anillo de energía que gira detrás del logo. */
.hero-logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(230px, 62%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 55deg, transparent 130deg, var(--accent-2) 210deg, transparent 260deg, var(--accent-3) 310deg, transparent 350deg);
  filter: blur(30px);
  opacity: 0.45;
  z-index: 0;
  animation: girar 14s linear infinite;
}

/* Onda expansiva que sale del logo cada tanto. */
.hero-logo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(240px, 70%);
  aspect-ratio: 1;
  margin: calc(min(240px, 70%) / -2) 0 0 calc(min(240px, 70%) / -2);
  border: 1px solid var(--accent);
  border-radius: 50%;
  z-index: 0;
  animation: onda 4s ease-out infinite;
}

.hero-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  
  animation: flotar 6s ease-in-out infinite, latir 4s ease-in-out infinite;
}

@keyframes girar {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes onda {
  0% { transform: scale(0.75); opacity: 0.7; }
  70% { opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes latir {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(46, 139, 255, 0.35)); }
  50% { filter: drop-shadow(0 0 28px rgba(46, 139, 255, 0.75)); }
}

.hero-badge {
  display: inline-block;
  animation: destello 3.5s ease-in-out infinite;
  border: 1px solid var(--accent-3);
  color: var(--accent-3);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

@keyframes destello {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 111, 174, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(255, 111, 174, 0); }
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--text) 26%, var(--accent) 42%, var(--accent-2) 52%, var(--accent-3) 62%, var(--text) 78%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brillo 7s ease-in-out infinite;
}

@keyframes brillo {
  0%, 100% { background-position: 180% 0; }
  50% { background-position: -20% 0; }
}

.hero-sub {
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 0 28px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn:hover::after { left: 140%; }

.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--accent); }

.btn-big { font-size: 1.12rem; padding: 16px 34px; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Cinta de tecnologías */
.cinta {
  border-radius: var(--radius);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(31, 35, 43, 0.6);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  margin-top: 30px;
}

.cinta-pista {
  display: flex;
  width: max-content;
  animation: correr 38s linear infinite;
}

.cinta:hover .cinta-pista { animation-play-state: paused; }

.cinta-grupo { display: flex; }

.cinta-grupo span {
  padding: 0 26px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  white-space: nowrap;
}

@keyframes correr {
  to { transform: translateX(-50%); }
}

.section-lead {
  font-size: 1.05rem;
  max-width: 660px;
  margin-bottom: 28px;
}

.section-note {
  margin-top: 32px;
  font-size: 0.95rem;
  text-align: center;
}

/* Cards */
.grid-3, .projects { perspective: 1000px; }

.grid-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.modulo .card {
  flex: 1 1 220px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  flex: 1 1 300px;
  max-width: 340px;
  transition: transform 0.14s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px) rotateX(var(--girox, 0deg)) rotateY(var(--giroy, 0deg));
  border-color: var(--accent-3);
  box-shadow: var(--sombra);
}

.card:hover .icon-badge { background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); color: #0f1116; }

.card, .project { position: relative; overflow: hidden; transform-style: preserve-3d; }

.card::before, .project::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(260px 260px at var(--mx, 50%) var(--my, 50%), rgba(255, 111, 174, 0.14), transparent 70%);
  pointer-events: none;
}

.card:hover::before, .project:hover::before { opacity: 1; }

.icon-badge { transition: background 0.25s ease, color 0.25s ease; }

.card p { margin-bottom: 0; }

.card ul, .project ul { padding-left: 18px; margin: 0 0 12px; color: var(--text-soft); font-size: 0.95rem; }
.card li, .project li { margin-bottom: 6px; }
.card ul { margin-bottom: 0; }

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 111, 174, 0.16);
  color: var(--accent-3);
  margin-bottom: 14px;
}

.icon-badge svg { width: 22px; height: 22px; }

/* Buscador */
.buscador {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 0 auto 14px;
}

.buscador svg {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--text-soft);
  pointer-events: none;
}

.buscador input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.buscador input::placeholder { color: var(--text-soft); }

.buscador input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(46, 139, 255, 0.18);
}

.buscador:focus-within svg { color: var(--accent); }

.sin-resultados {
  margin: 0 0 18px;
  font-size: 0.95rem;
  text-align: center;
}

.sin-resultados a { color: var(--accent-3); font-weight: 700; }

/* Proyectos */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.project {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.14s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project:hover {
  transform: translateY(-6px) rotateX(var(--girox, 0deg)) rotateY(var(--giroy, 0deg));
  border-color: var(--accent-2);
  box-shadow: var(--sombra);
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.project p { margin-bottom: 10px; font-size: 0.95rem; }

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack span {
  transition: border-color 0.2s ease, color 0.2s ease;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Botón de ampliar dentro de una tarjeta */
.ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

.ver-mas span { transition: transform 0.25s ease; }

.ver-mas:hover {
  background: var(--accent);
  color: #fff;
}

.ver-mas:hover span { transform: translateX(4px); }

/* Logos de clientes */
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 16px;
}

.client-logo img {
  max-height: 100%;
  width: auto;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.project:hover .client-logo img { filter: none; }

.client-logo-text {
  color: #14161b;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* Contadores */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.counter {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.counter:hover { border-color: var(--accent-2); transform: translateY(-4px); }

.counter strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.counter span { font-size: 0.9rem; color: var(--text-soft); }

.project:hover .stack span { border-color: var(--accent-2); color: var(--text); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  color: #0f1116;
  font-weight: 800;
  margin-bottom: 14px;
}

.step p { margin-bottom: 0; }

.step:hover .step-n {
  transform: scale(1.15);
  box-shadow: 0 0 18px rgba(46, 139, 255, 0.6);
}

.step-n { transition: transform 0.25s ease, box-shadow 0.25s ease; }

/* Sobre nosotros */
.about-text { max-width: 720px; margin: 0 auto; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.about-tags span {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Contacto */
.contact { text-align: center; }
.contact h2 { display: inline-block; }

.contact .section-lead { margin-left: auto; margin-right: auto; }

.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebd5a; }

.contact-note { margin-top: 18px; font-size: 0.9rem; }

@media (max-width: 900px) {
  html, body { height: auto; overflow: visible; }

  /* En celular la placa se despliega como una lista y los chips pasan a una fila propia. */
  .cinta-sup {
    position: sticky;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 12px;
  }

  .marca-app { flex: 1; }

  .chips {
    order: 3;
    flex: 0 0 100%;
    padding-bottom: 2px;
  }

  .chips button { padding: 7px 12px; font-size: 0.85rem; }
  .tablero { position: static; overflow: visible; cursor: auto; }
  .mundo {
    position: static;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .modulo {
    position: static !important;
    width: auto !important;
    scroll-margin-top: 116px;
  }
  .modulo::before, .modulo::after { display: none; }
  .carrusel > * { flex: 0 0 86%; }
  .pistas, .mandos, .pista-uso, .recorrido { display: none; }
  .about-text { text-align: center; }
  .about-tags { justify-content: center; }
}
