/* ==========================================================
   CIARBIS — v3 · contenido de la v1 + estilo minimalista de la v2
   ========================================================== */

:root {
  --bg:     #05060c;
  --bg-2:   #0b0d18;
  --card:   #0d1020;
  --fg:     #f1f2f7;
  --dim:    #8a8fa6;
  --line:   rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --grad:   linear-gradient(100deg, #2ea3e6 0%, #8f4fd1 50%, #e8007d 100%);

  --f-disp: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  --pad: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --gap-section: clamp(56px, 8vw, 96px);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; text-align: inherit; }
h1, h2, h3, h4 { font-family: var(--f-disp); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.label, .eyebrow { font-family: var(--f-disp); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.dim { color: var(--dim); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Puntito que sigue al mouse ---------- */
.dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    width: 6px; height: 6px; margin: 10px 0 0 10px; border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 8px rgba(143, 79, 209, .8);
    opacity: 0; transition: opacity .3s;
    will-change: transform;
  }
  .dot.is-on { opacity: 1; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--f-disp); font-size: .95rem; font-weight: 500;
  border: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn--light { background: var(--fg); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--line { border-color: var(--line-2); }
.btn--line:hover { border-color: var(--fg); }
.btn[disabled] { opacity: .6; }

/* ---------- Header (estilo v2) ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { background: rgba(5, 6, 12, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.top__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-disp); font-weight: 500; letter-spacing: .2em; font-size: .9rem; }
.top__logo img { width: 24px; height: 24px; object-fit: contain; }
.top__meta { font-family: var(--f-disp); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.top__right { justify-self: end; display: flex; align-items: center; gap: 26px; }
.top__cta { font-family: var(--f-disp); font-size: .88rem; position: relative; }
.top__cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(0); transition: transform .5s var(--ease); }
.top__cta:hover::after { transform-origin: left; transform: scaleX(1); }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-disp); font-size: .88rem; }
.menu-btn__icon { position: relative; width: 24px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 8px; }
.menu-open .menu-btn__icon::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn__icon::after { top: 4px; transform: rotate(-45deg); }
.menu-open .top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--pad) 40px;
  background: rgba(5, 6, 12, .97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  clip-path: circle(0% at calc(100% - 50px) 34px);
  transition: clip-path .8s var(--ease);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 50px) 34px); }
.menu__list { max-width: var(--max); width: 100%; margin: 0 auto; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--f-disp); font-size: clamp(1.9rem, min(5vw, 8vh), 4rem); letter-spacing: -.035em; line-height: 1.15;
  color: var(--dim); transition: color .3s, transform .5s var(--ease), opacity .6s;
  transform: translateY(20px); opacity: 0;
}
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .04s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .08s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .12s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .16s; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: .2s; }
.menu__list a:hover { color: var(--fg); transform: translateX(10px); }
.menu__list small { font-size: .75rem; letter-spacing: .1em; color: var(--dim); }
.menu__foot { max-width: var(--max); width: 100%; margin: 40px auto 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .88rem; color: var(--dim); }
.menu__foot a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 48px; align-items: center;
  padding-top: calc(var(--header-h) + clamp(32px, 6vh, 64px));
  padding-bottom: 40px;
}
.hero__title { font-size: clamp(2.1rem, 4.4vw, 3.9rem); margin-bottom: 20px; }
.hero__lead { color: var(--dim); font-size: 1.05rem; max-width: 540px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__hint { margin-top: 18px; font-size: .82rem; color: var(--dim); }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }
.hero__copy > * { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Órbita minimalista */
.orbit { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; margin: 0 auto; opacity: 0; animation: fadeUp 1.2s .3s var(--ease) forwards; }
.orbit__ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.orbit__ring--in { inset: 30%; border-style: dashed; animation: spin 80s linear infinite; }
.orbit__core { position: absolute; inset: 38%; width: 24%; height: 24%; object-fit: contain; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.node { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translate(-50%, -50%); }
.node--top    { top: 9%;  left: 50%; }
.node--right  { top: 50%; left: 91%; }
.node--bottom { top: 91%; left: 50%; }
.node--left   { top: 50%; left: 9%; }
.node__logo {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-2);
  transition: border-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.node__logo img { width: 32px; height: 32px; object-fit: contain; filter: grayscale(1) brightness(1.4); transition: filter .3s; }
.node__logo--light { background: #fff; }
.node__logo--light img { width: 42px; filter: grayscale(1); }
.node__name { font-family: var(--f-disp); font-size: .78rem; color: var(--dim); transition: color .3s; white-space: nowrap; }
.node:hover .node__logo, .node.is-active .node__logo, .node:focus-visible .node__logo { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); transform: scale(1.06); }
.node:hover .node__logo img, .node.is-active .node__logo img { filter: none; }
.node:hover .node__name, .node.is-active .node__name { color: var(--fg); }

.pop {
  position: absolute; z-index: 5; width: min(270px, 84vw);
  padding: 18px; border-radius: var(--radius);
  background: rgba(11, 13, 24, .95); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.pop.is-visible { opacity: 1; transform: none; }
.pop::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: var(--c); }
.pop__tag { font-family: var(--f-disp); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.pop__title { font-size: 1.15rem; margin-bottom: 6px; }
.pop__text { font-size: .88rem; color: var(--dim); margin-bottom: 10px; }
.pop__more { font-family: var(--f-disp); font-size: .88rem; }
.pop__more:hover { color: var(--c); }

.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 24px; }
.stats li { padding: 20px 0 0; font-size: .88rem; color: var(--dim); }
.stats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--f-disp); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--fg); letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }

/* ---------- Cinta de clientes ---------- */
.marquee { border-block: 1px solid var(--line); padding: 16px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li { font-family: var(--f-disp); font-size: .95rem; color: var(--dim); padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 22px; }
.marquee li::after { content: "·"; color: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-top: var(--gap-section); padding-bottom: var(--gap-section); }
.section + .section { padding-top: 0; }
.head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head h2, .about h2, .contact h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.head__text { color: var(--dim); margin-top: 14px; max-width: 620px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Manifiesto (se ilumina al pasar, sin scroll extra) ---------- */
.manifesto { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.manifesto__text { font-family: var(--f-disp); font-size: clamp(1.35rem, 2.6vw, 2.2rem); line-height: 1.3; letter-spacing: -.02em; max-width: 980px; }
.manifesto__text .w { color: rgba(241, 242, 247, .2); transition: color .4s; }
.manifesto__text .w.on { color: var(--fg); }

/* ---------- Marcas ---------- */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brand {
  position: relative; background: var(--bg);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 22px 22px 26px; min-height: 260px;
  transition: background .4s;
}
.brand::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.brand:hover { background: var(--bg-2); }
.brand:hover::after { transform: scaleX(1); }
.brand__top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.brand__step { font-family: var(--f-disp); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.brand__plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 1rem; transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s; }
.brand:hover .brand__plus { transform: rotate(90deg); background: var(--fg); color: var(--bg); border-color: var(--fg); }
.brand__logo { margin: 26px 0 18px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.brand__logo img { width: 30px; height: 30px; object-fit: contain; }
.brand__logo--light { background: #fff; }
.brand__logo--light img { width: 40px; }
.brand__name { font-family: var(--f-disp); font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 6px; }
.brand__text { color: var(--dim); font-size: .9rem; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pills li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; color: var(--dim); }

/* ---------- Trabajos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-disp); font-size: .82rem; color: var(--dim); transition: color .2s, background .2s, border-color .2s; }
.filter:hover { color: var(--fg); border-color: var(--fg); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter small { opacity: .55; margin-left: 4px; }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.work { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.work.is-hidden { display: none; }
.work.is-entering { opacity: 0; transform: translateY(10px); }
.work { transition: opacity .4s, transform .4s var(--ease); }
.work__media { aspect-ratio: 16 / 11; overflow: hidden; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.work__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.85) brightness(.9); transform: scale(1.03); transition: filter .6s, transform 1s var(--ease); }
.work:hover .work__media img { filter: none; transform: none; }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work__client { font-family: var(--f-disp); font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.work__type { font-size: .78rem; color: var(--dim); text-align: right; flex-shrink: 0; }
.works__more { grid-column: 1 / -1; display: flex; justify-content: center; }
.works__more:empty { display: none; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quote { background: var(--bg); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { font-family: var(--f-disp); font-size: 1.05rem; line-height: 1.45; letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--dim); line-height: 1.35; }
.quote figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.quote figcaption b { display: block; font-weight: 500; color: var(--fg); font-size: .92rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; }
.about__media figure { position: absolute; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.about__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .8s; }
.about__media figure:hover img { filter: none; }
.about__office { left: 0; top: 0; width: 62%; height: 84%; }
.about__office figcaption { position: absolute; left: 0; right: 0; top: 0; padding: 10px 12px 24px; font-size: .75rem; background: linear-gradient(rgba(5, 6, 12, .85), transparent); }
.about__founder { right: 0; bottom: 0; width: 46%; }
.about__founder img { aspect-ratio: 1; height: auto; }
.about__founder figcaption { padding: 10px 12px; font-size: .75rem; color: var(--dim); line-height: 1.35; }
.about__founder figcaption b { display: block; font-family: var(--f-disp); font-weight: 500; font-size: .9rem; color: var(--fg); }
.about__text { color: var(--dim); margin: 16px 0 24px; max-width: 560px; }
.facts { border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--dim); }
.facts b { font-family: var(--f-disp); font-weight: 500; color: var(--fg); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 22px 22px 0 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps b { font-family: var(--f-disp); font-weight: 500; font-size: .78rem; letter-spacing: .1em; color: var(--dim); }
.steps h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.steps p { color: var(--dim); font-size: .9rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__lead { color: var(--dim); margin: 14px 0 22px; max-width: 440px; }
.map { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 14px; display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.88); }
.map__load { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-disp); font-size: .85rem; }
.big-link { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--f-disp); font-size: 1.05rem; transition: padding .4s var(--ease); }
.big-link span { color: var(--dim); transition: transform .4s var(--ease), color .3s; }
.big-link:hover { padding-left: 8px; }
.contact__note { margin-top: 12px; font-size: .85rem; color: var(--dim); }
.big-link:hover span { transform: translate(3px, -3px); color: var(--fg); }

.form { display: grid; gap: 24px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; padding: 20px 0 8px; border-bottom: 1px solid var(--line-2); border-radius: 0; font-size: 1rem; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 80px; }
.field span { position: absolute; left: 0; top: 20px; color: var(--dim); font-size: .95rem; pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-20px) scale(.8); color: var(--fg); }
.field.is-invalid input { border-color: #ff5d7a; }
.field.is-invalid span { color: #ff7b93; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 10px; color: var(--dim); font-size: .9rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.chips label:hover span { border-color: var(--fg); }
.chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.chips.is-invalid span { border-color: #ff5d7a; }
.chips--sm span { padding: 6px 13px; font-size: .82rem; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__status { font-size: .9rem; color: var(--dim); }
.form__status.is-ok { color: #4ade80; }
.form__status.is-error { color: #ff7b93; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.foot { padding-top: 48px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot__claim { margin-top: 12px; color: var(--dim); font-size: .88rem; }
.foot h4 { font-family: var(--f-disp); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.foot ul { display: grid; gap: 6px; font-size: .9rem; }
.foot ul a:hover, .foot ul button:hover { color: var(--dim); }
.foot__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--dim); }

/* ---------- WhatsApp (blanco, estilo v2) ---------- */
.wa {
  position: fixed; right: var(--pad); bottom: 20px; z-index: 100;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fg);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease), background .3s;
}
.wa svg { width: 25px; height: 25px; fill: var(--bg); transition: fill .3s; }
.wa:hover { transform: scale(1.08); background: #25d366; }
.wa:hover svg { fill: #fff; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 400; }
.drawer[hidden] { display: none; }
.drawer__shade { position: absolute; inset: 0; background: rgba(5, 6, 12, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .7s var(--ease); }
.drawer.is-open .drawer__shade { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__panel::before { content: ""; position: sticky; top: 0; display: block; height: 2px; background: var(--c, var(--grad)); z-index: 2; }
.drawer__close { position: sticky; top: 16px; float: right; margin: 16px 20px 0 0; z-index: 3; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-disp); font-size: .82rem; }
.drawer__close i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 1.2rem; transition: transform .4s var(--ease), background .3s, color .3s; }
.drawer__close:hover i { transform: rotate(90deg); background: var(--fg); color: var(--bg); }
.drawer__body { padding: 32px clamp(20px, 4vw, 44px) 44px; }

.d-tag { font-family: var(--f-disp); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-bottom: 12px; }
.d-logo { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); margin-bottom: 18px; }
.d-logo.is-light { background: #fff; }
.d-logo img { width: 34px; height: 34px; object-fit: contain; }
.d-logo.is-light img { width: 44px; }
.d-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; padding-right: 70px; }
.d-intro { color: var(--dim); margin-bottom: 26px; }
.d-sub { font-family: var(--f-disp); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.d-list { border-top: 1px solid var(--line); margin-bottom: 28px; counter-reset: item; }
.d-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; display: flex; gap: 14px; }
.d-list li::before { content: counter(item, decimal-leading-zero); counter-increment: item; font-family: var(--f-disp); font-size: .72rem; color: var(--c); padding-top: 3px; }
.d-products li { flex-direction: column; gap: 2px; }
.d-products li::before { display: none; }
.d-products b { font-family: var(--f-disp); font-weight: 500; }
.d-products span { color: var(--dim); font-size: .9rem; }
.d-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.d-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 6px; filter: grayscale(.8); transition: filter .4s; }
.d-work:hover img { filter: none; }
.d-work span { display: block; font-size: .78rem; margin-top: 5px; color: var(--dim); }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.d-gallery { margin-bottom: 10px; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.d-gallery img { width: 100%; max-height: 56vh; object-fit: contain; }
.d-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.d-thumbs button { width: 60px; height: 44px; border-radius: 6px; overflow: hidden; opacity: .45; border: 1px solid transparent; transition: opacity .3s, border-color .3s; }
.d-thumbs button.is-active, .d-thumbs button:hover { opacity: 1; border-color: var(--fg); }
.d-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.d-meta span { font-size: .74rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .orbit { max-width: 360px; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { margin-top: 22px; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .top { grid-template-columns: 1fr auto; }
  .top__meta, .top__cta { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { margin-top: 16px; border-top: 1px solid var(--line); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
  .d-works { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero__actions .btn { width: 100%; }
  .orbit { max-width: 310px; }
  .node__logo { width: 50px; height: 50px; }
  .node__logo img { width: 28px; height: 28px; }
  .node--right { left: 87%; }
  .node--left { left: 13%; }
  .brands, .works { grid-template-columns: 1fr; }
  .brand { min-height: 0; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 18px; }
  .brand__top { grid-column: 1 / -1; margin-bottom: 12px; }
  .brand__logo { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
  .brand__name { font-size: 1.1rem; margin: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .steps li + li { margin-top: 18px; border-top: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .form__foot .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   v3.2 — Páginas: navegación, verticales, módulos, servicios
   ========================================================== */

/* ---------- Navegación entre páginas (header) ---------- */
.top__nav { display: flex; gap: 6px; }
.top__nav a {
  position: relative; padding: 7px 14px; border-radius: 999px;
  font-family: var(--f-disp); font-size: .86rem; color: var(--dim);
  transition: color .25s, background .25s;
}
.top__nav a:hover { color: var(--fg); }
.top__nav a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, .07); }
.menu__meta { color: var(--dim); font-variant-numeric: tabular-nums; }

/* ---------- Hero de páginas internas ---------- */
.page-hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px 56px; align-items: center;
  padding-top: calc(var(--header-h) + clamp(32px, 6vh, 64px)); padding-bottom: 40px;
}
.page-hero__title { font-size: clamp(2.1rem, 4.4vw, 3.8rem); margin-bottom: 18px; }
.page-hero__lead { color: var(--dim); font-size: 1.05rem; max-width: 580px; margin-bottom: 26px; }
.page-hero__copy > * { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
.page-hero__copy > :nth-child(2) { animation-delay: .08s; }
.page-hero__copy > :nth-child(3) { animation-delay: .16s; }
.page-hero__copy > :nth-child(4) { animation-delay: .24s; }
.page-hero__copy > :nth-child(5) { animation-delay: .32s; }
.page-hero__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 340px; width: 100%; margin: 0 auto; opacity: 0; animation: fadeUp 1.2s .3s var(--ease) forwards; }
.page-hero__visual::before, .page-hero__visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.page-hero__visual::before { inset: 4%; }
.page-hero__visual::after { inset: 24%; border-style: dashed; animation: spin 80s linear infinite; }
.page-hero__visual img { width: 38%; height: 38%; object-fit: contain; position: relative; z-index: 1; }
.page-hero__access { margin-top: 18px; font-size: .84rem; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.page-hero__access a { color: var(--fg); border-bottom: 1px solid var(--line-2); }
.page-hero__access a:hover { border-color: var(--fg); }

/* Subnavegación de anclas (soluciones.html) */
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.anchors a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-disp); font-size: .85rem; transition: border-color .25s, background .25s; }
.anchors a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.anchors a:hover { border-color: var(--fg); background: rgba(255, 255, 255, .04); }

/* Países */
.countries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.countries span { font-family: var(--f-disp); font-size: .72rem; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--dim); }

/* ---------- Verticales tech ---------- */
.verticals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vertical {
  position: relative; background: var(--bg);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 22px; min-height: 180px; transition: background .35s;
}
.vertical:hover { background: var(--bg-2); }
.vertical__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; transition: border-color .3s; }
.vertical__icon svg, .module__icon svg, .svc__icon svg, .hw__icon svg, .d-logo--icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vertical:hover .vertical__icon { border-color: var(--line-2); }
.vertical__tag { font-family: var(--f-disp); font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.vertical__name { font-size: .86rem; color: var(--dim); line-height: 1.45; }
.vertical__foot { margin-top: auto; padding-top: 14px; font-family: var(--f-disp); font-size: .8rem; color: var(--dim); transition: color .25s; }
.vertical__foot i { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.vertical:hover .vertical__foot { color: var(--fg); }
.vertical:hover .vertical__foot i { transform: translateX(4px); }

/* Drawer: soluciones por marca, clientes, volver */
.d-logo--icon { color: var(--c, var(--fg)); }
.d-sols { display: grid; gap: 8px; margin-bottom: 26px; }
.d-sols button { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 16px; border-radius: 10px; border: 1px solid var(--line); border-left: 2px solid var(--c); background: var(--bg); text-align: left; transition: border-color .25s; }
.d-sols button:hover { border-color: var(--line-2); border-left-color: var(--c); }
.d-sols b { font-family: var(--f-disp); font-weight: 500; color: var(--c); font-size: .9rem; }
.d-sols span { font-size: .92rem; }
.d-clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.d-client { text-align: left; }
.d-client img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); filter: grayscale(.7); transition: filter .4s, border-color .3s; }
.d-client:hover img { filter: none; border-color: var(--line-2); }
.d-client span { display: block; margin-top: 6px; font-size: .8rem; color: var(--dim); line-height: 1.3; }
.d-back { display: inline-flex; margin-bottom: 14px; font-family: var(--f-disp); font-size: .82rem; color: var(--dim); }
.d-back:hover { color: var(--fg); }

/* ---------- Módulos (BIMS) ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module { position: relative; background: var(--bg); display: flex; flex-direction: column; align-items: flex-start; padding: 22px; transition: background .35s; }
.module::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.module:hover { background: var(--bg-2); }
.module:hover::after { transform: scaleX(1); }
.module:hover .brand__plus { transform: rotate(90deg); background: var(--fg); color: var(--bg); border-color: var(--fg); }
.module__top { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.module__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.module__tag { font-family: var(--f-disp); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.module__name { font-family: var(--f-disp); font-size: 1.25rem; font-weight: 500; margin: 4px 0 6px; }
.module__text { font-size: .9rem; color: var(--dim); margin-bottom: 14px; }
.module__list { display: grid; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }
.module__list span { position: relative; padding-left: 16px; font-size: .84rem; }
.module__list span::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* Esquema "todo conectado" */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.flow__step { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.flow__step b { font-family: var(--f-disp); font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.flow__arrow { color: var(--dim); }

/* ---------- Servicios (grilla genérica) ---------- */
.svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svcs--4 { grid-template-columns: repeat(4, 1fr); }
.svc { background: var(--bg); padding: 22px; transition: background .35s; }
.svc:hover { background: var(--bg-2); }
.svc__icon, .hw__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c, var(--fg)); background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.svc h3 { font-size: 1.08rem; margin-bottom: 6px; }
.svc p { font-size: .88rem; color: var(--dim); }

/* Bloque de marca dentro de soluciones.html */
.block-head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.block-head__logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); flex-shrink: 0; color: var(--c); }
.block-head__logo img { width: 32px; height: 32px; object-fit: contain; }
.block-head__logo svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.block-head .label { margin-bottom: 4px; color: var(--c); }
.block-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split__text { color: var(--dim); font-size: 1.02rem; }
.split__text p + p { margin-top: 12px; }
.checks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 6px; border-left: 1.5px solid var(--c, var(--fg)); border-bottom: 1.5px solid var(--c, var(--fg)); transform: rotate(-45deg); }

/* Métricas (SI Agency) */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.metrics li { padding: 20px 20px 0 0; }
.metrics li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.metrics b { font-family: var(--f-disp); font-weight: 500; font-size: .78rem; letter-spacing: .1em; color: var(--c, var(--dim)); }
.metrics h3 { font-size: 1.08rem; margin: 8px 0 6px; }
.metrics p { font-size: .88rem; color: var(--dim); }

/* Calculadora de remarketing */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); align-items: center; }
.calc__field { display: grid; gap: 8px; margin-bottom: 18px; }
.calc__field label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--dim); }
.calc__field output { font-family: var(--f-disp); color: var(--fg); font-size: 1rem; }
.calc input[type="range"] { width: 100%; accent-color: #e8007d; }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc__result div { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.calc__result b { display: block; font-family: var(--f-disp); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; }
.calc__result span { font-size: .84rem; color: var(--dim); }
.calc__result .is-hot b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.calc__note { grid-column: 1 / -1; font-size: .82rem; color: var(--dim); }

/* ---------- Responsive de lo nuevo ---------- */
@media (max-width: 1100px) {
  .top__nav a { padding: 7px 10px; }
}
@media (max-width: 1024px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero__visual { max-width: 240px; }
  .verticals, .modules, .svcs, .svcs--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .calc { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics li:nth-child(3) { padding-left: 0; border-left: 0; }
  .metrics li:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .top__nav { display: none; }
}
@media (max-width: 560px) {
  .verticals, .modules, .svcs, .svcs--4 { grid-template-columns: 1fr; }
  .vertical { min-height: 0; }
  .metrics { grid-template-columns: 1fr; }
  .metrics li, .metrics li + li { padding-left: 0; border-left: 0; }
  .metrics li + li { margin-top: 16px; border-top: 1px solid var(--line); }
  .d-clients { grid-template-columns: repeat(2, 1fr); }
  .calc__result { grid-template-columns: 1fr; }
}

/* Menos aire entre el hero de las páginas internas y la primera sección */
.page-hero + .section { padding-top: clamp(32px, 5vw, 56px); }
