@font-face {
  font-family: Bricolage;
  src: url("bricolage-800.8269ac867c19.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --indigo: #1c234c;
  --ink: #1c2344;
  --muted: #515c75;
  --canvas: #f1f3fa;
  --surface: #fff;
  --line: #d8deec;
  --light: #f6f8fe;
  --blue: #304bbb;
  --blue-hover: #253a98;
  --blue-light: #e9edfc;
  --orange: #f4aa66;
  --radius: 16px;
  --shadow: 0 10px 32px #222b5310;
  font: 1rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 {
  font-family: Bricolage, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.8vw, 3.45rem); }
h2 { font-size: clamp(1.42rem, 2vw, 1.85rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.06rem; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }
a { color: var(--blue-hover); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #4060db; outline-offset: 3px; }
[tabindex="-1"]:focus { outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-150%);
}
.skip-link:focus { opacity: 1; pointer-events: auto; transform: translateY(0); }

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__inner, .site-main, .site-footer {
  width: min(100% - 3rem, 1200px);
  margin-inline: auto;
}
.topbar__inner {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--indigo);
  text-decoration: none;
  line-height: 1.15;
  min-width: 0;
}
.brand img { width: 45px; height: 42px; object-fit: contain; flex: none; }
.brand strong {
  display: block;
  font: 800 1.35rem/1.1 Bricolage, system-ui, sans-serif;
  letter-spacing: -.035em;
}
.brand small, .session-chip small {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .8rem;
}
.session-chip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
  line-height: 1.2;
  text-align: right;
}
.session-chip div { min-width: 0; }
.session-chip strong { display: block; font-size: .9rem; }
.session-chip small { overflow-wrap: anywhere; }
.session-chip .button { flex: none; }
.site-main { flex: 1; padding-block: 2rem 3.25rem; }
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  padding-block: 1.1rem 1.55rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.login-layout {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  min-height: 465px;
  max-width: 960px;
  margin: clamp(1rem, 5vh, 3.6rem) auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.login-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background: var(--indigo);
}
.login-cover h1 { max-width: 12ch; }
.login-cover > p:last-of-type { max-width: 30ch; color: #dce2f5; }
.login-cover .eyebrow, .workspace-heading .eyebrow { color: var(--orange); }
.cover-mark {
  z-index: -1;
  position: absolute;
  right: -1.55rem;
  bottom: -2.85rem;
  display: grid;
  align-content: center;
  gap: .7rem;
  width: 10.5rem;
  height: 13rem;
  padding: 1.4rem;
  border: 2px solid #8796d84a;
  border-radius: .85rem;
  rotate: -13deg;
}
.cover-mark::before {
  content: "";
  position: absolute;
  inset: -.65rem .65rem .65rem -.65rem;
  z-index: -1;
  border: 1px solid #8796d84a;
  border-radius: .85rem;
}
.cover-mark i { display: block; height: 2px; border-radius: 4px; background: #8796d84a; }
.cover-mark i:nth-child(3) { width: 60%; }
.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
}
.login-form form { margin-top: 1.2rem; }
.login-form .button--primary { width: 100%; margin-top: .15rem; }

.workspace-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 148px;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  color: #fff;
  background: var(--indigo);
}
.workspace-heading::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: -130px -50px auto auto;
  width: 276px;
  aspect-ratio: 1;
  border: 1px solid #92a0d75c;
  border-radius: 50%;
  box-shadow: 0 0 0 24px #7587cc1c, 0 0 0 48px #7587cc14;
  pointer-events: none;
}
.workspace-heading h1 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
.workspace-heading .muted, .workspace-heading p:not(.eyebrow) { color: #e0e5f5; }
#desarrollo .workspace-heading {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .32rem;
}
.eyebrow {
  margin-bottom: .35rem;
  color: var(--blue-hover);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.segment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  margin-block: 1.25rem;
  padding: .32rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.segment__button {
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}
.segment__button:hover { color: var(--indigo); background: var(--light); }
.segment__button.is-active,
.segment__button[aria-current="page"],
.segment__button[aria-pressed="true"],
.segment__button[aria-selected="true"] {
  border-color: #ccd5f5;
  background: var(--blue-light);
  color: #253d9c;
}
.nav-count {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  min-width: 1.4rem;
  min-height: 1.4rem;
  margin-inline-start: .4rem;
  padding-inline: .28rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.layout-split, .wizard-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(240px, 325px) minmax(0, 1fr);
  gap: 1.15rem;
}
.wizard-layout { grid-template-columns: minmax(175px, 226px) minmax(0, 1fr); }
.layout-split > *, .wizard-layout > * { min-width: 0; }
.steps {
  display: grid;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 46px;
  padding: .45rem .55rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}
.step--active, .step[aria-current="step"] {
  border-color: #ccd5f5;
  background: var(--blue-light);
  color: #243d9f;
}
.step--done { color: #275747; }
.step-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--canvas);
  font-variant-numeric: tabular-nums;
}
.step--active .step-number { background: var(--blue); color: #fff; }
.step--done .step-number { background: #e5f4eb; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 18px #222b5308;
}
.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem;
  padding: 1.3rem clamp(1rem, 3vw, 1.55rem);
  border-bottom: 1px solid var(--line);
}
.panel__body { padding: clamp(1rem, 3vw, 1.55rem); }
.panel--narrow { max-width: 825px; }
.wizard-panel .panel__header {
  align-items: flex-start;
  flex-direction: column;
  gap: .45rem;
}
.panel__body > section + section { padding-top: 1rem; border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.stack > :is(h2, h3, h4) + .muted { margin-top: -.45rem; }
.row, .button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem .8rem;
}
.row--spread, .button-row { justify-content: space-between; }
.row > *, .stack > * { min-width: 0; }
.muted { color: var(--muted); }
.field-hint, .form-error { font-size: .875rem; overflow-wrap: anywhere; }
.field-hint { color: var(--muted); }
.form-error { color: #a12a3a; }
.notice {
  padding: .8rem 1rem;
  border: 1px solid #c9d4ef;
  border-radius: 10px;
  background: var(--light);
  color: #334675;
  overflow-wrap: anywhere;
}
.notice--error { border-color: #efc6ce; background: #fff1f3; color: #99283c; }
.empty {
  display: grid;
  gap: .45rem;
  padding: 1.4rem 1rem;
  border: 1px dashed #c5cde2;
  border-radius: 12px;
  background: var(--light);
  color: var(--muted);
}
.empty :is(h2, h3, strong) { color: var(--ink); }

.field {
  display: grid;
  gap: .32rem;
  align-content: start;
  min-width: 0;
  color: #35415d;
  font-size: .9rem;
  font-weight: 650;
}
.field :is(.muted, .field-hint) { font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form-grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid > .field--full { grid-column: 1 / -1; }
.check-field { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.person-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .26rem 1.1rem;
  align-items: baseline;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--light);
  overflow-wrap: anywhere;
}
.person-strip .muted { font-size: .875rem; }
input:not([type]), input:is([type=text], [type=password], [type=date], [type=tel], [type=search], [type=email], [type=number]), select, textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .55rem .75rem;
  border: 1px solid #aeb9d1;
  border-radius: 9px;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 450;
}
input::placeholder, textarea::placeholder { color: #687390; opacity: 1; }
:is(input, select, textarea):disabled { background-color: var(--canvas); color: var(--muted); }
input[type="checkbox"] {
  flex: none;
  width: 1.18rem;
  height: 1.18rem;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.field:has(> select) { position: relative; }
.field > select { appearance: none; padding-right: 2.2rem; }
.field:has(> select)::after {
  content: "";
  position: absolute;
  right: .95rem;
  bottom: 1.16rem;
  width: .48rem;
  height: .48rem;
  border: solid #35415d;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
  pointer-events: none;
}
textarea { resize: vertical; }
summary { color: var(--blue-hover); font-weight: 700; }
details > :not(summary):first-of-type { margin-top: .8rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid #bcc7e0;
  border-radius: 9px;
  background: var(--surface);
  color: var(--blue-hover);
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.button:hover { border-color: #8597c4; background: var(--blue-light); }
.button--primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button--primary:hover { border-color: var(--blue-hover); background: var(--blue-hover); }
.button--subtle { border-color: var(--line); background: var(--light); }
.button--danger { border-color: #e8b8bf; color: #a1293a; }
.button--danger:hover { border-color: #d68d99; background: #fff0f3; }
.button:disabled { border-color: var(--line); background: #ecf0f8; color: #67738d; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .22rem .55rem;
  border: 1px solid #d9deed;
  border-radius: 6px;
  background: var(--canvas);
  color: #405170;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
}
.badge--success { border-color: #c0dfcc; background: #eaf6ee; color: #215b3e; }
.badge--danger { border-color: #efc6ce; background: #fff0f3; color: #9e2a3e; }
.badge--attention { border-color: #efd3a6; background: #fff3de; color: #804617; }
.badge--pending { border-color: #cfdaff; background: #edf1ff; color: #2844a6; }

.service-card {
  min-width: 0;
  padding: clamp(.8rem, 2.25vw, 1.15rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--light);
  overflow-wrap: anywhere;
}
.service-card .service-card { background: var(--surface); }
.record-button {
  display: grid;
  width: 100%;
  gap: .28rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  overflow-wrap: anywhere;
}
.record-button:hover { border-color: #9baae0; background: var(--light); }
.record-button[aria-current="true"], .record-button.is-active {
  border-color: #9daee8;
  background: var(--blue-light);
  box-shadow: inset 3px 0 var(--blue);
}
.record-button .muted { font-size: .875rem; }
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: .7rem 1rem;
}
.details-list dt { color: var(--muted); font-size: .875rem; }
.details-list dd { font-weight: 650; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.table-wrap :is(td, th) { padding: .65rem; border-bottom: 1px solid var(--line); }
ul.document-list { display: grid; gap: .4rem; padding: 0; margin: 0; list-style: none; }
ul.document-list > li { min-height: 44px; padding-block: .28rem; }
.history-list {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0 0 0 .8rem;
  border-left: 2px solid var(--line);
  list-style: none;
}
.history-list li { position: relative; overflow-wrap: anywhere; }
.history-list li::before {
  content: "";
  position: absolute;
  top: .55rem;
  left: -1.06rem;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--blue);
}
.history-list .muted { font-size: .875rem; }
.alta-form { padding-top: .95rem; border-top: 1px solid var(--line); }

.upload-area {
  display: grid;
  gap: .65rem;
  justify-items: start;
  padding: .9rem;
  border: 1px dashed #a5b2d6;
  border-radius: 12px;
  background: var(--light);
}
.upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pick-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .55rem .82rem;
  border: 1px solid #b5c1dc;
  border-radius: 9px;
  background: var(--surface);
  color: #283a84;
  font-size: .925rem;
  font-weight: 700;
  cursor: pointer;
}
.pick-file:hover { background: var(--blue-light); }
.pick-file:focus-within { outline: 3px solid #4060db; outline-offset: 3px; }
.pick-file--camera { border-color: #b9c7fb; background: var(--blue-light); }
.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
}
.camera-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1em;
  height: .78em;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.camera-icon::before { content: ""; width: .38em; height: .38em; border: 1.5px solid; border-radius: 50%; }
.camera-icon::after {
  content: "";
  position: absolute;
  top: -.24em;
  width: .38em;
  height: .24em;
  border: 1.5px solid;
  border-radius: 2px 2px 0 0;
}
.upload-list {
  display: grid;
  gap: .45rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.upload-list:empty { display: none; }
.upload-list li {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  padding: .35rem .45rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.upload-list img, .upload-pdf { width: 2.7rem; height: 2.6rem; border-radius: 5px; }
.upload-list img { object-fit: cover; }
.upload-pdf {
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--blue-hover);
  font-weight: 800;
}
.upload-list .button { padding-inline: .65rem; }

.toast {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: 1rem;
  z-index: 5;
  max-width: min(25rem, calc(100% - 2rem));
  padding: .8rem 1.05rem;
  border-radius: 10px;
  background: #22563d;
  color: #fff;
  box-shadow: 0 5px 21px #192b3f36;
  overflow-wrap: anywhere;
}
.toast--error { background: #9e2a3e; }
.visor {
  width: min(61rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 15px 55px #161d4b40;
}
.visor[open] { display: flex; flex-direction: column; }
.visor::backdrop { background: #171d424f; }
.visor__header, .visor__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: none;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .73rem 1rem;
}
.visor__header { border-bottom: 1px solid var(--line); }
.visor__footer { border-top: 1px solid var(--line); }
.visor__pagina { min-height: 7rem; padding: 1rem; overflow: auto; background: #e9edf7; }
.visor__pagina img { margin-inline: auto; height: auto; box-shadow: 0 2px 10px #161d4b24; }

@media (max-width: 800px) {
  .layout-split { grid-template-columns: minmax(200px, 265px) minmax(0, 1fr); gap: .8rem; }
  .wizard-layout { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { justify-content: center; }
}
@media (max-width: 610px) {
  .topbar__inner, .site-main, .site-footer { width: calc(100% - 1.5rem); }
  .topbar__inner { min-height: 67px; gap: .5rem; }
  .brand { gap: .44rem; }
  .brand img { width: 38px; height: 36px; }
  .brand strong { font-size: 1.12rem; }
  .session-chip { gap: .5rem; }
  .session-chip .button { font-size: .82rem; padding-inline: .58rem; }
  .session-chip :is(strong, small) { font-size: .78rem; }
  .site-main { padding-block: 1rem 2rem; }
  .site-footer { padding-block: .85rem 1.2rem; }
  .login-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; margin: 0; border-radius: 16px; }
  .login-cover { padding: 1.45rem; gap: .6rem; }
  .login-cover h1 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .cover-mark { width: 6.4rem; height: 9rem; }
  .login-form { padding: 1.4rem; }
  .login-form form { margin-top: .75rem; }
  .workspace-heading { min-height: 105px; border-radius: 13px; padding: 1.05rem; }
  .workspace-heading::after { width: 190px; inset: -105px -65px auto auto; }
  .segment { width: 100%; margin-block: .9rem; gap: .18rem; padding: .24rem; }
  .segment__button { flex: 1 1 0; padding-inline: .35rem; font-size: .875rem; }
  .layout-split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: .96fr 1.22fr 1fr .82fr; gap: .2rem; padding: .35rem; }
  .step {
    flex-direction: column;
    justify-content: flex-start;
    gap: .28rem;
    padding: .35rem .18rem;
    font-size: .875rem;
    line-height: 1.2;
    text-align: center;
  }
  .step-number { width: 1.26rem; height: 1.26rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { border-radius: 13px; }
  .visor { width: calc(100% - 1rem); max-height: calc(100% - 1rem); }
  .visor :is(.visor__header, .visor__footer, .visor__pagina) { padding: .55rem; }
}

@media (max-width: 570px) {
  .session-chip > div { display: none; }
}

@media (max-width: 390px) {
  .brand small { font-size: .72rem; }
}
