/* =========================================================
   ZTARMON — estilos
   Marca: amarillo #FECF20 · negro #161616 / #1E1E1E · blanco
   El amarillo funciona como luz: pulsos, brillos y acentos.
   ========================================================= */
:root {
  --yellow: #fecf20;
  --yellow-hi: #ffe27a;
  --amber: #e09a00;
  --black: #0b0b0b;
  --brand-black: #161616;
  --brand-black-2: #1e1e1e;
  --light: #f6f6f3;
  --radius: 18px;
  --radius-lg: 26px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
}

/* colores del tema: cada sección lleva el suyo */
[data-theme] { color: var(--fg); }
[data-theme="dark"] {
  --fg: #ffffff; --fg-2: #a6a6a6; --surface: #131313; --surface-2: #191919;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .16);
}
[data-theme="light"] {
  --fg: #161616; --fg-2: #5c5c5c; --surface: #ffffff; --surface-2: #f0f0ec;
  --line: rgba(22, 22, 22, .09); --line-strong: rgba(22, 22, 22, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; background: var(--black); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; color: var(--fg); background: var(--black); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--fg); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--brand-black); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--yellow); color: var(--brand-black); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.container--narrow { --container: 820px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--yellow { background: var(--yellow); color: var(--brand-black); box-shadow: 0 0 0 0 rgba(254, 207, 32, 0); }
.btn--yellow:hover { background: var(--yellow-hi); box-shadow: 0 0 32px rgba(254, 207, 32, .35); }
.btn--line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.btn--dark { background: var(--brand-black); color: #fff; }
.btn--dark:hover { background: #333; }
.btn--outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn--outline:hover { background: var(--fg); color: var(--surface); }
.btn--light { background: #fff; color: var(--brand-black); }
.btn--light:hover { background: var(--yellow-hi); }
.btn--glass { background: rgba(10, 10, 10, .45); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg-2); font-size: 13px; font-weight: 600; }
.badge--light { background: #fff; }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 99px; background: #fff3c4; color: #6b5400; font-size: 13px; font-weight: 700; }

/* =========================================================
   Pantalla de carga (versión del video): la Z nace grande al
   centro, de borrosa a nítida con luz amarilla, viaja a su sitio;
   "tar" sube, "mon" sube con la "o" que se abre, destello y salida
   ========================================================= */
.loader { display: none; }
.intro .loader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(60% 50% at 50% 50%, #1b1608 0%, var(--black) 72%);
  animation: loaderOut .65s cubic-bezier(.7, 0, .2, 1) 3.2s forwards;
}
.ld { width: min(340px, 64vw); height: auto; overflow: visible; animation: ldOut .65s cubic-bezier(.7, 0, .2, 1) 3.2s forwards; }
.ld path, .ld g, .ld circle { transform-box: fill-box; transform-origin: center; }
.ld-z { fill: #fff; opacity: 0; animation: ldZ 1.45s .05s both; }
.ld-flare { opacity: 0; animation: ldFlare 1.45s .05s both; }
.ld-tiny { fill: #fff; opacity: 0; animation: ldFade .4s ease 1.9s forwards; }
@keyframes ldFade { to { opacity: 1; } }
.ld-rise { fill: #fff; transform: translateY(105%); animation: ldRise .85s cubic-bezier(.16, 1, .3, 1) var(--d) forwards; }
.ld-yellow { fill: var(--yellow); }
.ld-o { fill: var(--yellow); transform: scale(0); animation: ldPop .7s cubic-bezier(.34, 1.4, .64, 1) 1.83s forwards; }
.ld-shine { transform: translateX(0); transform-box: view-box; animation: ldShine .75s cubic-bezier(.65, 0, .35, 1) 2.45s forwards; }
@keyframes ldZ {
  0% { opacity: 0; transform: translate(615px, 195px) scale(2.6); filter: blur(18px); animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  48% { opacity: 1; transform: translate(615px, 195px) scale(2.15); filter: blur(0); }
  56% { opacity: 1; transform: translate(615px, 195px) scale(2.15); filter: blur(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes ldFlare {
  0% { opacity: 0; transform: translate(615px, 195px) scale(.6); animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  48% { opacity: 1; transform: translate(615px, 195px) scale(1.5); }
  56% { opacity: 1; transform: translate(615px, 195px) scale(1.5); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { opacity: .35; transform: none; }
}
@keyframes ldRise { to { transform: none; } }
@keyframes ldPop { to { transform: none; } }
@keyframes ldShine { to { transform: translateX(2300px); } }
@keyframes ldOut { to { transform: scale(1.12); filter: blur(6px); opacity: 0; } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }

/* =========================================================
   Píldora de navegación
   ========================================================= */
.pill {
  position: fixed; top: 16px; left: 50%; z-index: 100; transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px; width: max-content; max-width: calc(100% - 24px);
  height: 54px; padding: 0 7px 0 18px; border-radius: 999px;
  background: rgba(14, 14, 14, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .25);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: height .4s var(--ease), top .4s var(--ease);
}
.pill.is-compact { top: 10px; height: 48px; }
.pill__logo img { width: 52px; }
.pill__nav { display: flex; gap: 22px; }
.pill__nav a { color: #cfcfcf; font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.pill__nav a:hover, .pill__nav a.is-active { color: #fff; }
.pill__nav a.is-active { text-shadow: 0 0 14px rgba(254, 207, 32, .6); }
.pill__cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--brand-black); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .2s; }
.pill__cta:hover { background: var(--yellow); }
.pill__toggle { display: none; }
.menu { display: none; }

/* =========================================================
   Portada
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 150px 0 72px; overflow: hidden; isolation: isolate; }
.hero__inner { position: relative; width: min(900px, 100% - 40px); margin: 0 auto; text-align: center; }
.hero__title { font-size: clamp(40px, 5.6vw, 78px); margin: 22px auto 22px; max-width: 15ch; }
.hero__lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-2); max-width: 52ch; margin: 0 auto 32px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* circuito */
.circuit { position: relative; width: min(1000px, 100% - 40px); margin: 64px auto 0; aspect-ratio: 1000 / 360; }
.circuit__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.circuit__lines path { fill: none; vector-effect: non-scaling-stroke; }
.lines path { stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; }
.lines path.faint { stroke: rgba(255, 255, 255, .06); }
.pulses { filter: drop-shadow(0 0 6px rgba(254, 207, 32, .9)); }
.pulses path { stroke: var(--yellow); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 9 300; stroke-dashoffset: 9; animation: pulse 2.6s linear var(--d, 0s) infinite; }
@keyframes pulse { 0% { stroke-dashoffset: 9; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
.chip {
  position: absolute; left: 50%; top: 52.8%; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 24%;
  background: linear-gradient(160deg, #1d1d1d, #0f0f0f); box-shadow: inset 0 0 0 1px rgba(254, 207, 32, .35), 0 0 50px rgba(254, 207, 32, .22);
}
.chip::before { content: ""; position: absolute; inset: 9%; border-radius: 20%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.chip img { width: 46%; filter: drop-shadow(0 0 10px rgba(254, 207, 32, .55)); }
.node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px;
  background: #121212; box-shadow: inset 0 0 0 1px var(--line-strong); color: #e8e8e8; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: box-shadow .3s, transform .3s var(--ease);
}
.node:hover { box-shadow: inset 0 0 0 1px rgba(254, 207, 32, .7), 0 0 24px rgba(254, 207, 32, .2); transform: translate(-50%, -50%) translateY(-2px); }
.node__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #1c1c1c; }
.node__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Secciones
   ========================================================= */
.section { position: relative; padding: clamp(96px, 11vw, 150px) 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.head h2 { font-size: clamp(26px, 4vw + 12px, 54px); margin: 18px 0 14px; overflow-wrap: break-word; }
.head__sub { color: var(--fg-2); max-width: 52ch; margin: 0 auto; }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23161616' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---------- proyectos ---------- */
.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 20px 50px -20px rgba(0,0,0,.18); margin-bottom: 48px; }
.case__media { position: relative; padding-bottom: 8%; }
.case__shot, .case__phone, .card__img { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.case__shot { width: 100%; border-radius: 14px; overflow: hidden; }
.case__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.case__shot:hover img { transform: scale(1.03); }
.case__phone { position: absolute; right: 4%; bottom: 0; width: 24%; padding: 5px; border-radius: 22px; background: var(--brand-black); box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); transition: transform .4s var(--ease); }
.case__phone:hover { transform: translateY(-6px); }
.case__phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 17px; }
.case__body h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.case__body > p { color: var(--fg-2); margin-bottom: 20px; }
.case__body .checks { margin-bottom: 28px; }
.case__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filters button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .2s, color .2s, box-shadow .2s; }
.filters button:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.filters button.is-on { background: var(--brand-black); color: #fff; box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 10px 10px 22px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px -14px rgba(0,0,0,.15); transition: transform .35s var(--ease), box-shadow .35s, background-color .7s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 24px 44px -16px rgba(0,0,0,.22); }
.card[hidden] { display: none; }
.card__img { width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card .tag, .card h3, .card p { margin-left: 10px; margin-right: 10px; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.card p:not(.tag) { font-size: 15px; color: var(--fg-2); }
.more { margin-top: 40px; text-align: center; font-weight: 600; }
.more a { text-underline-offset: 6px; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* ---------- servicios: mosaico ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 360px;
  border-radius: var(--radius-lg); background: linear-gradient(180deg, #151515, #0f0f0f); box-shadow: inset 0 0 0 1px var(--line);
}
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(254, 207, 32, .12), transparent 60%); }
.tile:hover::before { opacity: 1; }
.tile--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; }
.tile__text { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 34px); }
.tile h3 { font-size: 24px; }
.tile p { color: var(--fg-2); font-size: 15px; }
.tile__link { margin-top: auto; align-self: flex-start; padding-top: 10px; color: var(--yellow); font-size: 15px; font-weight: 600; text-decoration: none; }
.tile__link:hover { text-decoration: underline; text-underline-offset: 5px; }
.tile__visual { position: relative; }
.tile__visual--photo { height: 180px; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; }
.tile__visual--photo img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .8s var(--ease), opacity .4s; }
.tile:hover .tile__visual--photo img { transform: scale(1.05); opacity: 1; }
.tile__visual--browser { padding: 34px 0 0 0; }
.tile__visual--browser img, .mini-browser { width: 118%; margin-left: 0; }
.mini-browser { display: flex; gap: 6px; height: 26px; align-items: center; padding: 0 12px; border-radius: 12px 0 0 0; background: #1f1f1f; }
.mini-browser i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; }
.tile__visual--browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 0 0 0 0; transition: transform .8s var(--ease); }
.tile:hover .tile__visual--browser img { transform: translateY(-6px); }
.tile__visual--flow { display: grid; place-items: center; padding: 28px; }
.flow { display: flex; flex-direction: column; align-items: stretch; width: min(280px, 100%); }
.flow__step { padding: 12px 16px; border-radius: 12px; background: #1a1a1a; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 600; color: #e6e6e6; }
.flow__step.is-hot { background: var(--yellow); color: var(--brand-black); box-shadow: 0 0 28px rgba(254, 207, 32, .3); }
.flow__line { position: relative; height: 22px; margin-left: 24px; width: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.flow__line i { position: absolute; left: 0; top: -40%; width: 2px; height: 40%; background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation: drop 1.6s linear infinite; }
.flow__line:nth-of-type(4) i { animation-delay: .5s; }
.flow__line:nth-of-type(6) i { animation-delay: 1s; }
@keyframes drop { to { top: 110%; } }

/* ---------- proceso ---------- */
.marquee { overflow: hidden; margin: 0 auto 48px; -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: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-size: 20px; font-weight: 600; color: var(--fg-2); white-space: nowrap; letter-spacing: -.02em; }
.marquee__track span::after { content: "✦"; margin-left: 48px; color: var(--yellow); font-size: 14px; vertical-align: 3px; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* ---------- preguntas ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, background-color .7s ease; }
.faq details[open] { box-shadow: inset 0 0 0 1px rgba(254, 207, 32, .35); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--yellow); font-size: 20px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--fg-2); }

/* ---------- contacto: horizonte ---------- */
.section--contact { padding-top: clamp(40px, 5vw, 80px); }
.horizon {
  position: relative; overflow: hidden; text-align: center; padding: clamp(64px, 8vw, 110px) 24px clamp(150px, 16vw, 230px);
  border-radius: 32px; background: #0e0e0e; box-shadow: inset 0 0 0 1px var(--line);
}
.horizon::before { content: ""; position: absolute; left: 50%; bottom: -62%; width: max(140%, 760px); height: 112%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, #ffffff 0%, #fff4c2 7%, var(--yellow) 19%, var(--amber) 34%, rgba(160, 80, 0, .3) 52%, transparent 72%); filter: blur(4px); }
.horizon > * { position: relative; }
.horizon h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 14px; }
.horizon p { color: var(--fg-2); margin-bottom: 30px; }
.horizon__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(56px, 7vw, 96px); }
.contact__text h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 10px; }
.contact__text p { color: var(--fg-2); }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.field small { font-weight: 500; opacity: .8; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 12px;
  background: #0c0c0c; box-shadow: inset 0 0 0 1px var(--line-strong); color: #fff; font: 500 16px/1.4 var(--font);
  transition: box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23fecf20' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--yellow), 0 0 0 4px rgba(254, 207, 32, .12); }

/* ---------- pie ---------- */
.footer { padding: 72px 0 28px; background: var(--black); border-top: 1px solid var(--line); color: var(--fg-2); font-size: 15px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav b { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer nav a { text-decoration: none; transition: color .2s; }
.footer nav a:hover { color: var(--yellow); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.footer__legal a { text-decoration: none; color: #fff; }

/* ---------- WhatsApp flotante y vista ampliada ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
body.menu-open .wa-float { display: none; }
.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #fff; color: #161616; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 5, 5, .8); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: calc(92vh - 72px); object-fit: contain; background: #f0f0ec; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.lightbox__bar p { font-weight: 700; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #161616; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* =========================================================
   Movimiento: palabras que aparecen y entradas suaves (solo con JS)
   ========================================================= */
.w { display: inline-block; }
.js [data-words] .w { opacity: 0; filter: blur(10px); transform: translateY(.3em); transition: opacity .9s ease, filter .9s ease, transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-words].is-in .w { opacity: 1; filter: blur(0); transform: none; }
.js [data-reveal] { opacity: 0; filter: blur(10px); transform: translateY(26px) scale(.985); transition: opacity .9s ease, filter .9s ease, transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; filter: blur(0); transform: none; }
.js .case[data-reveal], .js .stage[data-reveal], .js .form[data-reveal] { filter: none; }


/* =========================================================
   Scroll suave (Lenis) y barra de progreso
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.progress { position: fixed; inset: 0 0 auto 0; z-index: 150; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--yellow), #fff6c9); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px rgba(254, 207, 32, .7); }

/* =========================================================
   Portada: foco de luz, polvo y símbolos flotantes
   ========================================================= */
.hero__spot {
  position: absolute; z-index: -1; left: 50%; top: -12%; width: min(1100px, 120vw); height: 105%;
  transform: translateX(calc(-50% + var(--sx, 0px)));
  background: radial-gradient(ellipse 30% 70% at 50% 0%, rgba(255, 236, 160, .38), rgba(254, 207, 32, .12) 45%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%); mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
  filter: blur(6px); transition: transform 1.2s var(--ease);
}
.hero__spot::before { content: ""; position: absolute; left: 50%; top: 0; width: 34%; height: 100%; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 155deg, rgba(255, 240, 190, .22) 172deg, rgba(255, 248, 220, .3) 180deg, rgba(255, 240, 190, .22) 188deg, transparent 205deg);
  filter: blur(14px); animation: spot 7s ease-in-out infinite alternate; }
@keyframes spot { from { opacity: .7; } to { opacity: 1; } }
.hero__dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.glyphs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glyphs span {
  position: absolute; left: var(--x); top: var(--y); padding: 6px 10px; font-size: clamp(16px, 1.6vw, 26px); font-weight: 500;
  color: rgba(255, 255, 255, .13); letter-spacing: -.02em; will-change: transform; transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--r, 0deg));
}
.glyphs .glyph--box { border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.glyphs span:nth-child(odd) { --r: -8deg; }
.glyphs span:nth-child(3n) { --r: 10deg; }
.w--accent { background: linear-gradient(180deg, #fff 10%, var(--yellow-hi) 55%, var(--yellow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }

/* =========================================================
   Revelado de imágenes, parallax, inclinación 3D y botones magnéticos
   ========================================================= */
.js [data-clip] { clip-path: inset(14% 10% 14% 10% round 28px); transition: clip-path 1.3s var(--ease); }
.js [data-clip] img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0 round 14px); }
.js [data-clip].is-in img { transform: scale(1); }
[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
[data-tilt] { transform-style: preserve-3d; }
.js .card[data-tilt].is-tilting { transition: transform .12s linear, box-shadow .35s; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-4px); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 45%); mix-blend-mode: soft-light; }
.card { position: relative; }
.card.is-tilting::after { opacity: 1; }
[data-magnetic] { transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0); transition: transform .5s var(--ease), background-color .25s, color .25s, box-shadow .25s; }
[data-magnetic].is-near { transition: transform .15s linear, background-color .25s, color .25s, box-shadow .25s; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(254, 207, 32, .9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.tile:hover::after { opacity: 1; }

/* estrellas del horizonte */
.horizon > .horizon__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* =========================================================
   Tableta
   ========================================================= */
@media (max-width: 1024px) {
  .pill__nav { gap: 16px; }
  .case { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }

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

/* =========================================================
   Móvil
   ========================================================= */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .pill { left: 12px; right: 12px; width: auto; transform: none; justify-content: space-between; padding: 0 6px 0 16px; }
  .pill__nav, .pill__cta { display: none; }
  .pill__toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--brand-black); cursor: pointer; }
  .bars { position: relative; width: 18px; height: 10px; }
  .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
  .bars i:first-child { top: 0; }
  .bars i:last-child { top: 8px; }
  [aria-expanded="true"] .bars i:first-child { top: 4px; transform: rotate(45deg); }
  [aria-expanded="true"] .bars i:last-child { top: 4px; transform: rotate(-45deg); }
  .menu { position: fixed; left: 12px; right: 12px; top: 76px; z-index: 99; display: flex; flex-direction: column; padding: 10px 18px 18px; border-radius: 24px; background: rgba(17, 17, 17, .96); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px rgba(0,0,0,.4); }
  .menu[hidden] { display: none; }
  .menu a:not(.btn) { padding: 14px 4px; color: #fff; font-size: 19px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu .btn { margin-top: 16px; }

  .hero { padding-top: 120px; }
  .hero__title { font-size: clamp(36px, 10vw, 46px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .glyphs span:nth-child(n+7) { display: none; }
  .glyphs span { font-size: 15px; }
  .circuit { width: calc(100% - 24px); margin-top: 48px; aspect-ratio: 1000 / 520; }
  .chip { width: 64px; top: 52.8%; }
  .node { flex-direction: column; gap: 6px; padding: 8px; font-size: 11px; background: transparent; box-shadow: none; }
  .node__icon { width: 42px; height: 42px; background: #141414; box-shadow: inset 0 0 0 1px var(--line-strong); }
  .node:hover { box-shadow: none; }

  .case { padding: 12px 12px 24px; }
  .case__body { padding: 0 8px; }
  .case__actions .btn { flex: 1 1 100%; }
  .grid, .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile--wide .tile__visual { order: -1; }
  .tile__visual--browser { padding: 18px 0 0 18px; }
  .tile__visual--browser img, .mini-browser { width: 110%; }
  .horizon { border-radius: 24px; }
  .horizon__actions .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* =========================================================
   Movimiento reducido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-words] .w, .js [data-reveal] { opacity: 1; filter: none; transform: none; }
  .pulses, .hero__dust, .horizon__stars { display: none; }
  .marquee__track { transform: none; }
  .js [data-clip] { clip-path: none; }
  .js [data-clip] img { transform: none; }
}

/* =========================================================
   Fondos gaussianos (manchas de luz desenfocadas que flotan)
   ========================================================= */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--c), .9), rgba(var(--c), .55) 28%, rgba(var(--c), .2) 58%, rgba(var(--c), 0));
  opacity: var(--o, .5); transform: translate3d(-50%, -50%, 0); will-change: transform;
  animation: drift var(--d, 24s) ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(-50%, -50%, 0) scale(1); }
  50% { transform: translate3d(calc(-50% + var(--dx, 6vw)), calc(-50% + var(--dy, 5vh)), 0) scale(1.18); }
  100% { transform: translate3d(calc(-50% - var(--dx, 6vw)), calc(-50% - var(--dy, 5vh) * .5), 0) scale(.92); }
}
.aurora--hero i:nth-child(1) { --x: 16%; --y: 72%; --s: 48vw; --c: 255, 150, 20; --o: .2; --d: 26s; }
.aurora--hero i:nth-child(2) { --x: 86%; --y: 38%; --s: 40vw; --c: 254, 207, 32; --o: .14; --d: 31s; --dx: -5vw; }
.aurora--hero i:nth-child(3) { --x: 50%; --y: 108%; --s: 74vw; --c: 255, 120, 0; --o: .16; --d: 36s; --dy: -4vh; }
.aurora--light i:nth-child(1) { --x: 10%; --y: 6%; --s: 56vw; --c: 254, 207, 32; --o: .32; --d: 28s; }
.aurora--light i:nth-child(2) { --x: 94%; --y: 26%; --s: 46vw; --c: 255, 168, 80; --o: .2; --d: 33s; --dx: -6vw; }
.aurora--faq i:nth-child(1) { --x: 88%; --y: 12%; }
.aurora--faq i:nth-child(2) { --x: 6%; --y: 70%; }
.aurora--services i:nth-child(1) { --x: 18%; --y: 34%; --s: 52vw; --c: 254, 207, 32; --o: .2; --d: 27s; }
.aurora--services i:nth-child(2) { --x: 84%; --y: 62%; --s: 48vw; --c: 255, 136, 0; --o: .2; --d: 32s; --dx: -7vw; }
.aurora--services i:nth-child(3) { --x: 52%; --y: 92%; --s: 42vw; --c: 255, 236, 170; --o: .1; --d: 24s; }
.aurora--services i:nth-child(4) { --x: 42%; --y: 14%; --s: 30vw; --c: 224, 154, 0; --o: .16; --d: 29s; --dy: 8vh; }
.aurora--steps i:nth-child(1) { --x: 50%; --y: 62%; --s: 80vw; --c: 254, 190, 20; --o: .1; --d: 30s; }
.aurora--steps i:nth-child(2) { --x: 8%; --y: 18%; --s: 36vw; --c: 255, 140, 0; --o: .12; --d: 26s; }

/* =========================================================
   Secciones como tarjetas que suben y se abren al entrar
   ========================================================= */
.sheet { position: relative; z-index: 1; isolation: isolate; margin-top: -48px; }
.sheet__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: 48px 48px 0 0; transform-origin: 50% 0; will-change: transform; }
.sheet__bg .aurora { z-index: 0; }
[data-theme="light"] > .sheet__bg { background: var(--light); box-shadow: 0 -30px 80px -24px rgba(0, 0, 0, .55); }
[data-theme="dark"] > .sheet__bg { background: var(--black); box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07); }
.section--contact { padding-top: clamp(80px, 8vw, 120px); }
[data-scale-in] { transform-origin: 50% 100%; will-change: transform; }

/* mosaico de servicios: vidrio sobre la luz */
.tile {
  background: linear-gradient(180deg, rgba(26, 26, 26, .78), rgba(14, 14, 14, .88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.js [data-reveal].is-in { filter: none; }

/* =========================================================
   Globo: amanece desde abajo y gira hasta Ecuador
   ========================================================= */
.globe { position: relative; height: 270vh; }
.globe__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.globe__head { position: relative; z-index: 2; text-align: center; width: min(760px, 100% - 32px); margin: 0 auto; padding-top: clamp(92px, 12vh, 124px); }
.globe__head h2 { font-size: clamp(26px, 4vw + 12px, 54px); margin: 18px 0 14px; }
.globe__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.globe__chips { position: absolute; left: 0; right: 0; bottom: clamp(22px, 5vh, 48px); z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 16px; }
.js .globe__chips { opacity: 0; }
.globe__chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px;
  background: rgba(12, 12, 12, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); color: #fff; font-size: 14px; font-weight: 600;
}
.globe__chips svg { width: 16px; height: 16px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Proceso: escenario 3D con escenas que cambian por paso
   ========================================================= */
.steps { overflow: hidden; isolation: isolate; }
.stage {
  --sh: clamp(440px, 44vw, 600px);
  position: relative; height: var(--sh); border-radius: 30px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 80% at 50% 115%, rgba(254, 207, 32, .22), transparent 62%), linear-gradient(180deg, #121211, #0a0a0a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 60px 140px -60px rgba(254, 207, 32, .4);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  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: 56px 56px; background-position: center;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent);
}
.stage__silk { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.stage__scenes { position: absolute; inset: 0; perspective: 1400px; }
.scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, -7deg)); transition: transform 1s var(--ease); pointer-events: none; }
.scene > * {
  position: absolute; opacity: 0; filter: blur(14px);
  transform: translate3d(0, 46px, calc(var(--z, 0px) - 120px)) scale(.96);
  transition: opacity .5s ease, filter .6s ease, transform .9s var(--ease);
}
.scene.is-active > * { opacity: 1; filter: blur(0); transform: translate3d(0, 0, var(--z, 0px)); transition-delay: calc(var(--l, 0) * 110ms + 160ms); }
.scene.is-leaving > * { opacity: 0; filter: blur(16px); transform: translate3d(0, -36px, calc(var(--z, 0px) - 170px)) scale(.95); transition-delay: calc(var(--l, 0) * 40ms); }

.mock { border-radius: 20px; background: linear-gradient(180deg, #1b1b1b, #131313); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .85); }
.float {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 14px; white-space: nowrap;
  background: rgba(30, 30, 30, .94); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 26px 50px -20px rgba(0, 0, 0, .85);
}
.float svg { width: 18px; height: 18px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* 1 · chat */
.mock--chat { left: 0; right: 0; top: 8%; width: min(410px, 84%); margin-inline: auto; padding-bottom: 18px; }
.mock__bar { display: flex; align-items: center; gap: 10px; padding: 13px 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mock__bar b { font-size: 15px; }
.mock__bar small { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #4ade80; font-size: 12px; font-weight: 600; }
.mock__bar small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0e0e0e; box-shadow: inset 0 0 0 1px rgba(254, 207, 32, .45); }
.avatar img { width: 18px; }
.bubble { width: fit-content; max-width: 80%; margin: 0 16px 10px; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.bubble--in { background: #2a2a2a; border-bottom-left-radius: 4px; }
.bubble--out { margin-left: auto; background: var(--yellow); color: #161616; font-weight: 500; border-bottom-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; margin: 0 16px; padding: 12px 14px; border-radius: 16px; background: #2a2a2a; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #a3a3a3; animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .4; } }
.scene .bubble, .scene .typing, .mock--doc li { opacity: 0; transform: translateY(12px) scale(.96); }
.scene.is-active .bubble, .scene.is-active .typing, .scene.is-leaving .bubble, .scene.is-leaving .typing,
.scene.is-active .mock--doc li, .scene.is-leaving .mock--doc li { animation: pop .55s var(--ease) forwards; animation-delay: calc(var(--b, 0) * 650ms + 650ms); }
.float--call { left: 7%; top: 20%; }
.float--pin { right: 7%; bottom: 16%; }

/* 2 · propuesta */
.mock--page, .mock--doc { left: 0; right: 0; top: 9%; width: min(400px, 82%); margin-inline: auto; }
.mock--page { height: 78%; border-radius: 20px; }
.mock--page1 { background: #e8e8e2; rotate: -4deg; }
.mock--page2 { background: #cfcfc6; rotate: 6deg; }
.mock--doc { padding: 26px 24px 30px; border-radius: 20px; background: #fff; color: #161616; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.doc__title { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.mock--doc ul { display: grid; gap: 8px; }
.mock--doc li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f4f4f0; font-size: 15px; }
.mock--doc li b { color: #8a6a00; }
.stamp { position: absolute; right: 18px; bottom: -18px; padding: 10px 18px; border-radius: 12px; background: var(--yellow); color: #161616; font-weight: 800; letter-spacing: .02em; box-shadow: 0 10px 30px rgba(254, 207, 32, .45); opacity: 0; transform: rotate(-8deg) scale(1.9); }
.scene.is-active .stamp, .scene.is-leaving .stamp { animation: stamp .45s cubic-bezier(.2, 1.5, .4, 1) 3.4s forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-8deg) scale(1); } }

/* 3 · diseño y desarrollo */
.mock--browser { left: 0; right: 0; top: 9%; width: min(640px, 84%); margin-inline: auto; overflow: hidden; border-radius: 16px; background: #161616; }
.mock__chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1e1e1e; }
.mock__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.mock__chrome span { margin-left: 10px; padding: 3px 12px; border-radius: 99px; background: #111; color: #9a9a9a; font-size: 12px; }
.mock--browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.float--palette { left: 5%; bottom: 13%; }
.float--palette i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.float--palette span { margin-left: 4px; }
.float--code { right: 4%; top: 15%; flex-direction: column; align-items: flex-start; gap: 2px; font-weight: 500; }
.float--code code { font: 500 13px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; color: #d6d6d6; }
.float--code b { color: var(--yellow); font-weight: 500; }
.float--type { right: 11%; bottom: 9%; }
.float--type b { font-size: 26px; letter-spacing: -.03em; }
.float--type span { color: #a6a6a6; font-size: 13px; }

/* 4 · entrega */
.mock--phone { left: 0; right: 0; top: 6%; width: calc(var(--sh) * .86 * 9 / 19); aspect-ratio: 9 / 19; margin-inline: auto; padding: 7px; border-radius: 34px; background: #0f0f0f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 90px rgba(254, 207, 32, .2); }
.mock--phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; }
.float--live { left: 7%; top: 18%; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: live 1.6s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); } }
.float--checks { right: 5%; top: 38%; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
.float--checks li { display: flex; align-items: center; gap: 10px; }
.float--checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23161616' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.float--z { left: 15%; bottom: 13%; justify-content: center; width: 66px; height: 66px; padding: 0; border-radius: 20px; background: var(--yellow); box-shadow: 0 0 60px rgba(254, 207, 32, .55); }
.float--z img { width: 32px; }

/* pasos con barra de avance (la barra marca el cambio automático) */
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 30px); margin: 30px 0 clamp(56px, 7vw, 90px); }
.steps__list button { display: grid; align-content: start; gap: 6px; width: 100%; height: 100%; padding: 0 0 6px; border: 0; background: none; text-align: left; cursor: pointer; }
.steps__bar { display: block; height: 2px; margin-bottom: 14px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.steps__bar i { display: block; height: 100%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); transform-origin: left; transform: scaleX(0); }
.steps__list .is-done .steps__bar i { transform: scaleX(1); opacity: .45; }
.steps__list .is-active .steps__bar i { animation: fill var(--dur, 6.5s) linear forwards; }
.steps.is-paused .steps__list .is-active .steps__bar i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.steps__list small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .4); transition: color .3s; }
.steps__list b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: rgba(255, 255, 255, .55); transition: color .3s; }
.steps__list button > span:last-child { font-size: 15px; line-height: 1.5; color: var(--fg-2); opacity: .6; transition: opacity .3s; }
.steps__list button:hover b, .steps__list .is-active b { color: #fff; }
.steps__list .is-active small { color: var(--yellow); }
.steps__list .is-active > span:last-child { opacity: 1; }

/* =========================================================
   Tableta y móvil
   ========================================================= */
@media (max-width: 1024px) {
  .stage { --sh: 500px; }
  .float--code { display: none; }
}
@media (max-width: 760px) {
  .sheet { margin-top: -32px; }
  .sheet__bg { border-radius: 28px 28px 0 0; }
  .globe { height: 230vh; }
  .globe__chips li { padding: 8px 12px; font-size: 13px; }
  .stage { --sh: 430px; border-radius: 22px; }
  .scene { transform: rotateX(5deg) rotateY(-3deg); }
  .float { padding: 8px 11px; font-size: 12px; border-radius: 12px; }
  .float svg { width: 15px; height: 15px; }
  .bubble { font-size: 13px; }
  .mock--chat { top: 6%; }
  .float--call { left: 4%; top: auto; bottom: 5%; }
  .float--pin { right: 4%; bottom: 5%; }
  .mock--doc li { padding: 10px 12px; font-size: 14px; }
  .float--palette { left: 4%; bottom: 8%; }
  .float--palette span { display: none; }
  .float--type { right: 5%; bottom: 8%; }
  .float--live { left: 3%; top: 9%; }
  .float--checks { right: 3%; top: auto; bottom: 7%; gap: 7px; padding: 12px 13px; }
  .float--z { left: 6%; bottom: 10%; width: 52px; height: 52px; border-radius: 16px; }
  .float--z img { width: 26px; }
  .steps__list { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .steps__bar { margin-bottom: 10px; }
}

/* =========================================================
   Movimiento reducido (v5)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .aurora i { transform: translate3d(-50%, -50%, 0); }
  .globe { height: auto; }
  .globe__stage { position: relative; }
  .js .globe__chips { opacity: 1; }
  .scene > *, .scene .bubble, .scene .typing, .mock--doc li { filter: none; }
  .scene.is-active .bubble, .scene.is-active .typing, .scene.is-active .mock--doc li, .scene.is-active .stamp { opacity: 1; transform: none; }
  .scene.is-active .stamp { transform: rotate(-8deg); }
  .steps__list .is-active .steps__bar i { transform: scaleX(1); }
}
.js [data-words].is-scrub .w { transition: none; }

/* =========================================================
   v6 · Solapamiento de tarjetas, franja de marcas y pie
   ========================================================= */
/* la sección clara se alarga por debajo de la tarjeta oscura que sube,
   así a los lados se ve el claro y no el fondo negro de la página */
.sheet--under { padding-bottom: calc(clamp(96px, 11vw, 150px) + 60vh); padding-bottom: calc(clamp(96px, 11vw, 150px) + 60svh); }
.sheet--over { margin-top: -60vh; margin-top: -60svh; }

.clients { position: relative; padding: clamp(24px, 3vw, 40px) 0 calc(clamp(44px, 5vw, 72px) + 48px); }
.clients__label { margin-bottom: 18px; text-align: center; color: var(--fg-2); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.clients .marquee { margin: 0 auto; }
.clients .marquee__track span { color: #d8d8d8; font-size: clamp(18px, 2vw, 24px); }

.footer { position: relative; overflow: hidden; padding-bottom: 0; }
.footer::before { content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 90%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(254, 207, 32, .8), transparent); box-shadow: 0 0 40px 8px rgba(254, 207, 32, .18); }
.footer__legal { padding-bottom: 8px; }

@media (max-width: 760px) {
  .sheet--under { padding-bottom: calc(96px + 60vh); padding-bottom: calc(96px + 60svh); }
  .clients { padding-bottom: calc(40px + 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet--under { padding-bottom: clamp(96px, 11vw, 150px); }
  .sheet--over { margin-top: -48px; }
}

/* =========================================================
   Reel de la agencia
   ========================================================= */
.clients { padding-bottom: clamp(44px, 5vw, 72px); }
.reel { position: relative; padding: clamp(24px, 4vw, 48px) 0 calc(clamp(80px, 9vw, 130px) + 48px); }
.reel__head { width: min(760px, 100% - 32px); margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.reel__head h2 { margin-top: 16px; font-size: clamp(26px, 4vw + 12px, 54px); }
.reel__frame {
  position: relative; width: min(1200px, 100% - 40px); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 28px;
  background: #151515 url("../img/reel-poster.webp") center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 140px -50px rgba(254, 207, 32, .45);
  transform-origin: 50% 20%; will-change: transform;
}
.reel__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel__controls { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 10px; }
.reel__controls[hidden] { display: none; }
.reel__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(12, 12, 12, .8); color: #fff; font: 600 14px/1 var(--font); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.reel__btn:hover { background: var(--yellow); color: var(--brand-black); }
.reel__btn:active { transform: scale(.96); }
.reel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.reel__btn .i-pause, .reel__btn .i-play { fill: currentColor; stroke: none; }
.reel__btn[aria-pressed="true"] .i-play, .reel__btn[aria-pressed="false"] .i-pause { display: none; }
.reel__btn--sound[aria-pressed="false"] .i-wave { opacity: .35; }
.reel__btn--sound[aria-pressed="true"] { background: var(--yellow); color: var(--brand-black); }
@media (max-width: 760px) {
  .reel__frame { width: calc(100% - 24px); border-radius: 18px; }
  .reel__controls { left: 10px; bottom: 10px; gap: 6px; }
  .reel__btn { min-height: 40px; padding: 0 12px 0 10px; font-size: 13px; }
}

/* segundo caso destacado: imagen a la derecha */
.case--reverse { grid-template-columns: 1fr 1.25fr; }
.case--reverse .case__media { order: 2; }
.case--reverse .case__phone { right: auto; left: 4%; }
@media (max-width: 1024px) {
  .case--reverse { grid-template-columns: 1fr; }
  .case--reverse .case__media { order: 0; }
}
.lightbox [data-lb-link][hidden] { display: none; }
.case--reverse .case__shot { box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -24px rgba(0, 0, 0, .25); }

/* el teléfono superpuesto mantiene proporciones reales en pantallas chicas */
.case__phone { border-radius: clamp(12px, 2.4vw, 22px); padding: clamp(3px, .45vw, 5px); }
.case__phone img { border-radius: clamp(9px, 2vw, 17px); }

/* =========================================================
   Pie ordenado
   ========================================================= */
.footer { padding: clamp(64px, 7vw, 96px) 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 64px); }
.footer__brand img { width: 120px; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; color: var(--fg-2); }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: #151515; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.footer__social a:hover { background: var(--yellow); color: var(--brand-black); transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; }
.footer nav, .footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer nav b, .footer__contact b { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer__contact a:not(.btn) { color: var(--fg-2); text-decoration: none; transition: color .2s; }
.footer__contact a:not(.btn):hover { color: var(--yellow); }
.footer__contact .btn { margin-top: 8px; }
.footer__legal { padding-bottom: 0; }
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__legal { flex-direction: column; gap: 10px; }
}

/* reel en la portada (en lugar del circuito) */
.hero { padding-bottom: clamp(56px, 7vw, 96px); }
.hero__reel { margin-top: clamp(48px, 6vw, 80px); width: min(1080px, 100% - 40px); }
.clients { padding-bottom: calc(clamp(44px, 5vw, 72px) + 48px); }
@media (max-width: 760px) {
  .hero__reel { margin-top: 40px; width: calc(100% - 24px); }
  .clients { padding-bottom: calc(40px + 32px); }
}

/* transición suave portada → marcas: la luz se desvanece y se derrama, sin corte */
.hero { overflow-x: clip; overflow-y: visible; }
.aurora--hero, .hero__dust { -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 96%); mask-image: linear-gradient(to bottom, #000 50%, transparent 96%); }
.hero__reel { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 70px 160px -50px rgba(254, 207, 32, .42); }
.hero__reel::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -120px; height: 240px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(254, 190, 30, .22), transparent); }
.clients { position: relative; z-index: 0; }

/* ninguna luz de fondo termina en línea recta: todas se desvanecen antes del borde de su sección */
.aurora:not(.aurora--hero) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
}
.globe__canvas {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 80%, transparent 100%);
}

/* ilustraciones de servicios: se funden con la tarjeta (sin borde de rectángulo) */
.tile__visual--art { display: grid; place-items: center; padding: 8px 8px 0; }
.tile__visual--art img {
  width: 100%; height: auto; object-fit: contain;
  -webkit-mask-image: radial-gradient(75% 72% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(75% 72% at 50% 50%, #000 62%, transparent 100%);
  transition: transform .8s var(--ease), filter .4s;
}
.tile:hover .tile__visual--art img { transform: scale(1.04) translateY(-4px); filter: brightness(1.08); }
.tile--wide .tile__visual--art { padding: 12px 12px 12px 0; }
@media (max-width: 760px) {
  .tile__visual--art { padding: 6px 6px 0; }
  .tile--wide .tile__visual--art { padding: 6px 6px 0; }
}

/* =========================================================
   Formulario: envío, errores y confirmación
   ========================================================= */
.form { position: relative; }
.form__status { min-height: 1.2em; margin: -4px 0 0; color: #ffb4a8; font-size: 14px; }
.form__status:empty { display: none; }
.field__err { color: #ffb4a8; font-size: 13px; font-weight: 600; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #ff8a76; }
.form__submit { position: relative; }
.form.is-sending .form__submit { pointer-events: none; color: transparent; }
.form.is-sending .form__submit::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 2.5px solid rgba(22, 22, 22, .25); border-top-color: #161616; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form.is-sent > :not(.form__done) { display: none; }
.form__done { display: grid; justify-items: center; gap: 12px; padding: clamp(20px, 4vw, 40px) 8px; text-align: center; outline: none; }
.form__done[hidden] { display: none; }
.form__done h3 { font-size: clamp(24px, 2.4vw, 30px); }
.form__done p { max-width: 40ch; color: var(--fg-2); }
.form__check svg { width: 72px; height: 72px; fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(254, 207, 32, .5)); }
.form__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: chk .7s var(--ease) forwards; }
.form__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: chk .45s var(--ease) .55s forwards; }
@keyframes chk { to { stroke-dashoffset: 0; } }
.form.is-sent .form__done { animation: doneIn .6s var(--ease) both; }
@keyframes doneIn { from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) {
  .form__check circle, .form__check path { stroke-dashoffset: 0; }
}
