/* Staffynex — experiment landings (licitaciones CL, QuickBooks A/R US) */
.x-hero { position: relative; overflow: hidden; background: #05070b; color: #fff; padding: clamp(56px, 8vw, 116px) 0 clamp(64px, 8vw, 120px); }
.x-bg { position: absolute; inset: 0; pointer-events: none; }
.x-bg::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(38% 34% at 72% 32%, rgba(31,79,224,.38), transparent 70%), radial-gradient(28% 30% at 14% 86%, rgba(23,169,182,.24), transparent 70%); animation: xGlow 14s ease-in-out infinite alternate; }
.x-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 62% at 62% 40%, #000, transparent); mask-image: radial-gradient(70% 62% at 62% 40%, #000, transparent); animation: xGrid 24s linear infinite; }
@keyframes xGlow { to { transform: translate(4%, -3%) scale(1.08); } }
@keyframes xGrid { to { background-position: 56px 56px; } }
.x-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.x-live { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.86); padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.04); }
.x-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: xPing 1.8s infinite; }
@keyframes xPing { 0% { box-shadow: 0 0 0 0 rgba(23,169,182,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(23,169,182,0); } }
.x-hero h1 { margin-top: 24px; font-size: clamp(40px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; color: #fff; }
.x-grad { background: linear-gradient(90deg, #7d9dff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-lede { margin-top: 24px; font-size: clamp(18px, 1.5vw, 20px); color: rgba(255,255,255,.74); max-width: 34em; }
.x-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.x-hero .btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: transparent; }
.x-origin { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.x-origin span { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,.74); padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.flag { width: 18px; height: 12px; border-radius: 2px; position: relative; overflow: hidden; flex: none; display: inline-block; }
.flag.cl { background: linear-gradient(#fff 50%, #d52b1e 50%); }
.flag.cl::before { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 6px; background: #0039a6; }
.flag.us { background: repeating-linear-gradient(#b22234 0 0.92px, #fff 0.92px 1.84px); }
.flag.us::before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 6.5px; background: #3c3b6e; }
.dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; }

/* glass panel */
.x-panel { position: relative; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 30px 80px -20px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(10px); overflow: hidden; color: #fff; }
.x-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: rgba(255,255,255,.66); }
.x-panel-bar b { color: #fff; font-weight: 600; }
.x-tagp { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(23,169,182,.16); color: #7fe3ea; white-space: nowrap; }
.x-scan { position: relative; height: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.x-scan::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--teal), transparent); animation: xScan 2.2s linear infinite; }
@keyframes xScan { to { left: 100%; } }
.x-feed { list-style: none; margin: 0; padding: 8px 10px 6px; min-height: 292px; }
.x-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 10px; border-radius: 12px; transition: background .4s, opacity .4s, box-shadow .4s; }
.x-item small { display: block; font-size: 12px; color: rgba(255,255,255,.48); letter-spacing: .01em; }
.x-item b { display: block; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.x-item .meta { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-match { font-size: 12.5px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); white-space: nowrap; transition: background .4s, color .4s; }
.x-item.hit { background: rgba(31,79,224,.2); box-shadow: inset 0 0 0 1px rgba(125,157,255,.5); }
.x-item.hit .x-match { background: var(--teal); color: #00262a; }
.x-item.dim { opacity: .36; }
.x-item.enter { animation: xIn .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes xIn { from { opacity: 0; transform: translateY(-10px); } }
.x-action { margin: 4px 18px 16px; padding: 13px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.22); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(255,255,255,.84); transition: border-color .4s, background .4s; }
.x-go { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 9px; background: var(--blue); color: #fff; white-space: nowrap; transition: background .35s, color .35s; }
.x-action.done { border-style: solid; border-color: rgba(23,169,182,.55); background: rgba(23,169,182,.08); }
.x-action.done .x-go { background: var(--teal); color: #00262a; }
.x-log { margin: 0; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.56); display: flex; gap: 9px; align-items: center; }
.x-log i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }

/* sections */
.x-sec { padding: clamp(64px, 9vw, 124px) 0; }
.x-kicker { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.x-h2 { font-size: clamp(30px, 3.8vw, 50px); letter-spacing: -0.03em; line-height: 1.06; max-width: 19ch; }
.x-sub { margin-top: 18px; color: var(--slate); max-width: 38em; font-size: 18px; }
.x-pains { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.x-pain { padding: 30px 28px; border-radius: var(--radius-ui); background: var(--mist); position: relative; overflow: hidden; }
.x-pain::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.8,.2,1) .2s; }
.x-pain.in::after { transform: scaleX(1); }
.x-pain .n { font-size: 15px; font-weight: 800; color: var(--blue); }
.x-pain b { display: block; font-size: 21px; letter-spacing: -0.01em; margin-top: 16px; }
.x-pain p { color: var(--slate); margin-top: 8px; font-size: 16.5px; }

/* board */
.x-board { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.x-col { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: var(--radius-ui); padding: 14px; min-height: 330px; }
.x-col h4 { margin: 2px 4px 12px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.x-col h4 span { color: var(--slate); font-weight: 600; font-size: 13px; background: var(--mist); border-radius: 999px; padding: 2px 9px; }
.x-col.last h4 span { background: rgba(23,169,182,.14); color: #0b7d87; }
.x-card { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 0 rgba(13,15,20,.05), 0 8px 18px -12px rgba(13,15,20,.3); font-size: 14px; border: 1px solid rgba(13,15,20,.04); }
.x-card b { display: block; font-size: 14.5px; line-height: 1.3; }
.x-card small { display: block; color: var(--slate); font-size: 12.5px; margin-top: 4px; }
.x-card .tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.x-card .tags span { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--mist); color: var(--ink); }
.x-card .tags .due { background: rgba(31,79,224,.1); color: var(--blue); }
.x-card .tags .ok { background: rgba(23,169,182,.14); color: #0b7d87; }
.x-card.moving { animation: xCard .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes xCard { from { opacity: 0; transform: translateX(-28px) scale(.96); } }
.x-board-note { margin-top: 16px; font-size: 14px; color: var(--slate); }

/* split + doc */
.x-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.x-list { margin: 28px 0 0; display: grid; gap: 14px; list-style: none; padding: 0; }
.x-list li { padding-left: 32px; position: relative; }
.x-list li::before { content: "✓"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.x-doc { border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(13,15,20,.35); overflow: hidden; }
.x-doc-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.x-doc-head b { font-size: 17px; letter-spacing: -0.01em; }
.x-doc-head small { display: block; color: var(--slate); font-size: 13px; margin-top: 4px; }
.x-count { text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.x-count small { font-size: 12px; margin: 0 0 2px; }
.x-count b { font-size: 22px; color: var(--blue); letter-spacing: -0.02em; }
.x-prog { height: 6px; background: var(--mist); }
.x-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .6s ease; }
.x-checks { list-style: none; margin: 0; padding: 6px 22px; }
.x-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.x-checks li:last-child { border-bottom: 0; }
.x-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.x-box svg { opacity: 0; transition: opacity .3s; }
.x-checks li.ok .x-box { background: var(--blue); border-color: var(--blue); }
.x-checks li.ok .x-box svg { opacity: 1; }
.x-checks small { color: var(--slate); font-size: 12.5px; display: block; }
.x-who { font-size: 12.5px; color: var(--slate); white-space: nowrap; }
.x-approve { margin: 6px 22px 20px; padding: 13px 16px; border-radius: 12px; background: var(--mist); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; transition: background .4s; }
.x-approve.done { background: rgba(23,169,182,.13); }
.x-approve.done .x-go { background: var(--teal); color: #00262a; }

/* trust */
.x-trust { background: #05070b; color: #fff; position: relative; overflow: hidden; }
.x-trust .x-h2 { color: #fff; }
.x-trust .x-sub { color: rgba(255,255,255,.7); }
.x-tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid rgba(255,255,255,.16); }
.x-tgrid div { padding: 26px 24px 0 0; }
.x-tgrid div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.x-tgrid svg { color: var(--teal); }
.x-tgrid b { display: block; font-size: 18px; margin-top: 12px; }
.x-tgrid p { color: rgba(255,255,255,.66); font-size: 15.5px; margin-top: 6px; }

/* price */
.x-price { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 22px; background: var(--mist); position: relative; overflow: hidden; }
.x-price::before { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(31,79,224,.16), transparent 70%); }
.x-price .big { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.x-price .big small { font-size: 18px; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.x-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; }
.x-ticks li { padding-left: 30px; position: relative; font-weight: 600; }
.x-ticks li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* faq */
.x-faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.x-faq details { background: var(--mist); border-radius: 12px; }
.x-faq details + details { margin-top: 12px; }
.x-faq summary { cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue); flex: none; }
.x-faq details[open] summary::after { content: "–"; }
.x-faq details p { padding: 0 22px 20px; color: var(--slate); }

/* US: aging + mail */
.x-total { padding: 16px 18px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.x-total small { font-size: 12.5px; color: rgba(255,255,255,.55); display: block; }
.x-total b { font-size: 30px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.x-total .x-tagp { align-self: center; }
.x-aging { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 118px; padding: 16px 18px 0; }
.x-bar { border-radius: 8px 8px 3px 3px; background: rgba(255,255,255,.16); height: 4%; transition: height 1.1s cubic-bezier(.2,.8,.2,1); }
.x-panel.in .x-bar { height: var(--h); }
.x-bar.warn { background: linear-gradient(#7d9dff, var(--blue)); }
.x-bar.hot { background: linear-gradient(#5fd8e1, var(--teal)); }
.x-aging-l { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 8px 18px 4px; font-size: 11.5px; color: rgba(255,255,255,.5); text-align: center; }
.x-mail { margin: 10px 18px 4px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.84); min-height: 112px; }
.x-mail .to { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.x-caret { display: inline-block; width: 2px; height: 1em; background: var(--teal); vertical-align: -2px; margin-left: 1px; animation: xBlink 1s steps(2) infinite; }
@keyframes xBlink { 50% { opacity: 0; } }
.x-plan { margin-top: 52px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.x-plan::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--line); }
.x-plan .fill { position: absolute; left: 0; top: 19px; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .8s ease; }
.x-step { position: relative; padding-right: 18px; }
.x-step .dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--slate); position: relative; transition: all .4s; }
.x-step.on .dot { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(31,79,224,.12); }
.x-step b { display: block; margin-top: 16px; font-size: 18px; }
.x-step p { color: var(--slate); font-size: 15.5px; margin-top: 6px; }
.x-step .st { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--mist); color: var(--slate); transition: all .4s; }
.x-step.on .st { background: rgba(23,169,182,.14); color: #0b7d87; }
.x-dash { border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(13,15,20,.35); padding: 22px; }
.x-dash h4 { margin: 0 0 16px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.x-dash h4 small { font-size: 12.5px; color: var(--slate); font-weight: 500; }
.x-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.x-kpi { padding: 14px; border-radius: 12px; background: var(--mist); }
.x-kpi small { display: block; font-size: 12.5px; color: var(--slate); }
.x-kpi b { display: block; font-size: 24px; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.x-kpi.good b { color: #0b7d87; }
.x-kpi.risk b { color: var(--blue); }
.x-todo { margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; }
.x-todo small { display: block; color: var(--slate); font-size: 12.5px; margin-top: 2px; }

/* reveal */
.js-pl .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js-pl .rv.in { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: .1s; } .rv:nth-child(3) { transition-delay: .2s; } .rv:nth-child(4) { transition-delay: .3s; }

@media (max-width: 1020px) {
  .x-hero .wrap, .x-split, .x-faq .wrap, .x-price { grid-template-columns: 1fr; }
  .x-panel { max-width: 620px; }
  .x-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-tgrid div:nth-child(3) { padding-left: 0; border-left: 0; }
  .x-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .x-plan::before, .x-plan .fill { display: none; }
}
@media (max-width: 760px) {
  .x-pains, .x-tgrid, .x-kpis { grid-template-columns: 1fr; }
  .x-tgrid div, .x-tgrid div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .x-board { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .x-col { min-width: 78%; scroll-snap-align: start; }
  .x-plan { grid-template-columns: 1fr; }
  .x-item b, .x-item .meta { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .x-bg::before, .x-bg::after, .x-scan::after, .x-live i, .x-caret { animation: none; }
  .js-pl .rv { opacity: 1; transform: none; transition: none; }
  .x-item.enter, .x-card.moving { animation: none; }
}
