body { background: #fcfcfc; color: #333; line-height: 1.5; }
.icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.small { width: 15px; height: 15px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; color: #888; }
.educational-notice { padding: 4px 16px; background: #fff4d6; text-align: center; font-size: 12px; }
.educational-notice a { margin-left: 20px; }
.app-header { display: flex; align-items: center; gap: 36px; min-height: 88px; padding: 10px 30px 10px 15px; background: white; }
.commission-brand { display: flex; flex-shrink: 0; width: 207px; height: 66px; overflow: hidden; }
.commission-brand img { display: block; flex-shrink: 0; width: 255px; max-width: none; height: 66px; object-fit: contain; }
.platform-title { font-size: 28px; line-height: 1.25; }
.account-area { display: flex; align-items: center; gap: 18px; margin-left: auto; white-space: nowrap; }
.account-button, .language-button { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: #0056b3; }
.user-icon { width: 38px; height: 38px; color: #333; }
.language-button { color: #333; }
.platform-bar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 32px 0 8px; background: #06468e; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; border: 1px solid #aaa; border-radius: 3px; background: #fafafa; color: #333; }
.hamburger { width: 48px; height: 48px; background: transparent; color: white; border-color: transparent; }
.hamburger[aria-expanded="true"] { border-color: #607bff; background: #0058b2; }
.accessibility-button { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 3px; padding: 6px 10px; background: #ffde17; color: black; }
.app-layout { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-height: calc(100vh - 174px); }
body.navigation-expanded .app-layout { grid-template-columns: 300px minmax(0, 1fr); }
.app-navigation { grid-row: 1 / span 2; align-self: stretch; position: sticky; top: 60px; max-height: calc(100dvh - 174px); overflow-y: auto; background: #f8f8f8; border-right: 1px solid #e4e4e4; box-shadow: 2px 0 3px #00000008; }
.nav-item { position: relative; display: flex; align-items: center; width: 100%; height: 46px; gap: 10px; padding: 10px 15px; border: 0; border-bottom: 1px solid #e8e8e8; color: #333; background: transparent; text-decoration: none; text-align: left; font-weight: normal; }
.nav-item:hover { background: #eaf2fd; }
.nav-label { display: none; }
.nav-chevron { position: absolute; right: 5px; width: 12px !important; }
.navigation-expanded .nav-label { display: inline; }
.navigation-expanded .nav-chevron { right: 28px; }
main { grid-column: 2; min-width: 0; padding: 12px 32px 32px; }
#screen { max-width: none; }
.app-footer { grid-column: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 15px 24px; background: #06468e; color: white; font-size: 14px; }
.nav-item[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.subnav { padding: 0 12px 4px 20px; border-bottom: 1px solid #e8e8e8; }
.subnav a, .subnav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 0; border: 0; background: transparent; color: #333; text-decoration: none; font-size: 16px; text-align: left; }
.subnav-marker { flex-shrink: 0; width: 19px; height: 19px; border: 1.5px solid #333; border-radius: 50%; }
.subnav a:hover, .subnav button:hover, .subnav a[aria-current="page"] { background: #eaf2fd; }
.subnav .external-icon { width: 15px; height: 15px; margin-left: auto; }
.subnav-child-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(.navigation-expanded) .subnav { display: none; }
.app-footer span + span { border-left: 1px solid white; padding-left: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.footer-links button { padding: 0; border: 0; color: white; background: transparent; text-decoration: underline; }
.footer-links .icon { width: 12px; height: 12px; }
.dropdown { position: relative; }
.dropdown-panel { position: absolute; top: calc(100% + 2px); right: 0; min-width: 190px; padding: 0; background: white; border: 1px solid #aaa; border-radius: 2px; box-shadow: 0 2px 5px #0003; z-index: 5; }
.dropdown-panel button { display: flex; align-items: center; gap: 16px; width: 100%; border: 0; border-radius: 0; background: white; color: #333; padding: 7px 12px; text-align: left; white-space: nowrap; }
.dropdown-panel button:hover:not(:disabled), .dropdown-panel button:focus-visible { background: #e8edff; }
.dropdown-panel button:disabled { color: #888; }
.account-menu { min-width: 340px; }
.simulator-notice { font-size: 14px; }
@media (max-width: 1050px) {
  .app-header { gap: 18px; }
  .platform-title { font-size: 22px; }
  .account-button > span { display: none; }
  body.navigation-expanded .app-layout { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .app-header { flex-wrap: wrap; gap: 12px; padding: 10px; }
  .commission-brand { width: 140px; height: 45px; }
  .commission-brand img { width: 175px; height: 45px; }
  .platform-title { width: 100%; order: 3; font-size: 20px; }
  .account-area { gap: 8px; }
  .app-layout, body.navigation-expanded .app-layout { grid-template-columns: 48px minmax(0, 1fr); }
  body.navigation-expanded .app-navigation { position: absolute; width: 260px; z-index: 8; min-height: 340px; box-shadow: 3px 3px 10px #0003; }
  .nav-item { padding-left: 10px; }
  .nav-chevron { right: 0; }
  main { padding: 12px; }
  .educational-notice a { display: inline-block; margin-left: 8px; }
  .app-footer span + span { border: 0; padding-left: 0; }
  .account-menu { min-width: 230px; }
}

/* Ventanas y avisos del marco BM; no navegan a servicios externos. */
.destination-tooltip { position:fixed; z-index:30; width:340px; max-width:calc(100vw - 16px); padding:12px 14px; color:#333; background:#fffbea; border:1px solid #c6b76b; border-radius:3px; box-shadow:0 2px 6px #0003; font-size:14px; line-height:1.5; }
.bm-interface-dialog { width:640px; max-width:calc(100% - 32px); max-height:90dvh; padding:16px; overflow:auto; border:1px solid var(--color-border); border-radius:3px; box-shadow:0 3px 8px #0004; color:var(--color-text); background:var(--color-surface); }
.bm-interface-dialog::backdrop { background:#ffffff80; }
.bm-interface-dialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.bm-interface-dialog h2 { margin:0; font-size:18px; }
.bm-interface-dialog h3 { font-size:16px; margin:20px 0; }
.bm-interface-dialog header .plain-icon { font-size:26px; flex-shrink:0; background:#f1f1f1; }
.bm-interface-dialog footer { display:flex; justify-content:flex-end; margin-top:24px; }
.bm-interface-dialog .link-button { display:inline; }
.interface-language-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 28px; }
.interface-language-option { display:flex; align-items:center; gap:8px; min-height:40px; min-width:0; }
.interface-language-option > span { min-width:32px; font-size:14px; }
.interface-language-option button { color:#3654b6; border:0; border-radius:2px; background:transparent; padding:6px 8px; text-align:left; overflow-wrap:anywhere; }
.interface-language-option button:hover { background:#eaf2fd; }
.interface-language-option button.selected { background:#365cff; color:#fff; }
.dark-theme .bm-interface-dialog::backdrop { background:#0006; }
.dark-theme .bm-interface-dialog header .plain-icon { background:#444; }
.dark-theme .destination-tooltip { background:#52451b; color:#fff; }
.dark-theme .interface-language-option button { color:#adbcff; }
.dark-theme .interface-language-option button.selected { color:#fff; }
@media(max-width:420px) { .interface-language-list { gap:4px 8px; } .interface-language-option { gap:0; } .interface-language-option > span { min-width:26px; } .interface-language-option button { padding:6px 3px; font-size:14px; } }
/* Al plegar la columna, los subapartados abiertos conservan sus marcadores. */
body:not(.navigation-expanded) .subnav { display:block; padding:0 0 4px; }
body:not(.navigation-expanded) .subnav a, body:not(.navigation-expanded) .subnav button { height:38px; padding:8px 16px; font-size:0; gap:0; }
body:not(.navigation-expanded) .subnav-child-label, body:not(.navigation-expanded) .subnav .external-icon { display:none; }
@media(max-width:700px) { body:not(.navigation-expanded) .subnav a, body:not(.navigation-expanded) .subnav button { padding-left:14px; padding-right:8px; } }
