/* Futudia Studio — estilos del sitio público.
   Las secciones "d-" reproducen el SVG (mesa 1290 = iPhone a 3x). 1 unidad SVG = var(--k).
   En celular la composición ocupa todo el ancho; en escritorio se centra hasta 820px. */

@font-face { font-family: Anton; src: url(../fonts/anton.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url(../fonts/montserrat.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --cw: min(100vw, 820px);
  --k: calc(var(--cw) / 1290);
  --ink: #050816;
  --navy: #020c18;
  --cyan: #00ffff;
  --violet: #8b3dff;
  --purple: #7b02fd;
  --dark: #202020;
  --grad: linear-gradient(32deg, #871cfd, #c5a0fe);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --pad: max(20px, calc(90 * var(--k)));
  --hh: clamp(56px, calc(187 * var(--k)), 72px);
  interpolate-size: allow-keywords;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); color: #fff; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hh); }
body { margin: 0; font-family: Montserrat, system-ui, sans-serif; font-weight: 500; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 700; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }

/* ---------- Titulares por líneas ---------- */
.hl { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: -.05em; }
.hl .ln { display: block; position: relative; line-height: .847; white-space: nowrap; width: fit-content; --dc: #fff; }
.al-c { text-align: center; }
.al-c .ln { margin-inline: auto; }
.c-w { color: #fff; } .c-c { color: var(--cyan); } .c-d { color: var(--dark); --dc: var(--dark); } .c-k { color: #000; --dc: #000; }
.dots-r::after, .dots-l::before {
  content: ""; position: absolute; top: calc(100% - .446em);
  width: calc(var(--dn) * 45.9 * var(--k)); height: calc(20 * var(--k));
  background: radial-gradient(circle closest-side, var(--dc) 94%, transparent) 0 0 / calc(45.9 * var(--k)) 100% repeat-x;
  translate: 0 -50%;
  transition: clip-path 700ms var(--ease-out) 250ms;
}
.dots-r::after { left: calc(100% + var(--dg) - 12.95 * var(--k)); }
.dots-l::before { right: calc(100% + var(--dg) - 12.95 * var(--k)); }
.js .rv:not(.in) .dots-r::after, .js .rv.hl:not(.in) .dots-r::after { clip-path: inset(0 100% 0 0); }
.js .rv:not(.in) .dots-l::before, .js .rv.hl:not(.in) .dots-l::before { clip-path: inset(0 0 0 100%); }

/* ---------- Secciones de diseño ---------- */
.d-sec { position: relative; overflow: clip; background: var(--navy); }
.d-in { position: relative; width: var(--cw); height: calc(var(--h) * var(--k)); margin: 0 auto; }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sides { display: none; }
.ab { position: absolute; margin: 0; }
.ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ov-glow { mix-blend-mode: lighten; }
.d-featured, .d-beforeafter { background: #fff; }
.d-transform { background: #fff; }

.t-tag { font-size: calc(36.93 * var(--k)); letter-spacing: .1em; line-height: .717; text-align: center; }
/* Párrafo del diseño: mismo tamaño que el SVG, con un mínimo legible de 11px. */
.t-para { font-size: max(11px, calc(23.34 * var(--k))); letter-spacing: .1em; line-height: 1.2; text-align: center; }
.btn-pill {
  display: grid; place-items: center; border-radius: calc(24.56 * var(--k));
  background: var(--grad); color: #fff; text-decoration: none;
  font-size: calc(36.61 * var(--k)); letter-spacing: -.05em; line-height: 1;
  transition: transform 160ms var(--ease-out), filter 200ms ease;
}
.btn-pill::before { content: ""; position: absolute; inset: -12px; }
.btn-pill:active { transform: scale(.97); }

/* ---------- Titulares letra por letra ----------
   site.js divide cada línea en letras (.ch). Entran escalonadas: 24ms entre letras, 110ms entre líneas. */
.js .d-hero .hl:not(.split) { opacity: 0; }
.js .hl.split.rv { opacity: 1; transform: none; transition: none; }
.hl .lw { display: inline; }
.hl.split .ch {
  display: inline-block; opacity: 0;
  transform: translateY(.6em) rotate(8deg); transform-origin: 0 100%;
  transition: opacity 450ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--d0, 0ms) + var(--l, 0) * 110ms + var(--c, 0) * 24ms);
}
.hl.split .c-c .ch { transform: translateY(.35em) scale(.55); transform-origin: 50% 100%; }
.hl.split.in .ch { opacity: 1; transform: none; }
.d-hero .hl.split { --d0: 150ms; }
.dots-r::after, .dots-l::before { transition-delay: 700ms; }

/* ---------- Portada: anillos que giran, brillo que respira, botón que flota ---------- */
.rings { pointer-events: none; will-change: translate; }
.rings img { width: 100%; height: 100%; max-width: none; animation: spin 110s linear infinite; will-change: transform; }
.rings.r-rev img { animation-duration: 140s; animation-direction: reverse; }
.d-hero .rings { animation: ringsIn 1800ms var(--ease-out) both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ringsIn { from { opacity: 0; scale: .9; } }
.ov-glow { transform-origin: 78% 62%; animation: glowIn 1200ms ease-out both 200ms, breathe 7s ease-in-out 1.4s infinite alternate; }
@keyframes glowIn { from { opacity: 0; } }
@keyframes breathe { to { scale: 1.07; opacity: .85; } }
.btn-pill { gap: calc(10 * var(--k)); grid-auto-flow: column; }
.btn-pill .chev { width: calc(30 * var(--k)); height: calc(30 * var(--k)); }
.btn-pill.in { animation: float 3.4s ease-in-out 900ms infinite alternate; }
.btn-pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 calc(40 * var(--k)) rgba(173, 112, 252, .75); opacity: .35; animation: halo 3.4s ease-in-out 900ms infinite alternate; pointer-events: none; }
@keyframes float { from { translate: 0 calc(-7 * var(--k)); } to { translate: 0 calc(9 * var(--k)); } }
@keyframes halo { to { opacity: .9; } }

/* Equipo */
.team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm { position: relative; min-height: calc(530 * var(--k)); padding-top: calc(398.26 * var(--k)); display: flex; flex-direction: column; align-items: center; }
.tm-ring { position: absolute; left: calc(-33 * var(--k)); top: 0; width: calc(452 * var(--k)); height: calc(452 * var(--k)); max-width: none; mix-blend-mode: screen; }
.tm-photo, .tm-glass { position: absolute; left: calc(53 * var(--k)); top: calc(86 * var(--k)); width: calc(280 * var(--k)); height: calc(280 * var(--k)); border-radius: 50%; object-fit: cover; }
.tm-glass { mix-blend-mode: screen; pointer-events: none; }
.tm-name, .tm-role { position: relative; text-align: center; }
.tm-name { align-self: flex-start; left: 50%; translate: -50% 0; width: max-content; font: 400 calc(41.5 * var(--k)) / .847 Anton, Impact, sans-serif; letter-spacing: -.05em; white-space: nowrap; }
/* Cargos: legibles en celular (mín. 8px); pueden ocupar dos líneas. */
.tm-role { margin-top: calc(14 * var(--k)); max-width: calc(100% + 16 * var(--k)); font-size: max(8px, calc(11.79 * var(--k))); line-height: 1.25; letter-spacing: .12em; color: var(--cyan); text-wrap: balance; }
.tools { display: flex; justify-content: center; gap: max(3px, calc(8 * var(--k))); margin-top: calc(16 * var(--k)); list-style: none; padding: 0; white-space: nowrap; }
.tools li { display: flex; flex-direction: column; align-items: center; }
.tools img { width: max(18px, calc(47 * var(--k))); height: max(18px, calc(47 * var(--k))); }
.tools span { font-size: max(6px, calc(9.03 * var(--k))); line-height: 1; margin-top: 3px; }
.js .tm-photo.rv { transform: scale(.94); transition-delay: calc(var(--i, 0) * 80ms); }
.tm:nth-child(2) .rv { --i: 1; } .tm:nth-child(3) .rv { --i: 2; }

/* Servicios */
.svc-img { display: block; overflow: hidden; transition: transform 160ms var(--ease-out); }
.svc-img:active, .tr-img:active { transform: scale(.97); }
.tr-img { transition: transform 160ms var(--ease-out); }
.svc-img img, .tr-img img, .ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; }
.tr-img img { object-fit: contain; }
.svc-t, .tr-t, .ba-t { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: -.05em; line-height: .847; white-space: nowrap; }
.svc-t a, .tr-t a { color: #fff; text-decoration: none; }
.svc-t a::after, .tr-t a::after { content: ""; position: absolute; inset: -10px; }
/* Subtítulos anclados a su línea base: al crecer, suben sin chocar con la foto. */
.svc-s, .tr-s, .ba-s { translate: 0 -100%; }
.svc-s { font-size: max(7.5px, calc(16.83 * var(--k))); letter-spacing: .1em; line-height: .717; white-space: nowrap; }
.tr-t { font-size: calc(62.28 * var(--k)); text-align: center; }
.tr-s, .ba-s { font-size: max(7.5px, calc(15.97 * var(--k))); letter-spacing: .1em; line-height: .717; text-align: center; }
.tr-s { color: var(--cyan); }

/* Caso destacado */
.t-case { font-size: calc(49.94 * var(--k)); letter-spacing: -.05em; line-height: .717; white-space: nowrap; }
.vcard { border-radius: calc(79.88 * var(--k)); background: #202020; overflow: hidden; }
.vbox { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; background: #202020; cursor: pointer; overflow: hidden; border-radius: inherit; }
.vbox .v-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vbox.is-empty { cursor: default; }
.play-ic { position: relative; width: calc(160 * var(--k)); height: calc(195 * var(--k)); translate: calc(21 * var(--k)) calc(4.8 * var(--k)); transition: transform 160ms var(--ease-out); }
.vbox:not(.is-empty):active .play-ic { transform: scale(.92); }
.vbox video, .vbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }

/* Antes / después */
.ba-t, .ba-s { color: #000; z-index: 2; }
.ba-t { font-size: calc(62.28 * var(--k)); text-align: center; }
/* El barrido se aplica a los hijos (no al contenedor observado) para que el navegador detecte cuándo aparece. */
.js .wipe > * { clip-path: inset(0 calc(100% + 60vw) 0 -60vw); transition: clip-path 1100ms var(--ease-in-out); }
.js .wipe.in > * { clip-path: inset(0 -60vw); }

/* ---------- Aparición al hacer scroll ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .g-it a:hover img { transform: scale(1.06); transition-duration: 600ms; }
  .g-it a:hover .g-cap { opacity: 1; transform: none; }
  .step:hover .step-ic { transform: translateY(-3px) rotate(-6deg); transition-delay: 0ms; transition-duration: 300ms; }
  .btn-pill:hover, .btn:hover { filter: brightness(1.08); }
  .svc-img img, .pf-btn img { transition: transform 500ms var(--ease-out); }
  .svc-img:hover img, .pf-btn:hover img { transform: scale(1.04); }
  .svc-t a:hover, .tr-t a:hover { color: var(--cyan); }
}

/* ---------- Encabezado y menú ---------- */
.site-h { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hh); transition: background-color 200ms ease, backdrop-filter 200ms ease; }
.site-h.is-solid, .menu-open .site-h { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.h-in { position: relative; height: 100%; width: var(--cw); margin: 0 auto; padding-top: 10px; display: flex; align-items: center; justify-content: center; }
.h-logo { display: block; width: clamp(85px, calc(255 * var(--k)), 120px); }
.h-logo img { width: 100%; height: auto; }
.h-burger, .h-lang { position: absolute; top: calc(50% + 5px); translate: 0 -50%; display: grid; place-items: center; min-width: 44px; min-height: 44px; background: none; border: 0; cursor: pointer; text-decoration: none; }
.h-burger { right: max(10px, calc(64 * var(--k))); gap: calc(4 * var(--k)); align-content: center; }
.h-burger span { display: block; width: clamp(26px, calc(83 * var(--k)), 34px); height: clamp(6px, calc(18 * var(--k)), 7px); border-radius: 99px; background: #fff; transition: transform 200ms var(--ease-out); }
.menu-open .h-burger span:first-child { transform: translateY(55%) rotate(45deg); }
.menu-open .h-burger span:last-child { transform: translateY(-55%) rotate(-45deg); }
.h-lang { left: max(10px, calc(64 * var(--k))); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.h-lang::before { content: ""; position: absolute; inset: 9px 4px; border: 1px solid rgba(255,255,255,.45); border-radius: 99px; transition: border-color 200ms ease; }
.h-lang:hover::before { border-color: var(--cyan); }
.menu { position: fixed; inset: 0; z-index: 55; display: grid; align-content: center; justify-items: center; gap: 32px; padding: calc(var(--hh) + 24px) 24px 40px; background: rgba(5, 8, 22, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; transition: opacity 200ms var(--ease-out); }
.menu.open { opacity: 1; }
.menu ul { list-style: none; padding: 0; text-align: center; }
.menu li { opacity: 0; transform: translateY(12px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.menu.open li { opacity: 1; transform: none; }
.menu nav a { display: block; padding: 6px 12px; font: 400 clamp(40px, 12vw, 72px) / 1.05 Anton, Impact, sans-serif; letter-spacing: -.03em; text-decoration: none; }
.menu nav a[aria-current="page"] { color: var(--cyan); }
.menu-foot { font-size: 14px; opacity: .8; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 700 15px/1.2 Montserrat, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), filter 200ms ease; }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn .ic { width: 22px; height: 22px; flex: none; }
.th-purple .btn { background: #fff; color: #4a00b4; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Secciones de flujo ---------- */
.f-sec { position: relative; overflow-x: clip; padding: max(56px, calc(150 * var(--k))) 0; }
.f-in { width: min(100%, 1100px); margin: 0 auto; padding-inline: var(--pad); }
.th-dark { background: radial-gradient(120% 60% at 80% 0%, rgba(123, 2, 253, .28), transparent 60%), var(--navy); }
.th-purple { background: linear-gradient(180deg, #9a4dff, var(--purple)); }
.th-light { background: #fff; color: var(--dark); }
.th-light .c-w { color: var(--dark); --dc: var(--dark); }
.f-sec .hl { margin-bottom: max(24px, calc(70 * var(--k))); }
.lead { max-width: 58ch; margin: calc(-30 * var(--k)) auto max(28px, calc(70 * var(--k))); text-align: center; font-size: max(15px, calc(34 * var(--k))); line-height: 1.55; opacity: .88; }
.f-cta .f-in, .f-pagehead { text-align: center; }
.f-cta .rv:last-child { display: flex; justify-content: center; }
.t-h { font: 400 clamp(32px, calc(110 * var(--k)), 64px) / 1 Anton, Impact, sans-serif; letter-spacing: -.03em; margin-bottom: 24px; }
.prose { font-size: 16px; line-height: 1.7; max-width: 72ch; }
.prose h2 { font: 400 26px/1.1 Anton, Impact, sans-serif; letter-spacing: -.02em; margin: 36px 0 10px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--cyan); }
.th-light .prose a { color: #5a00d6; }

/* Encabezado de páginas internas */
.f-pagehead { display: grid; place-items: center; min-height: clamp(380px, calc(1250 * var(--k)), 620px); overflow: hidden; padding: 0; }
.ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ph-c { position: relative; padding: calc(var(--hh) + 40px) var(--pad) 48px; }
.ph-c .hl { margin-bottom: 22px; }
.ph-c .lead { margin: 0 auto; }

/* Proceso */
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.step { position: relative; overflow: hidden; padding: 26px 24px 24px; border-radius: 26px; background: linear-gradient(160deg, rgba(139,61,255,.16), rgba(255,255,255,.03) 55%); border: 1px solid rgba(255,255,255,.12); }
.step-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #fff; background: linear-gradient(140deg, #9a4dff, #ff3cf2); box-shadow: 0 10px 30px rgba(139, 61, 255, .45), inset 0 1px 0 rgba(255,255,255,.35); transition: transform 700ms var(--ease-out) 150ms; }
.step:nth-child(2n) .step-ic { background: linear-gradient(140deg, #00c8d8, #7b02fd); box-shadow: 0 10px 30px rgba(0, 200, 216, .35), inset 0 1px 0 rgba(255,255,255,.35); }
.step-ic svg { width: 32px; height: 32px; }
.js .step:not(.in) .step-ic { transform: scale(.6) rotate(-18deg); }
.step-n { position: absolute; right: 18px; top: 8px; font: 400 92px/1 Anton, Impact, sans-serif; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); }
.step h3 { font: 400 28px/1.1 Anton, Impact, sans-serif; letter-spacing: -.02em; margin: 18px 0 8px; }
.step p { font-size: 15px; line-height: 1.6; opacity: .85; }

/* Testimonios */
.quotes { list-style: none; padding: 4px var(--pad) 12px; margin: 0 calc(-1 * var(--pad)); display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: center; }
.quote figure { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 28px 24px; border-radius: 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.quote blockquote p { font-size: 16px; line-height: 1.6; }
.quote blockquote::before { content: "“"; display: block; font: 400 64px/.6 Anton, Impact, sans-serif; color: var(--cyan); margin-bottom: 8px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.av { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: linear-gradient(140deg, #9a4dff, #00c8d8); padding: 2px; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av.is-empty { background: rgba(255,255,255,.05); border: 1.5px dashed rgba(255,255,255,.35); padding: 0; color: rgba(255,255,255,.45); }
.av-empty { width: 30px; height: 30px; }
.who { display: grid; gap: 2px; }
.quote figcaption strong { display: block; font: 400 22px/1 Anton, Impact, sans-serif; letter-spacing: -.02em; color: var(--cyan); }
.quote figcaption span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; }
.qa { border-bottom: 1px solid rgba(255,255,255,.16); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; min-height: 48px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa i { position: relative; flex: none; width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.qa i::before, .qa i::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 2px; background: var(--cyan); }
.qa i::after { transform: rotate(90deg); }
.qa[open] i { transform: rotate(45deg); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size 250ms var(--ease-out), content-visibility 250ms allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa-a p { padding: 0 0 20px; font-size: 15px; line-height: 1.65; opacity: .85; }

/* Contacto */
.c-grid { display: grid; gap: 36px; }
.cform { display: grid; gap: 16px; }
.fld { display: grid; gap: 7px; }
.fld label { font-size: 14px; font-weight: 600; }
.req { color: var(--cyan); }
.opt { font-weight: 500; opacity: .65; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font: 500 16px/1.4 Montserrat, system-ui, sans-serif; transition: border-color 160ms ease, box-shadow 160ms ease; }
.fld textarea { resize: vertical; min-height: 130px; }
.fld select option { background: var(--navy); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 255, 255, .25); }
.fld [aria-invalid="true"] { border-color: #ff7a99; }
.fld .err { font-size: 13px; color: #ff9db3; }
.chk { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.chk input { width: 22px; height: 22px; min-height: 0; margin-top: 1px; accent-color: var(--violet); }
.chk label { font-weight: 500; line-height: 1.45; }
.chk a { color: var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fmsg { font-size: 15px; line-height: 1.5; }
.fmsg.ok { color: var(--cyan); }
.fmsg.bad { color: #ff9db3; }
.cinfo { list-style: none; padding: 0; display: grid; gap: 18px; align-content: start; }
.cinfo li { display: grid; gap: 4px; font-size: 16px; }
.cinfo span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.cinfo a { text-underline-offset: 4px; }

/* Portafolio */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filters button { min-height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.filters button:active { transform: scale(.97); }
.filters button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.pgrid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 12px; }
.pf.wide { grid-column: span 2; }
.pf.out { display: none; }
.pgrid.filtering .pf { transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
@starting-style { .pgrid.filtering .pf { opacity: 0; transform: scale(.96); } }
.pf-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: #11162b; cursor: zoom-in; }
.pf.wide .pf-btn { aspect-ratio: 16 / 10; }
.pf-btn img { width: 100%; height: 100%; object-fit: cover; }
.pf-play, .vbox.wide .play-ic { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; translate: -50% -50%; border-radius: 50%; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pf-play::after { content: ""; position: absolute; left: 24px; top: 19px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.pf-cap { padding: 10px 4px 6px; }
.pf-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.pf-cap h3 { font: 400 20px/1.1 Anton, Impact, sans-serif; letter-spacing: -.02em; margin: 4px 0 2px; }
.pf-cap p { font-size: 13px; opacity: .7; }

/* Galería en grilla (bento): cada foto entra con un barrido y un zoom suave. */
.bento { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: max(120px, calc(380 * var(--k))); grid-auto-flow: dense; gap: 10px; }
.g-it a { position: relative; display: block; height: 100%; border-radius: 20px; overflow: hidden; background: #11162b; }
.g-it img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1400ms var(--ease-out); }
.g-it.in img { transform: none; }
/* El recorte va en el enlace interno: si fuera en el <li>, el navegador lo daría por invisible y nunca se activaría. */
.js .g-it.rv { opacity: 1; transform: none; transition: none; }
.js .g-it.rv a { clip-path: inset(100% 0 0 0 round 20px); transition: clip-path 1000ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .g-it.rv.in a { clip-path: inset(0 0 0 0 round 20px); }
.g-cap { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(3,5,15,.85)); font-size: 12px; font-weight: 600; letter-spacing: .04em; opacity: 0; transform: translateY(6px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.g-it a:focus-visible .g-cap { opacity: 1; transform: none; }
.g1 { grid-column: span 2; grid-row: span 2; }
.g2 { grid-row: span 2; }
.g5, .g8 { grid-column: span 2; }
.g-more { display: flex; justify-content: center; margin-top: 28px; }

/* Videos generales */
.vbox.wide { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; height: auto; }
.vbox.wide .play-ic { padding: 17px 16px 17px 20px; width: 64px; height: 64px; }

/* Casos de éxito */
.f-case article { max-width: 1000px; margin: 0 auto; display: grid; gap: 28px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 99px; background: rgba(0,255,255,.12); color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.th-purple .chip { background: rgba(255,255,255,.18); color: #fff; }
.case-client { margin-top: 14px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.case-title { font: 400 clamp(34px, calc(118 * var(--k)), 64px) / 1 Anton, Impact, sans-serif; letter-spacing: -.03em; margin-top: 6px; }
.case-img img { width: 100%; border-radius: 24px; }
.case-cols { display: grid; gap: 22px; }
.case-cols h3 { font: 400 22px/1 Anton, Impact, sans-serif; color: var(--cyan); margin-bottom: 8px; }
.th-purple .case-cols h3 { color: #fff; }
.case-cols p { font-size: 15px; line-height: 1.65; opacity: .88; }
.case-gal { list-style: none; padding: 0 var(--pad) 8px; margin: 0 calc(-1 * var(--pad)); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.case-gal::-webkit-scrollbar { display: none; }
.case-gal li { flex: none; scroll-snap-align: start; }
.case-gal .pf-btn { width: auto; height: 220px; aspect-ratio: auto; }
.case-gal img { height: 220px; width: auto; }
.case-q blockquote p { font-size: 20px; line-height: 1.45; font-weight: 600; }
.case-q figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }

/* Comparador antes/después */
.cmp { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #0b1020; touch-action: pan-y; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cmp-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); background: #0b1020; }
.cmp::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; translate: -1px 0; background: #fff; pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: var(--p); width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); pointer-events: none; z-index: 2; }
.cmp-knob::before, .cmp-knob::after { content: ""; position: absolute; top: 17px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.cmp-knob::before { left: 10px; border-right: 8px solid var(--ink); }
.cmp-knob::after { right: 10px; border-left: 8px solid var(--ink); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.cmp input:focus-visible + .cmp-knob { outline: 3px solid var(--cyan); outline-offset: 3px; }
.cmp-tag { position: absolute; top: 14px; z-index: 1; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.55); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cmp-tag.l { left: 14px; } .cmp-tag.r { right: 14px; }

/* Imagen + texto */
.it-grid { display: grid; gap: 28px; align-items: center; }
.it-img img { border-radius: 24px; width: 100%; }

/* Legales */
.f-legal { padding-top: calc(var(--hh) + 48px); }
.f-legal .t-h { color: var(--dark); }
.upd { font-size: 14px; opacity: .65; margin-bottom: 28px; }
.f-legal .prose { color: #2b2b2b; }
.pg-privacy .site-h, .pg-terms .site-h, .pg-cookies .site-h, .pg-accessibility .site-h { background: rgba(0,0,0,.85); }

/* Pie de página */
.site-f { background: #02060f; border-top: 1px solid rgba(255,255,255,.08); padding: 56px 0 110px; }
.site-f .f-in { display: grid; gap: 26px; justify-items: center; text-align: center; }
.f-logo { width: 150px; }
.f-txt { max-width: 46ch; font-size: 14px; line-height: 1.6; opacity: .78; }
.f-cols { display: grid; gap: 22px; }
.f-cols ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.f-cols nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-weight: 700; }
.site-f a { text-decoration: none; transition: color 160ms ease; }
.site-f a:hover { color: var(--cyan); }

.site-f .f-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; opacity: .75; }
.f-copy { font-size: 12px; opacity: .55; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; 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,.35); transition: transform 160ms var(--ease-out); animation: pop 500ms var(--ease-out) both 1200ms; }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:active { transform: scale(.94); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.9); } }

/* Visor (lightbox) */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 56px 12px; background: rgba(3, 5, 15, .92); opacity: 0; transition: opacity 200ms var(--ease-out); }
.lb.open { opacity: 1; }
.lb-body { max-width: min(1200px, 100%); max-height: 100%; transform: scale(.96); transition: transform 220ms var(--ease-out); }
.lb.open .lb-body { transform: none; }
.lb-body img, .lb-body video, .lb-body iframe { max-width: 100%; max-height: calc(100dvh - 112px); width: auto; border-radius: 14px; }
.lb-body iframe { width: min(1100px, 92vw); aspect-ratio: 16 / 9; height: auto; border: 0; }
.lb-x { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 30px; line-height: 1; cursor: pointer; }

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cform { grid-template-columns: 1fr 1fr; }
  .cform .full { grid-column: 1 / -1; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 821px) {
  /* La composición cabe en la pantalla (el botón "Ver más" se ve al entrar) y los lados se rellenan
     estirando el borde del propio fondo, en espejo, para que no queden franjas. */
  :root { --cw: min(860px, calc(100svh * .86)); }
  .sides { display: block; position: absolute; inset: 0; pointer-events: none; }
  .sides::before, .sides::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc((100vw - var(--cw)) / 2 + 2px); background-image: var(--img); background-repeat: no-repeat; background-size: calc((100vw - var(--cw)) * 21.5) 100%; transform: scaleX(-1); }
  .sides::before { right: calc(100% - 1px); background-position: left top; }
  .sides::after { left: calc(100% - 1px); background-position: right top; }
  .plate.has-w { left: calc(-700 * var(--k)); width: calc(2690 * var(--k)); max-width: none; }
  .sides:has(+ picture .has-w)::before { right: calc(100% + 700 * var(--k) - 1px); }
  .sides:has(+ picture .has-w)::after { left: calc(100% + 700 * var(--k) - 1px); }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
  .g6, .g7 { grid-column: span 2; }
  .h-in { width: 100%; padding-inline: 32px; }
  .h-burger { right: 24px; } .h-lang { left: 24px; }
  .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .c-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .case-cols { grid-template-columns: repeat(3, 1fr); }
  .it-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .it-grid.rev .it-img { order: 2; }
  .f-cols { grid-template-columns: 1fr 1fr; gap: 60px; text-align: left; }
  .f-cols nav ul { justify-content: flex-start; flex-direction: column; }
  .pgrid { gap: 18px; }
  .cmp { aspect-ratio: 16 / 10; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Movimiento reducido: sin desplazamientos, solo fundidos suaves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { transform: none; transition: opacity 400ms ease; }
  .js .tm-photo.rv { transform: none; }
  .d-hero .hl .ln { animation: fade 400ms ease both; }
  .wa-float { animation: fade 400ms ease both 600ms; }
  .js .wipe > * { clip-path: none; }
  .js .wipe { opacity: 0; transition: opacity 500ms ease; }
  .js .wipe.in { opacity: 1; }
  .menu li, .lb-body { transform: none; }
  .dots-r::after, .dots-l::before { transition: none; }
  .js .rv:not(.in) .dots-r::after, .js .rv:not(.in) .dots-l::before { clip-path: none; }
  .svc-img:hover img, .pf-btn:hover img { transform: none; }
  .hl.split .ch, .hl.split .c-c .ch { transform: none; transition: opacity 400ms ease; transition-delay: calc(var(--l, 0) * 80ms); }
  .rings img, .rings, .ov-glow, .btn-pill.in, .btn-pill::after { animation: none !important; }
  .js .step:not(.in) .step-ic { transform: none; }
  .g-it img { transform: none; }
  .js .g-it.rv a { clip-path: none; }
  .js .g-it.rv { opacity: 0; transition: opacity 500ms ease; }
  .js .g-it.rv.in { opacity: 1; }
}
@keyframes fade { from { opacity: 0; } }

@media print {
  .site-h, .menu, .wa-float, .lb, .sides { display: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
