.portal-inicio { background: var(--white); color: var(--dark); }
.portal-header { background: var(--white); padding: 20px 0; border-bottom: 1px solid #e5e2df; }
.portal-brand { display: inline-flex; align-items: center; }
.portal-brand img { max-width: 260px; max-height: 70px; width: auto; height: auto; }
.portal-help-link { margin-right: 24px; color: var(--maroon); font-size: .9rem; }
.portal-inicio a:focus-visible, .portal-inicio summary:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.portal-skip { position: absolute; top: -100px; left: 16px; z-index: 100; background: var(--white); padding: 12px; color: var(--maroon); }
.portal-skip:focus { top: 10px; }
.portal-intro { background: var(--maroon); color: var(--white); padding: 52px 0 48px; border-bottom: 4px solid var(--sand); }
.portal-institution { color: #e5d8c6; font-size: .9rem; margin-bottom: 16px; }
.portal-intro h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; font-weight: 700; margin-bottom: 20px; letter-spacing: -.035em; }
.portal-intro-text { max-width: 650px; color: var(--light); line-height: 1.8; margin: 0; }
.portal-services { padding-top: 36px; }
.portal-section-title { color: var(--maroon); font-size: 1.3rem; font-weight: 600; margin-bottom: 24px; }
.portal-service { width: 100%; padding: 30px; border: 1px solid #dedbd7; border-radius: 8px; display: flex; flex-direction: column; align-items: stretch; background: var(--white); }
.portal-service-primary { border-top: 4px solid var(--red); padding-top: 27px; }
.portal-service-icon { font-size: 1.55rem; color: var(--maroon); margin-bottom: 20px; }
.portal-service h3 { color: var(--dark); font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }
.portal-service p { line-height: 1.7; }
.portal-service-note { color: #626262; font-size: .85rem; margin-bottom: 24px; }
.portal-status { background: var(--light); border: 1px solid #dedbd7; border-radius: 4px; padding: 5px 10px; font-size: .75rem; color: #626262; }
.portal-inicio .btn { font-size: .9rem; font-weight: 600; padding: 11px 18px; border-radius: 5px; white-space: normal; }
.portal-button-primary { background: var(--maroon); color: var(--white); border: 1px solid var(--maroon); }
.portal-button-primary:hover { background: var(--red); color: var(--white); }
.portal-button-outline { color: var(--maroon); border: 1px solid var(--maroon); }
.portal-button-outline:hover { background: var(--maroon); color: var(--white); }
.portal-button-pending:disabled { background: var(--light); border: 1px solid #dedbd7; color: #626262; opacity: 1; cursor: not-allowed; }
.portal-secondary { padding-top: 8px; padding-bottom: 28px; border-bottom: 1px solid #e5e2df; }
.portal-secondary-service { display: flex; gap: 18px; padding: 12px 8px; }
.portal-secondary-service > i { color: var(--red); font-size: 1.3rem; margin-top: 3px; }
.portal-secondary h3 { font-size: 1rem; color: var(--dark); font-weight: 600; margin-bottom: 8px; }
.portal-secondary p { font-size: .88rem; line-height: 1.7; margin-bottom: 8px; }
.portal-secondary a { color: var(--maroon); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.portal-help { padding-top: 36px; padding-bottom: 40px; }
.portal-help details { border-bottom: 1px solid #e5e2df; padding: 16px 0; }
.portal-help summary { color: var(--maroon); font-size: .95rem; cursor: pointer; font-weight: 500; }
.portal-help details p { margin: 14px 0 0; max-width: 800px; line-height: 1.8; font-size: .9rem; }
.portal-footer { background: var(--light); padding: 22px 0; color: #626262; font-size: .8rem; }
@media (max-width: 575.98px) {
  .portal-header { padding: 16px 0; }
  .portal-brand { width: 100%; margin-bottom: 18px; }
  .portal-brand img { max-width: 230px; max-height: 60px; }
  .portal-header nav { width: 100%; justify-content: space-between; }
  .portal-intro { padding: 32px 0; }
  .portal-service { padding: 24px; }
  .portal-service-primary { padding-top: 21px; }
}
