/*
 * FASE5A171B10 — base transversal de interacción.
 * Complementa los estilos por portal sin sustituir la identidad visual existente.
 */
:root {
  --px-focus-color: #0a7a3f;
  --px-focus-ring: 0 0 0 4px rgba(10, 122, 63, .22);
  --px-control-min: 42px;
  --px-status-radius: 10px;
}

.px-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;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--px-focus-color);
  outline-offset: 3px;
  box-shadow: var(--px-focus-ring);
}

:where(button, input, select, textarea) {
  font: inherit;
}

:where(button, [role="button"], input[type="submit"], input[type="button"]) {
  min-height: var(--px-control-min);
}

:where(button, [role="button"], input[type="submit"], input[type="button"])[disabled],
:where(button, [role="button"])[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .62;
}

form[data-submitting="true"] :where(button[type="submit"], button:not([type]), input[type="submit"]) {
  cursor: progress;
  pointer-events: none;
}

:where(.alert, .notice, .flash, .tp-flash, .sp-alert, .life-alert, .lms-alert, .id-alert, .comm-notice)[role] {
  border-inline-start-width: 4px;
  border-inline-start-style: solid;
  border-radius: var(--px-status-radius);
}

:where(.alert, .notice, .flash, .tp-flash, .sp-alert, .life-alert, .lms-alert, .id-alert, .comm-notice)[role="alert"] {
  border-inline-start-color: #b42318;
}

:where(.alert, .notice, .flash, .tp-flash, .sp-alert, .life-alert, .lms-alert, .id-alert, .comm-notice)[role="status"] {
  border-inline-start-color: #087443;
}

.px-request-error-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f7f6;
  color: #14213d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.px-request-error-card {
  width: min(100%, 620px);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #d9e2df;
  border-top: 5px solid #0b8a3b;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(7, 27, 49, .12);
}

.px-request-error-card img {
  display: block;
  width: min(230px, 70%);
  height: auto;
  margin: 0 0 28px;
}

.px-request-error-card h1 {
  margin: 0 0 12px;
  color: #071b31;
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  line-height: 1.12;
}

.px-request-error-card p {
  margin: 0;
  color: #44546a;
  font-size: 1.05rem;
  line-height: 1.65;
}

.px-request-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.px-incident-code {
  margin-top: 18px;
  color: #071b31;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.px-incident-detail {
  max-height: 320px;
  overflow: auto;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #071b31;
  color: #e8f1f7;
  font-size: .82rem;
  white-space: pre-wrap;
}

.px-request-error-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #0b8a3b;
  border-radius: 9px;
  color: #0b6e35;
  font-weight: 800;
  text-decoration: none;
}

.px-request-error-actions a:first-child {
  background: #0b8a3b;
  color: #fff;
}

.sp-nav-section {
  margin: 0;
  padding: 0;
}

.sp-nav-section + .sp-nav-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.sp-nav-section > h2 {
  margin: 0 16px 7px;
  color: rgba(255, 255, 255, .66);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sp-sidebar nav a i svg,
.sp-mobile-nav a b svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-notification {
  text-decoration: none;
}

@media (pointer: coarse) {
  :where(a, button, [role="button"], input[type="submit"], input[type="button"]) {
    min-height: 44px;
  }

  :where(.menu, .tp-nav, .sp-sidebar nav, .sp-mobile-nav) a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }
}
