.how-page { --how-width: 1120px; }
.how-page .page-width { width: min(var(--how-width), calc(100% - 72px)); }
.how-page .site-header { top: 0; min-height: 78px; }
.how-page .brand { min-width: 212px; }
.how-page .brand-mark { width: 40px; height: 44px; padding: 0; background-position: center; background-size: contain; }
.how-page .how-hero { position: relative; display: flex; min-height: 245px; align-items: end; overflow: hidden; background: #132b49 url("../img/Header-como-funciona.webp") center 45% / cover no-repeat; color: white; }
.how-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #081b34e8 0%, #0a2346a3 53%, #0c284c52 100%), linear-gradient(0deg, #091c36a8, transparent 80%); }
.how-hero-content { position: relative; z-index: 1; padding-bottom: 29px; }
.how-hero-content .eyebrow { margin-bottom: 5px; color: #a8ccf5; }
.how-hero h1 { max-width: 980px; margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(29px, 3vw, 44px); font-weight: 800; line-height: 1.08; }
.how-hero h1 span { color: var(--orange); }
.how-hero-content > p:last-child { margin: 0; color: #eff4fb; font-size: 18px; }

.workflow-section { padding: 39px 0 43px; background: #fff; }
.workflow-heading { margin-bottom: 20px; text-align: center; }
.workflow-heading .eyebrow { margin-bottom: 4px; }
.workflow-heading h2 { margin: 0 auto; color: var(--navy); font-family: var(--font-display); font-size: clamp(23px, 2.3vw, 30px); font-weight: 800; line-height: 1.08; }
.workflow-carousel { max-width: 1050px; margin-inline: auto; }
.workflow-slides { position: relative; overflow: hidden; }
.workflow-slide { display: grid; min-height: 355px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 66px); }
.workflow-slide[aria-hidden="true"] { display: none; }
.workflow-visual { position: relative; display: grid; min-width: 0; min-height: 305px; margin: 0; align-items: center; }
.workflow-visual > img { display: block; width: 100%; height: 275px; border-radius: 15px; object-fit: cover; box-shadow: 0 15px 34px #0b1f3a18; }
.dashboard-preview { position: absolute; inset: 25px 9% 25px 8%; display: grid; grid-template-columns: 70px 1fr; overflow: hidden; border: 1px solid #e9edf2; border-radius: 11px; background: #fff; box-shadow: 0 12px 30px #091d3540; }
.dashboard-sidebar { display: flex; flex-direction: column; gap: 9px; padding: 10px 7px; border-right: 1px solid #e9edf2; color: #4f5f75; font-size: 6px; }
.dashboard-logo { width: 26px; height: 27px; align-self: center; border-radius: 50%; background: url("../img/logo-Header-40x44.webp") center / contain no-repeat; }
.dashboard-sidebar b { padding: 5px 6px; border-radius: 4px; background: #ebf3ff; color: var(--blue); font-size: 7px; }
.dashboard-sidebar i { font-style: normal; }
.dashboard-main { display: grid; grid-template-rows: 1.05fr .64fr 1fr; gap: 8px; padding: 9px; }
.dashboard-cover { display: flex; flex-direction: column; justify-content: end; gap: 3px; padding: 10px; border-radius: 6px; background: linear-gradient(0deg, #0b1f3acc, #0b1f3a05), url("../img/Card-1.webp") center 44% / cover; color: #fff; }
.dashboard-cover strong { font-size: 9px; }
.dashboard-cover span { font-size: 6px; }
.dashboard-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.dashboard-tiles i { border-radius: 4px; background: #0872d8; }
.dashboard-tiles i:nth-child(2), .dashboard-tiles i:nth-child(4) { background: #ff760e; }
.dashboard-tiles i:nth-child(3) { background: #0b91b5; }
.dashboard-panels { display: grid; grid-template-columns: 1.2fr .8fr; gap: 6px; }
.dashboard-panels i { border: 1px solid #e8edf2; border-radius: 5px; background: linear-gradient(155deg, transparent 0 48%, #c9d9ea 49% 51%, transparent 52%), linear-gradient(35deg, #fff 0 35%, #edf4f8 36% 60%, #fff 61%); }
.workflow-gps { position: absolute; bottom: 12px; left: 1%; padding: 5px 9px; border-radius: 16px; background: var(--blue); box-shadow: 0 5px 13px #0b1f3a25; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .4px; }
.workflow-gps > span { font-size: 12px; }
.workflow-copy { position: relative; min-height: 300px; padding: 23px 5px 8px 0; }
.workflow-number { position: absolute; top: -21px; right: 1px; color: #f1f3f5; font-family: var(--font-display); font-size: 70px; font-weight: 800; line-height: 1; }
.workflow-icon { position: relative; display: grid; width: 35px; height: 34px; margin-bottom: 9px; place-items: center; border: 1px solid #8ab5e8; border-radius: 5px; background: linear-gradient(90deg, #a6c7ee 0 8px, #ecf4ff 8px); color: var(--blue); font-size: 18px; font-weight: 700; }
.workflow-copy h3 { position: relative; margin: 0 0 8px; color: var(--navy); font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.06; }
.workflow-copy > p { margin: 0 0 8px; color: #72777e; font-size: 14px; line-height: 1.7; }
.workflow-arrows { display: flex; gap: 8px; margin-top: 12px; }
.workflow-arrows button { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid #e0e5eb; border-radius: 9px; background: white; color: var(--navy); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.workflow-arrows button:hover:not(:disabled) { border-color: var(--blue); background: var(--blue); color: #fff; }
.workflow-arrows button:disabled { opacity: .42; cursor: not-allowed; }
.workflow-arrows svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.workflow-progress { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; align-items: center; gap: 10px; margin-top: 8px; }
.workflow-progress-current, .workflow-progress-total { color: var(--navy); font-size: 9px; font-weight: 700; text-align: center; }
.workflow-progress-total { color: #9ba6b3; }
.workflow-range { --progress: 0%; width: 100%; height: 14px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; touch-action: pan-x; }
.workflow-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--blue) 0 var(--progress), #dfe4ea var(--progress) 100%); }
.workflow-range::-moz-range-track { height: 2px; background: #dfe4ea; }
.workflow-range::-moz-range-progress { height: 2px; background: var(--blue); }
.workflow-range::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -5px; appearance: none; -webkit-appearance: none; border: 2px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.workflow-range::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.workflow-range:focus-visible { outline: 2px solid #ffa45b; outline-offset: 4px; }
.workflow-cta { margin-top: 20px; text-align: center; }
.workflow-cta .button { min-height: 40px; border-radius: 9px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.how-trust { padding: 43px 0 49px; background: linear-gradient(125deg, #0d2544, #132f53); color: white; }
.how-trust .section-heading { margin-bottom: 24px; }
.how-trust .section-heading-dark h2 { font-size: 26px; }
.how-trust-grid { display: grid; max-width: 790px; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-inline: auto; }
.how-trust-grid article { min-height: 116px; padding: 15px 16px 12px; border: 1px solid #ffffff12; border-radius: 10px; background: rgba(255,255,255,.055); text-align: center; }
.how-trust-grid article > span { color: #eaf3ff; font-size: 22px; line-height: 1.1; }
.how-trust-grid h3 { margin: 5px 0 3px; color: #fff; font-size: 14px; font-weight: 700; }
.how-trust-grid p { max-width: 190px; margin: 0 auto; color: #9daec3; font-size: 14px; line-height: 1.55; }

.infrastructure { padding: 56px 0; }
.infrastructure-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; gap: 37px; }
.infrastructure-heading .eyebrow { margin-bottom: 6px; }
.infrastructure-heading h2 { max-width: 365px; margin: 0; color: var(--navy); font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1.08; }
.infrastructure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e6eaf0; border-radius: 11px; background: #fff; box-shadow: 0 12px 32px #0b1f3a0c; }
.infrastructure-grid article { display: flex; min-height: 72px; align-items: center; gap: 11px; padding: 10px 13px; border-bottom: 1px solid #edf0f3; }
.infrastructure-grid article:nth-child(odd) { border-right: 1px solid #edf0f3; }
.infrastructure-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.infrastructure-grid article > span { display: grid; width: 33px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid #8ab5e8; border-radius: 5px; background: linear-gradient(90deg, #a6c7ee 0 7px, #ecf4ff 7px); color: var(--blue); font-size: 16px; }
.infrastructure-grid h3 { margin: 0 0 2px; color: var(--navy); font-size: 14px; font-weight: 700; }
.infrastructure-grid p { margin: 0; color: #85909f; font-size: 14px; }
.how-breathing-room { min-height: 270px; background: white; }
.how-page .footer-bottom .page-width { align-items: flex-start; }
.how-page .footer-bottom .page-width > span:first-child { max-width: 62%; line-height: 1.6; }

@media (max-width: 820px) {
  .how-page .page-width { width: min(100% - 42px, 650px); }
  .how-page .how-hero { min-height: 270px; }
  .workflow-section { padding: 35px 0 39px; }
  .workflow-slide { min-height: 0; grid-template-columns: 1fr; gap: 20px; }
  .workflow-visual { min-height: 0; }
  .workflow-visual > img { height: clamp(210px, 50vw, 310px); }
  .dashboard-preview { inset: 19px 7% 20px; grid-template-columns: 61px 1fr; }
  .workflow-gps { bottom: 8px; }
  .workflow-copy { min-height: 245px; padding-top: 31px; }
  .workflow-number { top: -3px; font-size: 63px; }
  .workflow-copy h3 { max-width: calc(100% - 65px); }
  .workflow-copy > p { font-size: 12px; }
  .workflow-arrows { margin-top: 13px; }
  .workflow-progress { margin-top: 16px; }
  .workflow-cta { margin-top: 16px; }
  .infrastructure-layout { grid-template-columns: 1fr; gap: 21px; }
  .infrastructure-heading h2 { max-width: 500px; }
  .how-breathing-room { min-height: 160px; }
}

@media (max-width: 560px) {
  .how-page .page-width { width: calc(100% - 36px); }
  .how-page .site-header { padding-inline: 13px; }
  .how-page .brand { min-width: auto; }
  .how-page .how-hero { min-height: 245px; background-position: 56% center; }
  .how-hero-content { padding-bottom: 27px; }
  .how-hero h1 { max-width: 390px; font-size: 31px; }
  .how-hero-content > p:last-child { max-width: 390px; font-size: 11px; line-height: 1.6; }
  .workflow-section { padding: 32px 0 35px; }
  .workflow-heading { margin-bottom: 22px; }
  .workflow-heading h2 { font-size: 25px; }
  .workflow-slide { gap: 14px; }
  .workflow-visual > img { height: 215px; border-radius: 10px; }
  .dashboard-preview { inset: 16px 5% 19px; grid-template-columns: 49px 1fr; border-radius: 7px; }
  .dashboard-sidebar { gap: 6px; padding: 7px 4px; font-size: 5px; }
  .dashboard-logo { width: 21px; height: 23px; }
  .dashboard-sidebar b { padding: 4px; font-size: 6px; }
  .dashboard-main { gap: 5px; padding: 6px; }
  .dashboard-cover { padding: 7px; }
  .dashboard-cover strong { font-size: 7px; }
  .dashboard-cover span { font-size: 5px; }
  .workflow-gps { bottom: 6px; left: 0; padding: 4px 7px; font-size: 7px; }
  .workflow-copy { min-height: 270px; padding: 32px 0 0; }
  .workflow-number { top: -1px; right: 0; font-size: 57px; }
  .workflow-icon { width: 31px; height: 31px; margin-bottom: 7px; }
  .workflow-copy h3 { max-width: calc(100% - 58px); margin-bottom: 7px; font-size: 20px; }
  .workflow-copy > p { font-size: 11px; line-height: 1.65; }
  .workflow-arrows { margin-top: 10px; }
  .workflow-arrows button { width: 35px; height: 35px; }
  .workflow-progress { grid-template-columns: 23px minmax(0, 1fr) 23px; gap: 6px; margin-top: 13px; }
  .workflow-cta { margin-top: 14px; }
  .how-trust { padding: 39px 0; }
  .how-trust .section-heading-dark h2 { font-size: 24px; }
  .how-trust-grid { grid-template-columns: 1fr; max-width: 350px; gap: 8px; }
  .how-trust-grid article { min-height: 98px; }
  .infrastructure { padding: 43px 0; }
  .infrastructure-heading h2 { font-size: 26px; }
  .infrastructure-grid article { min-height: 69px; gap: 7px; padding: 8px; }
  .infrastructure-grid article > span { width: 29px; height: 29px; }
  .infrastructure-grid h3 { font-size: 9px; }
  .infrastructure-grid p { font-size: 7px; }
  .how-breathing-room { min-height: 90px; }
  .how-page .footer-bottom .page-width > span:first-child { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .how-page *, .how-page *::before, .how-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
