/* =============================================================================
   Viva Talent — MOTION SYSTEM v2 (CSS half)  ·  JS half: js/motion.js
   -----------------------------------------------------------------------------
   Figma draws no motion, so this layer is a B1G proposal. It never changes the
   resting layout: every animation ends on the exact Figma frame (transforms are
   cleared, split text is reverted, helper elements are removed), and with motion
   off the page is pixel-identical.

   TWO TIERS (html[data-tier]):
     brand  Home, Candidates, Employers, About, How It Works — full load choreography.
     task   everything else — the first screen is simply there; only content below
            the fold reveals, and it does so fast.

   Layers:
     0. FAIL-SAFE   nothing stays hidden unless js/motion.js arms itself
     1. PAGE        280 ms cross-fade + 8px rise between pages — no curtain, preloader or intro gate (Standard v1 §1.3)
     2. LOAD/SCROLL declarative reveals, signature, match, steps, CV extraction (js/motion.js)
     3. HOVER/PRESS micro-interactions, CSS only
     4. STATE       accordion / stepper / tick / condensed header

   Rules: transform + opacity (+ clip-path for wipes) only · one easing family ·
   durations from the scale below · reduced-motion, ?motion=off, no-JS and print all
   resolve to the complete static page.
   ============================================================================= */

:root {
  /* Easing — one family. "out" is the signature curve (expo-like settle). */
  --vt-ease-out:    cubic-bezier(0.16, 1, 0.3, 1);      /* entrances, hovers           */
  --vt-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);     /* wipes, rules, accordions    */
  --vt-ease-soft:   cubic-bezier(0.33, 1, 0.68, 1);     /* colour / opacity only       */

  /* Durations — a 5-step scale. js/motion.js mirrors these values. */
  --vt-dur-1: 120ms;   /* colour, focus ring, pressed state        */
  --vt-dur-2: 200ms;   /* hover transforms, condensed header       */
  --vt-dur-3: 400ms;   /* small reveals, accordion, fades          */
  --vt-dur-4: 650ms;   /* block reveals, section headings          */
  --vt-dur-5: 900ms;   /* media wipes, counters                    */

  --vt-stagger: 50ms;         /* sibling offset, capped at 6 items     */
  --vt-reveal-y: 16px;        /* travel of the standard "up" reveal    */
  --vt-lift: -4px;            /* card hover lift                       */
  --vt-shadow-lift: 0 22px 44px rgba(30, 25, 98, 0.14);
}

/* -----------------------------------------------------------------------------
   0. PRE-PAINT STATE + FAIL-SAFE
   <html class="vt-motion"> is set by the inline head snippet ONLY when motion will
   run (JS on, no reduced-motion, no ?motion=off). Without it nothing is hidden.
   Brand tier hides its reveals before first paint; the task tier hides NOTHING
   before paint — js/motion.js marks below-the-fold blocks .vt-wait once it runs.
   ----------------------------------------------------------------------------- */
/* Round 3: the hidden state is OPACITY ONLY (never visibility / display / inert / aria-hidden), so content that
   has not revealed yet stays in the tab order and in the accessibility tree; js/motion.js reveals a section at
   once when keyboard focus enters it. */
html.vt-motion[data-tier="brand"] [data-reveal]:not(.vt-is-revealed):not([data-reveal="rise"]),
html.vt-motion[data-tier="brand"] [data-reveal-children] > *:not(.vt-is-revealed):not([data-reveal="rise"]),
html.vt-motion .vt-wait:not(.vt-is-revealed),
html.vt-motion [data-moment]:not(.vt-is-revealed) { opacity: 0; }
/* "rise" (Home h1 + intro — they are the LCP): never hidden, only 14px lower until the hero timeline lifts them. */
html.vt-motion [data-reveal="rise"]:not(.vt-is-revealed) { transform: translate3d(0, 14px, 0); }
/* Brand pages: the hero headline is painted at once (under the 280 ms page cross-fade) and rises 20px —
   the hero is never shown empty (Standard v1 hero rule: the LCP text is visible from the first frame). */
html.vt-motion[data-tier="brand"] [data-hero] [data-reveal="lines"]:not(.vt-is-revealed) { opacity: var(--vt-rest-o, 1); transform: translate3d(0, 20px, 0); }
/* The header never hides (round 4: no first-entry choreography any more). */
html.vt-motion .vt-header .vt-header__inner [data-reveal]:not(.vt-is-revealed) { opacity: var(--vt-rest-o, 1); }
/* A hover transition must never fight a reveal tween on the same property. */
html.vt-motion [data-reveal]:not(.vt-is-revealed) { transition: none !important; }
html.vt-motion [data-reveal="draw"] { transform-origin: 0 50%; }

/* FAIL-SAFE — script-independent. If js/motion.js has not armed the page (html.vt-armed)
   1.2 s after the head was parsed — it 404'd, was blocked, threw, or is very slow — CSS
   alone lifts every hidden state. A failed <script> also calls
   window.vtMotionFail() from its onerror, which drops .vt-motion immediately. */
/* Elements whose resting opacity is not 1 declare it as --vt-rest-o (the Home / Candidates eyebrows, 0.85). */
@keyframes vt-failsafe-show { to { opacity: var(--vt-rest-o, 1); } }
@keyframes vt-failsafe-rise { to { opacity: var(--vt-rest-o, 1); transform: none; } }
@keyframes vt-failsafe-on   { to { opacity: 1; } }
@keyframes vt-failsafe-fill { to { --vt-fill: 1; } }
html.vt-motion:not(.vt-armed) [data-reveal],
html.vt-motion:not(.vt-armed) [data-reveal-children] > *,
html.vt-motion:not(.vt-armed) .vt-wait,
html.vt-motion:not(.vt-armed) [data-moment] { animation: vt-failsafe-show 1ms linear 1.2s forwards; }
html.vt-motion:not(.vt-armed) [data-reveal="rise"],
html.vt-motion:not(.vt-armed) [data-hero] [data-reveal="lines"] { animation: vt-failsafe-rise 1ms linear 1.2s forwards; }
html.vt-motion:not(.vt-armed) [data-steps] [data-step-num] { animation: vt-failsafe-on 1ms linear 1.2s forwards; }
html.vt-motion:not(.vt-armed) [data-stepper] { animation: vt-failsafe-fill 1ms linear 1.2s forwards; }

/* -----------------------------------------------------------------------------
   1. PAGE — every entry is the same arrival: a 280 ms cross-fade with an 8px rise. No curtain,
   preloader or intro gate (round 4, B1G Motion Standard v1 §1.3). The header keeps its own transition
   group, so it stays put while the content changes underneath it.
   ----------------------------------------------------------------------------- */
@view-transition { navigation: auto; }
@keyframes vt-page-out { to { opacity: 0; } }
@keyframes vt-page-in  { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
::view-transition-old(root) { animation: vt-page-out 140ms var(--vt-ease-soft) both; }
::view-transition-new(root) { animation: vt-page-in 280ms var(--vt-ease-out) both; }
html.vt-motion body > .vt-header { view-transition-name: vt-header; }   /* the page's own header only — a story showing two headers must not name both */
::view-transition-group(vt-header) { animation-duration: 280ms; animation-timing-function: var(--vt-ease-out); }
/* Browsers without cross-document view transitions (and direct loads): the same arrival, on <main>. */
html.vt-enter main { animation: vt-page-in 280ms var(--vt-ease-out) backwards; }
/* Motion off → the navigation is an instant swap. */
html:not(.vt-motion)::view-transition-group(*),
html:not(.vt-motion)::view-transition-old(*),
html:not(.vt-motion)::view-transition-new(*) { animation: none !important; }

/* Word mask-up (data-reveal="lines", brand tier, below the fold) — replaces SplitText (round 4, −3.5 KB gz).
   js/motion.js wraps each word in .vt-w > .vt-w__i for the ~0.7 s of the reveal and restores the original
   markup afterwards. The mask is a clip-path on the word box, widened with negative insets so ascenders,
   accents and descenders are never cut; .vt-w has no padding, margin or overflow, so the line boxes are
   exactly the plain text's — zero layout change (P2). */
[data-reveal="lines"] { display: flow-root; }
.vt-w { display: inline-block; clip-path: inset(-0.35em -0.2em -0.3em -0.2em); }
.vt-w__i { display: inline-block; will-change: transform; }

/*   Parallax photo on the page hero (brand tier only): the layer only moves DOWN, and only once the page
   scrolls, so at rest it is exactly the static frame and no edge is ever exposed on screen. */
html.vt-motion[data-tier="brand"] .vt-page-hero[data-photo]::before,
html.vt-motion[data-tier="brand"] .vt-page-hero[data-photo-desktop]::before {
  transform: translate3d(0, var(--vt-parallax-y, 0%), 0) scale(var(--vt-photo-scale, 1));
  will-change: transform;
}
html.vt-motion[data-tier="brand"] [data-parallax] { will-change: transform; }

/* -----------------------------------------------------------------------------
   2. MOMENTS — helper elements are created by js/motion.js and removed when done.
   ----------------------------------------------------------------------------- */
/* Home signature: the line that leaves the accent rule and sweeps the stats strip. */
.vt-sig { position: absolute; z-index: 3; height: 2px; border-radius: 2px; background: var(--vt-raw-lime); pointer-events: none; visibility: hidden; }

/* Match: the two "ways in" cards travel towards each other; the connector lives ONLY in the gutter between
   them (js/motion.js sizes it from the gutter, clear of the 32px corners) — it never crosses text or controls. */
[data-match] { position: relative; }
html.vt-motion .hm-ways { overflow-x: clip; }            /* the cards travel up to 96px sideways; never a scrollbar */
.vt-match { position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; pointer-events: none; }
.vt-match i { position: absolute; display: block; box-sizing: border-box; }
.vt-match__line { border-radius: 2px; background: var(--cliente-p1-rol-primary); }
.vt-match__node { border-radius: 50%; background: var(--vt-raw-lime); box-shadow: inset 0 0 0 2px var(--cliente-p1-rol-deep); }
.vt-match__ring { border-radius: 50%; border: 2px solid var(--cliente-p1-rol-primary); }

/* Scroll-driven steps: numbers start dim and switch on as the line reaches them. */
[data-steps] { position: relative; }
html.vt-motion [data-steps] [data-step-num]:not(.vt-on) { opacity: 0.3; }
.vt-steps-line { position: absolute; left: 0; right: 0; top: -1px; height: 2px; padding: 0; margin: 0; border: 0; list-style: none; background: var(--vt-raw-lime); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.vt-steps-line--v { left: -11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); transform-origin: 50% 0; }

/* CV extraction: scan band over the CV, lime flash as each field populates. */
.vt-scan { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 2; }
.vt-scan i { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: block;
  background: linear-gradient(to bottom, rgba(203, 215, 16, 0) 0%, rgba(203, 215, 16, 0.24) 100%); border-bottom: 2px solid var(--vt-raw-lime); }
.vt-field, .cv-field { position: relative; }
/* A CV value that has not "populated" yet: in the DOM (and read by assistive tech) from the start, only its text is transparent. */
html.vt-motion .vt-cv-hold { color: transparent !important; -webkit-text-fill-color: transparent !important; }
.vt-fill-flash { position: absolute; background: var(--vt-raw-lime); pointer-events: none; }

/* Success: two white rings pulse out of the confirmation disc (white reads over the lime disc and the dim photo). */
[data-moment] { position: relative; }
.vt-pulse { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--vt-base-white); z-index: -1; pointer-events: none; opacity: 0; }
[data-moment="success"] { isolation: isolate; }

/* -----------------------------------------------------------------------------
   3. HOVER / FOCUS MICRO-INTERACTIONS  (pointer devices only)
   ----------------------------------------------------------------------------- */
.vt-btn,
.vt-circle-btn,
.vt-chip,
.vt-tab,
.vt-pagination__page,
.vt-input,
.vt-checkbox,
.vt-footer__email {
  transition:
    background-color var(--vt-dur-1) var(--vt-ease-soft),
    color var(--vt-dur-1) var(--vt-ease-soft),
    box-shadow var(--vt-dur-1) var(--vt-ease-soft),
    outline-color var(--vt-dur-1) var(--vt-ease-soft),
    transform var(--vt-dur-2) var(--vt-ease-out);
}
.vt-tab:active { transform: scale(0.97); }   /* the button kit (3b) owns the other presses */

/* Arrow travel — the "→" leaves to the right and re-enters from the left.
   Works for the primary button dot and for any `.vt-arrow` wrapped glyph. */
.vt-btn__dot, .vt-arrow { overflow: clip; }   /* clip (not hidden): keeps the text baseline */
.vt-arrow { display: inline-block; }
.vt-btn__dot { transition: transform var(--vt-dur-2) var(--vt-ease-out); }
@keyframes vt-arrow-travel {
  0%   { transform: translate3d(0, 0, 0); }
  45%  { transform: translate3d(130%, 0, 0); }
  45.01% { transform: translate3d(-130%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.vt-btn__dot > span, .vt-arrow > span { display: inline-block; }

@media (hover: hover) and (pointer: fine) {
  .vt-btn:hover .vt-btn__dot { transform: scale(1.08); }
  .vt-btn:hover .vt-btn__dot > span,
  a:hover > .vt-arrow > span,
  a:hover .vt-arrow > span,
  button:hover .vt-arrow > span { animation: vt-arrow-travel var(--vt-dur-3) var(--vt-ease-in-out); }
  .vt-circle-btn:hover { transform: scale(1.06); }
  .vt-chip:is(a, button):hover { transform: translate3d(0, -1px, 0); }

  /* Header + footer links: underline draws from the left, retracts to the right */
  .vt-header__link, .vt-footer__links a, .vt-link-draw { position: relative; }
  .vt-header__link::after, .vt-footer__links a::after, .vt-link-draw::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
    background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
    transition: transform var(--vt-dur-3) var(--vt-ease-out);
  }
  .vt-footer__links a { width: fit-content; }   /* underline spans the label, not the column */
  .vt-footer__links a::after { bottom: 1px; height: 1px; }
  .vt-header__link:hover::after, .vt-footer__links a:hover::after, .vt-link-draw:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
  .vt-header__link .vt-icon { transition: transform var(--vt-dur-2) var(--vt-ease-out); }
  .vt-header__link:hover .vt-icon { transform: translate3d(0, 2px, 0); }

  /* Cards: lift + soft shadow (shadow lives on a pseudo-element so only opacity animates) */
  a.vt-card-sector, .vt-card-job, .vt-card-job-row, a.vt-card-link, .vt-card-resource, .vt-lift {
    transition: transform var(--vt-dur-3) var(--vt-ease-out);
  }
  a.vt-card-sector, .vt-card-job, .vt-card-job-row, a.vt-card-link, .vt-lift { position: relative; }
  a.vt-card-sector::before, .vt-card-job::before, .vt-card-job-row::before, a.vt-card-link::before, .vt-lift::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    box-shadow: var(--vt-shadow-lift); opacity: 0; pointer-events: none;
    transition: opacity var(--vt-dur-3) var(--vt-ease-out);
  }
  a.vt-card-sector, .vt-card-job, .vt-card-job-row, a.vt-card-link, .vt-lift { isolation: isolate; }
  a.vt-card-sector:hover, .vt-card-job:hover, .vt-card-job-row:hover, a.vt-card-link:hover, .vt-card-resource:hover, .vt-lift:hover {
    transform: translate3d(0, var(--vt-lift), 0);
  }
  a.vt-card-sector:hover::before, .vt-card-job:hover::before, .vt-card-job-row:hover::before, a.vt-card-link:hover::before, .vt-lift:hover::before { opacity: 1; }

  .vt-card-sector__icon { transition: transform var(--vt-dur-2) var(--vt-ease-out); }
  a.vt-card-sector:hover .vt-card-sector__icon { transform: translate3d(3px, -3px, 0); }

  /* Media inside cards: slow zoom */
  .vt-card-resource__media { overflow: hidden; }
  .vt-card-resource__media img, .vt-zoom img, .vt-zoom__img { transition: transform var(--vt-dur-5) var(--vt-ease-out); }
  .vt-card-resource:hover .vt-card-resource__media img, .vt-zoom:hover img, .vt-zoom:hover .vt-zoom__img { transform: scale(1.05); }
}

/* -----------------------------------------------------------------------------
   3b. BUTTON KIT — B1G Motion Standard v1 §3 (round 4). Every button answers HOVER (pointer devices),
   FOCUS-VISIBLE (keyboard — the same movement as hover, on top of the 3px focus ring) and ACTIVE (every
   input, touch included). Loading and disabled are states of .vt-btn. Transform + opacity only.
     pill buttons   .vt-btn (all 8 variants) · hero buttons (Home / Candidates / Employers) · .lr-seg ·
                    pagination · clickable chips: hover / focus lift 2px (chips 1px) · press scale .97 / 100 ms
     arrows         .vt-btn__dot scales 1.08 and its → travels; inline .vt-arrow travels (hover AND focus)
     circle         .vt-circle-btn scales 1.06 · press .97
     row triggers   FAQ / filter-group heads, login tabs, sort select: the +/chevron / underline answers
                    hover and focus; press scale .99 (a full-width row must not visibly shrink)
   ----------------------------------------------------------------------------- */
.hm-hero__btn, .ca-hero-btn, .em-hero__btn, .lr-seg, .lr-tab, .hw-faq__trigger, .js-group__head, .js-select {
  transition:
    background-color var(--vt-dur-1) var(--vt-ease-soft),
    color var(--vt-dur-1) var(--vt-ease-soft),
    box-shadow var(--vt-dur-1) var(--vt-ease-soft),
    outline-color var(--vt-dur-1) var(--vt-ease-soft),
    transform var(--vt-dur-2) var(--vt-ease-out);
}
.js-group__toggle { display: inline-block; transition: transform var(--vt-dur-2) var(--vt-ease-out); }
.lr-tab::after { transform-origin: 0 50%; transition: transform var(--vt-dur-2) var(--vt-ease-out), background-color var(--vt-dur-1) var(--vt-ease-soft); }

@media (hover: hover) and (pointer: fine) {
  .vt-btn:hover, .hm-hero__btn:hover, .ca-hero-btn:hover, .em-hero__btn:hover { transform: translate3d(0, -2px, 0); }
  .vt-pagination__page:is(a, button):hover, .lr-seg:hover { transform: translate3d(0, -1px, 0); }
  .lr-tab:not([aria-selected="true"]):hover { color: var(--vt-semantic-ink); }
  .lr-tab:not([aria-selected="true"]):hover::after { background: var(--vt-neutral-200); }
  .js-group__head:hover .js-group__toggle { transform: scale(1.2); }
}
/* Keyboard parity: focus-visible gets the hover movement too (the ring itself is drawn in components / page CSS). */
.vt-btn:focus-visible, .hm-hero__btn:focus-visible, .ca-hero-btn:focus-visible, .em-hero__btn:focus-visible { transform: translate3d(0, -2px, 0); }
.vt-btn:focus-visible .vt-btn__dot { transform: scale(1.08); }
.vt-btn:focus-visible .vt-btn__dot > span,
a:focus-visible .vt-arrow > span,
button:focus-visible .vt-arrow > span { animation: vt-arrow-travel var(--vt-dur-3) var(--vt-ease-in-out); }
.vt-circle-btn:focus-visible { transform: scale(1.06); }
.vt-chip:is(a, button):focus-visible, .vt-pagination__page:is(a, button):focus-visible, .lr-seg:focus-visible { transform: translate3d(0, -1px, 0); }
.lr-tab:not([aria-selected="true"]):focus-visible::after { background: var(--vt-neutral-200); }
.hw-faq__trigger:focus-visible .hw-faq__toggle, .js-group__head:focus-visible .js-group__toggle { transform: scale(1.2); }
.js-select:focus-visible .vt-icon { transform: translate3d(0, 2px, 0); }
/* Press — every input (declared after hover/focus so it wins while the pointer is down). */
.vt-btn:active, .vt-circle-btn:active, .hm-hero__btn:active, .ca-hero-btn:active, .em-hero__btn:active,
.vt-chip:is(a, button):active, .vt-pagination__page:is(a, button):active, .lr-seg:active, .js-select:active {
  transform: scale(0.97); transition-duration: var(--vt-dur-1), var(--vt-dur-1), var(--vt-dur-1), var(--vt-dur-1), 100ms;
}
.lr-tab:active, .hw-faq__trigger:active, .js-group__head:active { transform: scale(0.99); }

/* Loading — [aria-busy="true"]: the label and the dot fade out, a 16px spinner fades in; the width never
   changes (the label stays in the box, only transparent). Set by js/motion.js on [data-busy] buttons. */
@keyframes vt-spin { to { transform: rotate(360deg); } }
.vt-btn { position: relative; --vt-spin: var(--cliente-p1-rol-deep); }
.vt-btn--primary, .vt-btn--on-dark { --vt-spin: var(--vt-base-white); }
.vt-btn--sky { --vt-spin: var(--cliente-p1-azul-lima-azul-800); }
.vt-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  box-sizing: border-box; border-radius: 50%; border: 2px solid var(--vt-spin); border-right-color: transparent;
  opacity: 0; pointer-events: none; transition: opacity var(--vt-dur-2) var(--vt-ease-soft);
}
.vt-btn .vt-btn__dot, .vt-btn .vt-arrow { transition: transform var(--vt-dur-2) var(--vt-ease-out), opacity var(--vt-dur-2) var(--vt-ease-soft); }
.vt-btn[aria-busy="true"] { color: transparent; pointer-events: none; transform: none; }
.vt-btn[aria-busy="true"] .vt-btn__dot, .vt-btn[aria-busy="true"] .vt-arrow { opacity: 0; }
.vt-btn[aria-busy="true"]::after { opacity: 1; animation: vt-spin 700ms linear infinite; }

/* Disabled — opacity from the Figma token (38 %), no hover / focus / press movement, not-allowed cursor. */
.vt-btn:is([disabled], [aria-disabled="true"]), .vt-circle-btn:is([disabled], [aria-disabled="true"]) { cursor: not-allowed; transform: none !important; }
.vt-btn:is([disabled], [aria-disabled="true"]) .vt-btn__dot { transform: none !important; }
.vt-btn:is([disabled], [aria-disabled="true"]) .vt-btn__dot > span,
.vt-btn:is([disabled], [aria-disabled="true"]) .vt-arrow > span { animation: none !important; }

/* Touch: pressed state on cards and rows — scale 0.98 + tint, 120 ms. */
@media (hover: none) {
  a.vt-card-sector, .vt-card-job, .vt-card-job-row, a.vt-card-link, .vt-card-resource, .vt-lift {
    position: relative; transition: transform var(--vt-dur-1) var(--vt-ease-soft);
  }
  a.vt-card-sector::before, .vt-card-job::before, .vt-card-job-row::before, a.vt-card-link::before, .vt-lift::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
    background: rgba(30, 25, 98, 0.06); opacity: 0; pointer-events: none;
    transition: opacity var(--vt-dur-1) var(--vt-ease-soft);
  }
  a.vt-card-sector:active, .vt-card-job:active, .vt-card-job-row:active, a.vt-card-link:active, .vt-card-resource:active, .vt-lift:active { transform: scale(0.98); }
  a.vt-card-sector:active::before, .vt-card-job:active::before, .vt-card-job-row:active::before, a.vt-card-link:active::before, .vt-lift:active::before { opacity: 1; }
}

/* -----------------------------------------------------------------------------
   4. STATE
   ----------------------------------------------------------------------------- */
/* Accordion (js/motion.js drives the height; this is the resting CSS) */
[data-accordion-panel] { overflow: hidden; }
[data-accordion-panel][hidden] { display: none; }
[data-accordion-icon] { transition: transform var(--vt-dur-3) var(--vt-ease-out); }
[aria-expanded="true"] [data-accordion-icon] { transform: rotate(180deg); }

/* Stepper: the coloured part of each bar is a layer that fills (scaleX) up to the current step. */
html.vt-motion [data-stepper]:not(.vt-is-revealed) .cv-stepper__bar::after { transform: scaleX(var(--vt-fill, 0)); }

/* "Reviewed" tick draws when the box is checked (not Firefox: no pseudo-elements on inputs there). */
@keyframes vt-tick { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
  html.vt-motion .vt-checkbox.vt-ticked { position: relative; background-image: none; }
  html.vt-motion .vt-checkbox.vt-ticked::after {
    content: ""; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 10.5L8.5 13.5L14.5 6.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
    animation: vt-tick 280ms var(--vt-ease-in-out) both;
  }
}

/* Mobile: once the full header has scrolled away, a one-row bar slides in (200 ms).
   Built by js/motion.js from the header's own logo and CTAs — it does not exist with motion off. */
.vt-mini {
  position: fixed; left: 0; right: 0; top: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 60px; padding: 0 20px;
  background: var(--cliente-p1-rol-deep);
  box-shadow: 0 1px 0 var(--vt-raw-white-a16);
  transform: translate3d(0, -101%, 0); visibility: hidden;
  transition: transform var(--vt-dur-2) var(--vt-ease-out), visibility 0s linear var(--vt-dur-2);
}
.vt-mini.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.vt-mini__logo, .vt-mini__logo img { display: block; width: 70px; height: 36px; flex: none; }
.vt-mini__ctas { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vt-mini .vt-btn { height: 44px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.vt-mini .vt-circle-btn { flex: none; }
/* Logo · Drop CV · Search · Menu. "Register a Vacancy" joins from 480px — below that the row cannot hold all five. */
@media (max-width: 479.98px) { .vt-mini .vt-mini__reg { display: none; } }
@media (max-width: 359.98px) { .vt-mini { padding: 0 12px; } .vt-mini__ctas { gap: 6px; } .vt-mini .vt-btn { padding: 0 12px; font-size: 13px; } }
@media (min-width: 1024px) { .vt-mini { display: none; } }

/* -----------------------------------------------------------------------------
   5. UI STATES (round 5, 2026-10-05) — js/ui.js. B1G Motion Standard v1 §3 rows "Form input", "Toast",
   "Mobile menu open/close". Figma draws none of these states: they are a B1G proposal (README deviation #12).
   Transform / opacity / clip-path only. Reduced motion (block below) makes every one of them instant.
   ----------------------------------------------------------------------------- */
:root {
  /* Error colour — client crimson ("carmesí") from Figma 326:2 "Paletas del cliente" P4 (Juan decision 1,
     2026-10-05). 7.66:1 on white, 7.04 on #F4F5FB, 6.34 on #E0ECEC. Messages never rely on colour alone:
     icon + text + aria-invalid. On the navy footer it fails, so the footer uses white text + yellow (below). */
  --vt-state-error: #962D3E;
  --vt-ease-in: cubic-bezier(0.55, 0, 1, 0.45);   /* power2.in — exits (close is 1.6× faster than open) */
}

/* Form input — valid: a check draws in the field (200 ms) · invalid: one 6px shake (300 ms), the message rises
   4px and fades in. Only after the user left the field or tried to submit (js/ui.js), never on load. */
.vt-ui .fm-field, .vt-ui .vt-field, .vt-ui .fm-consent { position: relative; }
.vt-ui .is-invalid > .vt-input, .vt-ui .is-invalid .fm-select select, .vt-ui .is-invalid > .fm-textarea,
.vt-ui .is-invalid .rv-upload { box-shadow: inset 0 0 0 1.5px var(--vt-state-error); }
.vt-ui .is-invalid > .fm-label, .vt-ui .is-invalid > .vt-t-label { color: var(--vt-state-error); }
.vt-ui .fm-consent.is-invalid .vt-checkbox:not(:checked) { box-shadow: inset 0 0 0 1.5px var(--vt-state-error); }
.vt-ui .is-invalid .fm-option .vt-chip { box-shadow: inset 0 0 0 1.5px var(--vt-state-error); }
.vt-ui .is-valid > .vt-input { padding-right: 52px; }
.vt-valid {
  position: absolute; right: 20px; bottom: 19px; width: 18px; height: 18px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3.5 9.5L7.2 13L14.5 5' stroke='%230460D9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  animation: vt-valid-draw var(--vt-dur-2) var(--vt-ease-out) both;
}
.vt-ui :not(.is-valid) > .vt-valid { display: none; }
@keyframes vt-valid-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.vt-err {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 2px;
  font-size: 13px; line-height: 18px; font-weight: 500; color: var(--vt-state-error);
  animation: vt-err-in var(--vt-dur-2) var(--vt-ease-out) both;
}
/* Checkbox rows (consent): the message is a full-width line right AFTER the row (round 6, dp-uiux D1). */
.vt-err--row { margin-top: -6px; }
.cv-consent + .vt-err--row { margin-top: 8px; padding-inline: 18px; }
/* One focus/error treatment (round 6, dp-uiux D4): a focused invalid field shows a single 3px ring in the error
   colour instead of the navy focus ring around the red border. */
.vt-ui .is-invalid > .vt-input:focus, .vt-ui .is-invalid .fm-select select:focus, .vt-ui .is-invalid > .fm-textarea:focus,
.vt-ui .is-invalid > .vt-input:focus-visible, .vt-ui .is-invalid .fm-select select:focus-visible, .vt-ui .is-invalid > .fm-textarea:focus-visible {
  outline: 3px solid var(--vt-state-error); outline-offset: 0; box-shadow: none;
}
.vt-ui .is-invalid .fm-option input:focus-visible + .vt-chip,
.vt-ui .fm-consent.is-invalid .vt-checkbox:focus-visible, .vt-ui .cv-consent.is-invalid .vt-checkbox:focus-visible { outline-color: var(--vt-state-error); }
.vt-ui .cv-consent.is-invalid .vt-checkbox:not(:checked) { box-shadow: inset 0 0 0 1.5px var(--vt-state-error); }
.vt-err__icon {
  flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; background: var(--vt-state-error);
  position: relative;
}
.vt-err__icon::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; line-height: 1; font-weight: 700; }
@keyframes vt-err-in { from { opacity: 0; transform: translate3d(0, 4px, 0); } }
@keyframes vt-shake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-6px, 0, 0); } 40% { transform: translate3d(5px, 0, 0); }
  60% { transform: translate3d(-3px, 0, 0); } 80% { transform: translate3d(2px, 0, 0); }
}
.vt-shake { animation: vt-shake 300ms var(--vt-ease-out); }
/* Footer subscribe (on navy): the message goes on its own line under the field row (only once judged invalid).
   Crimson fails on navy (2.0:1), so: white message text + client yellow #ECED1F icon and field ring
   (12.18:1 on #1E1962) — Juan decision 1, 2026-10-05. */
.vt-footer__brand > .vt-err { margin-top: 8px; color: var(--vt-base-white); }
.vt-footer__brand > .vt-err .vt-err__icon { background: var(--cliente-p2-rol-accent); }
.vt-footer__brand > .vt-err .vt-err__icon::after { color: var(--cliente-p1-rol-deep); }
.vt-ui .vt-footer__brand.is-invalid .vt-footer__email { box-shadow: inset 0 0 0 1.5px var(--cliente-p2-rol-accent); }
.rv-upload__hint.is-file { color: var(--vt-semantic-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Toast — enters from the bottom 16px + fade (250 ms), leaves 1.6× faster; role=status region (js/ui.js). */
.vt-toasts {
  position: fixed; left: 50%; bottom: 24px; z-index: 1100; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: min(440px, calc(100vw - 32px)); pointer-events: none;
}
.vt-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 12px 12px 16px; border-radius: 16px;
  background: var(--cliente-p1-rol-deep); color: var(--vt-base-white);
  box-shadow: 0 18px 40px rgba(1, 11, 43, 0.28);
  font-size: 15px; line-height: 20px; font-weight: 500;
  opacity: 0; transform: translate3d(0, 16px, 0);
  transition: opacity 250ms var(--vt-ease-out), transform 250ms var(--vt-ease-out);
}
.vt-toast.is-in { opacity: 1; transform: none; }
.vt-toast.is-out { opacity: 0; transform: translate3d(0, 8px, 0); transition-duration: 156ms; transition-timing-function: var(--vt-ease-in); }
.vt-toast__icon {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--vt-raw-lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 12.5L10.5 16L17 8.5' stroke='%23010B2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.vt-toast__text { flex: 1 1 auto; min-width: 0; }
.vt-toast__close {
  flex: none; position: relative; width: 32px; height: 32px; border: 0; border-radius: 50%; padding: 0;
  background: transparent; color: inherit; cursor: pointer;
  transition: background-color var(--vt-dur-1) var(--vt-ease-soft), transform var(--vt-dur-2) var(--vt-ease-out);
}
.vt-toast__close span::before, .vt-toast__close span::after {
  content: ""; position: absolute; left: 9px; right: 9px; top: 15px; height: 1.5px; background: currentColor; border-radius: 1px; transform: rotate(45deg);
}
.vt-toast__close span::after { transform: rotate(-45deg); }
.vt-toast__close:hover { background: var(--vt-raw-white-a16); }
.vt-toast__close:focus-visible { outline: 3px solid var(--cliente-p2-rol-link-on-dark); outline-offset: 0; }
.vt-toast__close:active { transform: scale(0.94); }

/* Mobile menu — Titularizadora panel timeline (library animations/menu/titu-panel-timeline.js), in CSS:
   the panel sweeps down (clip-path, 500 ms, expo-out), the links rise 18px with a 50 ms stagger from 120 ms;
   closing runs 1.6× faster with an ease-in. Built from the header's own links and CTAs. < 1024 px only. */
html.vt-menu-open { overflow: hidden; }
.vt-menu {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding-inline: var(--vt-gutter-mobile);   /* same gutter as the header (.vt-section) */
  background: var(--cliente-p1-rol-deep); color: var(--vt-base-white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 312ms var(--vt-ease-in);
}
.vt-menu[hidden] { display: none; }
.vt-menu.is-open { clip-path: inset(0 0 0 0); transition: clip-path 500ms var(--vt-ease-out); }
.vt-menu__bar { display: flex; align-items: center; justify-content: space-between; height: 76px; flex: none; border-bottom: 1px solid var(--vt-raw-white-a16); }
.vt-menu__logo, .vt-menu__logo img { display: block; width: 109px; height: 56px; }
.vt-menu__x { position: relative; width: 20px; height: 20px; }
.vt-menu__x::before, .vt-menu__x::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: 9px; height: 2px; border-radius: 1px; background: currentColor;
  transform: rotate(0deg); transition: transform 400ms var(--vt-ease-out) 120ms;
}
.vt-menu.is-open .vt-menu__x::before { transform: rotate(45deg); }
.vt-menu.is-open .vt-menu__x::after { transform: rotate(-45deg); }
.vt-menu__list { list-style: none; margin: 0; padding: 12px 0 0; }
.vt-menu__item, .vt-menu__ctas {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity 150ms var(--vt-ease-in), transform 150ms var(--vt-ease-in);
}
.vt-menu.is-open .vt-menu__item, .vt-menu.is-open .vt-menu__ctas {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--vt-ease-out), transform 500ms var(--vt-ease-out);
  transition-delay: calc(120ms + var(--i, 0) * 50ms);
}
.vt-menu__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--vt-raw-white-a16);
  font-family: var(--vt-font-display); font-weight: 700; font-size: 28px; line-height: 32px;
  color: var(--vt-base-white); text-decoration: none;
}
.vt-menu__label { transition: transform var(--vt-dur-2) var(--vt-ease-out), color var(--vt-dur-1) var(--vt-ease-soft); }
.vt-menu__sub { list-style: none; margin: 0 0 8px; padding: 0 0 0 4px; }
.vt-menu__sublink { display: block; padding: 11px 0; font-size: 16px; line-height: 22px; color: var(--cliente-p2-rol-link-on-dark); }
.vt-menu__sublink:focus-visible { outline: 3px solid var(--cliente-p2-rol-link-on-dark); outline-offset: 2px; border-radius: 4px; }
.vt-menu__link .vt-arrow { color: var(--vt-raw-lime); font-family: var(--vt-font-text); font-size: 22px; }
.vt-menu__link.is-current .vt-menu__label { color: var(--cliente-p2-rol-link-on-dark); }
.vt-menu__link:focus-visible { outline: 3px solid var(--cliente-p2-rol-link-on-dark); outline-offset: 2px; border-radius: 4px; }
.vt-menu__link:is(:hover, :focus-visible) .vt-menu__label { transform: translate3d(6px, 0, 0); }
.vt-menu__link:active .vt-menu__label { transform: translate3d(6px, 0, 0) scale(0.98); }
.vt-menu__ctas { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0 32px; }
.vt-menu__ctas .vt-btn { height: 48px; padding: 0 22px; }
.vt-menu__ctas .vt-btn--sky { padding: 0 7px 0 20px; gap: 12px; }
@media (min-width: 1024px) { .vt-menu { display: none !important; } }
@media (max-width: 359.98px) { .vt-menu__link { font-size: 24px; line-height: 28px; } }

/* -----------------------------------------------------------------------------
   REDUCED MOTION — the static page. Colour feedback stays; movement goes.
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-property: background-color, color, box-shadow, outline-color, opacity !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  a.vt-card-sector:hover, .vt-card-job:hover, .vt-card-job-row:hover, a.vt-card-link:hover, .vt-card-resource:hover, .vt-lift:hover,
  a.vt-card-sector:active, .vt-card-job:active, .vt-card-job-row:active, a.vt-card-link:active, .vt-card-resource:active, .vt-lift:active,
  .vt-btn:is(:hover, :focus-visible, :active), .vt-circle-btn:is(:hover, :focus-visible, :active), .vt-chip:is(:hover, :focus-visible, :active),
  .hm-hero__btn:is(:hover, :focus-visible, :active), .ca-hero-btn:is(:hover, :focus-visible, :active), .em-hero__btn:is(:hover, :focus-visible, :active),
  .vt-pagination__page:is(:hover, :focus-visible, :active), .lr-seg:is(:hover, :focus-visible, :active), .lr-tab:active, .hw-faq__trigger:active,
  .js-group__head:active, .js-select:active, .vt-btn .vt-btn__dot, .hw-faq__toggle, .js-group__toggle, .js-select .vt-icon { transform: none !important; }
  .vt-btn .vt-btn__dot > span, .vt-arrow > span { animation: none !important; }
  .vt-shake, .vt-err, .vt-valid { animation: none !important; }
  .vt-menu, .vt-menu.is-open { transition: none !important; }
  .vt-menu__item, .vt-menu__ctas, .vt-toast, .vt-menu__label, .vt-menu__x::before, .vt-menu__x::after { transform: none !important; }
  .vt-menu.is-open .vt-menu__x::before { transform: rotate(45deg) !important; }
  .vt-menu.is-open .vt-menu__x::after { transform: rotate(-45deg) !important; }
}

/* -----------------------------------------------------------------------------
   PRINT — everything prints, whatever the scroll position was.
   ----------------------------------------------------------------------------- */
@media print {
  .vt-mini, .vt-menu, .vt-toasts, .vt-sig, .vt-match, .vt-scan, .vt-fill-flash, .vt-pulse, .vt-steps-line { display: none !important; content: none !important; }
  [data-reveal], [data-reveal-children] > *, [data-moment], .vt-wait, .vt-w, .vt-w__i {
    visibility: visible !important; opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important;
  }
  [data-steps] [data-step-num] { opacity: 1 !important; transform: none !important; }
  [data-stepper] .cv-stepper__bar::after { transform: none !important; }
  main { animation: none !important; }
}
