/* ==========================================================================
   Romeroly — Servicios · "El dossier"
   --------------------------------------------------------------------------
   The page used to be four near-identical light blocks (text + rounded photo
   card, alternating sides) on a white page, which is exactly what made it
   read as a template. This sheet re-cuts it as a dark editorial dossier: an
   ink spine that runs from the cover through both service entries and the
   process, broken once by a solid brand-blue ticker and once by a stark white
   hairline grid. Rhythm now comes from inversion, not from flipping the same
   two-column block left and right.

   It only ever loads on servicios.php (see $pageStyles in partials/header.php)
   and every rule is scoped under .page-servicios, so nothing here can leak
   into the shared components other pages depend on.

   It reuses the site's existing JS hooks rather than adding any: .reveal,
   .reveal-stagger, [data-split], [data-clip], [data-parallax] and the
   .pin/.pin-step/.pin-dot contract. No new JavaScript is needed.
   ========================================================================== */

.page-servicios{
  /* A deeper black than --color-ink for the full-bleed bands, so the ink
     sections that sit between them still read as a lighter plane instead of
     the whole page going flat. */
  --svc-ink: #0E0F14;
  --svc-ink-2: #14151B;
  --svc-line: rgba(255,255,255,.13);
  --svc-line-strong: rgba(255,255,255,.26);
  --svc-dim: #9BA0B0;

  /* Distance from the container's content edge out to the viewport edge, so a
     bleeding element can escape the gutter *and* the centring margins in one
     value. A plain negative gutter only clears the padding, which on a wide
     screen leaves the photo stopping 100px short of the edge — near-bleed
     reads as a mistake, not as a decision. Any overshoot from a scrollbar
     (100vw counts it, the layout does not) is caught by the section's own
     overflow: hidden. */
  --svc-gutter: clamp(20px, 5vw, 48px);
  --svc-bleed: calc((100vw - min(var(--container-max), 100vw)) / 2 + var(--svc-gutter));
}

/* Shared mono label. Deliberately not .eyebrow: the pill badge is the site's
   soft, friendly voice and this page needs a printed-index voice instead —
   a rule, a word, nothing else. */
.page-servicios .svc-label{
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-primary);
}
.page-servicios .svc-label::before{
  content: ''; width: 26px; height: 1px; background: currentColor; opacity: .8;
}
/* #468EEF is only 3.3:1 on white — fine as a rule or a large numeral, not as
   11px type. Light sections step down to the 700 shade instead. */
.page-servicios .svc-label--ink{ color: var(--color-primary-700); }

/* Descender guard for the JS word-masks ([data-split] wraps each word in an
   overflow-hidden .split-line). At display sizes the "j" in "trabajar" and
   the "g" in "estrategia" get sliced without this. */
.page-servicios [data-split] .split-line{
  vertical-align: bottom;
  padding-bottom: .14em; margin-bottom: -.14em;
}

/* ==========================================================================
   01 · Cover
   ========================================================================== */
.svc-hero{
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--svc-ink); color: #fff;
  padding-block: clamp(52px, 7vw, 96px) clamp(40px, 5vw, 72px);
}
.svc-hero__photo{
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
}
/* Dense on the left where the lockup sits and clearing to the right, plus a
   pool of brand blue rising from the bottom corner — the photograph stays a
   photograph rather than being flattened to grey by a uniform wash. */
.svc-hero__veil{
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(14,15,20,.95) 26%, rgba(14,15,20,.78) 58%, rgba(14,15,20,.52) 100%),
    radial-gradient(80% 70% at 8% 108%, rgba(70,142,239,.34), transparent 62%);
}
/* Column rules — the dossier's paper. Faded out towards the top so they read
   as structure under the type, never as a texture over the photo. */
.svc-hero__rules{
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 12.5%);
  -webkit-mask-image: linear-gradient(transparent, #000 55%);
  mask-image: linear-gradient(transparent, #000 55%);
}

.svc-hero .breadcrumb{ justify-content: flex-start; color: rgba(255,255,255,.55); margin-bottom: var(--space-8); }
.svc-hero .breadcrumb a:hover{ color: #fff; }

.svc-hero__title{
  margin-top: var(--space-6);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 1.1rem + 5.9vw, 6rem);
  line-height: .94; letter-spacing: -.045em;
  max-width: 16ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(8,9,13,.6);
}
.svc-hero__title em{ font-style: normal; color: var(--color-primary); }

.svc-hero__lead{
  margin-top: var(--space-6); max-width: 54ch;
  font-size: var(--fs-lead); color: rgba(255,255,255,.82);
  text-shadow: 0 1px 16px rgba(8,9,13,.55);
}

.svc-hero__actions{ display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }

/* Specimen block: the facts a visitor scans for before reading a word of
   body copy, set as a printed spec sheet rather than three more sentences. */
.svc-hero__meta{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: var(--space-6); border-top: 1px solid var(--svc-line-strong);
}
.svc-hero__meta dt{
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--color-primary);
}
.svc-hero__meta dd{
  margin: 8px 0 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(.95rem, .85rem + .3vw, 1.15rem); color: #fff;
}

/* Numbered jump index. Each row is a full-width hairline entry that fills
   with blue on hover, so the top of the page already behaves like the
   sections below it. */
.svc-jump{
  max-width: 680px; margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--svc-line);
}
.svc-jump a{
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 58px minmax(0, 1fr) 20px;
  align-items: center; gap: var(--space-4);
  padding: 17px 6px; border-bottom: 1px solid var(--svc-line);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.45rem); color: rgba(255,255,255,.9);
  transition: color var(--dur-fast) var(--ease-out);
}
.svc-jump a::before{
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(70,142,239,.22), rgba(70,142,239,0) 78%);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.svc-jump a:hover{ color: #fff; }
.svc-jump a:hover::before{ transform: scaleX(1); }
/* Indent-on-hover lives on transform, not padding-left: the row's number and
   label are real grid items (not an anonymous text-wrapped box), so they can
   shift independently of the ::before fill and the icon's own hover nudge
   without triggering a layout reflow on every hover. */
.svc-jump__num, .svc-jump__label{
  display: inline-block; transition: transform var(--dur-base) var(--ease-out);
}
.svc-jump a:hover .svc-jump__num, .svc-jump a:hover .svc-jump__label{ transform: translateX(10px); }
.svc-jump__num{
  font-family: var(--font-mono); font-size: .82rem; font-weight: 500;
  letter-spacing: .1em; color: var(--color-primary);
}
.svc-jump svg{ width: 20px; height: 20px; opacity: .45; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.svc-jump a:hover svg{ opacity: 1; transform: translateX(4px); }

@media (max-width: 720px){
  .svc-hero__meta{ grid-template-columns: 1fr; gap: var(--space-4); }
  .svc-hero__meta > div{ display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
  .svc-hero__meta dd{ margin-top: 0; }
  .svc-hero__actions .btn{ flex: 1 1 200px; }
}

/* ==========================================================================
   02 · Ticker
   The one saturated band on the page. It exists to break the ink spine with
   colour and motion at exactly the point where the old page started
   repeating itself.
   ========================================================================== */
.svc-ticker{
  background: var(--color-primary); color: var(--color-ink);
  overflow: hidden; border-block: 1px solid rgba(12,13,20,.22);
}
.svc-ticker__track{
  display: flex; width: max-content;
  animation: svcTicker 46s linear infinite;
}
.svc-ticker:hover .svc-ticker__track{ animation-play-state: paused; }
.svc-ticker__set{ display: flex; align-items: center; padding-block: 15px; }
.svc-ticker__set li{
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px);
  padding-inline: clamp(9px, 1.2vw, 16px);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.svc-ticker__set li::after{
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .55;
}
/* Two identical sets, so travelling exactly half the track lands the second
   set where the first began and the loop has no seam. */
@keyframes svcTicker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .svc-ticker__track{ animation: none; }
}

/* ==========================================================================
   03 · Service entries
   A sticky spine (numeral + vertical label), a scrolling body, and a sticky
   photograph that bleeds off the page edge. The second entry mirrors the
   whole arrangement instead of just swapping two columns, so the two read as
   a spread rather than a repeat.
   ========================================================================== */
.svc-entry{
  position: relative; overflow: hidden;
  background: var(--svc-ink-2); color: var(--color-on-dark);
  padding-block: clamp(64px, 8vw, 112px);
}
.svc-entry + .svc-entry{ border-top: 1px solid var(--svc-line); }
/* Faint brand pool anchored to whichever side the photograph sits on. */
.svc-entry::before{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 100% 12%, rgba(70,142,239,.16), transparent 62%);
}
.svc-entry--flip::before{ background: radial-gradient(60% 55% at 0% 12%, rgba(70,142,239,.16), transparent 62%); }
.svc-entry > .container{ position: relative; z-index: 1; }

.svc-entry__grid{
  display: grid; align-items: start;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, .92fr);
  grid-template-areas: "rail body media";
}
.svc-entry--flip .svc-entry__grid{
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr) 76px;
  grid-template-areas: "media body rail";
}

/* ---- Spine ---- */
.svc-entry__rail{
  grid-area: rail;
  position: sticky; top: calc(var(--header-h) + 32px);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-6);
}
/* Outlined, not filled: the numeral has to be enormous to work as a spine,
   and at that size a solid one would out-shout the headline next to it. */
.svc-entry__num{
  font-family: var(--font-mono); font-weight: 500; line-height: 1;
  font-size: clamp(2.6rem, 1.6rem + 2.2vw, 3.8rem);
  color: rgba(255,255,255,.34);
}
@supports (-webkit-text-stroke: 1px #000){
  .svc-entry__num{ color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.42); }
}
.svc-entry__vert{
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--svc-dim);
}
.svc-entry__rail::after{
  content: ''; width: 1px; height: clamp(70px, 10vw, 130px);
  background: linear-gradient(var(--color-primary), transparent);
}
.svc-entry--flip .svc-entry__vert{ transform: rotate(180deg); }

/* ---- Body ---- */
.svc-entry__body{ grid-area: body; }
.svc-entry__title{
  margin-top: var(--space-5);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 2.7vw, 3.5rem);
  line-height: 1.02; letter-spacing: -.038em;
  color: #fff; max-width: 19ch;
}
.svc-entry__lead{
  margin-top: var(--space-5); max-width: 52ch;
  font-size: var(--fs-lead); color: var(--svc-dim);
}

/* Feature index. The old check-bullets said "spec list"; a ruled index with
   its own numbering says "contents", which is the register the rest of the
   page is now written in. */
.svc-index{ margin-top: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--svc-line); }
.svc-index li{
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center; gap: var(--space-3);
  padding: 15px 6px; border-bottom: 1px solid var(--svc-line);
}
.svc-index li::before{
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(70,142,239,.18), rgba(70,142,239,0) 82%);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.svc-index li:hover::before{ transform: scaleX(1); }
/* Indent-on-hover lives on transform (like .svc-jump above), not padding-left
   on the <li> — .svc-index__n/__t are already real grid items, so they can
   shift on their own without triggering a layout reflow on every hover. */
.svc-index__n, .svc-index__t{ transition: transform var(--dur-base) var(--ease-out); }
.svc-index li:hover .svc-index__n, .svc-index li:hover .svc-index__t{ transform: translateX(8px); }
.svc-index__n{
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; color: var(--color-primary);
}
.svc-index__t{ font-size: .975rem; color: rgba(255,255,255,.9); }
.svc-index li svg{
  width: 18px; height: 18px; color: var(--color-primary);
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.svc-index li:hover svg{ opacity: 1; transform: translateX(0); }

.svc-entry__actions{ display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: clamp(28px, 3.5vw, 44px); }

/* ---- Photograph ----
   Bled off the outer edge of the container on purpose: a photo that runs out
   of the page is the single clearest signal that this is not another card in
   a grid. Radius is kept only on the inner corners for the same reason. */
.svc-entry__media{
  grid-area: media;
  position: sticky; top: calc(var(--header-h) + 32px);
  margin-right: calc(-1 * var(--svc-bleed));
}
.svc-entry--flip .svc-entry__media{
  margin-right: 0; margin-left: calc(-1 * var(--svc-bleed));
}
.svc-entry__frame{
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.85);
}
.svc-entry--flip .svc-entry__frame{ border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.svc-entry__frame img{ width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.svc-entry__frame::after{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(70,142,239,.18), transparent 46%);
}
/* Caption stays inside the text column even though its photo does not — it is
   type, and type that runs to the edge of the screen stops being readable. */
.svc-entry__media figcaption{
  display: flex; align-items: center; gap: 10px;
  margin-top: var(--space-4); padding-right: var(--svc-bleed);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--svc-dim);
}
.svc-entry--flip .svc-entry__media figcaption{
  padding-right: 0; padding-left: var(--svc-bleed);
}
.svc-entry__media figcaption::before{
  content: ''; width: 18px; height: 1px; background: var(--color-primary); flex-shrink: 0;
}

@media (max-width: 1000px){
  /* Stacked: the spine turns into a header rule, and the photograph goes
     full-bleed across both edges rather than keeping one arbitrary side. */
  .svc-entry__grid,
  .svc-entry--flip .svc-entry__grid{
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "rail" "media" "body";
    gap: var(--space-8);
  }
  .svc-entry__rail,
  .svc-entry--flip .svc-entry__rail{
    position: static; flex-direction: row; align-items: center; gap: var(--space-4);
    padding-bottom: var(--space-5); border-bottom: 1px solid var(--svc-line);
  }
  .svc-entry__vert,
  .svc-entry--flip .svc-entry__vert{
    writing-mode: horizontal-tb; transform: none; letter-spacing: .24em;
  }
  .svc-entry__rail::after{ width: auto; flex: 1; height: 1px; background: linear-gradient(90deg, var(--color-primary), transparent); }
  .svc-entry__media,
  .svc-entry--flip .svc-entry__media{
    position: static; margin-inline: calc(-1 * var(--svc-gutter));
  }
  .svc-entry__frame,
  .svc-entry--flip .svc-entry__frame{ border-radius: 0; }
  .svc-entry__frame img{ aspect-ratio: 16/10; }
  .svc-entry__media figcaption,
  .svc-entry--flip .svc-entry__media figcaption{ padding-inline: var(--svc-gutter); }
  .svc-entry__title{ margin-top: var(--space-4); }
}

/* ==========================================================================
   04 · Included — circular 3D gallery
   Eight cards on a true ring, not a coverflow: each .svc-circular__item has
   one static transform (rotateY(--angle) translateZ(--circ-radius)) set in
   the markup, and only .svc-circular__ring itself is animated — written
   every frame by assets/js/servicios-carousel.js (drag, idle auto-rotate,
   arrow/keyboard snap). Everything cosmetic — the glass card, depth-driven
   blur/brightness, the cursor-tracking glow, hover lift, entrance stagger —
   lives on the nested .svc-slide__card, which the ring's own transform
   never touches. Two elements, two different transforms, so neither fights
   the other for the property. Plain vanilla JS/CSS: no framework, no build
   step, nothing to install. See servicios-carousel.js for the
   --depth/--mx/--my/--i/--angle custom properties this sheet reads.
   ========================================================================== */
.svc-carousel{
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px);
  /* white → very light grey → a hint of brand blue, never flat white */
  background: linear-gradient(185deg, #fff 0%, #F5F7FB 46%, #ECF2FC 100%);
}

/* ---- Ambient backdrop: two soft blurred colour pools + a hair of grain.
   Static (not scroll-parallaxed) — the carousel itself supplies the motion,
   the backdrop's job is depth, not another moving part. ---- */
.svc-carousel__bg{ position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.svc-carousel__orb{ position: absolute; border-radius: 50%; filter: blur(64px); }
.svc-carousel__orb--a{
  width: min(46vw, 620px); height: min(46vw, 620px);
  top: -16%; right: -8%;
  background: radial-gradient(circle, rgba(70,142,239,.26), transparent 70%);
}
.svc-carousel__orb--b{
  width: min(34vw, 460px); height: min(34vw, 460px);
  bottom: -18%; left: -8%;
  background: radial-gradient(circle, rgba(70,142,239,.15), transparent 70%);
}
/* Feather-light fractal noise, multiplied over the gradient so it reads as
   grain, not as visible pixels. */
.svc-carousel__grain{
  position: absolute; inset: -10%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
  opacity: .035; mix-blend-mode: multiply;
}

.svc-carousel > .container{ position: relative; z-index: 1; }
.svc-carousel .svc-included__head{
  max-width: 620px; margin-inline: auto; text-align: center;
  margin-bottom: clamp(4px, 1vw, 12px);
}
.svc-carousel .svc-included__head h2{
  margin-top: var(--space-4);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); letter-spacing: -.035em;
}
.svc-carousel .svc-included__head p{
  margin: var(--space-4) auto 0; color: var(--color-text-muted); font-size: var(--fs-lead);
}

/* ---- Stage: full-bleed (a sibling of .container, not nested in it) so the
   gallery isn't boxed to the same 1240px measure as the rest of the page —
   the one deliberately immersive moment on it.

   Ring: a true circle, not a coverflow. Each .svc-circular__item gets
   one static transform (rotateY(--angle) translateZ(--circ-radius)) set
   inline in the markup; only .svc-circular__ring itself is ever animated,
   and only from JS (servicios-carousel.js writes rotateY() every frame for
   drag/auto-rotate/snap) — no CSS transition here, or it would fight the
   1:1 tracking while dragging. */
.svc-circular{
  position: relative; z-index: 1; margin-top: clamp(28px, 4vw, 48px);
  cursor: grab; touch-action: pan-y;
}
.svc-circular:active{ cursor: grabbing; }
.svc-circular__stage{
  position: relative;
  height: clamp(420px, 46vw, 560px);
  perspective: 1600px;
}
.svc-circular__ring{
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  /* Rotated every animation frame for as long as the section is on screen
     (idle auto-rotate never fully stops) — promote it to its own compositor
     layer up front instead of letting the browser detect-and-promote after
     the first few frames, which is where the initial stutter came from. */
  will-change: transform;
}
.svc-circular__item{
  --circ-radius: clamp(300px, 32vw, 440px);
  --circ-item-w: min(300px, 72vw);
  position: absolute; top: 50%; left: 50%;
  width: var(--circ-item-w); height: 360px;
  margin-left: calc(var(--circ-item-w) / -2);
  margin-top: -180px;
  transform: rotateY(var(--angle)) translateZ(var(--circ-radius));
  transform-style: preserve-3d;
}

/* ---- The card. Frosted glass, one soft elevated shadow, no hard border.
   Perspective already shrinks/pushes back the side cards on its own (each
   sits at the same distance from the ring's own centre, so rotateY alone
   does the sizing); this only adds the depth cueing perspective can't do —
   blur, dimming, entrance and hover — via --depth/--enter/--hover-*. ---- */
.svc-slide__card{
  position: relative; isolation: isolate; overflow: hidden;
  height: 100%; min-height: 340px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.38));
  border: 1px solid rgba(255,255,255,.6);
  box-shadow:
    0 1px 1px rgba(20, 30, 60, .03),
    0 24px 46px -24px rgba(30, 50, 90, .28),
    0 2px 0 rgba(255, 255, 255, .5) inset;
  cursor: pointer;
  --hover-y: 0px; --hover-scale: 1; --depth: 0; --enter: 0;
  transform:
    translateY(calc((1 - var(--enter)) * 26px + var(--hover-y)))
    rotateX(calc((1 - var(--enter)) * -6deg))
    scale(var(--hover-scale));
  filter: blur(calc(min(var(--depth), 1) * 5px)) brightness(calc(1 - min(var(--depth), 1) * .18));
  opacity: calc(max(1 - min(var(--depth), 1) * .85, .18) * var(--enter));
  /* filter (blur) is deliberately NOT in this list: servicios-carousel.js
     rewrites --depth every animation frame while the ring auto-rotates, and
     a CSS transition retriggering on top of an already-continuous value is
     just double work — the browser re-rasterizes the blur for a transition
     *and* for the next frame's new target, every 16ms, for up to 8 cards at
     once. That compounding cost was the actual stutter; opacity is cheap
     enough (compositor-only, no resampling) that leaving its transition in
     for the one-time entrance fade costs nothing at steady state. */
  transition:
    transform .6s var(--ease-out), opacity .12s linear,
    box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
/* Frosted glass only once the entrance transform has settled (class added
   by servicios-carousel.js after the last card's stagger+transition ends).
   backdrop-filter has to resample the backdrop on every single frame an
   element under it is moving — animating the entrance transform on up to
   8 cards that already had backdrop-filter on was the actual first-scroll
   stutter, so the blur now switches on only once nothing is moving. */
.svc-carousel.is-settled .svc-slide__card:not(.svc-slide__card--flat){
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
/* Past the halfway point of the ring a card is already faded to ~20%
   opacity and half-covered by the ones in front — frosted glass back
   there is compositing cost nobody can see. servicios-carousel.js toggles
   this once a card crosses that threshold, so only the 2-3 cards actually
   facing the viewer pay for backdrop-filter at any moment. */
.svc-slide__card--flat{
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: rgba(235, 240, 248, .82);
}
.svc-carousel.is-visible .svc-slide__card{ --enter: 1; }
/* Depth response has to track the ring's rotation frame by frame, so it
   cannot carry the entrance choreography's per-card delay once revealed. */
.svc-carousel.is-visible .svc-circular__ring .svc-slide__card{ transition-delay: 0s; }

.svc-slide__card:hover{
  --hover-y: -10px; --hover-scale: 1.035;
  border-color: rgba(70, 142, 239, .45);
  box-shadow:
    0 1px 1px rgba(20, 30, 60, .04),
    0 34px 70px -24px rgba(45, 110, 220, .4),
    0 0 0 1px rgba(70, 142, 239, .12),
    0 2px 0 rgba(255, 255, 255, .6) inset;
}

/* Cursor-tracking glow — a radial highlight pinned to --mx/--my (written by
   servicios-carousel.js on pointermove), not a generic centred glow. Sits
   above the flip (z-index 2) so it still reads on whichever face is up. */
.svc-slide__sheen{
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 35%), rgba(70, 142, 239, .28), transparent 60%);
  transition: opacity .4s var(--ease-out);
}
.svc-slide__card:hover .svc-slide__sheen{ opacity: 1; }

/* ---- Flip: front is the photo, back is the copy that used to be the whole
   card. A click on the front-facing card (servicios-carousel.js) toggles
   .is-flipped; rotateY lives on .svc-slide__flip-inner alone, so it never
   touches the depth/entrance/hover transform one level up on
   .svc-slide__card, or the ring's own transform two levels up. ---- */
.svc-slide__flip{
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  perspective: 1200px;
}
.svc-slide__flip-inner{
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease-spring);
}
.svc-slide__card.is-flipped .svc-slide__flip-inner{ transform: rotateY(180deg); }

.svc-slide__face{
  position: absolute; inset: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column;
}
.svc-slide__face--front{ justify-content: flex-end; padding: clamp(20px, 2.4vw, 28px); }
.svc-slide__face--front img{
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.svc-slide__face-veil{
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(190deg, rgba(10, 14, 30, 0) 32%, rgba(10, 14, 30, .72) 100%);
}
.svc-slide__face--front h3{
  position: relative; z-index: 1;
  color: #fff; font-size: 1.12rem; letter-spacing: -.015em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
/* Small "flip" affordance so the photo doesn't look like a dead end —
   discoverable on hover, still there (just quieter) for touch. */
.svc-slide__flip-cue{
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(15, 20, 35, .38);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; opacity: .85;
  transition: transform .3s var(--ease-spring), opacity .3s var(--ease-out), background .3s var(--ease-out);
}
.svc-slide__flip-cue svg{ width: 16px; height: 16px; }
.svc-slide__card:hover .svc-slide__flip-cue{ opacity: 1; background: var(--color-primary); transform: rotate(180deg); }

.svc-slide__face--back{
  justify-content: flex-start;
  padding: clamp(28px, 3vw, 36px);
  transform: rotateY(180deg);
  background: linear-gradient(160deg, rgba(255,255,255,.86), rgba(255,255,255,.7));
}

.svc-slide__icon{
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: clamp(20px, 3vw, 28px);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(70, 142, 239, .16), rgba(70, 142, 239, .05));
  border: 1px solid rgba(70, 142, 239, .18);
  color: var(--color-primary);
}
.svc-slide__icon svg{ width: 24px; height: 24px; }

.svc-slide__face--back h3{ position: relative; z-index: 1; font-size: 1.2rem; letter-spacing: -.015em; }
.svc-slide__face--back p{
  position: relative; z-index: 1;
  margin-top: 10px; font-size: .92rem; line-height: 1.6; color: var(--color-text-muted);
}

/* ---- Custom nav arrows — the ring wraps in both directions, so unlike a
   bounded slider there is no "first/last" disabled state to style. ---- */
.svc-carousel__arrow{
  position: absolute; top: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 14px 30px -14px rgba(30, 50, 90, .35);
  color: var(--color-ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .3s var(--ease-out), transform .3s var(--ease-spring), box-shadow .3s var(--ease-out), opacity .3s var(--ease-out);
}
.svc-carousel__arrow svg{ width: 20px; height: 20px; }
.svc-carousel__arrow:hover{ background: #fff; transform: translateY(-50%) scale(1.08); box-shadow: 0 18px 36px -14px rgba(30, 50, 90, .45); }
.svc-carousel__arrow:active{ transform: translateY(-50%) scale(.96); }
.svc-carousel__arrow--prev{ left: clamp(4px, 2vw, 28px); }
.svc-carousel__arrow--next{ right: clamp(4px, 2vw, 28px); }

/* ---- Pagination — plain buttons generated by servicios-carousel.js.
   Class names kept as .swiper-pagination-bullet* on purpose: this is the
   one visual language the coverflow-era styling already got right, no
   reason to rename it now that JS generates the dots instead of Swiper. ---- */
.svc-carousel__pagination{
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: clamp(24px, 3.5vw, 36px);
}
.svc-carousel__pagination .swiper-pagination-bullet{
  width: 8px; height: 8px; margin: 0 !important; border-radius: 50%; opacity: 1;
  background: var(--color-border-strong);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.svc-carousel__pagination .swiper-pagination-bullet-active{
  background: var(--color-primary); transform: scale(1.35);
}

.svc-carousel .svc-included__foot{
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-6); margin-top: clamp(36px, 5vw, 56px);
}
.svc-carousel .svc-included__note{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--color-text-faint);
}
.svc-cell__dot{
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-primary);
  animation: svcPulse 2.2s var(--ease-out) infinite;
}
@keyframes svcPulse{
  0%, 100%{ opacity: .5; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.3); }
}

/* prefers-reduced-motion: servicios-carousel.js reads the same media query
   and turns off idle auto-rotate and drag momentum on its own; the CSS side
   only needs to drop the entrance choreography and the depth response. */
@media (prefers-reduced-motion: reduce){
  .svc-cell__dot{ animation: none; }
  .svc-carousel.no-motion .svc-slide__card{
    transition: none; filter: none; transform: none; opacity: 1;
  }
  .svc-slide__flip-inner{ transition: none; }
  /* Dropping filter/opacity above also drops the only thing that was
     masking cards past the 90° mark — normally near-invisible from blur
     and near-zero opacity, but at full opacity/no-blur here they show as
     legible, mirrored backs. The ring never rotates under reduced motion
     (autoRotating starts false and pauseAutoRotate never restarts it), so
     there is no animation for backface-visibility to interrupt — it just
     hides whichever half of the ring faces away from the viewer. */
  .svc-circular__item{ backface-visibility: hidden; -webkit-backface-visibility: hidden; }
}

@media (max-width: 999px){
  .svc-carousel__arrow{ width: 44px; height: 44px; }
}
@media (max-width: 619px){
  /* Touch drag is the primary interaction here, so the floating arrow
     buttons — sized for a mouse — just get in the way; the dots remain as
     the progress read-out. */
  .svc-carousel__arrow{ display: none; }
  .svc-circular{ margin-top: 20px; }
  /* Same ring transform as desktop (rotateY then translateZ, unchanged) —
     only the inputs change. The base clamp's 72vw item width leaves the
     radius (floored at 300px) barely bigger than the card itself, so at
     phone widths the ring reads as a stack instead of a circle: no margin
     for neighbours to recede into, and a radius:width ratio far below
     desktop's (~1.0 here vs ~1.4+ on a wide screen). Shrinking the card and
     giving the radius more room restores that same ratio, so the front
     card still grows toward the camera exactly like on desktop — it just
     does it at a size that fits a phone.

     Growing toward the camera also scales the item's *height* by the same
     perspective factor (~1.25x here), so the item height and stage height
     are cut to match — same 5:6 width:height as the desktop card, scaled
     down — otherwise the enlarged front card overshoots a stage sized for
     the unscaled box. */
  .svc-circular__stage{ height: clamp(340px, 84vw, 380px); }
  .svc-circular__item{
    --circ-item-w: min(210px, 54vw);
    --circ-radius: 320px;
    height: 252px; margin-top: -126px;
  }
  .svc-slide__card{ min-height: 0; border-radius: 20px; }
  .svc-slide__face--front{ padding: 20px; }
  .svc-slide__face--back{ padding: 24px; }
}

/* ==========================================================================
   05 · Process — "Cómo trabajamos"
   A deliberate departure from the dossier's ruled-index voice used
   everywhere else on this page: no timeline, no progress track, no printed
   numerals. Four full-height panels in plain document flow (no scroll-
   jacking), each a text column paired with a self-illustrated glass "scene"
   built entirely from CSS/SVG — no stock photography. Motion is a single
   scroll reveal per block plus a very light pointer-tilt on the scene;
   everything else (rings, cards, circuit, bars) breathes continuously but
   quietly.
   ========================================================================== */
.proc{
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--svc-ink); color: var(--color-on-dark);
  padding-block: clamp(72px, 9vw, 128px) clamp(48px, 6vw, 80px);
  --mx: 0; --my: 0;
}
.proc .container{ position: relative; z-index: 2; }

/* Grid: sparse dot lattice, faded toward the edges so it reads as texture
   under the type rather than a pattern laid over it. */
.proc__grid{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(85% 60% at 50% 24%, #000, transparent 78%);
  mask-image: radial-gradient(85% 60% at 50% 24%, #000, transparent 78%);
}

/* Diffuse lights: two soft blue pools that drift slowly on their own and
   nudge a little further along the pointer, so the void never reads as
   inert. The drift keyframes re-declare the same var(--mx)/var(--my) calc
   as the base rule (same trick as .proc__particle's float) rather than
   animating margin: margin is a layout property, and animating it on two
   640px filter:blur(90px) blobs forced a layout recalc + blur re-raster
   every frame, forever, on every page load — real, continuous jank, not
   just while this section was in view. transform is compositor-only. */
.proc__glow{
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  filter: blur(90px);
  transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 18px));
  transition: transform .6s var(--ease-out);
  animation: procGlowDrift 16s ease-in-out infinite;
}
.proc__glow--a{
  width: min(50vw, 640px); height: min(50vw, 640px);
  top: 2%; right: -12%;
  background: radial-gradient(circle, rgba(70,142,239,.24), transparent 70%);
}
.proc__glow--b{
  width: min(40vw, 520px); height: min(40vw, 520px);
  bottom: 4%; left: -14%;
  background: radial-gradient(circle, rgba(70,142,239,.16), transparent 70%);
  animation-delay: -8s;
}
@keyframes procGlowDrift{
  0%, 100%{ transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 18px)); }
  50%{ transform: translate(calc(var(--mx) * 18px + 22px), calc(var(--my) * 18px - 16px)); }
}

.proc__head{ position: relative; z-index: 1; max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.proc__head h2{
  margin-top: var(--space-4);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); letter-spacing: -.035em; color: #fff;
}

/* Compact 2x2 grid — four short cards instead of four near-full-height
   stacked blocks. Same glass/icon/scene vocabulary, a fraction of the
   vertical real estate: the whole section now reads in one glance instead
   of four screens of scrolling. */
.proc__cards{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}
.proc__card{
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: clamp(20px, 2.6vw, 32px);
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 26px 50px -32px rgba(0,0,0,.6);
}

/* ---- Card body: icon, title, lead, optional link ---- */
.proc__icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  color: var(--svc-dim);
  transition: background var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out),
              color var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.proc__icon svg{ width: 19px; height: 19px; }
.proc__card.is-inview .proc__icon{
  background: rgba(70,142,239,.16); border-color: rgba(70,142,239,.4); color: #fff;
  box-shadow: 0 0 0 5px rgba(70,142,239,.10);
}
.proc__card-body h3{
  margin-top: var(--space-3);
  font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem);
  letter-spacing: -.02em; color: #fff;
}
.proc__card-body p{
  margin-top: 8px; max-width: 32ch;
  font-size: .92rem; line-height: 1.55; color: var(--svc-dim);
}
.proc__cta{
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  margin-top: clamp(14px, 1.6vw, 20px);
  font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: #fff;
}
.proc__cta span{ position: relative; }
.proc__cta span::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: rgba(255,255,255,.35); transform: scaleX(.35); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.proc__cta svg{ width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.proc__cta:hover span::after{ transform: scaleX(1); background: var(--color-primary); }
.proc__cta:hover svg{ transform: translateX(4px); color: var(--color-primary); }

/* ---- Scroll reveal: opacity + translate + blur, once per card. Hidden
   state only exists under .has-js (set synchronously in <head>), so a
   no-JS visitor never gets stuck with invisible content — same contract
   as .reveal in style.css. ---- */
.has-js .proc__card-body, .has-js .proc__card-scene{
  opacity: 0; transform: translateY(20px); filter: blur(5px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
}
.has-js .proc__card-scene{ transition-delay: .1s; }
.proc__card.is-inview .proc__card-body,
.proc__card.is-inview .proc__card-scene{
  opacity: 1; transform: translateY(0); filter: blur(0);
}

/* ---- Scene column: the glass "scene", now a fixed compact tile rather
   than a near-full-width panel ---- */
.proc__card-scene{ flex-shrink: 0; }
.proc__scene{
  position: relative; isolation: isolate;
  width: clamp(104px, 10vw, 144px); aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 20px 40px -22px rgba(70,142,239,.32),
    0 16px 30px -18px rgba(0,0,0,.6);
  transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out);
}
.proc__scene:hover{
  box-shadow:
    0 1px 0 rgba(255,255,255,.1) inset,
    0 24px 48px -20px rgba(70,142,239,.42),
    0 16px 30px -16px rgba(0,0,0,.65);
}

/* ---- Scene 1 · Primera visita — a radar-like pulse: expanding rings
   around a glowing core, with a few particles drifting lazily. ---- */
.proc__scene--visita{ display: flex; align-items: center; justify-content: center; }
.proc__ring{
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px solid rgba(70,142,239,.35);
  animation: procRingPulse 3.6s var(--ease-out) infinite;
}
.proc__ring--1{ width: 46px; height: 46px; }
.proc__ring--2{ width: 72px; height: 72px; animation-delay: .9s; border-color: rgba(70,142,239,.24); }
.proc__ring--3{ width: 98px; height: 98px; animation-delay: 1.8s; border-color: rgba(70,142,239,.14); }
@keyframes procRingPulse{
  0%{ transform: translate(-50%,-50%) scale(.82); opacity: .9; }
  70%{ opacity: .12; }
  100%{ transform: translate(-50%,-50%) scale(1.05); opacity: 0; }
}
.proc__core{
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #cfe6ff, var(--color-primary) 70%);
  box-shadow: 0 0 0 4px rgba(70,142,239,.18), 0 0 16px 3px rgba(70,142,239,.55);
  animation: procCorePulse 2.4s ease-in-out infinite;
}
@keyframes procCorePulse{
  0%, 100%{ transform: translate(-50%,-50%) scale(1); }
  50%{ transform: translate(-50%,-50%) scale(1.14); }
}
.proc__particle{
  position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: #9fd4ff; box-shadow: 0 0 10px 2px rgba(70,142,239,.6);
  animation: procFloat 5.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes procFloat{
  0%, 100%{ transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); }
  50%{ transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 8px)); }
}

/* ---- Scene 2 · Tu plan — three glass tiles in a loose fan, the middle one
   picked (ring + check), each bobbing on its own clock. ---- */
.proc__scene--plan{ display: flex; align-items: center; justify-content: center; }
.proc__plan-card{
  position: absolute; width: 34%; aspect-ratio: 3 / 4; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 40px -22px rgba(0,0,0,.55);
}
.proc__plan-card::before, .proc__plan-card::after{
  content: ''; position: absolute; left: 18%; right: 24%; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.16);
}
.proc__plan-card::before{ top: 22%; }
.proc__plan-card::after{ top: 34%; right: 40%; }
.proc__plan-card--a{ transform: translate(-58%, 5px) rotate(-9deg); animation: procBobA 5s ease-in-out infinite; }
.proc__plan-card--c{ transform: translate(58%, 5px) rotate(9deg); animation: procBobC 5s ease-in-out infinite .6s; }
@keyframes procBobA{ 0%, 100%{ transform: translate(-58%, 5px) rotate(-9deg); } 50%{ transform: translate(-58%, 1px) rotate(-9deg); } }
@keyframes procBobC{ 0%, 100%{ transform: translate(58%, 5px) rotate(9deg); } 50%{ transform: translate(58%, 1px) rotate(9deg); } }
.proc__plan-card--b{
  z-index: 1; transform: translate(0, -7px) scale(1.06);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14%;
  color: var(--color-primary); border-color: rgba(70,142,239,.55);
  box-shadow: 0 0 0 1px rgba(70,142,239,.3), 0 14px 28px -14px rgba(70,142,239,.45);
  animation: procBobB 5s ease-in-out infinite .3s;
}
@keyframes procBobB{ 0%, 100%{ transform: translate(0, -7px) scale(1.06); } 50%{ transform: translate(0, -11px) scale(1.06); } }
.proc__plan-card--b svg{ width: 16px; height: 16px; filter: drop-shadow(0 0 6px rgba(70,142,239,.6)); }

/* ---- Scene 3 · Instalación — an abstract node network with one path lit
   by a travelling pulse, like a circuit powering on. ---- */
.proc__circuit{ position: absolute; inset: 10%; width: 80%; height: 80%; }
.proc__circuit-glow{
  stroke-dasharray: 34 160;
  animation: procCircuitTravel 3.2s linear infinite;
}
@keyframes procCircuitTravel{ to{ stroke-dashoffset: -194; } }
.proc__node{
  fill: #9fd4ff;
  filter: drop-shadow(0 0 6px rgba(70,142,239,.85));
  animation: procNodePulse 2.6s ease-in-out infinite;
  animation-delay: var(--nd, 0s);
  transform-box: fill-box; transform-origin: center;
}
@keyframes procNodePulse{ 0%, 100%{ opacity: .5; transform: scale(1); } 50%{ opacity: 1; transform: scale(1.25); } }

/* ---- Scene 4 · Crecimiento — ascending glass bars breathing gently under
   a single glowing trend line that draws in on reveal. ---- */
.proc__scene--crecimiento{ display: flex; align-items: flex-end; justify-content: space-between; gap: 8%; padding: 16% 14%; }
.proc__bar{
  position: relative; flex: 1; height: var(--h); border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, rgba(159,212,255,.9), rgba(70,142,239,.55));
  box-shadow: 0 0 24px -6px rgba(70,142,239,.5);
  transform-origin: bottom;
  animation: procBarBreathe 4.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes procBarBreathe{ 0%, 100%{ transform: scaleY(1); } 50%{ transform: scaleY(1.05); } }
.proc__growth-line{ position: absolute; inset: 12% 8% auto 8%; height: 58%; width: 84%; z-index: 1; }
.proc__growth-line path{
  stroke-dasharray: 300; stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.5s var(--ease-out) .35s;
}
.proc__card.is-inview .proc__growth-line path{ stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce){
  .has-js .proc__card-body, .has-js .proc__card-scene{ opacity: 1 !important; transform: none !important; filter: none !important; }
  .proc__scene{ transform: none !important; }
  .proc__glow, .proc__ring, .proc__core, .proc__particle,
  .proc__plan-card, .proc__circuit-glow, .proc__node, .proc__bar{ animation: none !important; }
  /* The travelling dash has no meaningful static frame (it would freeze on
     an arbitrary, possibly near-transparent, slice of the gradient) — draw
     the full path solid instead of stopping the animation mid-dash. */
  .proc__circuit-glow{ stroke-dasharray: none !important; }
  .proc__growth-line path{ stroke-dashoffset: 0 !important; transition: none !important; }
}

/* Tablet: one card per row instead of 2x2, still body-beside-scene inside
   each card — there's more width to spare per card at this point, not
   less. Only true phone widths stack scene-above-body within the card. */
@media (max-width: 760px){
  .proc__cards{ grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 3vw, 20px); }
}

@media (max-width: 480px){
  .proc__card{ grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .proc__card-body{ display: flex; flex-direction: column; align-items: center; }
  .proc__card-scene{ order: -1; margin-bottom: 4px; }
  .proc__scene{ width: clamp(84px, 26vw, 108px); }
}

/* ==========================================================================
   Espacios
   Was a light page-hero + a photo "scene" + a pinned white-card carousel +
   a light bento — a visibly different, older register right after the dark
   Servicios chapter. Rebuilt in the same ink/glass/brand-blue vocabulary so
   the page doesn't change register mid-scroll; the 6-card gallery drops the
   pin/scroll-jack mechanic entirely in favour of a plain grid, on the same
   lesson learned from Cómo trabajamos: a compact grid you can see all of at
   once reads better than four (or six) screens of one-at-a-time scrolling.
   ========================================================================== */
.esp-cover{
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--svc-ink); color: var(--color-on-dark);
  padding-block: clamp(64px, 8vw, 112px);
}
.esp-cover::before{
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(55% 60% at 10% 10%, rgba(70,142,239,.18), transparent 62%);
}
.esp-cover__rules{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 12.5%);
  -webkit-mask-image: linear-gradient(#000, transparent 70%);
  mask-image: linear-gradient(#000, transparent 70%);
}
.esp-cover .container{ position: relative; z-index: 1; }
.esp-cover__grid{
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(40px, 6vw, 96px);
}
.esp-cover__body{ max-width: 480px; }
.esp-cover__body h2{
  margin-top: var(--space-4);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem);
  line-height: 1.04; letter-spacing: -.035em; color: #fff;
}
.esp-cover__lead{ margin-top: var(--space-5); max-width: 46ch; font-size: var(--fs-lead); color: var(--svc-dim); }
.esp-cover__actions{ display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }

.esp-cover__media{ position: relative; }
.esp-cover__frame{
  position: relative; overflow: hidden; border-radius: var(--radius-lg); isolation: isolate;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
}
.esp-cover__frame img{ width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
.esp-cover__frame::after{
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(200deg, rgba(70,142,239,.2), transparent 46%);
}

/* ---- Gallery: full-bleed interactive slider, not a flat grid of six
   thumbnail cards. One photograph fills the screen at a time (crossfade +
   a light settle-zoom, both plain CSS transitions — no WebGL, no extra
   library), the active space's name reveals word-by-word with the same
   masked-span technique [data-split] already uses elsewhere on this page,
   and a six-row index down the side doubles as navigation, its progress
   line a single CSS `width` transition timed to the autoplay clock. All
   copy — title/description/tags — lives once, in the nav list's markup;
   assets/js/esp-slider.js reads it from there rather than duplicating it
   in JS, so with .has-js stripped (no JS) this list alone is already a
   complete, readable index of the six spaces under the section heading. */
.esp-gallery{
  position: relative; isolation: isolate;
  background: var(--svc-ink-2); color: var(--color-on-dark);
  padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--svc-line);
}
.esp-gallery__head{ max-width: 640px; margin-bottom: clamp(28px, 4vw, 40px); }
.esp-gallery__head h2{
  margin-top: var(--space-4);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); letter-spacing: -.035em; color: #fff;
}

/* ---- Stage: sibling of .container (like .svc-carousel__stage), so it
   bleeds to the full viewport width while .esp-gallery__head above and
   .esp-gallery__overlay inside stay on the shared 1240px measure. ---- */
.esp-gallery__stage{
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg);
  margin-inline: clamp(20px, 5vw, 48px);
}
@media (min-width: 1290px){
  /* Past the container's own max-width the gutter stops shrinking, so the
     stage's side margin would otherwise keep growing with the viewport. */
  .esp-gallery__stage{ margin-inline: calc((100vw - var(--container-max)) / 2 + 48px); }
}
.esp-gallery__slide{ position: relative; }
.esp-gallery__slide img{ display: block; width: 100%; height: auto; }
.esp-gallery__slide:not(:first-of-type){ display: none; } /* no-JS: cover photo only */

.has-js .esp-gallery__stage{ height: clamp(520px, 82vh, 720px); }
.esp-gallery__stage:focus-visible{ outline: 2px solid var(--color-primary); outline-offset: 3px; }
.has-js .esp-gallery__slides{ position: absolute; inset: 0; }
.has-js .esp-gallery__slide{
  position: absolute; inset: 0; display: block;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s var(--ease-out), visibility 0s linear 1.1s;
}
.has-js .esp-gallery__slide.is-active{
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity 1.1s var(--ease-out), visibility 0s;
}
.has-js .esp-gallery__slide img{
  height: 100%; object-fit: cover; object-position: 50% 50%;
  transform: scale(1.09); transition: transform 6.5s linear;
}
.has-js .esp-gallery__slide.is-active img{ transform: scale(1); }

/* thin brand-blue accent that sweeps the stage's top edge on every
   transition — the same rule-and-colour vocabulary as .svc-ticker */
.esp-gallery__sweep{
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 2px;
  background: var(--color-primary); opacity: 0;
  transform: scaleX(0); transform-origin: left;
}
.esp-gallery__sweep.is-active{
  opacity: 1; transform: scaleX(1);
  transition: transform 1.1s var(--ease-out), opacity .15s linear;
}

.esp-gallery__scrim{
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(10,11,15,.92) 0%, rgba(10,11,15,.52) 40%, rgba(10,11,15,.12) 64%, rgba(10,11,15,.5) 100%),
    linear-gradient(100deg, rgba(10,11,15,.5) 0%, rgba(10,11,15,0) 48%);
}
.esp-gallery__rules{
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 12.5%);
  -webkit-mask-image: linear-gradient(transparent, #000 55%, transparent);
  mask-image: linear-gradient(transparent, #000 55%, transparent);
}

/* ---- Overlay: content on the shared 1240px measure, laid over the
   full-bleed photograph beneath it. ---- */
.esp-gallery__overlay{ position: relative; padding-block: clamp(24px, 3.4vw, 36px); }
.has-js .esp-gallery__overlay{
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; pointer-events: none;
}
.has-js .esp-gallery__overlay > *{ pointer-events: auto; }

.esp-gallery__top{ display: flex; justify-content: flex-end; }
.esp-gallery__count{
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.esp-gallery__count [data-count-current]{ color: #fff; }
.esp-gallery__count-sep{ margin: 0 3px; opacity: .5; }

.esp-gallery__bottom{
  margin-top: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: end; gap: clamp(24px, 4vw, 56px);
}
.has-js .esp-gallery__bottom{ margin-top: auto; }

.esp-gallery__title{
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.8rem);
  line-height: 1; letter-spacing: -.04em; color: #fff;
  text-shadow: 0 2px 30px rgba(8,9,13,.5);
}
.esp-gallery__title .split-line{ vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.has-js .esp-gallery__title .split-word{ transform: translateY(110%); }

.esp-gallery__desc{
  margin-top: var(--space-4); max-width: 46ch;
  font-size: var(--fs-lead); color: rgba(255,255,255,.86);
  text-shadow: 0 1px 16px rgba(8,9,13,.5);
}
.has-js .esp-gallery__desc{ opacity: 0; }

.esp-gallery__tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.has-js .esp-gallery__tags{ opacity: 0; }
.esp-gallery__tags .esp-tag{
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---- Nav list: six rows (numeral, title, progress track), each also the
   printed-index fallback for its own desc/tags. Vertical on desktop;
   becomes a horizontal snap strip under 900px. ---- */
.esp-gallery__nav{ display: flex; flex-direction: column; }
.esp-gallery__navitem{ border-bottom: 1px solid rgba(255,255,255,.14); }
.esp-gallery__navitem:first-child{ border-top: 1px solid rgba(255,255,255,.14); }
.esp-gallery__navbtn{
  all: unset; box-sizing: border-box; cursor: pointer;
  display: block; width: 100%; padding: 11px 2px;
}
.esp-gallery__navbtn:focus-visible{ outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 6px; }
.esp-gallery__navhead{ display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.esp-gallery__navtitle{
  font-family: var(--font-display); font-weight: 600;
  font-size: .95rem; letter-spacing: -.01em; color: rgba(255,255,255,.62);
  transition: color var(--dur-base) var(--ease-out);
}
.esp-gallery__navnum{ font-family: var(--font-mono); font-size: .68rem; color: rgba(255,255,255,.35); }
.esp-gallery__navtrack{
  display: block; margin-top: 9px; height: 2px; border-radius: 999px;
  background: rgba(255,255,255,.16); overflow: hidden;
}
.esp-gallery__navfill{
  display: block; height: 100%; width: 100%; background: var(--color-primary);
  transform: scaleX(0); transform-origin: left;
}
.esp-gallery__navfill.is-filling{ transform: scaleX(1); transition: transform var(--autoplay-ms, 6000ms) linear; }
.esp-gallery__navitem.is-active .esp-gallery__navtitle{ color: #fff; }
.esp-gallery__navbtn:hover .esp-gallery__navtitle{ color: #fff; }

/* base (no-JS) fallback content — each row reads as a small printed-index
   entry; assets/js/esp-slider.js reads title/desc/tags from here and
   hides them once it takes over, since the big panel above shows the
   active one instead. */
.esp-gallery__navdesc{ display: block; margin-top: 6px; max-width: 46ch; font-size: .875rem; line-height: 1.55; color: var(--svc-dim); }
.esp-gallery__navtags{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.has-js .esp-gallery__navdesc,
.has-js .esp-gallery__navtags{ display: none; }

/* ---- Arrows ---- */
.esp-gallery__arrow{
  position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(20,21,27,.45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; cursor: pointer;
  transition: background .3s var(--ease-out), transform .3s var(--ease-spring), border-color .3s var(--ease-out);
}
.has-js .esp-gallery__arrow{ display: flex; }
.esp-gallery__arrow:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.esp-gallery__arrow svg{ width: 20px; height: 20px; }
.esp-gallery__arrow:hover{ background: var(--color-primary); border-color: var(--color-primary); transform: translateY(-50%) scale(1.08); }
.esp-gallery__arrow--prev{ left: clamp(12px, 2.2vw, 28px); }
.esp-gallery__arrow--next{ right: clamp(12px, 2.2vw, 28px); }

@media (prefers-reduced-motion: reduce){
  .has-js .esp-gallery__slide{ transition: opacity .3s linear, visibility 0s; }
  .has-js .esp-gallery__slide img,
  .has-js .esp-gallery__slide.is-active img{ transition: none; transform: none; }
  .has-js .esp-gallery__title .split-word{ transform: none; }
  .has-js .esp-gallery__desc, .has-js .esp-gallery__tags{ opacity: 1 !important; }
  .esp-gallery__navfill.is-filling{ transition: none; }
  .esp-gallery__sweep{ transition: none !important; }
}

.esp-tag{
  font-family: var(--font-body); font-weight: 600; font-size: .75rem;
  padding: 5px 12px; border-radius: var(--radius-full);
  background: rgba(70,142,239,.12); border: 1px solid rgba(70,142,239,.3); color: #DCEAFF;
}

/* ---- Amenities: a quiet ruled grid, not eight boxed cards — the facts
   here don't need individual containment, just a hairline to separate
   them, matching .svc-index's "printed index" restraint. ---- */
.esp-amenities{
  position: relative;
  background: var(--svc-ink); color: var(--color-on-dark);
  padding-block: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--svc-line);
}
.esp-amenities__head{ max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.esp-amenities__head h2{
  margin-top: var(--space-4);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); letter-spacing: -.035em; color: #fff;
}
.esp-amenity-grid{
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 36px);
}
.esp-amenity{ padding-top: clamp(18px, 2.2vw, 22px); border-top: 1px solid var(--svc-line); }
.esp-amenity__icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: var(--space-3);
  background: rgba(70,142,239,.12); border: 1px solid rgba(70,142,239,.28); color: var(--color-primary);
}
.esp-amenity__icon svg{ width: 18px; height: 18px; }
.esp-amenity h4{ font-family: var(--font-display); font-weight: 600; font-size: .975rem; color: #fff; }
.esp-amenity p{ margin-top: 4px; font-size: .85rem; line-height: 1.5; color: var(--svc-dim); }

@media (max-width: 900px){
  .esp-cover__grid{ grid-template-columns: minmax(0, 1fr); }
  .esp-cover__media{ order: -1; }
  .esp-amenity-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .esp-gallery__stage{ margin-inline: clamp(16px, 4vw, 32px); border-radius: var(--radius-md); }
  .has-js .esp-gallery__stage{ height: clamp(560px, 108vw, 680px); }
  .esp-gallery__bottom{ grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .esp-gallery__nav{
    flex-direction: row; gap: clamp(20px, 4vw, 32px);
    overflow-x: auto; scroll-snap-type: x proximity;
    padding-bottom: 2px; -ms-overflow-style: none; scrollbar-width: none;
  }
  .esp-gallery__nav::-webkit-scrollbar{ display: none; }
  .esp-gallery__navitem{ flex: 0 0 auto; min-width: 132px; border: none; scroll-snap-align: start; }
  .esp-gallery__navitem:first-child{ border: none; }
  .esp-gallery__arrow{ width: 42px; height: 42px; }
  .esp-gallery__arrow svg{ width: 16px; height: 16px; }
}
@media (max-width: 560px){
  .esp-cover__actions .btn{ flex: 1 1 auto; }
  .has-js .esp-gallery__arrow{ display: none; }
  .esp-gallery__title{ font-size: clamp(1.7rem, 1.2rem + 4vw, 2.2rem); }
}

/* ==========================================================================
   06 · Closing band
   ========================================================================== */
.svc-cta{
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--svc-ink); color: #fff;
  padding-block: clamp(72px, 10vw, 136px);
  text-align: center;
}
.svc-cta__photo{
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
}
.svc-cta__veil{
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(rgba(14,15,20,.9), rgba(14,15,20,.88)),
    radial-gradient(70% 90% at 50% 0%, rgba(70,142,239,.42), transparent 62%);
}
.svc-cta .svc-label{ justify-content: center; }
.svc-cta h2{
  margin-top: var(--space-5);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.2rem);
  line-height: 1; letter-spacing: -.042em; color: #fff;
  max-width: 20ch; margin-inline: auto;
}
.svc-cta__lead{
  margin: var(--space-6) auto 0; max-width: 52ch;
  font-size: var(--fs-lead); color: rgba(255,255,255,.82);
}
.svc-cta__actions{
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-4); margin-top: var(--space-8);
}
.svc-cta__mail{
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(28px, 3.5vw, 44px);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.62);
  transition: color var(--dur-fast) var(--ease-out);
}
.svc-cta__mail:hover{ color: #fff; }
.svc-cta__mail svg{ width: 16px; height: 16px; color: var(--color-primary); }

@media (max-width: 560px){
  .svc-cta__actions .btn{ width: 100%; }
}
