/* Inter alojada en el propio servidor: ninguna petición a Google al cargar la página (SIL Open Font License) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================
   Metaweb Online — estilos
   Inspiración: minimalismo tipo Apple. Sin dependencias.
   ========================================================== */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --blue: #e10600;
  --brand: #ff1616;
  --brand-2: #cc3333;
  --blue-hover: #c40500;
  --link: #d10000;
  --dark: #000;
  --dark-2: #161617;
  --dark-ink: #f5f5f7;
  --grad: linear-gradient(90deg, #ff1616 0%, #ff3b30 45%, #c8102e 100%);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.28, .11, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
section[id] { scroll-margin-top: 48px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--ink-3); }
.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.lead {
  font-size: clamp(19px, 2vw, 21px);
  line-height: 1.38;
  color: var(--ink-2);
  max-width: 640px;
  margin: 20px auto 0;
  font-weight: 400;
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  padding: 11px 22px;
  transition: background .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { transform: scale(.97); }
.btn-sm { font-size: 15px; padding: 8px 18px; }
.btn-lg { font-size: 19px; padding: 14px 30px; }

.link-arrow {
  color: var(--link);
  font-size: 17px;
  white-space: nowrap;
}
.link-arrow::after {
  content: "›";
  display: inline-block;
  margin-left: 4px;
  font-size: 1.15em;
  line-height: 1;
  transition: transform .25s var(--ease);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-light { color: #ff6b6b; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 48px;
  background: rgba(251, 251, 253, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.brand-mark { width: auto; height: 26px; }
.brand-word { width: auto; height: 15px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink);
  opacity: .8;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links .nav-cta {
  opacity: 1;
  background: var(--ink);
  color: #fff;
  padding: 5px 13px;
  border-radius: 980px;
  font-weight: 500;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav.open .nav-toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 140px 22px 0;
  overflow: hidden;
}
.hero-glow, .cta-glow {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 22, 22, .13), transparent 70%) 20% 30% / 60% 70% no-repeat,
    radial-gradient(closest-side, rgba(204, 51, 51, .10), transparent 70%) 75% 25% / 55% 70% no-repeat,
    radial-gradient(closest-side, rgba(255, 120, 80, .08), transparent 70%) 55% 75% / 50% 60% no-repeat;
  filter: blur(20px);
  pointer-events: none;
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float {
  to { transform: translateX(-50%) translateY(30px) scale(1.06); }
}
.hero > *:not(.hero-glow) { position: relative; }
.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero-sub {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 680px;
  margin: 22px auto 0;
}
.hero-ctas {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* Portátil del hero */
.hero-device {
  width: min(880px, 100%);
  margin: 72px auto 0;
}
.device-screen {
  aspect-ratio: 16 / 10;
  border-radius: 18px 18px 0 0;
  border: 10px solid #1d1d1f;
  border-bottom-width: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 16% 1fr;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .35);
}
.device-base {
  height: 16px;
  margin: 0 -6%;
  background: linear-gradient(#d9d9de, #b8b8bf);
  border-radius: 0 0 14px 14px;
  position: relative;
}
.device-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 6px;
  transform: translateX(-50%);
  background: #a9a9b0;
  border-radius: 0 0 8px 8px;
}
.ds-side {
  background: var(--bg-alt);
  padding: 8% 12%;
  display: flex;
  flex-direction: column;
  gap: 9%;
}
.ds-side i { height: 6%; border-radius: 4px; background: #e3e3e8; }
.ds-side .ds-logo { height: 9%; width: 45%; background: var(--grad); border-radius: 6px; }
.ds-main { padding: 4% 5%; display: flex; flex-direction: column; gap: 6%; }
.ds-head { display: flex; justify-content: space-between; align-items: center; }
.ds-head b { width: 30%; height: 14px; border-radius: 5px; background: #1d1d1f; }
.ds-head span { width: 12%; height: 14px; border-radius: 99px; background: var(--blue); }
.ds-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.ds-card {
  border-radius: 12px;
  padding: 10% 10%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  aspect-ratio: 1.6;
  justify-content: flex-end;
}
.ds-card em { width: 40%; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .6); }
.ds-card strong { width: 65%; height: 14px; border-radius: 5px; background: #fff; }
.ds-card.c1 { background: linear-gradient(135deg, #ff1616, #ff6b5b); }
.ds-card.c2 { background: linear-gradient(135deg, #1d1d1f, #48484a); }
.ds-card.c3 { background: linear-gradient(135deg, #cc3333, #e57373); }
.ds-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3%;
  padding: 3% 3% 0;
  border-radius: 12px;
  background: var(--bg-alt);
}
.ds-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(#ff1616, #ff8a80);
  transform-origin: bottom;
  transform: scaleY(.1);
  transition: transform 1.2s var(--ease), height 1.6s var(--ease);
}
.ds-chart i:nth-child(even) { background: linear-gradient(#1d1d1f, #636366); }
.hero-device.in .ds-chart i { transform: scaleY(1); }
.hero-device.in .ds-chart i:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms + 300ms); }

/* ---------- Manifiesto ---------- */
.statement { height: 220vh; position: relative; }
.statement-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}
.statement-text {
  max-width: 900px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.statement-text .w { opacity: .15; transition: opacity .25s linear; }
.statement-text .w.on { opacity: 1; }

/* ---------- Secciones ---------- */
.section { padding: 120px 22px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .eyebrow, .section-dark .muted { color: #86868b; }
.section-head { text-align: center; max-width: 900px; margin: 0 auto 64px; }
.section-head h2 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
}

/* ---------- Tiles de servicios ---------- */
.tiles {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.tile {
  position: relative;
  border-radius: var(--radius-xl);
  min-height: 600px;
  padding: 56px 40px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tile-wide {
  grid-column: 1 / -1;
  min-height: 640px;
}
.tile-dark { background: var(--dark); color: var(--dark-ink); }
.tile-light { background: #fff; }
.tile-soft { background: linear-gradient(180deg, #f5f5f7, #ececf3); }
.tile h3 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.tile-tag {
  font-size: clamp(19px, 2.2vw, 24px);
  margin-top: 8px;
  color: inherit;
  opacity: .85;
}
.tile-text {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--ink-3);
  font-size: 17px;
}
.tile-copy .link-arrow, .tile-links { display: inline-block; margin-top: 18px; }
.tile-visual {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 40px;
}

/* Navegador */
.mock-browser {
  width: min(640px, 100%);
  aspect-ratio: 16 / 9.5;
  background: #1c1c1e;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow: 0 -10px 60px rgba(255, 22, 22, .18);
  border: 1px solid #2c2c2e;
  border-bottom: 0;
}
.mb-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #2c2c2e;
}
.mb-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mb-bar i:nth-child(2) { background: #febc2e; }
.mb-bar i:nth-child(3) { background: #28c840; }
.mb-bar span { flex: 0 1 44%; height: 18px; margin: 0 auto; border-radius: 6px; background: #3a3a3c; }
.mb-hero {
  height: 150px;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(255, 22, 22, .95), rgba(204, 51, 51, .9) 55%, rgba(70, 8, 8, .95));
  background-size: 200% 200%;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 100%; } }

/* Teléfono */
.mock-phone {
  width: 230px;
  height: 400px;
  border: 10px solid #1d1d1f;
  border-bottom: 0;
  border-radius: 44px 44px 0 0;
  background: linear-gradient(160deg, #fff1f0, #f5f5f7);
  position: relative;
  padding: 50px 20px 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .25);
}
.mp-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 80px;
  height: 22px;
  transform: translateX(-50%);
  background: #1d1d1f;
  border-radius: 20px;
}
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mp-grid i {
  aspect-ratio: 1;
  border-radius: 12px;
  background: #ff1616;
}
.mp-grid i:nth-child(4n+2) { background: #1d1d1f; }
.mp-grid i:nth-child(4n+3) { background: #cc3333; }
.mp-grid i:nth-child(4n+4) { background: #8e8e93; }
.mp-dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 64px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Código */
.mock-code {
  width: min(420px, 100%);
  margin-bottom: 56px;
  padding: 26px 28px;
  border-radius: 16px;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  text-align: left;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.9;
  color: #e5e5ea;
  position: relative;
}
.mock-code b { color: #ff6b6b; font-weight: 500; }
.mock-code em { color: #ffd479; font-style: normal; }
.mock-code .in1 { padding-left: 2ch; }
.mc-cursor {
  position: absolute;
  right: 28px;
  bottom: 30px;
  width: 9px;
  height: 18px;
  background: #ff1616;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Chat */
.mock-chat {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 56px;
  text-align: left;
}
.bubble {
  max-width: 78%;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.35;
}
.bubble.in { background: #e5e5ea; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.out { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }

/* Dashboard */
.mock-dash {
  width: min(400px, 100%);
  margin-bottom: 0;
  padding: 24px;
  border-radius: 20px 20px 0 0;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.md-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.md-kpis > div { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); text-align: left; }
.md-kpis span { display: block; font-size: 12px; color: var(--ink-3); }
.md-kpis strong { display: block; font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.md-bars { height: 180px; display: flex; align-items: flex-end; gap: 10px; }
.md-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#ff1616, #ff8a80);
  transform-origin: bottom;
  transform: scaleY(.1);
  transition: transform 1s var(--ease), height 1.6s var(--ease);
}
.reveal.in .md-bars i { transform: scaleY(1); }

/* ---------- Tecnologías (marquee) ---------- */
.tech { overflow: hidden; }
.marquee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; animation-duration: 46s; }
.marquee-track span {
  padding: 16px 28px;
  border-radius: 980px;
  background: #fff;
  border: 1px solid #e8e8ed;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.cards {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
a.card:hover { transform: scale(1.02); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .18); }
.card h3 { font-size: 24px; letter-spacing: -0.025em; font-weight: 700; line-height: 1.15; }
.card p { color: var(--ink-2); flex: 1; }
.card .link-arrow { margin-top: 6px; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 8px;
}
.card-icon svg { width: 26px; height: 26px; }
.ci-a { background: linear-gradient(135deg, #ff1616, #ff6b5b); }
.ci-b { background: linear-gradient(135deg, #1d1d1f, #48484a); }
.ci-c { background: linear-gradient(135deg, #cc3333, #e57373); }
.ci-d { background: linear-gradient(135deg, #3a3a3c, #8e8e93); }
.ci-e { background: linear-gradient(135deg, #ff3b30, #ff9f0a); }
.ci-next { background: #1d1d1f; }
.card-next { background: transparent; border: 1.5px dashed var(--line); }

/* ---------- Features ---------- */
.features {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.feature-num {
  display: inline-block;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.feature h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { color: var(--ink-2); }

/* ---------- Pasos ---------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: s;
}
.step {
  counter-increment: s;
  padding: 30px 26px 34px;
  border-radius: var(--radius-lg);
  background: var(--dark-2);
}
.step::before {
  content: "0" counter(s);
  display: block;
  font-size: 14px;
  color: #86868b;
  margin-bottom: 40px;
  font-variant-numeric: tabular-nums;
}
.step span { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
.step p { color: #a1a1a6; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  padding: 160px 22px;
  overflow: hidden;
}
.cta-glow { top: 50%; transform: translate(-50%, -50%); animation: none; }
.cta > *:not(.cta-glow) { position: relative; }
.cta h2 {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px 22px 22px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 28px; }
.footer h4 { color: var(--ink); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.footer-cols a { display: block; color: var(--ink-2); margin-bottom: 8px; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.footer-ver { text-align: right; color: var(--ink-3); }

/* ---------- Animación de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 834px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 34px 28px;
    background: rgba(251, 251, 253, .97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { font-size: 24px; font-weight: 600; padding: 8px 0; opacity: 1; }
  .nav-links .nav-cta { background: none; color: var(--blue); padding: 8px 0; }

  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 540px; padding: 46px 22px 0; }
  .cards { grid-template-columns: 1fr; max-width: 520px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding-top: 110px; }
  .hero-device { margin-top: 52px; }
  .device-screen { border-width: 6px; border-bottom-width: 9px; border-radius: 12px 12px 0 0; }
  .section { padding: 88px 16px; }
  .features, .steps { grid-template-columns: 1fr; gap: 28px; }
  .step::before { margin-bottom: 20px; }
  .mock-phone { width: 200px; height: 340px; }
  .dz-panel { display: none; }
  .mock-code { font-size: 12px; }
  .mc-body { padding: 16px 16px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-ver { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ds-chart i, .md-bars i { transform: none; }
}

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 120px 22px 100px; }
.legal a { text-decoration: underline; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.04em; line-height: 1.07; margin-bottom: 10px; }
.legal .updated { color: var(--ink-3); margin-bottom: 44px; }
.legal h2 { font-size: 24px; letter-spacing: -0.025em; margin: 40px 0 12px; }
.legal p, .legal li { color: #333336; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal .promise { background: var(--bg-alt); border-left: 3px solid var(--blue); border-radius: 12px; padding: 16px 18px; margin: 8px 0 24px; color: var(--ink); }
.legal mark { background: #fff4c2; padding: 0 4px; border-radius: 4px; }

/* ---------- Marca ---------- */
.brand { gap: 10px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.footer-brand img:first-child { height: 34px; width: auto; }
.footer-brand img:last-child { height: 34px; width: auto; }

/* Globo (como el del logo) */
.hero > .hero-globe {
  position: absolute;
  left: 50%;
  top: 40px;
  width: min(700px, 130vw);
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
  opacity: .45;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 80%);
  mask-image: linear-gradient(#000 35%, transparent 85%);
}
.hero-globe * { fill: none; stroke: var(--brand-2); stroke-width: .45; vector-effect: non-scaling-stroke; }
.hero-globe .rim { stroke: var(--brand); stroke-width: 1; }

/* Maqueta de diseño gráfico */
.mock-design {
  width: min(560px, 100%);
  border-radius: 16px 16px 0 0;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-bottom: 0;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .22);
  overflow: hidden;
}
.dz-toolbar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f5f5f7; border-bottom: 1px solid #e5e5ea; }
.dz-toolbar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dz-toolbar i:nth-child(2) { background: #febc2e; }
.dz-toolbar i:nth-child(3) { background: #28c840; }
.dz-toolbar span { width: 34%; height: 14px; margin-left: auto; border-radius: 6px; background: #e5e5ea; }
.dz-canvas { display: grid; grid-template-columns: 1fr 130px; min-height: 300px; }
.dz-artboard {
  display: grid;
  place-items: center;
  background-color: #fafafa;
  background-image: radial-gradient(#d2d2d7 1px, transparent 1px);
  background-size: 16px 16px;
}
.dz-select { position: relative; padding: 18px 22px; outline: 1.5px solid var(--brand); }
.dz-select .h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--brand); }
.dz-select .tl { left: -5px; top: -5px; }
.dz-select .tr { right: -5px; top: -5px; }
.dz-select .bl { left: -5px; bottom: -5px; }
.dz-select .br { right: -5px; bottom: -5px; }
.dz-panel { border-left: 1px solid #e5e5ea; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.dz-aa { font-size: 36px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.dz-swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dz-swatches i { aspect-ratio: 1; border-radius: 10px; background: var(--c); }
.dz-line { height: 8px; border-radius: 4px; background: #e5e5ea; }
.dz-line.short { width: 60%; }

/* ---------- Titulares accesibles en tiles ---------- */
.tile h3 a, .card h3 a { color: inherit; }
.tile h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
h1.eyebrow { font-size: 17px; line-height: 1.3; }
p.hero-title { margin: 0; }

/* ---------- Páginas de servicio ---------- */
.page-hero {
  position: relative;
  text-align: center;
  padding: 130px 22px 90px;
  overflow: hidden;
}
.page-hero > *:not(.hero-glow) { position: relative; }
.page-hero-tight { padding-bottom: 40px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { text-decoration: underline; }
.page-h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 980px;
  margin: 0 auto;
}
.page-tagline {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-top: 10px;
}
.thanks .page-h1 .grad { display: block; }
.section-intro { padding-top: 40px; }
.prose { max-width: 760px; margin: 0 auto; font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink-2); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }

.checklist {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px 28px;
}
.checklist li {
  position: relative;
  padding: 18px 20px 18px 54px;
  border-radius: 16px;
  background: #fff;
  font-weight: 500;
}
.section:not(.section-alt) .checklist li { background: var(--bg-alt); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.chips { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 10px 20px; border-radius: 980px; background: var(--bg-alt); font-weight: 600; font-size: 17px; }
.section-alt .chips li { background: #fff; }
.chips-links li { padding: 0; }
.chips-links a { display: block; padding: 10px 20px; color: var(--ink); border-radius: 980px; transition: background .2s, color .2s; }
.chips-links a:hover { background: var(--ink); color: #fff; }

.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink-2);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 24px; color: var(--ink-2); max-width: 720px; }
.faq-item a { text-decoration: underline; }

/* ---------- Contacto ---------- */
.section-form { padding-top: 30px; }
.contact-wrap { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.contact-form { background: #fff; border-radius: var(--radius-xl); padding: 40px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(225, 6, 0, .12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--blue); width: 18px; height: 18px; }
.check a { text-decoration: underline; }
.contact-form .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fff0f0; color: #a30000; border-radius: 12px; padding: 12px 16px; font-weight: 500; }
.contact-side { padding: 20px 4px; }
.contact-side h2 { font-size: 32px; letter-spacing: -0.03em; margin-bottom: 10px; }
.contact-side h3 { font-size: 19px; margin: 30px 0 10px; }
.contact-side p, .contact-side li { color: var(--ink-2); }
.contact-side ol { padding-left: 20px; margin: 0; display: grid; gap: 6px; }

/* ---------- Aviso y panel de cookies ---------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  width: min(760px, calc(100% - 32px));
  transform: translate(-50%, 24px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 22px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .35);
  padding: 20px 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.consent.in { transform: translate(-50%, 0); opacity: 1; }
.consent-text { flex: 1; }
.consent-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.consent-title svg, .cp-icon svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.consent a { text-decoration: underline; color: var(--ink); }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent .btn, .consent-panel .btn { font-size: 14px; padding: 9px 18px; border: 0; cursor: pointer; font-family: inherit; }

.consent-panel { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.cp-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.cp-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45);
  padding: 34px 32px 26px;
  transform: translateY(18px) scale(.97);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.consent-panel.in .cp-backdrop { opacity: 1; }
.consent-panel.in .cp-card { transform: none; opacity: 1; }
.consent-lock, .consent-lock body { overflow: hidden; }
.cp-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.cp-x:hover { background: #e8e8ed; color: var(--ink); }
.cp-icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(225, 6, 0, .08); display: grid; place-items: center; margin-bottom: 14px; }
.cp-icon svg { width: 20px; height: 20px; }
.cp-card h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 14px; }
.cp-intro { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-bottom: 16px; }
.cp-intro strong { color: var(--ink); font-weight: 600; }
.cp-cats { list-style: none; padding: 0; margin: 0; }
.cp-cat { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.cp-cat h3 { font-size: 15px; margin-bottom: 2px; }
.cp-cat p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.cp-always { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.cp-switch { position: relative; flex-shrink: 0; width: 46px; height: 28px; }
.cp-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cp-switch span { position: absolute; inset: 0; border-radius: 99px; background: #d2d2d7; transition: background .25s ease; }
.cp-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.cp-switch input:checked + span { background: var(--blue); }
.cp-switch input:checked + span::after { transform: translateX(18px); }
.cp-switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.cp-more { font-size: 13px; color: var(--ink-2); padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .08); }
.cp-more a { text-decoration: underline; }
.cp-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.footer-cols .link-button { display: block; color: var(--ink-2); text-decoration: none; font-size: inherit; margin-bottom: 8px; text-align: left; }
.footer-cols .link-button:hover { color: var(--ink); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .consent, .cp-card, .cp-backdrop, .cp-switch span::after { transition: none; }
}
.btn-ghost { background: var(--bg-alt); color: var(--ink); }
.btn-ghost:hover { background: #e8e8ed; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }

.footer-cols p { margin-bottom: 8px; }

@media (max-width: 834px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .consent { flex-direction: column; align-items: stretch; gap: 14px; bottom: 12px; padding: 18px; }
  .consent-actions .btn { flex: 1; padding: 10px 8px; }
  .cp-card { padding: 28px 20px 20px; }
  .cp-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================
   Movimiento (maquetas vivas, estilo Apple)
   ========================================================== */
[data-motion]:not(.live) *,
[data-motion]:not(.live) *::before,
[data-motion]:not(.live) *::after { animation-play-state: paused !important; }
.tile-visual { will-change: transform; }

/* Portátil del hero: la tapa se abre con el scroll */
.hero-device { perspective: 2200px; }
.device-screen { transform-origin: 50% 100%; will-change: transform; }
.ds-side i { transition: background .6s var(--ease), transform .6s var(--ease); }
.ds-side i.on { background: rgba(255, 22, 22, .2); transform: translateX(3px); }
.ds-card { position: relative; overflow: hidden; }
.ds-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sweep 6s var(--ease) infinite;
}
.ds-card.c2::after { animation-delay: .4s; }
.ds-card.c3::after { animation-delay: .8s; }
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Navegador: la web se recorre sola */
.mock-browser { display: flex; flex-direction: column; }
.mb-body { flex: 1; overflow: hidden; position: relative; }
.mb-page { animation: mbscroll 22s infinite; }
@keyframes mbscroll {
  0%, 10% { transform: translateY(0); animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
  28%, 38% { transform: translateY(-16%); animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
  56%, 66% { transform: translateY(-33%); animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
  90%, 100% { transform: translateY(-50%); }
}
.mb-copy { display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 2px; }
.mb-nav { display: flex; align-items: center; gap: 10px; }
.mb-nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); margin-right: auto; }
.mb-nav i { width: 44px; height: 7px; border-radius: 4px; background: #3a3a3c; }
.mb-nav span { width: 58px; height: 20px; border-radius: 10px; background: var(--brand); }
.mb-hero {
  height: 170px;
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(120deg, rgba(255, 22, 22, .95), rgba(204, 51, 51, .9) 55%, rgba(70, 8, 8, .95));
  background-size: 200% 200%;
  animation: shimmer 8s ease-in-out infinite alternate;
}
.mb-hero b { width: 55%; height: 16px; border-radius: 6px; background: rgba(255, 255, 255, .95); }
.mb-hero i { width: 38%; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .6); }
.mb-hero span { width: 90px; height: 24px; border-radius: 12px; background: #fff; margin-top: 6px; }
.mb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mb-row i { height: 92px; border-radius: 10px; background: #2c2c2e; }
.mb-row-sm { grid-template-columns: repeat(4, 1fr); }
.mb-row-sm i { height: 56px; }
.mb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.mb-split > i { height: 120px; border-radius: 10px; background: linear-gradient(135deg, #3a3a3c, #1c1c1e); }
.mb-split div { display: flex; flex-direction: column; gap: 10px; }
.mb-split b { width: 70%; height: 12px; border-radius: 5px; background: #e5e5ea; }
.mb-split em { height: 7px; border-radius: 4px; background: #3a3a3c; }
.mb-split em.s { width: 60%; }

/* Móvil */
.mp-grid i, .mp-dock i {
  transform: scale(.3);
  opacity: 0;
  transition: transform .8s cubic-bezier(.34, 1.56, .64, 1), opacity .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 200ms);
}
.reveal.in .mp-grid i, .reveal.in .mp-dock i { transform: none; opacity: 1; }
.mp-notif {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 40px;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .25);
  text-align: left;
  transform: translateY(-140%);
  opacity: 0;
  transition: transform .7s cubic-bezier(.34, 1.3, .64, 1), opacity .4s var(--ease);
}
.mp-notif.show { transform: none; opacity: 1; }
.mp-notif i { flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--brand); }
.mp-notif b { display: block; font-size: 12px; }
.mp-notif span { display: block; font-size: 12px; color: var(--ink-2); transition: opacity .3s; }
.mp-widget {
  margin-top: 22px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.mp-widget svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.mp-widget circle { fill: none; stroke-width: 4.5; }
.mp-widget .bg { stroke: #e5e5ea; }
.mp-widget .fg { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset 1.6s var(--ease); }
.mp-widget strong { display: block; font-size: 22px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mp-widget span { font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.mp-dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px 12px; height: auto; }
.mp-dock i { aspect-ratio: 1; border-radius: 12px; background: #fff; }
.mp-dock i:nth-child(1) { background: #1d1d1f; }
.mp-dock i:nth-child(2) { background: var(--brand); }

/* Código */
.mock-code { padding: 0; overflow: hidden; }
.mc-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #2c2c2e; }
.mc-head i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mc-head i:nth-child(2) { background: #febc2e; }
.mc-head i:nth-child(3) { background: #28c840; }
.mc-lang {
  margin-left: auto;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(255, 22, 22, .16);
  color: #ff8a80;
  transition: opacity .25s, transform .25s var(--ease);
}
.mc-lang.swap { opacity: 0; transform: translateY(-6px); }
.mc-body {
  margin: 0;
  padding: 20px 24px 24px;
  min-height: 11.5em;
  font: inherit;
  white-space: pre;
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}
.mock-code.clear .mc-body { opacity: 0; filter: blur(4px); }
.mc-body b { color: #ff6b6b; font-weight: 500; }
.mc-body em { color: #ffd479; font-style: normal; }
.mc-body u { color: #6bdfff; text-decoration: none; }
.mc-cursor {
  position: static;
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: text-bottom;
  margin-left: 1px;
}

/* Chat */
.mock-chat { position: relative; }
.mock-chat .bubble {
  opacity: 0;
  transform: translateY(10px) scale(.92);
  transition: opacity .45s var(--ease), transform .6s cubic-bezier(.34, 1.4, .64, 1);
}
.mock-chat .bubble.in { transform-origin: 0 100%; }
.mock-chat .bubble.out { transform-origin: 100% 100%; }
.mock-chat .bubble.show { opacity: 1; transform: none; }
.mock-chat.fade .bubble { opacity: 0; transform: translateY(-8px); }
.no-chat-anim .mock-chat .bubble { opacity: 1; transform: none; }
.typing {
  position: absolute;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 20px;
  background: #e5e5ea;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s, transform .4s cubic-bezier(.34, 1.4, .64, 1);
}
.typing.show { opacity: 1; transform: none; }
.typing.out { background: var(--blue); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: dot 1.2s infinite; }
.typing.out i { background: rgba(255, 255, 255, .8); }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Panel de datos */
.md-bars i:last-child { box-shadow: 0 0 0 0 rgba(255, 22, 22, .4); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 22, 22, .35); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 22, 22, 0); } }

/* Diseño gráfico */
.mock-design { position: relative; }
.dz-logo { display: block; height: 150px; width: auto; overflow: visible; }
.dz-logo path { stroke-width: 3; stroke-linejoin: miter; fill-opacity: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1), fill-opacity .8s var(--ease), fill .6s var(--ease), stroke .6s var(--ease); }
.dz-m { fill: #1d1d1f; stroke: #1d1d1f; }
.dz-w { fill: #ff1616; stroke: #ff1616; }
.dz-logo.filled path { fill-opacity: 1; }
.dz-select { outline-color: transparent; transition: outline-color .4s var(--ease); }
.dz-select .h { transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.dz-select.on { outline-color: var(--brand); }
.dz-select.on .h { transform: none; }
.dz-swatches i {
  transform: scale(.4);
  opacity: 0;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .4s, box-shadow .3s;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.mock-design.swatches .dz-swatches i { transform: none; opacity: 1; }
.dz-swatches i.picked { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.dz-aa { transition: font-weight .3s, letter-spacing .4s var(--ease); font-weight: 300; }
.mock-design.swatches .dz-aa { font-weight: 800; letter-spacing: -0.06em; }
.dz-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #1d1d1f;
  stroke: #fff;
  stroke-width: 1.4;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
  opacity: 0;
  transition: transform 1s cubic-bezier(.6, 0, .2, 1), opacity .4s;
  pointer-events: none;
}
.dz-cursor.show { opacity: 1; }
.dz-cursor.click { transition: transform .15s; }
.mock-design.reset .dz-artboard > *, .mock-design.reset .dz-panel { opacity: 0; transition: opacity .5s; }

/* Información básica de protección de datos bajo el formulario */
.form-legal { font-size: 12px; line-height: 1.5; color: var(--ink-3); margin: 0; }
.form-legal a { text-decoration: underline; }

/* ---------- Ilustraciones de cabecera: detrás del texto, como el globo de la portada ---------- */
.page-hero > .hero-art, .app-hero > .hero-art {
  position: absolute;
  left: 50%;
  top: 64px;
  width: min(780px, 128vw);
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 95%);
  mask-image: linear-gradient(#000 45%, transparent 95%);
}
.page-hero > .hero-art[data-art="grafico"] { width: min(540px, 110vw); top: 40px; }
/* En pantallas anchas la Mona Lisa se aparta a la derecha del título para que se vea su sonrisa */
@media (min-width: 1100px) {
  .page-hero > .hero-art[data-art="grafico"] { left: auto; right: max(0px, calc(50% - 720px)); transform: none; width: 470px; top: 54px; }
  .hero-art[data-art="grafico"].art-in, .hero-art[data-art="grafico"].art-live { opacity: .55; }
}
.hero-art.art-in, .hero-art.art-live { opacity: .4; }
.hero-art * { fill: none; stroke: var(--brand-2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .k { stroke: var(--brand); stroke-width: 1.5; }
.hero-art .grueso { stroke-width: 4; }
.hero-art .tirador { stroke: var(--brand); fill: #fff; }
.hero-art .punto { fill: var(--brand); stroke: none; }
.hero-art .asa, .hero-art .punto, .hero-art .cursor, .hero-art .pluma { opacity: 0; transition: opacity .6s ease; }
.hero-art.art-live .asa, .hero-art.art-live .punto, .hero-art.art-live .cursor, .hero-art.art-live .pluma { opacity: 1; }
.hero-art .cursor { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }

@media (prefers-reduced-motion: no-preference) {
  /* Web: el cursor recorre la página y pulsa el botón */
  .art-live .cursor { animation: art-cursor 7s var(--ease) infinite; }
  .art-live .boton { animation: art-boton 7s ease infinite; }
  @keyframes art-cursor {
    0%, 100% { transform: translate(300px, 230px); }
    25% { transform: translate(84px, 172px); }
    29% { transform: translate(84px, 172px) scale(.85); }
    33% { transform: translate(84px, 172px); }
    60% { transform: translate(310px, 128px); }
    80% { transform: translate(196px, 226px); }
  }
  @keyframes art-boton { 0%, 26%, 40%, 100% { fill: transparent; } 29%, 33% { fill: rgba(225, 6, 0, .22); } }

  /* Apps: los iconos se encienden en cascada y llega una notificación */
  .art-live .icono { animation: art-icono 4.8s ease infinite; animation-delay: calc(var(--i, 0) * .09s); }
  @keyframes art-icono { 0%, 70%, 100% { fill: transparent; } 12%, 30% { fill: rgba(225, 6, 0, .2); } }
  .art-live .aviso { animation: art-aviso 6s var(--ease) infinite; }
  @keyframes art-aviso { 0%, 15%, 100% { transform: translateY(0); } 25%, 60% { transform: translateY(78px); fill: rgba(255, 255, 255, .9); } 70% { transform: translateY(0); } }
  .art-live .anillo { stroke-dasharray: 52 24; animation: art-girar 3s linear infinite; transform-box: fill-box; transform-origin: center; }

  /* Software: las líneas de código se escriben, se borran y vuelven a escribirse */
  .art-live .codigo { stroke-dasharray: 1; stroke-dashoffset: 1; animation: art-escribir 8s ease infinite; animation-delay: calc((var(--i, 0) - 18) * .32s); }
  @keyframes art-escribir { 0% { stroke-dashoffset: 1; } 12%, 78% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: -1; } }
  .art-live .caret { animation: art-parpadeo 1s steps(1) infinite; }
  @keyframes art-parpadeo { 50% { opacity: 0; } }

  /* IA: impulsos que recorren la red y neuronas que se activan */
  .art-live .arista { stroke-dasharray: 3 9; animation: art-flujo 1.4s linear infinite; }
  @keyframes art-flujo { to { stroke-dashoffset: -24; } }
  .art-live .nodo { animation: art-nodo 3.2s ease infinite; animation-delay: calc(var(--i, 0) * .07s); }
  @keyframes art-nodo { 0%, 60%, 100% { fill: transparent; } 20% { fill: rgba(225, 6, 0, .25); } }
  .art-live .chispa { animation: art-chispa 2.4s ease infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes art-chispa { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.35) rotate(45deg); } }
  @keyframes art-girar { to { transform: rotate(360deg); } }

  /* Diseño gráfico: la pluma retoca la sonrisa (la curva la mueve hero-art.js) */
  .art-live .pluma { animation: art-pluma 4s ease-in-out infinite; }
  @keyframes art-pluma { 0%, 100% { transform: translate(226px, 200px); } 50% { transform: translate(218px, 206px) rotate(-8deg); } }
}
