:root {
  --bg: #06060a;
  --bg-alt: #0b0b12;
  --surface: #0f0f18;
  --surface-2: #14141f;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);
  --text: #f4f4f7;
  --text-dim: #9d9da8;
  --text-faint: #6b6b76;
  --blue: #3b6bff;
  --blue-light: #6c93ff;
  --red: #ff3b52;
  --red-light: #ff6b7d;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --max: 1180px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}

p { color: var(--text-dim); margin: 0; }

a { color: inherit; text-decoration: none; }

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

.container {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Giant scroll-driven background heading ---------- */
.bg-heading {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 0;
  overflow: visible;
  text-align: left;
  padding-left: 6vw;
  pointer-events: none;
  user-select: none;
}
.servicios .bg-heading,
.prototipos .bg-heading {
  text-align: right;
  padding-left: 0;
  padding-right: 6vw;
}
.bg-heading span {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,.06);
  -webkit-text-stroke: 1.5px rgba(255,255,255,.38);
  white-space: nowrap;
  will-change: transform;
}
@media (max-width: 720px) {
  .bg-heading,
  .servicios .bg-heading,
  .prototipos .bg-heading {
    top: 8px;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  .bg-heading span { font-size: clamp(2.6rem, 13vw, 4.5rem); }
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(59,107,255,.55);
}
.btn-primary:hover {
  box-shadow: 0 12px 32px -6px rgba(59,107,255,.7);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,6,10,.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: 'Futura PT', 'Jost', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: #fff;
  margin-right: auto;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .25s;
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Backgrounds / blobs ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .55;
  animation: float 16s ease-in-out infinite;
}
.blob-blue {
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -180px; left: -120px;
}
.blob-red {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  bottom: -200px; right: -140px;
  animation-delay: -8s;
}
.blob-sm { width: 420px; height: 420px; opacity: .35; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,-30px) scale(1.08); }
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 40%, transparent 100%);
}
.hero-spiral3d {
  position: fixed;
  inset: 0;
  opacity: .8;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-spiral3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 700px) {
  .hero-spiral3d { opacity: .55; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 100px;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(59,107,255,.1);
  border: 1px solid rgba(59,107,255,.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  margin-bottom: 24px;
}
.text-gradient {
  background: linear-gradient(90deg, var(--blue-light), var(--red-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 20px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--blue-light);
  border-radius: 2px;
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Section shared ---------- */
section { position: relative; padding: 120px 0; scroll-margin-top: 84px; }
.hero { scroll-margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 18px; }
.section-lead { font-size: 1.05rem; color: var(--text-dim); }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.22);
  background: var(--surface-2);
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }
.icon-blue { background: rgba(59,107,255,.12); color: var(--blue-light); }
.icon-red { background: rgba(255,59,82,.12); color: var(--red-light); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: .95rem; }
.service-card-cta {
  background: linear-gradient(135deg, rgba(59,107,255,.16), rgba(255,59,82,.14));
  display: flex; flex-direction: column; justify-content: center;
  gap: 12px;
}
.service-card-cta h3 { font-size: 1.15rem; }
.service-card-cta p { font-size: .9rem; margin-bottom: 4px; }
.service-card-cta .btn { align-self: flex-start; }

/* ---------- Problema / diagnóstico ---------- */
.problema {
  background: rgba(11, 11, 18, .92);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-cta {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.problem-cta p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: .05em;
}
.step h3 { font-size: 1.1rem; margin: 14px 0 10px; }
.step p { font-size: .93rem; }

/* ---------- Prototipos ---------- */
.prototipos .container { max-width: 1640px; }
.gallery-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.proto-gallery {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 40px 6px 60px;
  margin: -40px -6px -42px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.proto-gallery::-webkit-scrollbar { display: none; }
.proto-gallery.is-interactive {
  overflow: hidden;
  cursor: grab;
  perspective: 2000px;
}
.gallery-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
}
.proto-gallery.is-interactive .gallery-track {
  transform-style: preserve-3d;
}
.proto-gallery.is-interactive .gallery-item {
  transform-origin: center center;
  will-change: transform, opacity;
}
.gallery-item {
  flex: 0 0 clamp(460px, 42vw, 640px);
  scroll-snap-align: center;
}
.gallery-item.gallery-item--video {
  flex: 0 0 clamp(680px, 82vw, 1280px);
}
.proto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.proto-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.proto-card-head::before {
  content: '';
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue-light), var(--red-light));
  flex-shrink: 0;
}
.proto-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.phone {
  background: #000;
  border: 9px solid #1b1b1e;
  border-radius: 52px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 0 0 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.phone-island {
  width: 84px; height: 22px;
  background: #000;
  border-radius: 14px;
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 4px;
  background: #1f2c34;
}
.phone-time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.phone-statusicons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wa-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  background: #1f2c34;
}
.wa-back {
  font-size: 26px;
  line-height: 1;
  color: #00a884;
  font-weight: 600;
  margin-right: -2px;
}
.phone-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.wa-contact { flex: 1; min-width: 0; }
.wa-contact strong { display: block; font-size: 14.5px; color: #fff; }
.wa-contact span { font-size: 11.5px; color: #8fa3ab; }
.wa-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.wa-chat {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.025) 0, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,.02) 0, transparent 40%),
    #0b141a;
}
.phone-chat {
  height: 630px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 10px 0;
}
.bubble {
  max-width: 78%;
  padding: 7px 9px 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #e9edef;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn .4s var(--ease) forwards;
  position: relative;
}
.bubble.in {
  align-self: flex-start;
  background: #202c33;
  border-bottom-left-radius: 2px;
}
.bubble.out {
  align-self: flex-end;
  background: #005c4b;
  border-bottom-right-radius: 2px;
}
.bubble-meta {
  display: block;
  text-align: right;
  font-size: 10px;
  color: rgba(233,237,239,.55);
  margin-top: 2px;
  white-space: nowrap;
}
.bubble-meta .ticks { color: #53bdeb; margin-left: 2px; }
@keyframes bubbleIn {
  to { opacity: 1; transform: translateY(0); }
}
.typing-dots {
  display: flex;
  gap: 4px;
  background: #202c33;
  padding: 10px 14px;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
}
.typing-dots.in { align-self: flex-start; }
.typing-dots.out {
  align-self: flex-end;
  background: #005c4b;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 2px;
}
.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(233,237,239,.55);
  animation: typingDot 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* WhatsApp AI table reply */
.bubble.table-bubble {
  padding: 8px 8px 7px;
  max-width: 86%;
}
.bubble.table-bubble .table-caption {
  font-size: 11.5px;
  color: rgba(233,237,239,.7);
  margin: 0 2px 6px;
}
.wa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  overflow: hidden;
  border-radius: 6px;
}
.wa-table th {
  background: rgba(255,255,255,.08);
  color: #8fe3cf;
  font-weight: 600;
  text-align: left;
  padding: 5px 7px;
  font-size: 10.5px;
  letter-spacing: .01em;
}
.wa-table td {
  padding: 5px 7px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #e9edef;
}
.wa-table tr:nth-child(even) td { background: rgba(255,255,255,.03); }

.browser {
  background: #000;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.browser-url {
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--text-faint);
  background: rgba(255,255,255,.04);
  padding: 4px 12px;
  border-radius: 6px;
}
.browser-video {
  display: block;
  width: 100%;
  aspect-ratio: 1914 / 932;
  object-fit: cover;
  background: #000;
}
.proto-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 28px;
}

/* ---------- Contacto ---------- */
.contacto-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contacto h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 18px; }
.contact-info {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info li {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: .95rem;
}
.contact-info strong { color: #fff; font-weight: 600; }
.contact-info span { color: var(--text-dim); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,107,255,.18);
}
.form-group textarea { resize: vertical; }
.form-status {
  font-size: 13.5px;
  text-align: center;
  min-height: 18px;
  color: var(--text-dim);
}
.form-status.success { color: #3ddc72; }
.form-status.error { color: var(--red-light); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.55);
  z-index: 90;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.whatsapp-fab.is-hidden {
  opacity: 0;
  transform: scale(.7) translateY(10px);
  pointer-events: none;
}
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(59,107,255,.45);
  animation: whatsappPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.whatsapp-fab svg { width: 28px; height: 28px; }
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 34px -8px rgba(0,0,0,.65);
}
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(59,107,255,.45); }
  70% { box-shadow: 0 0 0 16px rgba(255,59,82,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,82,0); }
}
@media (max-width: 720px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 25px; height: 25px; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-inner > div:first-child { max-width: 320px; }
.footer-inner p { font-size: .88rem; margin-top: 8px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: .9rem; color: var(--text-dim); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .82rem; color: var(--text-faint); width: 100%; text-align: center; margin-top: 24px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; z-index: 1; }
  .nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(6,6,10,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links { flex-direction: column; gap: 18px; }
  .nav.open .nav-links a { font-size: 16px; }
  .nav.open .nav-cta { justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  section { padding: 72px 0; }
  .hero { min-height: 100svh; padding-top: 110px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .proto-card, .contact-form { padding: 20px; }
  .proto-card-head { flex-wrap: wrap; gap: 8px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-inner > div:first-child { max-width: 100%; }

  .prototipos .container { padding: 0 20px; }
  .gallery-hint { margin-bottom: 14px; }
  .gallery-item { flex: 0 0 80vw; scroll-snap-align: start; }
  .gallery-item.gallery-item--video { flex: 0 0 84vw; scroll-snap-align: start; }
  .proto-gallery { scroll-padding-left: 14px; }
  .phone { max-width: 280px; }
  .phone-chat { height: 62vh; min-height: 380px; max-height: 560px; }
}

@media (max-width: 420px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .section-head h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .service-card { padding: 26px 22px; }
}
