@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap');

:root {
  --brand: #c51b27;
  --brand-hover: #a61420;
  --ink: #25272c;
  --muted: #77787d;
  --line: #e8e7e7;
  --focus: rgba(197,27,39,.12);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
.access { min-height: 100svh; display: grid; grid-template-columns: 51% 49%; position: relative; isolation: isolate; background: #f6f5f4; }
.brand-panel { background: transparent; padding: 42px 56px 34px; display: flex; flex-direction: column; position: relative; overflow: hidden; border-right: 1px solid #eeebea; }
.brand-header,.brand-footer,.brand-content { position: relative; z-index: 1; }
.brand-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-header-tools { display: flex; align-items: center; gap: 14px; }
.brand-name { display: flex; gap: 13px; align-items: center; font-weight: 700; font-size: 22px; letter-spacing: -.8px; }
.brand-divider { width: 1px; height: 18px; background: #d5d0ce; }
.brand-category { font-size: 10px; font-weight: 500; letter-spacing: 2.2px; }
.edition { font-size: 9px; letter-spacing: 1.3px; color: #888386; white-space: nowrap; }
.brand-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 42px 0 76px; }
.logo-stage { width: 100%; margin: 0; }
.brand-logo { display: block; width: min(42%, 225px); height: auto; margin: 0; mix-blend-mode: multiply; }
.eyebrow { font-size: 10px; letter-spacing: 1.65px; font-weight: 600; color: #6a6568; display: flex; align-items: center; gap: 10px; margin-bottom: 19px; }
.accent-line { width: 24px; height: 2px; background: var(--brand); }
h1 { font-size: clamp(29px, 2.55vw, 42px); font-weight: 550; line-height: 1.27; letter-spacing: -1.6px; margin: 0 0 20px; }
h1 span { color: #82797a; font-weight: 450; }
h1 .hero-primary { color: var(--ink); font-weight: 550; }
.brand-story p { color: #777174; font-size: 14px; line-height: 1.85; margin: 0; }
.brand-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.workflow { font-size: 11px; color: #6f696c; display: flex; align-items: center; gap: 12px; }
.workflow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.workflow-separator { color: #c5bfc0; }
.brand-signature { font-size: 9px; letter-spacing: .1px; color: #9b9294; }
.contour { position: absolute; width: 880px; height: 880px; border: 1px solid rgba(181,147,151,.12); border-radius: 50%; pointer-events: none; bottom: -725px; left: -185px; }
.contour-two { width: 1000px; height: 1000px; bottom: -785px; left: -245px; }
.contour-three { width: 1120px; height: 1120px; bottom: -845px; left: -305px; }
.login-panel { padding: 41px 48px 30px; display: flex; flex-direction: column; min-width: 0; background: rgba(255,255,255,.96); position: relative; }
.login-topbar { display: flex; justify-content: space-between; gap: 20px; color: #8a8a90; font-size: 11px; }
.domain,.language { display: inline-flex; align-items: center; gap: 7px; }
.domain svg { width: 13px; height: 13px; color: #969397; }
.language .language-code { border: 1px solid #e7e6e8; padding: 3px 5px; border-radius: 4px; font-size: 9px; color: #77747a; }
.login-content { flex: 1; width: min(100%, 378px); margin: 0 auto; padding: 72px 0 65px; display: flex; flex-direction: column; justify-content: center; }
.portal-label { display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 10px; letter-spacing: 1.7px; font-weight: 650; margin-bottom: 20px; }
.portal-label .portal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
h2 { font-size: 36px; font-weight: 550; line-height: 1.18; letter-spacing: -1.5px; margin: 0 0 16px; }
.intro p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; }
form { margin-top: 32px; }
.field { margin-bottom: 21px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: #44434a; margin-bottom: 8px; }
.input-wrap { display: flex; align-items: center; position: relative; }
.input-wrap > svg { position: absolute; left: 15px; width: 18px; height: 18px; color: #a2a0a6; pointer-events: none; }
.input-wrap input { width: 100%; height: 50px; border-radius: 8px; border: 1px solid #dfdde1; background: #fff; color: var(--ink); outline: 0; padding: 0 44px 0 44px; font-size: 13px; transition: border-color .18s,box-shadow .18s; }
.input-wrap input::placeholder { color: #aaa7af; opacity: 1; }
.input-wrap input:hover { border-color: #bcb8c0; }
.input-wrap input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.input-wrap input[aria-invalid=true] { border-color: var(--brand); }
.icon-button { position: absolute; right: 8px; width: 34px; height: 36px; display: grid; place-items: center; color: #96939b; border: 0; border-radius: 5px; background: transparent; }
.icon-button:hover { color: var(--ink); background: #f6f4f5; }
.icon-button svg { width: 18px; height: 18px; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.optional { border: 1px solid #e8e6e9; background: #faf9fa; padding: 2px 5px; border-radius: 4px; color: #969099; font-size: 9px; letter-spacing: .5px; margin: -5px 0 3px; }
.verification input { letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.field-hint { display: block; font-size: 10px; line-height: 1.5; color: #9a969f; margin-top: 8px; }
.field-error { display: block; color: var(--brand); font-size: 11px; margin-top: 7px; }
.submit-button { margin-top: 4px; width: 100%; height: 51px; border: 1px solid var(--brand); border-radius: 8px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 10px rgba(167,18,30,.10); transition: background-color .2s,transform .2s; }
.submit-button:hover { background: var(--brand-hover); border-color: var(--brand-hover); transform: translateY(-1px); }
.button-arrow { width: 17px; height: 17px; transition: transform .2s; }
.submit-button:hover .button-arrow { transform: translateX(3px); }
.submit-button:disabled { cursor: wait; transform: none; opacity: .85; }
.spinner { height: 16px; width: 16px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite; }
.preview-message { padding: 12px 14px; margin-top: 14px; border: 1px solid #eadbdd; border-radius: 8px; background: #fcf7f7; color: #7b4f56; font-size: 12px; line-height: 1.6; }
.auth-error { padding: 13px 15px; margin-top: 20px; border: 1px solid #e7bec5; border-radius: 8px; background: #fff4f5; color: #922638; font-size: 12px; line-height: 1.6; }
.cookie-note { margin: 0 0 12px; color: #a09aa5; font-size: 9px; line-height: 1.5; }
.support { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 30px; display: flex; align-items: flex-start; gap: 11px; font-size: 11px; color: #6c6972; line-height: 1.6; }
.support > svg { width: 17px; height: 17px; color: #a09ba4; margin-top: 1px; }
.support-detail { color: #aaa4af; font-size: 10px; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #a09aa5; font-size: 10px; }
.model-credit { color: inherit; text-underline-offset: 3px; text-decoration-color: #d8d1d7; white-space: nowrap; }
.professional { display: flex; align-items: center; gap: 6px; }
.professional svg { width: 13px; height: 13px; color: #9d96a3; }
button:focus-visible { outline: 3px solid rgba(197,27,39,.32); outline-offset: 4px; }

/* Exploración anatómica: modelo poligonal, acercamientos y anillos de localización.
   La capa decorativa queda detrás del contenido y nunca intercepta el ratón. */
.clinical-background { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.clinical-background canvas { display: block; position: absolute; inset: 0 auto 0 0; width: 51%; height: 100%; opacity: .8; }
.ambient-light { position: absolute; width: 740px; height: 740px; border-radius: 50%; filter: blur(38px); }
.ambient-light-one { left: -370px; top: -330px; background: radial-gradient(circle,rgba(207,67,82,.14),rgba(217,135,145,.045) 48%,transparent 70%); animation: ambient-drift 22s ease-in-out infinite alternate; }
.ambient-light-two { left: 22%; bottom: -390px; background: radial-gradient(circle,rgba(158,179,186,.17),rgba(193,119,130,.07) 46%,transparent 70%); animation: ambient-drift 28s ease-in-out -10s infinite alternate-reverse; }
.anatomy-caption { position: absolute; left: 25%; top: 63%; width: 19%; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; color: #7a747a; font-size: 10px; line-height: 1.5; }
.anatomy-zone { font-size: 9px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; color: #8a6a72; }
.anatomy-zone::before { content: ''; display: inline-block; width: 4px; height: 4px; margin-right: 7px; border-radius: 50%; background: var(--brand); vertical-align: middle; }
.anatomy-phase { flex-basis: 100%; order: 3; color: #8b8188; font-size: 9px; }
.anatomy-zoom { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 9px; color: #b17a84; }
.pathology-callout { position: absolute; display: flex; flex-direction: column; gap: 5px; }
.callout-status { color: #977680; font-size: 8px; letter-spacing: 1.15px; }
.callout-name { font-family: 'SFMono-Regular',Consolas,'Liberation Mono',monospace; font-size: 11px; line-height: 1.4; color: #8f3546; white-space: nowrap; letter-spacing: .15px; }
.callout-note { font-size: 7px; letter-spacing: 1.2px; color: #a7989e; }
.background-toggle { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: rgba(255,255,255,.62); border: 1px solid #dfdbdc; border-radius: 50%; color: #8b8186; }
.background-toggle:hover { border-color: #c51b2750; color: var(--brand); }
.background-toggle svg { width: 14px; height: 14px; }
.background-toggle .play-icon { display: none; }
.background-toggle[aria-pressed=true] .play-icon { display: block; }
.background-toggle[aria-pressed=true] .pause-icon { display: none; }
.access[data-motion=paused] .clinical-background *,
.access[data-motion=static] .clinical-background * { animation-play-state: paused; }
@keyframes ambient-drift { to { transform: translate(65px,85px) scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 761px) and (max-height: 850px) {
  .brand-panel { padding-block: 30px 24px; }
  .brand-content { padding-block: 28px; }
  .brand-logo { width: min(42%, 205px); }
  .logo-stage { margin-bottom: 0; }
  .brand-story h1 { font-size: 31px; }
  .brand-story p { font-size: 12px; }
  .login-panel { padding-block: 28px 22px; }
  .login-content { padding-block: 25px; }
  .portal-label { margin-bottom: 14px; }
  h2 { font-size: 31px; margin-bottom: 12px; }
  .intro p { font-size: 12px; }
  form { margin-top: 23px; }
  .field { margin-bottom: 16px; }
  .input-wrap input { height: 46px; }
  .support { margin-top: 22px; padding-top: 17px; }
}
@media (min-width: 1600px) { .brand-panel { padding-inline: 80px; } .brand-logo { width: 240px; } .login-content { width: 400px; } }
@media (max-width: 1150px) {
  .access { grid-template-columns: 48% 52%; }
  .clinical-background canvas { width: 48%; }
  .anatomy-caption { left: 24%; width: 20%; }
  .brand-panel { padding: 32px 30px 28px; }
  .edition { display: none; }
  .brand-content { padding: 40px 0 60px; }
  .logo-stage { margin-bottom: 0; }
  h1 { font-size: 30px; letter-spacing: -1px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .brand-story p { font-size: 12px; }
  .brand-signature { display: none; }
  .login-panel { padding: 30px 32px 26px; }
  .login-content { padding: 46px 0; }
  h2 { font-size: 32px; }
}
@media (max-width: 760px) {
  .access { grid-template-columns: 1fr; }
  .clinical-background canvas { width: 100%; height: 240px; }
  .anatomy-caption { left: 55%; top: 216px; width: 34%; gap: 0 6px; line-height: 1.2; }
  .anatomy-zone { font-size: 8px; }
  .anatomy-phase,.anatomy-zoom { font-size: 8px; }
  .pathology-callout { gap: 3px; }
  .callout-status { font-size: 7px; letter-spacing: .6px; }
  .callout-name { font-size: 9px; }
  .callout-note { font-size: 6px; letter-spacing: .8px; }
  .ambient-light { width: 430px; height: 430px; }
  .ambient-light-one { left: -130px; top: -220px; }
  .ambient-light-two { display: none; }
  .brand-panel { padding: 24px; min-height: 240px; border-right: 0; border-bottom: 1px solid #eeebea; }
  .brand-header,.brand-story,.brand-footer,.contour { display: none; }
  .brand-header { display: flex; position: absolute; top: 16px; right: 16px; z-index: 3; }
  .brand-header .brand-name,.brand-header .edition { display: none; }
  .brand-content { padding: 0; justify-content: center; }
  .logo-stage { margin: 0; }
  .brand-logo { width: min(42%,155px); }
  .login-panel { padding: 24px; }
  .login-topbar { font-size: 10px; }
  .login-content { padding: 36px 0 42px; }
  .portal-label { font-size: 9px; margin-bottom: 16px; }
  h2 { font-size: 32px; }
  h2 br { display: none; }
  .support { margin-top: 26px; }
  .login-footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; animation: none !important; } }
