/* ==========================================================================
   Todo Color México — estilos del proyecto (v3 · "Laboratorio de tinta")
   Concepto: el color es la materia prima. Un campo de tinta viva (WebGL) sobre negro,
   tipografía monumental, escenas que cambian de espacio al hacer scroll y fotografía real.
   Arquetipo: webgl-immersive-lab (+ kinetic-type-manifesto) · motion: dramatic
   ========================================================================== */
:root {
  --bg: #06060a;
  --surface: #0e0e15;
  --surface-2: #171722;
  --ink: #f2efe8;
  --muted: rgba(242, 239, 232, 0.64);
  --accent: #ffe500;
  --accent-2: #ff3b1d;
  --on-accent: #08080a;
  --blue: #3250ff;
  --green: #00d98b;
  --paper: #f2efe8;
  --line: rgba(242, 239, 232, 0.16);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;

  --display-case: uppercase;
  --display-tracking: -0.05em;
  --display-leading: 0.88;
  --display-weight: 700;
  --radius: 4px;
  --radius-lg: 22px;

  --dur: 1.2s;
  --stagger: 0.045s;
  --reveal-distance: 64px;
  --header-h: 76px;
  --maxw: 1520px;
}

html { scroll-padding-top: calc(var(--header-h) + 12px); background: var(--bg); }
body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; text-wrap: balance; }
::selection { background: var(--accent); color: var(--on-accent); }
.light { background: var(--paper); color: #0a0a0c; --line: rgba(10, 10, 12, 0.18); --muted: rgba(10, 10, 12, 0.62); --ink: #0a0a0c; }

.section { position: relative; padding-block: clamp(88px, 12vw, 190px); }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 0.9em; font-weight: 400; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.light .eyebrow::before { background: #0a0a0c; }
.sw { display: inline-block; width: 0.62em; height: 0.62em; background: var(--c, var(--accent)); flex: none; border-radius: 1px; }
.sw--yellow { --c: var(--accent); } .sw--red { --c: var(--accent-2); } .sw--green { --c: var(--green); } .sw--blue { --c: var(--blue); } .sw--ink { --c: var(--ink); }
.h2 { font-size: clamp(2.5rem, 0.8rem + 6vw, 7.4rem); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; max-width: 15ch; margin: 18px 0 0; }
.h2 em { font-style: normal; color: var(--accent); }
.light .h2 em { color: #0a0a0c; -webkit-text-stroke: 0; background: linear-gradient(var(--accent), var(--accent)) 0 88% / 100% 0.28em no-repeat; }
.lead { font-size: clamp(1.1rem, 1rem + 0.55vw, 1.45rem); line-height: 1.45; max-width: 44ch; color: var(--muted); margin: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr); gap: 28px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 96px); }
.sec-head > .eyebrow { grid-column: 1 / -1; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Botones y enlaces ---------- */
.btn { --b: var(--accent); --f: var(--on-accent); --s: var(--ink); --sf: var(--on-accent); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.8em; padding: 1.1em 1.7em; border-radius: 999px; background: var(--b); color: var(--f); font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; line-height: 1.1; text-align: left; overflow: hidden; isolation: isolate; transition: color 0.45s var(--ease-out), transform 0.4s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--s); transform: translateY(101%); border-radius: inherit; transition: transform 0.6s var(--ease-out); }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--sf); }
.btn__arrow { transition: transform 0.5s var(--ease-out); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(5px) rotate(-45deg); }
.btn--line { --b: transparent; --f: var(--ink); --s: var(--ink); --sf: var(--on-accent); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.5); }
.btn--dark { --b: #0a0a0c; --f: var(--paper); --s: var(--accent); --sf: #0a0a0c; }
.btn--line-d { --b: transparent; --f: #0a0a0c; --s: #0a0a0c; --sf: var(--accent); box-shadow: inset 0 0 0 1px rgba(10, 10, 12, 0.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size 0.5s var(--ease-out); font-weight: 600; }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header { color: var(--ink); }
.site-header.is-scrolled { background: rgba(6, 6, 10, 0.72); border-bottom: 1px solid var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 36px); }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; }
.brand img { width: 54px; height: auto; transition: transform 0.7s var(--ease-spring); }
.brand:hover img { transform: translateY(-4px) rotate(-8deg) scale(1.06); }
.brand__t { display: grid; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.brand__t small { font-family: var(--font-mono); font-weight: 400; font-size: 0.58rem; letter-spacing: 0.4em; margin-top: 4px; color: var(--accent); }
.site-nav { display: flex; gap: clamp(16px, 2.2vw, 36px); font-weight: 500; font-size: 0.95rem; }
.site-nav a { padding: 10px 0; color: rgba(242, 239, 232, 0.8); transition: color 0.3s; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: none; }
.ae-burger { display: none; color: var(--ink); border: 1px solid rgba(242, 239, 232, 0.4); width: 48px; height: 48px; background: rgba(6, 6, 10, 0.4); }
.menu-open .ae-burger { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 980px) { .site-nav, .site-header__cta { display: none; } .ae-burger { display: grid; } }
@media (max-width: 420px) { .brand img { width: 44px; } .brand__t { font-size: 1.02rem; } }
a.brand[aria-current], a.btn[aria-current] { color: inherit; }
a.btn:not(.btn--line):not(.btn--line-d)[aria-current] { color: var(--on-accent); }
.ae-menu { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: calc(var(--header-h) + 8px) var(--gutter) 36px; background: var(--bg); color: var(--ink); overflow-y: auto; }
.ae-menu a:not(.btn) { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 9vw, 4.2rem); line-height: 1.04; letter-spacing: -0.05em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ae-menu a:not(.btn):hover { color: var(--accent); }
.ae-menu .menu-sub { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 26px 0 10px; color: var(--accent); }
.ae-menu .menu-contact { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Preloader ---------- */
[data-preloader] { background: var(--bg); color: var(--ink); }
.pre { display: grid; justify-items: center; gap: 22px; }
.pre img { width: clamp(120px, 18vw, 210px); height: auto; animation: pre-bob 1.8s ease-in-out infinite; }
@keyframes pre-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.pre__row { display: flex; align-items: baseline; gap: 0.2em; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; }
.pre .ae-pre-count { font: 700 clamp(4rem, 12vw, 9rem)/0.9 var(--font-display); letter-spacing: -0.06em; color: var(--ink); }
.pre__row span:last-child { font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--accent); }
.pre__t { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: clip; isolation: isolate; padding: calc(var(--header-h) + 36px) 0 0; background: var(--bg); }
.hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero__veil { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(85% 95% at 22% 66%, rgba(6, 6, 10, 0.9), rgba(6, 6, 10, 0.55) 55%, transparent 80%), linear-gradient(180deg, rgba(6, 6, 10, 0.55) 0%, rgba(6, 6, 10, 0.12) 30%, rgba(6, 6, 10, 0.6) 100%); }
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(24px, 4vw, 56px); }
.hero__title { font-size: clamp(3.3rem, 0.4rem + 10.6vw, 13rem); line-height: 0.86; letter-spacing: -0.045em; text-transform: uppercase; margin: 22px 0 28px; max-width: 12ch; }
.hero__title .line { display: block; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); line-height: 1.4; max-width: 36ch; color: rgba(242, 239, 232, 0.88); margin: 0; }
.hero__rot { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 26px 0 0; color: rgba(242, 239, 232, 0.66); display: flex; align-items: center; gap: 0.8em; flex-wrap: wrap; }
.hero__rot .ae-rotator { color: var(--accent); height: 1.5em; line-height: 1.5; font-weight: 700; }
.hero .btn-row { margin-top: 32px; }
.float { position: absolute; z-index: 1; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); background: var(--surface); }
.float img { width: 100%; height: 100%; object-fit: cover; }
.f1 { right: 5%; top: 17%; width: clamp(180px, 19vw, 330px); aspect-ratio: 4 / 5; }
.f2 { right: 21%; bottom: 13%; width: clamp(150px, 14vw, 250px); aspect-ratio: 1; filter: blur(1.5px); }
.f3 { right: 2.5%; bottom: 15%; width: clamp(150px, 15vw, 270px); aspect-ratio: 5 / 4; }
@media (max-width: 1100px) { .f2, .f3 { display: none; } .f1 { width: 26vw; top: 14%; right: 4%; } }
@media (max-width: 700px) { .f1 { width: 34vw; top: 11%; opacity: 0.9; } }
.hero__foot { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(242, 239, 232, 0.2); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 239, 232, 0.7); }
.hero__foot .scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__foot .scroll i { display: block; width: 1px; height: 38px; background: rgba(242, 239, 232, 0.25); position: relative; overflow: hidden; }
.hero__foot .scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--accent); animation: drip 1.9s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 110%; } }
.hero__foot .mid { text-align: center; }
@media (max-width: 760px) { .hero__foot { grid-template-columns: 1fr auto; } .hero__foot .mid { display: none; } }

/* ---------- Banda de palabras ---------- */
.words { padding-block: clamp(20px, 3vw, 44px); overflow: clip; border-block: 1px solid var(--line); }
.words .ae-marquee { mask-image: none; -webkit-mask-image: none; --gap: clamp(28px, 4vw, 64px); }
.words__i { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.05em; font-size: clamp(3rem, 1rem + 8vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 239, 232, 0.55); display: inline-flex; align-items: center; gap: var(--gap); white-space: nowrap; transition: color 0.4s, -webkit-text-stroke-color 0.4s; }
.words__i::after { content: ""; width: 0.28em; height: 0.28em; background: var(--accent); border-radius: 50%; }
.words__i:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.words--alt .words__i { -webkit-text-stroke-color: transparent; color: var(--ink); }
.words--alt .words__i:nth-child(odd) { color: var(--accent); }

/* ---------- Manifiesto ---------- */
.manifesto { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 0.9rem + 4.4vw, 6rem); line-height: 1.02; letter-spacing: -0.05em; max-width: 21ch; margin: 26px 0 0; text-wrap: balance; }
.manifesto-sub { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: clamp(36px, 5vw, 72px); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.manifesto-sub span { display: inline-flex; align-items: center; gap: 0.7em; }

/* ---------- Escena: tu marca en… (fijada al hacer scroll) ---------- */
.spaces { position: relative; height: 640vh; background: var(--bg); }
.spaces__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 72px); align-items: center; padding: calc(var(--header-h) + 8px) var(--gutter) 28px; max-width: var(--maxw); margin-inline: auto; width: 100%; }
.spaces__txt { position: relative; height: min(66vh, 620px); }
.spaces__top { position: absolute; left: 0; top: 0; right: 0; }
.spaces__title { position: absolute; left: 0; top: clamp(34px, 7vh, 70px); right: 0; font-size: clamp(2.7rem, 0.8rem + 6.4vw, 9rem); line-height: 0.86; letter-spacing: -0.06em; text-transform: uppercase; overflow: hidden; height: 1.02em; }
.spaces__title b { display: block; font-weight: 700; position: absolute; left: 0; top: 0; width: 100%; white-space: nowrap; transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
.spaces__title b.is-on { transform: none; }
.spaces__title b.is-past { transform: translateY(-105%); }
.spaces__items { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; }
.spaces__item { position: absolute; inset: auto 0 0 0; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); pointer-events: none; }
.spaces__item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.spaces__item p { margin: 0 0 18px; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 36ch; color: rgba(242, 239, 232, 0.82); }
.spaces__idx { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--muted); margin-top: 20px; }
.spaces__idx i { flex: 1; height: 1px; background: var(--line); position: relative; }
.spaces__idx i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
.spaces__media { position: relative; height: min(76vh, 760px); }
.spaces__fig { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: var(--radius-lg); clip-path: inset(100% 0 0 0 round var(--radius-lg)); transition: clip-path 1.1s var(--ease-in-out); background: var(--surface); }
.spaces__fig.is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.spaces__fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.8s var(--ease-out); }
.spaces__fig.is-in img { transform: scale(1); }
.spaces__fig figcaption { position: absolute; left: 18px; bottom: 16px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(6, 6, 10, 0.72); backdrop-filter: blur(8px); padding: 0.55em 0.9em; border-radius: 99px; }
/* sin JS: lista normal */
html:not(.ae-js) .spaces { height: auto; }
html:not(.ae-js) .spaces__pin { position: static; height: auto; grid-template-columns: 1fr; }
html:not(.ae-js) .spaces__txt, html:not(.ae-js) .spaces__items { position: static; height: auto; }
html:not(.ae-js) .spaces__item { position: static; opacity: 1; transform: none; margin-bottom: 24px; }
html:not(.ae-js) .spaces__title { position: static; height: auto; }
html:not(.ae-js) .spaces__title b { position: static; transform: none; }
html:not(.ae-js) .spaces__fig { position: static; clip-path: none; height: 280px; margin-bottom: 16px; }
html:not(.ae-js) .spaces__media { height: auto; }
@media (max-width: 860px) {
  .spaces { height: 600vh; }
  .spaces__pin { grid-template-columns: 1fr; grid-template-rows: 40% 1fr; gap: 16px; align-items: stretch; padding-top: calc(var(--header-h) + 4px); }
  .spaces__media { order: -1; height: 100%; }
  .spaces__txt { height: 100%; }
  .spaces__title { font-size: clamp(2.5rem, 13vw, 4.6rem); }
  .spaces__items { height: 46%; }
  .spaces__item p { font-size: 1rem; margin-bottom: 12px; }
}

/* ---------- Servicios: tarjetas apiladas ---------- */
.stackwrap { --stack-offset: 20px; }
.scard { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 3vw, 56px); min-height: min(78vh, 700px); padding: clamp(24px, 3.4vw, 56px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.scard::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c, var(--accent)); }
.scard::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; bottom: -30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, var(--accent)) 38%, transparent), transparent); z-index: -1; pointer-events: none; }
.scard--yellow { --c: var(--accent); } .scard--blue { --c: var(--blue); } .scard--green { --c: var(--green); } .scard--red { --c: var(--accent-2); } .scard--ink { --c: #f2efe8; }
.scard__l { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.scard__n { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.scard__n i { width: 38px; height: 1px; background: var(--c, var(--accent)); display: block; }
.scard__t { font-size: clamp(2.4rem, 1rem + 4.6vw, 6.2rem); line-height: 0.9; letter-spacing: -0.045em; text-transform: uppercase; margin: 14px 0 22px; max-width: 100%; }
.scard__d { color: rgba(242, 239, 232, 0.8); max-width: 38ch; margin: 0 0 22px; }
.scard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 460px; }
.scard li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; display: flex; gap: 12px; align-items: baseline; }
.scard li::before { content: "→"; color: var(--c, var(--accent)); }
.scard__r { position: relative; margin: 0; border-radius: calc(var(--radius-lg) - 6px); overflow: hidden; min-height: 280px; background: var(--surface-2); }
.scard__r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.scard:hover .scard__r img { transform: scale(1.06); }
.scard__r figcaption { position: absolute; left: 14px; bottom: 14px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(6, 6, 10, 0.72); backdrop-filter: blur(8px); padding: 0.5em 0.85em; border-radius: 99px; }
@media (max-width: 900px) { .scard { grid-template-columns: 1fr; min-height: 0; } .scard__r { min-height: 240px; order: -1; } .scard__t { font-size: clamp(2.2rem, 11vw, 4rem); } }

/* ---------- Cifras ---------- */
.stats { background: var(--accent); color: #0a0a0c; padding-block: clamp(56px, 8vw, 120px); overflow: clip; position: relative; }
.stats .eyebrow { color: rgba(10, 10, 12, 0.7); } .stats .eyebrow::before { background: #0a0a0c; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(28px, 4vw, 56px) 0 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 0 clamp(14px, 2.4vw, 40px); border-left: 1px solid rgba(10, 10, 12, 0.35); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 1rem + 8vw, 10.5rem); line-height: 0.88; letter-spacing: -0.05em; }
.stat dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 16px; color: rgba(10, 10, 12, 0.75); }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } }

/* ---------- Sectores (galería horizontal fija) ---------- */
.sect [data-horizontal] .ae-h-sticky { background: var(--bg); align-items: center; }
.sect__intro { flex: 0 0 min(42vw, 560px); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-right: 2vw; }
.sect__intro .h2 { font-size: clamp(2.6rem, 1rem + 4.6vw, 6.2rem); margin: 0; }
.ind { position: relative; flex: 0 0 auto; height: min(72vh, 680px); aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 2vw, 30px); color: var(--ink); isolation: isolate; background: var(--surface); border: 1px solid var(--line); }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.ind::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 6, 10, 0.1) 30%, rgba(6, 6, 10, 0.92)); }
.ind:hover img { transform: scale(1.08); }
.ind__n { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--accent); }
.ind__t { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1rem + 1.8vw, 3rem); line-height: 0.92; letter-spacing: -0.05em; text-transform: uppercase; margin-top: 8px; }
.ind__go { font-size: 0.92rem; margin-top: 14px; display: inline-flex; gap: 0.6em; opacity: 0.9; transition: gap 0.5s var(--ease-out); }
.ind:hover .ind__go { gap: 1.2em; }
.ind--cta { background: var(--accent); color: var(--on-accent); justify-content: space-between; border-color: var(--accent); }
.ind--cta::after { display: none; }
.ind--cta .ind__n { color: var(--on-accent); font-family: var(--font-display); font-size: 3.4rem; letter-spacing: -0.06em; }
.sect-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.sect-grid .ind { height: auto; aspect-ratio: 3 / 4; }
@media (max-width: 980px) { .sect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .sect__intro { flex-basis: 84vw; }
  .ind { height: 64vh; }
  [data-horizontal] .ae-h-sticky { padding-block: 8px 24px; }
}
@media (max-width: 560px) { .sect-grid .ind { aspect-ratio: 4 / 5; padding: 14px; } .sect-grid .ind__t { font-size: 1.25rem; } }

/* ---------- Proyectos: imagen que se expande + estela ---------- */
.expand { height: min(100svh, 980px); margin: 0; position: relative; background: var(--surface); }
.expand img { width: 100%; height: 100%; object-fit: cover; }
.expand figcaption { position: absolute; left: var(--gutter); bottom: clamp(20px, 4vw, 56px); right: var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: end; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.expand figcaption b { font-family: var(--font-display); font-size: clamp(2rem, 1rem + 4vw, 5rem); line-height: 0.9; letter-spacing: -0.055em; text-transform: uppercase; max-width: 14ch; }
.expand figcaption span { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.expand::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 6, 10, 0.7)); pointer-events: none; }
.expand figcaption { z-index: 2; }
.trail { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px var(--gutter); background: var(--bg); }
.trail__in { position: relative; z-index: 3; pointer-events: none; }
.trail__in a { pointer-events: auto; }
.trail__t { font-size: clamp(3rem, 0.8rem + 9vw, 11rem); line-height: 0.88; letter-spacing: -0.045em; text-transform: uppercase; margin: 18px 0 30px; }
.trail__t em { font-style: normal; color: var(--accent); }
.trail__hint { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.trail .btn-row { justify-content: center; }
.swipe { display: none; }
@media (hover: none), (pointer: coarse) { .trail__hint { display: none; } }
@media (max-width: 860px) {
  .swipe { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px var(--gutter) 0; margin-inline: calc(var(--gutter) * -1); }
  .swipe img { flex: 0 0 62vw; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; border-radius: var(--radius-lg); }
}

/* ---------- Proceso (claro) ---------- */
.proc__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.proc__line { position: relative; height: 2px; background: var(--line); margin-bottom: 0; }
.proc__line i { position: absolute; inset: 0; background: #0a0a0c; transform-origin: 0 50%; transform: scaleX(var(--pp, 0)); }
.step { padding: 30px clamp(14px, 2vw, 34px) 12px; display: flex; flex-direction: column; gap: 70px; min-height: 380px; justify-content: space-between; position: relative; }
.step:first-child { padding-left: 0; }
.step::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #0a0a0c; }
.step:first-child::before { left: 0; }
.step__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 2rem + 8vw, 11rem); line-height: 0.78; letter-spacing: -0.08em; color: transparent; -webkit-text-stroke: 1.5px #0a0a0c; transition: color 0.5s; }
.step:hover .step__n { color: var(--accent); }
.step h3 { font-size: 1.7rem; line-height: 1; margin-bottom: 10px; text-transform: uppercase; letter-spacing: -0.04em; }
.step p { margin: 0; color: var(--muted); max-width: 30ch; }
@media (max-width: 980px) { .proc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step { min-height: 0; gap: 40px; } .step:nth-child(odd) { padding-left: 0; } .proc__line { display: none; } }
@media (max-width: 560px) { .proc__grid { grid-template-columns: 1fr; } .step { padding-left: 0; border-top: 1px solid var(--line); } .step::before { display: none; } }

/* ---------- Clientes y testimonios ---------- */
.logos { padding-block: clamp(28px, 4vw, 56px); border-block: 1px solid var(--line); margin-top: clamp(44px, 6vw, 88px); }
.logos .ae-marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos img { height: clamp(30px, 3.6vw, 52px); width: auto; opacity: 0.8; }
.qs { position: relative; margin-top: clamp(40px, 6vw, 96px); min-height: 320px; }
.q { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); pointer-events: none; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.q.is-on { opacity: 1; transform: none; pointer-events: auto; }
.q blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 1rem + 3.2vw, 4.2rem); line-height: 1.02; letter-spacing: -0.05em; max-width: 24ch; }
.q figcaption { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.q figcaption b { color: var(--accent); font-weight: 700; display: block; margin-bottom: 4px; }
.qs__nav { display: flex; gap: 10px; margin-top: 28px; align-items: center; }
.qs__nav button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(242, 239, 232, 0.4); font-size: 1.2rem; transition: background 0.3s, color 0.3s; }
.qs__nav button:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.qs__nav span { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--muted); margin-left: 12px; }
html:not(.ae-js) .qs { min-height: 0; }
html:not(.ae-js) .q { position: static; opacity: 1; transform: none; margin-bottom: 36px; }
@media (max-width: 760px) { .qs { min-height: 400px; } }

/* ---------- Grupo ---------- */
.grupo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(32px, 4.5vw, 64px); }
.brandcard { position: relative; padding: clamp(28px, 3.6vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 44px; min-height: 420px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.brandcard::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -20%; top: -30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, var(--accent)) 45%, transparent), transparent); z-index: -1; }
.brandcard--k { --c: var(--blue); }
.brandcard__tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.brandcard h3, .brandcard h2 { font-size: clamp(2.2rem, 1rem + 3.4vw, 5rem); line-height: 0.9; letter-spacing: -0.06em; text-transform: uppercase; margin: 16px 0 16px; }
.brandcard p { margin: 0 0 10px; max-width: 42ch; color: rgba(242, 239, 232, 0.8); }
.brandcard__list { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.brandcard__list li { border-bottom: 1px solid var(--line); }
.brandcard__list a { display: flex; justify-content: space-between; padding: 12px 0; font-weight: 500; transition: padding 0.4s var(--ease-out), color 0.3s; }
.brandcard__list a:hover { padding-left: 10px; color: var(--accent); }
@media (max-width: 800px) { .grupo__grid { grid-template-columns: 1fr; } .brandcard { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 110px); }
.faq details.ae-acc { border-color: var(--line); }
.faq details.ae-acc > summary { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.75rem); letter-spacing: -0.035em; line-height: 1.12; padding: 1.5rem 0; transition: color 0.3s; }
.faq details.ae-acc > summary:hover { color: var(--accent); }
.faq details.ae-acc > summary::after { font-size: 1.8rem; font-weight: 300; color: var(--accent); }
.faq details.ae-acc .ae-acc__body { color: var(--muted); font-size: 1.06rem; max-width: 60ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- Cierre: cotización ---------- */
.cta { position: relative; overflow: clip; isolation: isolate; padding-block: clamp(96px, 14vw, 220px); background: var(--bg); }
.cta > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.cta__veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(6, 6, 10, 0.78), rgba(6, 6, 10, 0.2) 70%), linear-gradient(180deg, rgba(6, 6, 10, 0.4), transparent 40%, rgba(6, 6, 10, 0.5)); pointer-events: none; }
.cta .h2 { font-size: clamp(3rem, 0.8rem + 9vw, 12rem); max-width: 11ch; line-height: 0.88; letter-spacing: -0.045em; }
.cta .lead { color: rgba(242, 239, 232, 0.88); margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; max-width: 900px; }
.chip { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.8em 1.15em; border: 1px solid rgba(242, 239, 232, 0.4); font-size: 0.94rem; font-weight: 500; border-radius: 99px; background: rgba(6, 6, 10, 0.35); backdrop-filter: blur(6px); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-spring); }
.chip:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: translateY(-3px); }
.cta .btn-row { margin-top: 36px; }
.cta__tuc { position: absolute; right: 3%; bottom: 6%; width: clamp(150px, 20vw, 340px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); pointer-events: none; z-index: 1; animation: pre-bob 6s ease-in-out infinite; }
@media (max-width: 860px) { .cta__tuc { width: 110px; right: 4%; top: 4%; bottom: auto; } }

/* ---------- Páginas interiores ---------- */
.phero { position: relative; min-height: min(86svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; overflow: clip; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 clamp(36px, 5vw, 80px); background: var(--bg); }
.phero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.phero__veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(6, 6, 10, 0.5), rgba(6, 6, 10, 0.2) 40%, rgba(6, 6, 10, 0.88)); pointer-events: none; }
.phero h1 { font-size: clamp(3rem, 0.6rem + 8.4vw, 11rem); line-height: 0.88; letter-spacing: -0.045em; text-transform: uppercase; max-width: 13ch; margin: 14px 0 0; }
.phero h1 em { font-style: normal; color: var(--accent); }
.phero .lead { margin-top: 26px; color: rgba(242, 239, 232, 0.86); max-width: 48ch; }
.phero .btn-row { margin-top: 30px; }
.phero__tag { display: inline-flex; align-items: center; gap: 0.7em; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242, 239, 232, 0.4); }
.crumbs a:hover { color: var(--ink); }
.phero__art { position: absolute; z-index: 0; right: var(--gutter); top: calc(var(--header-h) + 36px); width: clamp(180px, 22vw, 360px); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.phero__art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .phero__art { width: 34vw; top: calc(var(--header-h) + 24px); } }
@media (max-width: 600px) { .phero__art { display: none; } }

.cover { margin: 0; height: min(80svh, 820px); position: relative; background: var(--surface); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover figcaption { position: absolute; left: var(--gutter); bottom: 18px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(6, 6, 10, 0.7); backdrop-filter: blur(8px); padding: 0.55em 0.95em; border-radius: 99px; z-index: 2; }
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__stick { position: sticky; top: calc(var(--header-h) + 28px); }
@media (max-width: 900px) { .split__stick { position: static; } }
.prose p { font-size: 1.12rem; line-height: 1.62; max-width: 56ch; margin: 0 0 1.1em; color: rgba(242, 239, 232, 0.86); }
.prose h2 { font-size: clamp(2.2rem, 1rem + 3.6vw, 5rem); line-height: 0.92; letter-spacing: -0.055em; text-transform: uppercase; margin: 16px 0 24px; max-width: 12ch; }
.light .prose p { color: rgba(10, 10, 12, 0.78); }
.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: it; }
.item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: clamp(20px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding 0.5s var(--ease-out); }
.item:hover { padding-left: 14px; }
.item__n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.08em; }
.item h3 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem); line-height: 0.98; letter-spacing: -0.05em; text-transform: uppercase; }
.item p { margin: 10px 0 0; color: var(--muted); max-width: 52ch; line-height: 1.5; }

.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px); }
.shot { margin: 0; overflow: hidden; background: var(--surface); position: relative; border-radius: var(--radius-lg); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; left: 14px; bottom: 14px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(6, 6, 10, 0.72); backdrop-filter: blur(8px); padding: 0.5em 0.9em; border-radius: 99px; max-width: calc(100% - 28px); }
.shot--w { grid-column: span 7; aspect-ratio: 4 / 3; } .shot--n { grid-column: span 5; aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .shot--w, .shot--n { grid-column: span 12; } }
.panel { background: var(--accent); color: var(--on-accent); padding: clamp(24px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 280px; }
.panel > span { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.panel b { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1rem + 2.6vw, 3.6rem); line-height: 0.92; letter-spacing: -0.055em; text-transform: uppercase; display: block; max-width: 12ch; }
.panel img { width: clamp(100px, 11vw, 170px); align-self: flex-end; }
.sp5 { grid-column: span 5; } .sp7 { grid-column: span 7; } .sp12 { grid-column: span 12; }
@media (max-width: 900px) { .sp5, .sp7 { grid-column: span 12; } }

.mat { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(100px, 14vw, 220px); }
.mat__bg { position: absolute; inset: -12% 0; z-index: -2; width: 100%; height: 124%; object-fit: cover; }
.mat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 6, 10, 0.92), rgba(6, 6, 10, 0.55) 70%, rgba(6, 6, 10, 0.4)); }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px); border-top: 1px solid var(--line); }
.rel-list li { border-bottom: 1px solid var(--line); }
.rel-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 24px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem); letter-spacing: -0.05em; text-transform: uppercase; transition: padding 0.5s var(--ease-out), color 0.3s; }
.rel-list a:hover { padding-left: 14px; color: var(--accent); }
.rel-list a span:first-child { display: inline-flex; align-items: center; gap: 0.5em; }
.rel-list .sw { width: 0.34em; height: 0.34em; }
@media (max-width: 760px) { .rel-list { grid-template-columns: 1fr; } }
.subhead { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: clamp(40px, 5vw, 70px) 0 16px; }

/* Portafolio (página) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { padding: 0.8em 1.3em; border: 1px solid rgba(242, 239, 232, 0.4); border-radius: 99px; font-weight: 500; font-size: 0.94rem; transition: background 0.3s, color 0.3s, border-color 0.3s; min-height: 46px; }
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(22px, 2.6vw, 40px) clamp(12px, 1.6vw, 22px); position: relative; }
.pcard { margin: 0; }
.pcard figure { margin: 0; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; border-radius: var(--radius-lg); cursor: zoom-in; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.pcard:hover img { transform: scale(1.06); }
.pcard figcaption { margin-top: 14px; display: grid; gap: 3px; }
.pcard__cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.pcard__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.05; letter-spacing: -0.04em; text-transform: uppercase; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 22px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.6vw, 36px); margin: 0; display: grid; gap: 20px; background: var(--surface); }
.form legend { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.55em 1.1em; background: var(--accent); color: var(--on-accent); border-radius: 99px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 0.92rem; }
.form label small { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 0.9em 1.05em; border: 1px solid rgba(242, 239, 232, 0.28); border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%; min-height: 52px; transition: border-color 0.25s, box-shadow 0.25s; color-scheme: dark; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 229, 0, 0.28); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: 14px; align-items: center; font-weight: 400; }
.form .check input { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; min-height: 44px; margin: 0; flex: 0 0 44px; border: 1px solid rgba(242, 239, 232, 0.5); border-radius: 12px; background: var(--bg); padding: 0; }
.form .check input:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308080a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 62% no-repeat; border-color: var(--accent); }
.svc-fields, [data-smart] { display: grid; gap: 20px; }
.svc-fields[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-weight: 600; min-height: 1.4em; margin: 14px 0 0; }
.form__status.is-error { color: #ff7a6b; }
.ph-note { font-size: 0.86rem; color: var(--muted); }
.ph-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.form__aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { border: 1px solid var(--line); padding: 28px; background: var(--surface); border-radius: var(--radius-lg); }
.aside-card--y { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.aside-card h2 { font-size: 1.8rem; margin-bottom: 10px; letter-spacing: -0.05em; text-transform: uppercase; }
.aside-card p { margin: 0 0 16px; line-height: 1.5; }
.aside-card .btn { width: 100%; margin-bottom: 8px; }
.digital-note { border: 1px dashed var(--accent); padding: 22px; border-radius: 14px; display: grid; gap: 14px; justify-items: start; }
.digital-note[hidden] { display: none; }
@media (max-width: 980px) { .form-layout { grid-template-columns: 1fr; } .form__aside { position: static; } }
.prosepage p { font-size: 1.1rem; max-width: 62ch; color: rgba(242, 239, 232, 0.86); }
.prosepage h2 { font-size: clamp(1.7rem, 1rem + 1.8vw, 2.6rem); margin: 2em 0 0.4em; text-transform: uppercase; letter-spacing: -0.045em; }
.prosepage a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }

/* ---------- Pie ---------- */
.site-footer { background: var(--bg); color: var(--ink); padding: clamp(80px, 10vw, 160px) 0 28px; overflow: clip; border-top: 1px solid var(--line); }
.footer-cta { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 0.6rem + 12.6vw, 17rem); line-height: 0.84; letter-spacing: -0.05em; text-transform: uppercase; color: var(--ink); transition: color 0.4s; }
.footer-cta span { color: var(--accent); }
.footer-cta:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 52px); margin-top: clamp(48px, 6vw, 100px); padding-top: 36px; border-top: 1px solid var(--line); }
.footer-grid h2 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { padding: 5px 0; display: inline-block; color: rgba(242, 239, 232, 0.82); transition: color 0.3s; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { margin: 0 0 8px; line-height: 1.5; color: rgba(242, 239, 232, 0.82); }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 96px; }
.footer-brand p { max-width: 32ch; }
.footer-group { margin-top: 34px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.95rem; color: rgba(242, 239, 232, 0.82); }
.footer-group a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 24px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 239, 232, 0.65); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 800; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); transition: transform 0.5s var(--ease-spring); }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 29px; height: 29px; }

/* Utilidades */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 36px; } .mt-l { margin-top: clamp(40px, 6vw, 88px); }
.skip-pre [data-preloader] { display: none; }
.ae-cursor__dot { --cursor-color: var(--accent); }
@media print { .wa-float { display: none; } }

/* ---- ajustes v3 ---- */
.spaces__items { bottom: 56px; height: 36%; }
.spaces__idx { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
.spaces__title { font-size: clamp(2.4rem, 0.5rem + 5.1vw, 7.6rem); }
.mat__bg { object-position: center; }
.phero--short { min-height: min(62svh, 620px); }
.phero--short h1 { font-size: clamp(2.8rem, 0.6rem + 6.8vw, 9rem); }
.trail__hint { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 30px; }
.expandwrap { background: var(--bg); }

/* escena fija v3.1 */
.spaces__txt { height: auto; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.spaces__top, .spaces__title, .spaces__items, .spaces__idx { position: relative; inset: auto; }
.spaces__title { top: auto; height: 1.08em; line-height: 1.02; letter-spacing: -0.045em; padding-top: 0.04em; }
.spaces__title b { transform: translateY(135%); }
.spaces__title b.is-on { transform: none; }
.spaces__title b.is-past { transform: translateY(-135%); }
.spaces__items { height: 170px; bottom: auto; }
.spaces__idx { margin-top: 6px; }
.spaces__item { inset: 0 0 auto 0; }

/* ajustes v3.2 */
.phero h1 { font-size: clamp(2.8rem, 0.5rem + 6.4vw, 9rem); max-width: 16ch; }
.prose h2 { font-size: clamp(1.9rem, 1rem + 2.8vw, 3.9rem); max-width: 16ch; line-height: 0.96; }
@media (max-width: 700px) { .f1 { display: none; } }
.light .h2 em { background-position: 0 92%; background-size: 100% 0.2em; }

/* ajustes v3.3 (tamaños que respetan palabras largas) */
.scard__t { font-size: clamp(1.95rem, 0.6rem + 3.1vw, 4.6rem); max-width: 100%; overflow-wrap: normal; }
.cta .h2 { font-size: clamp(2.4rem, 0.8rem + 7.2vw, 11rem); max-width: 100%; }
.sect-grid .ind__t { font-size: clamp(1.25rem, 0.8rem + 1.15vw, 2rem); }
.ulink { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 600px) { .cta .h2 { font-size: 2.35rem; } .scard__t { font-size: 1.95rem; } }
@media (max-width: 860px) { .spaces__media { max-width: 640px; width: 100%; margin-inline: auto; } }
.scard { position: sticky; }
@media (max-width: 560px) { .sect-grid .ind__t { font-size: 0.92rem; } .sect-grid .ind { padding: 12px; } }

/* ===== v3.4: hero con tira de fotos en movimiento + títulos que respetan su columna ===== */
.hero__title { font-size: clamp(3rem, 0.4rem + 8.6vw, 10.4rem); max-width: 11ch; }
.f1, .f2, .f3 { display: none; }
.reel { position: absolute; z-index: 1; right: 2vw; top: -10%; bottom: -10%; width: min(31vw, 520px); display: flex; gap: clamp(10px, 1.2vw, 18px); transform: rotate(7deg) translate3d(var(--mx, 0px), var(--my, 0px), 0); transform-origin: 50% 50%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%); pointer-events: none; transition: transform 0.9s var(--ease-out); }
.reel__col { flex: 1; min-width: 0; overflow: hidden; }
.reel__col--b { margin-top: 12%; }
.reel__track { display: flex; flex-direction: column; animation: reel-up 70s linear infinite; will-change: transform; }
.reel__col--b .reel__track { animation-name: reel-down; animation-duration: 84s; }
.reel__set { display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 18px); padding-bottom: clamp(10px, 1.2vw, 18px); }
.reel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.reel__col--b img { filter: saturate(0.9) brightness(0.92); }
@keyframes reel-up { to { transform: translateY(-50%); } }
@keyframes reel-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes reel-left { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .reel__track { animation-duration: 240s; } }
@media (max-width: 1000px) {
  .reel { position: relative; order: 3; right: auto; top: auto; bottom: auto; width: 100%; height: clamp(120px, 34vw, 190px); margin: 6px 0 22px; transform: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .reel__col--b { display: none; }
  .reel__col { height: 100%; }
  .reel__track { flex-direction: row; height: 100%; width: max-content; animation-name: reel-left; animation-duration: 60s; }
  .reel__set { flex-direction: row; height: 100%; padding: 0 clamp(10px, 1.2vw, 18px) 0 0; }
  .reel img { width: auto; height: 100%; aspect-ratio: 4 / 5; }
  .hero .ae-container:not(.hero__inner) { order: 4; }
  .hero__inner { order: 1; }
}
/* títulos de columna: nunca se pasan a la columna vecina */
.h2 { font-size: clamp(2.3rem, 0.8rem + 5.2vw, 6.6rem); overflow-wrap: normal; }
.faq__grid > div:first-child { min-width: 0; }
.faq .h2 { font-size: clamp(2.2rem, 0.9rem + 3.9vw, 5.2rem); max-width: 100%; }
.sec-head > * { min-width: 0; }
.cta .h2 { font-size: clamp(2.4rem, 0.8rem + 7.2vw, 11rem); }
@media (max-height: 700px) and (min-width: 901px) {
  .scard { min-height: 0; }
  .scard__t { font-size: clamp(1.9rem, 0.6rem + 2.6vw, 3.6rem); }
  .scard__r { min-height: 240px; }
}
.reel { top: calc(var(--header-h) - 8%); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 80%, transparent 100%); }
.site-header:not(.is-scrolled) { background: linear-gradient(180deg, rgba(6, 6, 10, 0.78), rgba(6, 6, 10, 0)); }
@media (max-width: 1000px) { .reel { top: auto; } }
.shot--6p { grid-column: span 6; aspect-ratio: 4 / 4.6; } .shot--6l { grid-column: span 6; aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .shot--6p, .shot--6l { grid-column: span 12; } .shot--6p { aspect-ratio: 4 / 5; } }
.footer-grid a[href^="mailto"] { overflow-wrap: anywhere; }
.sect-grid .ind__t { font-size: clamp(1.1rem, 0.5rem + 1vw, 1.9rem); }

/* ===== v3.5: títulos de tarjeta proporcionales a su ancho + tarjetas apiladas solo si caben en pantalla ===== */
.ind { container-type: inline-size; }
.ind__t, .sect-grid .ind__t { font-size: clamp(1.05rem, 8.4cqi, 3rem); overflow-wrap: normal; }
.ind--cta .ind__t { font-size: clamp(1.05rem, 7.4cqi, 2.2rem); }
.ind__go { font-size: clamp(0.82rem, 3.6cqi, 0.95rem); }
@media (max-height: 760px), (max-width: 900px) {
  .scard { position: relative; top: auto; }
  .stackwrap { display: grid; gap: 16px; }
}

/* v3.6 · el título de la escena fija se ajusta al ancho de su columna (nunca se corta) */
.spaces__txt { container-type: inline-size; }
.spaces__title { font-size: min(clamp(2.4rem, 0.5rem + 5.1vw, 7.6rem), 16.5cqi); padding-right: 0.12em; box-sizing: content-box; }

/* v3.7 · la banda de palabras deja aire para tildes y la Ñ (no se recortan arriba) */
.words__i { line-height: 1.12; padding-block: 0.2em 0.06em; }
.words:not(.words--alt) .words__i { --o: rgba(242, 239, 232, 0.6); color: var(--bg); -webkit-text-stroke: 0; text-shadow: 1.5px 0 var(--o), -1.5px 0 var(--o), 0 1.5px var(--o), 0 -1.5px var(--o), 1.1px 1.1px var(--o), -1.1px 1.1px var(--o), 1.1px -1.1px var(--o), -1.1px -1.1px var(--o); transition: color 0.4s, text-shadow 0.4s; }
.words:not(.words--alt) .words__i:hover { --o: var(--accent); color: var(--bg); }
@media (max-width: 700px) {
  .words:not(.words--alt) .words__i { text-shadow: 1px 0 var(--o), -1px 0 var(--o), 0 1px var(--o), 0 -1px var(--o), 0.7px 0.7px var(--o), -0.7px 0.7px var(--o), 0.7px -0.7px var(--o), -0.7px -0.7px var(--o); }
}
