/* XAX · components · v1.0 · 2026-11-22. Reads the tokens: never raw values. */
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.xax-stage { padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.xax-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.xax-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.xax-cap { font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.xax-panel { background: var(--bg); color: var(--ink); padding: 20px; border-radius: var(--radius-lg); }
.xax-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* focus: the same ring on every control */
.xax-btn:focus-visible, .xax-input:focus-visible, .xax-select select:focus-visible, .xax-check input:focus-visible, .xax-link:focus-visible,
.xax-lang button:focus-visible, .xax-acc summary:focus-visible, .xax-door:focus-visible, .xax-iconbtn:focus-visible, .is-focus {
  outline: 2px solid var(--focus); outline-offset: 2px; }

/* Button */
.xax-btn { font: inherit; font-size: 16px; font-weight: 500; line-height: 20px; min-height: 44px; padding: 12px 20px; box-sizing: border-box;
  border-radius: var(--radius-md); border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; transition: background-color var(--duration-ui-fast) var(--ease-mirror), border-color var(--duration-ui-fast) var(--ease-mirror), color var(--duration-ui-fast) var(--ease-mirror); }
.xax-btn svg { flex: none; transition: transform var(--duration-ui) var(--ease-mirror); }
.xax-btn--primary { background: var(--accent); color: var(--on-accent); }
.xax-btn--primary:hover, .xax-btn--primary.is-hover { background: var(--accent-hover); }
.xax-btn--primary:active, .xax-btn--primary.is-pressed { background: var(--accent-pressed); }
.xax-btn--primary:hover svg, .xax-btn--primary.is-hover svg { transform: translateX(3px); }
.xax-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink-2); }
.xax-btn--secondary:hover, .xax-btn--secondary.is-hover { border-color: var(--ink); background: var(--bg-2); }
.xax-btn--secondary:active, .xax-btn--secondary.is-pressed { background: var(--line); }
.xax-btn--text { background: transparent; color: var(--ink); padding: 12px 4px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.xax-btn--text:hover, .xax-btn--text.is-hover { text-decoration-thickness: 2px; }
.xax-btn--text:active, .xax-btn--text.is-pressed { color: var(--ink-2); }
.xax-btn--block { width: 100%; }
.xax-btn[disabled], .xax-btn.is-disabled { opacity: var(--opacity-disabled); cursor: not-allowed; }
.xax-btn.is-loading { cursor: progress; }

/* the loader goes and comes back: one segment, left to right and back */
.xax-loader { position: relative; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.35; overflow: hidden; display: inline-block; }
.xax-loader::after { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 2px; background: currentColor; opacity: 1;
  animation: xax-goback calc(var(--duration-signature) * 1.2) var(--ease-mirror) infinite alternate; }
@keyframes xax-goback { from { transform: translateX(0); } to { transform: translateX(18px); } }

/* Link */
.xax-link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--accent); border-radius: 2px; }
.xax-link:hover, .xax-link.is-hover { text-decoration-thickness: 2px; }
.xax-link:visited { color: var(--ink); }

/* Fields */
.xax-field { display: flex; flex-direction: column; gap: 8px; width: 320px; max-width: 100%; }
.xax-label { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
.xax-hint { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.xax-input { font: inherit; font-size: 16px; line-height: 24px; min-height: 48px; padding: 11px 14px; box-sizing: border-box; width: 100%;
  border-radius: var(--radius-md); border: 1px solid var(--ink-2); background: var(--bg); color: var(--ink);
  transition: border-color var(--duration-ui-fast) var(--ease-mirror); }
.xax-input::placeholder { color: var(--ink-2); opacity: 1; }
.xax-input:hover, .xax-input.is-hover { border-color: var(--ink); }
.xax-input:focus-visible, .xax-input.is-focus { border-color: var(--ink); }
textarea.xax-input { min-height: 120px; resize: vertical; }
.xax-field.is-error .xax-input { border: 2px solid var(--ink); padding: 10px 13px; }
.xax-error { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 500; }
.xax-error svg { flex: none; margin-top: 0; }
.xax-input[disabled], .xax-field.is-disabled .xax-input { opacity: var(--opacity-disabled); cursor: not-allowed; }
.xax-select { position: relative; }
.xax-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.xax-select .xax-chev { position: absolute; right: 14px; top: 50%; margin-top: -10px; pointer-events: none; color: var(--ink); }

/* Checkbox and radio */
.xax-check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 24px; color: var(--ink); cursor: pointer; min-height: 44px; }
.xax-check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--ink-2); background: var(--bg);
  border-radius: var(--radius-sm); display: grid; place-content: center; cursor: pointer; transition: background-color var(--duration-ui-fast) var(--ease-mirror), border-color var(--duration-ui-fast) var(--ease-mirror); }
.xax-check input[type="radio"] { border-radius: 50%; }
.xax-check input:hover, .xax-check input.is-hover { border-color: var(--ink); }
.xax-check input:checked { background: var(--accent); border-color: var(--accent); }
.xax-check input[type="checkbox"]:checked::after { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: translateY(-2px) rotate(-45deg); }
.xax-check input[type="radio"]:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-accent); }
.xax-check input:disabled { opacity: var(--opacity-disabled); cursor: not-allowed; }
.xax-check.is-error input { border: 2px solid var(--ink); }
.xax-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.xax-fieldset legend { font-size: 15px; line-height: 20px; font-weight: 500; margin-bottom: 8px; padding: 0; }

/* Stepped form */
.xax-steps { width: 350px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; padding: 24px; box-sizing: border-box; border-radius: var(--radius-lg); background: var(--bg-2); }
.xax-steps__bar { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.xax-steps__bar span { height: 3px; border-radius: 2px; background: var(--line); }
.xax-steps__bar span.is-done { background: var(--ink-2); }
.xax-steps__bar span.is-now { background: var(--accent); }
.xax-steps__q { font-size: 24px; line-height: 30px; font-weight: 500; margin: 0; }
.xax-steps__nav { display: flex; justify-content: space-between; align-items: center; }
.xax-sent { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.xax-sent__mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; background: var(--accent); color: var(--on-accent); }

/* Accordion */
.xax-acc { width: 420px; max-width: 100%; border-top: 1px solid var(--line); }
.xax-acc details { border-bottom: 1px solid var(--line); }
.xax-acc summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; line-height: 24px; font-weight: 500; padding: 14px 0; border-radius: 2px; }
.xax-acc summary::-webkit-details-marker { display: none; }
.xax-acc summary svg { flex: none; }
.xax-acc summary svg path:last-child { transform-box: fill-box; transform-origin: center; transition: transform var(--duration-ui) var(--ease-mirror); }
.xax-acc details[open] summary svg path:last-child { transform: scaleY(0); }
.xax-acc__body { padding: 0 32px 18px 0; font-size: 16px; line-height: 25px; color: var(--ink-2); }

/* Door card */
.xax-door { display: flex; flex-direction: column; gap: 10px; width: 240px; padding: 22px; box-sizing: border-box; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); text-decoration: none; transition: border-color var(--duration-ui) var(--ease-mirror); }
.xax-door:hover, .xax-door.is-hover { border-color: var(--ink-2); }
.xax-door__name { font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.xax-door__title { font-size: 22px; line-height: 28px; font-weight: 500; }
.xax-door__who { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.xax-door__go { margin-top: 6px; display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 500; }
.xax-door__go svg { transition: transform var(--duration-ui) var(--ease-mirror); }
.xax-door:hover .xax-door__go svg, .xax-door.is-hover .xax-door__go svg { transform: translateX(4px); }

/* Process step */
.xax-step { display: flex; flex-direction: column; gap: 8px; width: 120px; }
.xax-step__tile { height: 52px; box-sizing: border-box; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 18px; font-variant-numeric: tabular-nums; }
.xax-step--done .xax-step__tile { background: var(--ink); color: var(--bg); }
.xax-step--now .xax-step__tile { background: var(--bg-2); color: var(--ink); border: 2.5px solid var(--accent); }
.xax-step--next .xax-step__tile { color: var(--ink-2); border: 1.5px dashed var(--ink-2); }
.xax-step__name { font-size: 14px; line-height: 19px; color: var(--ink); min-height: 38px; }
.xax-step__state { font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.xax-step--now .xax-step__state { color: var(--accent); }
.xax-step__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.xax-process { display: flex; flex-direction: column; gap: 6px; }
.xax-process__row { display: flex; gap: 8px; align-items: flex-start; }
.xax-process .xax-step { width: 92px; }
.xax-process .xax-step.is-center { width: 136px; }
.xax-process .xax-step.is-center .xax-step__name { font-weight: 600; }
.xax-process svg.xax-brackets { display: block; }
.xax-brackets path { fill: none; stroke: var(--trazo); stroke-width: 1; }
.xax-brackets .axis { stroke: var(--accent); stroke-width: 1.5; }

/* Example label */
.xax-example { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--ink-2); border-radius: var(--radius-sm); color: var(--ink-2);
  font-size: 11px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }

/* EN / ES */
.xax-lang { display: inline-flex; align-items: center; gap: 2px; }
.xax-lang button { font: inherit; font-size: 13px; letter-spacing: 0.06em; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; border-radius: var(--radius-sm); position: relative; }
.xax-lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.xax-lang button[aria-pressed="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px; background: var(--accent);
  transition: transform var(--duration-ui) var(--ease-mirror); }
.xax-lang span { color: var(--line); }

/* Phone header and menu */
.xax-phone { width: 390px; height: 560px; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.xax-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 10px 20px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.xax-header__brand { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.xax-header__lema { font-size: 10px; line-height: 12px; color: var(--ink-2); }
.xax-iconbtn { width: 44px; height: 44px; display: grid; place-content: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius-sm); }
.xax-btn--sm { min-height: 44px; padding: 10px 14px; font-size: 15px; }
.xax-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--duration-ui-slow) var(--ease-mirror); z-index: 3; }
.xax-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--bg-2); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-float);
  padding: 12px 20px 24px; transform: translateY(100%); transition: transform var(--duration-ui-slow) var(--ease-mirror); }
.is-open .xax-scrim { opacity: 1; pointer-events: auto; }
.is-open .xax-sheet { transform: translateY(0); }
.xax-sheet__grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.xax-nav { list-style: none; margin: 0 0 16px; padding: 0; }
.xax-nav a { display: flex; min-height: 52px; align-items: center; justify-content: space-between; font-size: 20px; line-height: 26px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* Footer */
.xax-footer { display: flex; flex-direction: column; gap: 18px; padding: 32px 24px; background: var(--bg); border-top: 1px solid var(--line); width: 100%; box-sizing: border-box; }
.xax-footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.xax-footer__links a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 44px; }
.xax-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.xax-footer__legal { font-size: 14px; line-height: 20px; color: var(--ink-2); }

/* Cookie notice */
.xax-cookie { width: 390px; max-width: 100%; box-sizing: border-box; padding: 20px; border-radius: var(--radius-lg); background: var(--bg-2); box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 14px; }
.xax-cookie p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink); }
.xax-cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Signed note */
.xax-note { width: 520px; max-width: 100%; display: flex; flex-direction: column; gap: 18px; padding: 28px; box-sizing: border-box; border-radius: var(--radius-lg); background: var(--bg-2); }
.xax-note p { margin: 0; font-size: 18px; line-height: 29px; }
.xax-note__sig { display: flex; gap: 14px; align-items: center; }
.xax-note__photo { width: 56px; height: 56px; border-radius: 50%; border: 1px dashed var(--trazo); display: grid; place-content: center; color: var(--ink-2); font-size: 10px; text-align: center; line-height: 12px; }
.xax-note__name { font-size: 15px; line-height: 20px; font-weight: 500; }
.xax-note__role { font-size: 13px; line-height: 18px; color: var(--ink-2); }

/* Table */
.xax-table { border-collapse: collapse; width: 560px; max-width: 100%; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.xax-table caption { text-align: left; font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 10px; caption-side: top; }
.xax-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink-2); padding: 8px 12px 8px 0; }
.xax-table td { border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; vertical-align: top; }
.xax-table td.num, .xax-table th.num { text-align: right; padding-right: 0; }

/* Sourced figure */
.xax-figure { display: flex; flex-direction: column; gap: 6px; width: 300px; }
.xax-figure__n { font-size: 64px; line-height: 68px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.xax-figure__what { font-size: 16px; line-height: 24px; }
.xax-figure__src { font-size: 13px; line-height: 18px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .xax-loader::after { left: 9px; }
}

