.vp-header, .vp-login {
  --vp-ink: #182a29;
  --vp-muted: #4e605e;
  --vp-accent: #0b665b;
  --vp-line: #d9e3e1;
  color: var(--vp-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}
.vp-header { background: #fff; border-bottom: 1px solid var(--vp-line); }
.vp-header-inner {
  max-width: 1220px;
  margin-inline: auto;
  padding: .65rem clamp(1rem, 3%, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}
.vp-header a { text-decoration: none; }
.vp-brand { display: flex; align-items: center; gap: .65rem; color: var(--vp-ink); font-weight: 700; }
.vp-brand img { object-fit: contain; max-width: 104px; }
.vp-brand .vp-ie-logo { width: 40px; height: 40px; flex: none; }
.vp-brand span { border-left: 1px solid var(--vp-line); padding-left: .65rem; }
.vp-nav, .vp-account { display: flex; align-items: center; gap: .25rem; }
.vp-nav a, .vp-account a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  color: var(--vp-muted);
  font-weight: 650;
  padding: .5rem .65rem;
  min-height: 44px;
  border-radius: 6px;
}
.vp-account .vp-icon { min-width: 44px; }
.vp-moodle-form { margin: 0; }
.vp-header .vp-moodle {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; max-width: 100%; padding: .55rem .85rem; border-radius: 6px;
  background: #0b665b; color: #fff; border: 0; font: inherit; font-weight: 750; text-align: center; cursor: pointer;
}
.vp-header .vp-moodle i { flex: none; }
.vp-header .vp-moodle span { text-wrap: balance; }
.vp-header .vp-moodle:hover { background: #084e45; }
.vp-header-inner:has(.vp-moodle-form) { max-width: 1340px; }
.vp-nav a:hover, .vp-account a:hover, .vp-nav [aria-current] { background: #e7f3f0; color: #09554c; }
.vp-header :is(a,button):focus-visible, .vp-login :focus-visible { outline: 3px solid #0b665b; outline-offset: 3px; }
body.vp-auth-page { margin: 0; color-scheme: light; background: #f3f7f6; color: #182a29; }
.vp-login { width: min(100% - 2rem, 29rem); margin: clamp(2rem, 6vh, 4rem) auto; }
.vp-login h1 { font-size: 2rem; line-height: 1.18; font-weight: 750; margin: 0 0 .55rem; }
.vp-login p { color: var(--vp-muted); line-height: 1.55; margin: 0 0 1rem; }
.vp-login form { display: grid; gap: .6rem; margin-block: 1.5rem; }
.vp-login label { font-weight: 700; }
.vp-login input:not([type=checkbox]) {
  width: 100%; min-height: 52px; box-sizing: border-box; background: #fff; color: var(--vp-ink);
  border: 1px solid #849c98; border-radius: 6px; padding: .65rem .8rem; font: inherit; font-size: 1.125rem;
}
.vp-login button {
  border: 0; border-radius: 6px; min-height: 48px; padding: .6rem 1rem;
  background: var(--vp-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.vp-login button:hover { background: #09554c; }
.vp-login button:disabled { opacity: .7; cursor: progress; }
.vp-login a { color: var(--vp-accent); text-underline-offset: .18em; }
.vp-login .vp-alert { padding: .8rem 1rem; border-left: 3px solid #24695f; background: #e6f1ef; color: #17483f; }
.vp-login .vp-alert-error { border-color: #a33834; background: #fff0ef; color: #79231f; }
.vp-login .vp-login-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.vp-login details { border-top: 1px solid var(--vp-line); margin-top: 1.25rem; padding-top: 1rem; }
.vp-login summary { color: var(--vp-accent); font-weight: 650; cursor: pointer; }
.vp-heading { margin: 0 0 1.25rem; }
.vp-heading h1 { font-size: 1.9rem; font-weight: 750; color: #182a29; margin: 0 0 .2rem; }
.vp-heading p { color: #4e605e; margin: 0; }
.vp-heading a { color: #0b665b; }
.portal-page.vp-page { max-width: 1220px; margin: 0 auto; padding: 0 clamp(1rem, 3%, 2rem) 2.5rem; }
.vp-page :is(#pagos,#cuotas,#ayuda) { scroll-margin-top: 1rem; }
body:has(.vp-profile) { height: auto; min-height: 100vh; background: #f3f7f6; color-scheme: light; }
.vp-profile { width: min(100% - 2rem, 50rem); margin: 1.75rem auto 0; padding-bottom: 3rem; color: #182a29; }
.vp-profile section { border-top: 1px solid #c9d9d5; padding: 1.4rem 0 1.75rem; scroll-margin-top: 1rem; }
.vp-profile h2 { font-size: 1.25rem; line-height: 1.35; font-weight: 750; margin: 0 0 1rem; }
.vp-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.vp-profile-identity { margin: 0 0 .75rem; padding: .9rem 1rem; border-radius: 6px; background: #e7f0ee; }
.vp-profile dt { color: #445b57; font-size: .875rem; font-weight: 650; }
.vp-profile dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.vp-profile label { display: block; margin: 0 0 .35rem; font-weight: 650; }
.vp-profile input:not([type=hidden]) {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: .55rem .7rem;
  border: 1px solid #849c98; border-radius: 6px; background: #fff; color: #182a29; font: inherit;
}
.vp-profile button {
  min-height: 46px; margin-top: 1rem; padding: .55rem .9rem; border: 0; border-radius: 6px;
  background: #0b665b; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.vp-profile button:hover { background: #084e45; }
.vp-profile :focus-visible { outline: 3px solid #0b665b; outline-offset: 3px; }
.vp-profile-help { margin: .65rem 0 1rem; color: #445b57; }
.vp-profile-help a { color: #09554c; text-underline-offset: .15em; }
.vp-profile-wide { grid-column: 1 / -1; }
.vp-profile-notice { padding: .7rem .9rem; border-inline-start: 3px solid #24695f; background: #e1f1eb; color: #17483f; border-radius: 4px; }
.vp-profile-error { border-color: #a33834; background: #fff0ef; color: #79231f; }
@media (min-width: 1051px) {
  .vp-moodle-form { flex: none; }
  .vp-header-inner:has(.vp-moodle-form) :is(.vp-brand, .vp-moodle, .vp-nav, .vp-account) { white-space: nowrap; }
}
@media (max-width: 1340px) {
  .vp-header-inner:has(.vp-moodle-form) { flex-wrap: wrap; }
  .vp-header-inner:has(.vp-moodle-form) .vp-nav { order: 3; flex: 1 0 100%; }
  .vp-header-inner:has(.vp-moodle-form) .vp-nav a { flex: 1 1 auto; min-width: 0; padding-inline: .25rem; text-align: center; }
}
@media (max-width: 1050px) {
  .vp-header-inner { flex-wrap: wrap; }
  .vp-header-inner:has(.vp-moodle-form) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .vp-header-inner:has(.vp-moodle-form) .vp-brand { grid-area: 1 / 1; justify-self: start; }
  .vp-header-inner:has(.vp-moodle-form) .vp-account { grid-area: 1 / 2; }
  .vp-moodle-form, .vp-header-inner:has(.vp-moodle-form) .vp-nav { grid-column: 1 / -1; }
  .vp-moodle-form { order: 2; flex: 1 0 100%; }
  .vp-moodle { width: 100%; }
  .vp-nav { order: 3; flex: 1 0 100%; justify-content: space-between; }
  .vp-nav a { flex: 1; text-align: center; padding-inline: .25rem; }
}
@media (max-width: 560px) {
  .vp-profile-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}
@media (max-width: 400px) {
  .vp-header-inner { gap: .35rem; }
  .vp-brand { font-size: .87rem; }
  .vp-brand img { max-width: 77px; }
  .vp-brand-ie { gap: .3rem; }
  .vp-brand-ie img:not(.vp-ie-logo) { width: 52px; }
  .vp-brand-ie .vp-ie-logo { width: 28px; height: 28px; }
  .vp-brand-ie span { padding-left: .3rem; }
  .vp-nav a { font-size: .88rem; }
  .vp-nav i { display: none; }
  .vp-account a { padding-inline: .3rem; }
  .vp-account .vp-icon { min-width: 34px; }
}
