:root {
  font-family: system-ui, "Segoe UI", sans-serif;
  color: #101c30;
  background: #f8f7f3;
  color-scheme: light;
  --deep: #000e26;
  --navy: #101d31;
  --muted: #495970;
  --orange: #ff9f42;
  --accent: #984500;
  --line: #d6dbe1;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #087cc1; outline-offset: 4px; }
.account-header :focus-visible, .service-card :focus-visible { outline-color: #82d8ff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.account-shell { width: min(calc(100% - 40px), 1050px); margin-inline: auto; }
.account-header { background: var(--deep); color: #fff; }
.header-row { display: flex; justify-content: space-between; align-items: center; min-height: 66px; gap: 12px; }
.account-brand img { display: block; width: 104px; height: 56px; object-fit: contain; mix-blend-mode: lighten; }
.signout { color: #e2ebf8; font-size: .88rem; padding: 11px 0 11px 10px; text-underline-offset: .19em; }
.account-main { padding-block: clamp(23px, 4vw, 45px) 24px; }
.account-intro { margin-bottom: clamp(16px, 3vw, 26px); }
.account-label { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.account-intro h1, .login-intro h1 { margin-block: 5px 7px; font-size: clamp(1.75rem, 4.4vw, 3.5rem); letter-spacing: -.045em; line-height: 1.05; overflow-wrap: anywhere; }
.account-intro > p:last-child, .login-intro > p:last-child, .account-panel > p:not(.account-label), .account-form > p:not(.account-feedback) { color: var(--muted); line-height: 1.55; }
.service-card { color: #fff; border-radius: 20px; background: radial-gradient(ellipse at 96% 0%, #46303d, transparent 65%), var(--navy); padding: clamp(17px, 3vw, 29px); }
.service-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.service-heading h2, .account-panel h2 { font-size: clamp(1.18rem, 2.4vw, 1.65rem); letter-spacing: -.025em; }
.service-badge { display: inline-block; font-weight: 750; padding: 5px 11px; border-radius: 999px; font-size: .82rem; }
.service-badge.activo { background: #d5f6e7; color: #065437; }
.service-badge.vencido { background: #ffe0df; color: #8d1e1c; }
.service-badge.pendiente { background: #ffedc7; color: #72400a; }
.service-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-block: 14px; }
.service-facts > div { min-width: 0; padding: clamp(10px, 2vw, 15px); border: 1px solid #ffffff36; background: #ffffff0d; border-radius: 11px; }
.service-facts dt { color: #d4dfef; font-size: .83rem; font-weight: 650; }
.service-facts dd { margin-top: 3px; font-size: clamp(1rem, 2.8vw, 1.5rem); line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.service-facts p { color: #d4dfef; font-size: .83rem; margin-top: 4px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; padding: 8px 13px; text-align: center; text-decoration: none; }
.account-button.primary { background: var(--orange); color: #241203; }
.account-button.primary:hover { background: #ffb56e; }
.account-button.dark-outline { border-color: #8390a5; background: transparent; color: #fff; }
.account-button.dark-outline:hover { background: #ffffff19; }
.account-button.outline { border-color: #aab6c4; background: #fff; color: #142338; font-size: .87rem; }
.account-button.outline:hover { background: #f1f4f8; }
.account-button:disabled { opacity: .7; cursor: wait; }
.service-note { color: #d4dfef; font-size: .83rem; margin-top: 9px; }
.account-sections { display: flex; gap: 5px 16px; flex-wrap: wrap; margin-block: 12px; padding: 0 2px; }
.account-sections a { display: inline-flex; align-items: center; min-height: 42px; color: #273a53; font-weight: 650; font-size: .9rem; text-underline-offset: .2em; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 13px; }
.account-panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 18px; padding: clamp(15px, 2.5vw, 24px); overflow-wrap: anywhere; }
.account-panel h2 { margin-top: 4px; }
.account-panel h2 + p { margin-top: 7px; }
.account-panel .app-caption { margin-top: 11px; }
.app-fields { display: grid; gap: 9px; margin-block: 12px; }
.account label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 4px; }
.account input { width: 100%; min-width: 0; min-height: 44px; font-size: 1rem; border: 1px solid #aab6c4; border-radius: 8px; padding: 8px 10px; background: white; color: inherit; }
.account input[readonly] { background: #f6f8fa; }
.field-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 5px; }
.field-row input { flex: 1 1 120px; }
.account-text-link { color: var(--accent); font-weight: 750; text-underline-offset: .2em; }
.account-empty { margin-block: 10px; padding: 11px; border-radius: 8px; color: var(--muted); background: #eef2f7; line-height: 1.45; }
.payment-history { margin-top: 9px; }
.payment-entry { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 10px; font-size: .94rem; }
.payment-entry small { color: var(--muted); display: block; margin-top: 2px; }
.payment-entry b { white-space: nowrap; }
.profile-panel { margin-top: 13px; }
.profile-panel details { border-top: 1px solid var(--line); margin-top: 10px; }
.profile-panel summary { min-height: 44px; padding-block: 12px 5px; font-weight: 730; }
.account-form { display: grid; gap: 10px; max-width: 430px; padding-block: 8px; }
.account-form > button { justify-self: start; }
.account-feedback { margin-top: 6px; padding: 9px 11px; border-radius: 8px; background: #e5f6ed; color: #07533c !important; font-size: .88rem; }
.account-feedback.error { background: #fee7e6; color: #92251e !important; }
.associated-list { padding-left: 20px; }
.associated-list span { color: var(--muted); }
.account-footer { padding: 20px 2px 0; color: var(--muted); font-size: .92rem; }
.login-page { min-height: 100dvh; background: radial-gradient(ellipse at 18% 10%, #fbe7d7, transparent 52%), #f8f7f3; }
.login-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); align-items: center; gap: clamp(20px, 6vw, 70px); padding-block: clamp(30px, 9vw, 115px); }
.login-intro h1 { max-width: 15ch; }
.login-intro > p:last-child { max-width: 40ch; }
.login-panel { box-shadow: 0 18px 40px #11213716; }
.login-panel .account-form { margin-top: 9px; max-width: none; }
.login-panel .account-form > button { justify-self: stretch; }
.login-help { margin-top: 7px; font-size: .91rem; }
@media (max-width: 670px) {
  .account-shell { width: calc(100% - 24px); }
  .header-row { min-height: 58px; }
  .account-brand img { width: 93px; height: 50px; }
  .account-grid, .login-main { grid-template-columns: minmax(0, 1fr); }
  .login-main { gap: 15px; }
  .login-intro h1 { max-width: none; }
  .account-intro > p:last-child { font-size: .92rem; }
  .account-sections { gap: 5px 14px; }
}
@media (max-width: 365px) {
  .account-actions > * { width: 100%; }
  .account-sections { gap: 4px 10px; }
  .account-sections a { font-size: .83rem; }
}
