/* Estilos del portal · construidos sobre el sistema de diseño ONE (/ds) */
body { margin: 0; background: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button:focus-visible, a:focus-visible, .drop:focus-within, .check input:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.one-btn--black { border-color: #000; }
.one-btn:disabled { opacity: .4; cursor: not-allowed; }
.one-input select { appearance: none; -webkit-appearance: none; padding-right: 3rem; cursor: pointer; }
.one-input select:disabled { opacity: .5; cursor: not-allowed; }
.one-input.select { position: relative; }
.one-input.select::after { content: ""; position: absolute; right: 1.4rem; bottom: 1.45rem; width: 8px; height: 8px; border-right: 1.5px solid #000; border-bottom: 1.5px solid #000; transform: rotate(45deg); pointer-events: none; }
.one-input input:focus, .one-input select:focus { box-shadow: inset 0 0 0 1px #000; }

.layout { min-height: 100vh; display: flex; flex-wrap: wrap; color: #000; font-family: var(--font-sans); }
.brand { position: relative; flex: 1 1 420px; min-height: 320px; background: #141818; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: 2.5rem 2.813rem; box-sizing: border-box; }
.brand__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand__shade { position: absolute; inset: 0; background: rgba(20,24,24,.62); mix-blend-mode: multiply; }
.brand__logo { position: relative; height: 34px; width: auto; align-self: flex-start; filter: invert(1); }
.brand__copy { position: relative; display: flex; flex-direction: column; gap: 1.25rem; max-width: 30rem; }
.brand__copy .one-display { color: #fff; }
.brand__foot { position: relative; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .75rem; color: rgba(255,255,255,.85); }
.brand__foot a { color: #fff; font-weight: 600; }

.content { flex: 999 1 560px; min-width: 0; padding: 2.5rem 2.813rem 4rem; box-sizing: border-box; }
.wrap { width: 100%; max-width: 40rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.userbox { display: flex; align-items: center; gap: 1rem; font-size: .875rem; color: #353435; }
.linkbtn { background: none; border: 0; padding: .75rem 0; min-height: 44px; cursor: pointer; font-family: var(--font-sans); font-size: .625rem; font-weight: 700; letter-spacing: .063rem; text-transform: uppercase; color: #000; text-decoration: underline; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.steps li { display: flex; flex-direction: column; gap: .625rem; color: #6b6b6b; font-size: .625rem; font-weight: 700; letter-spacing: .063rem; text-transform: uppercase; }
.steps li b { font-weight: 500; }
.steps .bar { height: 2px; background: #cdcdcd; }
.steps li.on { color: #000; } .steps li.on .bar { background: #000; } .steps li.cur b { font-weight: 700; }

.step { display: flex; flex-direction: column; gap: 1.5rem; }
.h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); color: #141818; margin: 0; }
.muted { margin: 0; color: #353435; line-height: 1.5; }
.hint { margin: -.5rem 0 0; font-size: .75rem; color: #353435; }
.err { margin: -.75rem 0 0; font-size: .875rem; font-weight: 500; color: #b00000; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: .5rem; }
.eyebrow { font-size: .75rem; letter-spacing: .075rem; margin: 0; }
.group { display: flex; flex-direction: column; gap: 1.25rem; }
.divider { height: 1px; background: #f0f0f0; }

.projects-field { border: 0; margin: 0; padding: 0; }
.projects-field legend { padding: 0; margin-bottom: .625rem; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.project { height: 148px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .875rem; padding: 1rem; border: 1px solid #cdcdcd; background: #fff; cursor: pointer; font-family: var(--font-sans); color: #000; transition: all .3s cubic-bezier(.4,0,.2,1); }
.project img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.project span { font-size: .625rem; font-weight: 700; letter-spacing: .063rem; text-transform: uppercase; }
.project[aria-pressed="true"] { border-color: #000; background: #f0f0f0; }

.chipbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; background: #f0f0f0; padding: .25rem 1.25rem; font-size: .75rem; font-weight: 700; letter-spacing: .075rem; text-transform: uppercase; }

.drop { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 1.25rem; background: #f0f0f0; border: 1px dashed #000; cursor: pointer; }
.drop { transition: background .2s, border-color .2s, box-shadow .2s; }
.drop:hover { background: #e8e8e8; }
.drop.over { background: #fff; border-style: solid; box-shadow: inset 0 0 0 1px #000; }
.drop.over * { pointer-events: none; }
.drop.bad { border-color: #b00000; }
.drop__text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.drop__name { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.drop__name .one-required { font-size: .625rem; font-weight: 700; letter-spacing: .063rem; text-transform: uppercase; }
.drop__meta { font-size: .75rem; color: #353435; }
.status { margin: 0; font-size: .875rem; font-weight: 500; }

.alert { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: #fdecec; color: #8a0000; margin: 0; }
.alert--plain { display: block; font-size: .875rem; font-weight: 500; }
.alert__title { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .075rem; text-transform: uppercase; }
.alert__text { margin: 0; font-size: .9375rem; line-height: 1.45; }
.alert__link { display: inline-block; margin-top: .5rem; padding: .5rem 0; font-size: .625rem; font-weight: 700; letter-spacing: .063rem; text-transform: uppercase; color: #8a0000 !important; }

.okcard { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; border: 1px solid #cdcdcd; }
.okcard__title { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .075rem; text-transform: uppercase; }
.okcard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.okcard__grid > div, .summary > div { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.k { font-size: .625rem; font-weight: 700; letter-spacing: .063rem; text-transform: uppercase; color: #353435; }
.v { font-size: .9375rem; font-weight: 500; overflow-wrap: anywhere; }
.okcard__warn { margin: 0; padding: .75rem 1rem; background: #f0f0f0; font-size: .875rem; line-height: 1.45; }
.notice { margin: 0; padding: 1rem 1.25rem; background: #f0f0f0; font-size: .875rem; font-weight: 500; line-height: 1.45; }

.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: #000; flex: none; }

.summary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: #f0f0f0; border: 1px solid #f0f0f0; }
.summary > div { background: #fff; padding: 1.125rem 1.25rem; }
.summary dd { margin: 0; }

@media (max-width: 640px) {
  .brand, .content { padding-left: 1.25rem; padding-right: 1.25rem; }
  .steps b { display: none; }
}
