@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/Bricolage-Regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/Bricolage-SemiBold.woff") format("woff"); font-style: normal; font-weight: 600 800; font-display: swap; }
:root {
  color-scheme: dark;
  --forest: #1e3126; --ivory: #fff9e1; --gold: #ccb363; --muted: #c6cec2; --danger: #ffc2ad;
  --gutter: clamp(24px, 6vw, 120px);
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; background: var(--forest); color: var(--ivory);
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-padding-top: 6rem; }
body { margin: 0; min-width: 0; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1 { margin: 0; }
svg { flex: none; }
::selection { background: var(--gold); color: var(--forest); }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: 1rem; background: var(--ivory); color: var(--forest); border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.entry-scene { position: fixed; z-index: -2; inset: 0 20% 0 0; overflow: hidden; pointer-events: none; mask-image: linear-gradient(90deg, #000 45%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%); }
.entry-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; animation: entry-scene 1.5s ease both; }
.entry-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,29,20,.45), rgba(12,29,20,.15) 45%, rgba(30,49,38,.85)), linear-gradient(90deg, rgba(12,29,20,.22), transparent 80%); }
.entry-header { width: 100%; max-width: 1840px; margin-inline: auto; padding: 1.35rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.entry-brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.entry-brand img { width: 194px; height: auto; }
.entry-main { flex: 1; width: 100%; max-width: 1540px; margin-inline: auto; padding: 4rem var(--gutter) 5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); align-items: center; gap: clamp(4rem, 10vw, 10rem); }
.entry-welcome { align-self: start; padding-top: clamp(2rem, 9vh, 7rem); animation: entry-arrive .9s ease both; }
.entry-eyebrow { color: var(--gold); font-size: .6875rem; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.entry-welcome .entry-eyebrow { color: var(--ivory); }
.entry-statement { margin-top: 1.8rem; font-size: clamp(3.5rem, 5.5vw, 5.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.055em; }
.login-panel { min-width: 0; width: 100%; animation: entry-arrive .9s .08s ease both; }
.login-panel h1 { margin-top: 1.15rem; font-size: clamp(2.75rem, 3.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.05em; font-weight: 600; }
.login-intro { margin-top: 1rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }
#clerk-sign-in { width: 100%; max-width: 100%; margin-top: 2.1rem; min-height: 258px; }
#clerk-sign-in:empty::before { content: "Preparando tu acceso…"; display: block; padding-top: 1rem; color: var(--muted); font-size: .9375rem; }
#clerk-sign-in > div, #clerk-sign-in .cl-rootBox, #clerk-sign-in .cl-cardBox, #clerk-sign-in .cl-card { width: 100%; max-width: 100%; min-width: 0; }
#clerk-sign-in .cl-cardBox, #clerk-sign-in .cl-card { padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
#clerk-sign-in .scarso-clerk-hidden, #clerk-sign-in .cl-footer, #clerk-sign-in .cl-lastAuthenticationStrategyBadge { display: none !important; }
#clerk-sign-in .cl-card:has(.cl-socialButtonsBlockButton) .cl-header { display: none; }
#clerk-sign-in .entry-clerk-heading { margin-bottom: 1.25rem; }
#clerk-sign-in .cl-headerTitle { color: var(--ivory); font-size: 1.25rem; }
#clerk-sign-in .cl-headerSubtitle { color: var(--muted); font-size: .9375rem; }
#clerk-sign-in .cl-main { gap: 1.35rem; }
#clerk-sign-in .cl-form { display: flex; flex-direction: column; gap: 1.15rem; }
#clerk-sign-in .cl-formFieldRow:not([aria-hidden="true"]) { display: flex; flex-direction: column; gap: .6rem; }
#clerk-sign-in .cl-formFieldRow[aria-hidden="true"] { display: none !important; }
#clerk-sign-in :is(.cl-formFieldLabel, .cl-identityPreviewText, .cl-formResendCodeLink, .cl-alternativeMethodsBlockButton, .cl-formFieldAction, .cl-backLink) { color: var(--ivory); font-size: .9375rem; }
#clerk-sign-in .cl-formFieldLabel { display: block; margin: 0; line-height: 1.5; font-weight: 400; background: transparent; }
#clerk-sign-in :is(.cl-formFieldInput, .cl-otpCodeFieldInput), .login-form input {
  width: 100%; min-width: 0; min-height: 54px; padding: .875rem 1rem; border: 1px solid #7a8c7e;
  border-radius: 14px; color: var(--ivory); background: #293e31; box-shadow: none; font: inherit; font-size: 1rem;
}
#clerk-sign-in :is(.cl-formFieldInput, .cl-otpCodeFieldInput):focus-visible, .login-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-color: var(--gold); }
#clerk-sign-in input::placeholder, .login-form input::placeholder { color: #b8c3b6; opacity: 1; }
#clerk-sign-in input:autofill, .login-form input:autofill { -webkit-text-fill-color: var(--ivory); box-shadow: inset 0 0 0 1000px #293e31; caret-color: var(--ivory); }
#clerk-sign-in .cl-otpCodeFieldInputs { display: flex; gap: .4rem; flex-wrap: wrap; }
#clerk-sign-in .cl-otpCodeFieldInput { width: clamp(32px, 8vw, 52px); padding-inline: .25rem; text-align: center; }
#clerk-sign-in .cl-formButtonPrimary, .login-form button, .scarso-access-notice + button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 54px;
  padding: .9rem 1.25rem; border: 1px solid transparent; border-radius: 999px; color: var(--forest) !important;
  background: var(--ivory) !important; background-image: none !important; box-shadow: none !important; font-size: .9375rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; transition: background .18s ease, box-shadow .18s ease;
}
#clerk-sign-in .cl-formButtonPrimary::after { display: none; }
#clerk-sign-in .cl-formButtonPrimary * { color: inherit; }
#clerk-sign-in .cl-formButtonPrimary:hover:not(:disabled), .login-form button:hover:not(:disabled) { background: #fffdf4 !important; box-shadow: 0 0 0 4px rgba(255,249,225,.08) !important; }
#clerk-sign-in button:disabled, .login-form button:disabled { cursor: default; opacity: .62; }
#clerk-sign-in .cl-dividerText, #clerk-sign-in .cl-formFieldHintText { color: var(--muted); font-size: .8125rem; }
#clerk-sign-in .cl-dividerLine { background: rgba(255,249,225,.2); }
#clerk-sign-in .cl-formFieldErrorText, #clerk-sign-in .cl-alertText { color: var(--danger); font-size: .875rem; line-height: 1.5; }
#clerk-sign-in .cl-alert { background: #3c362b; border: 1px solid #8c7160; border-radius: 12px; }
#clerk-sign-in .cl-socialButtonsBlockButton {
  min-height: 54px; padding: .875rem 1rem; border: 1px solid rgba(255,249,225,.5); border-radius: 999px;
  color: var(--ivory); background: transparent; background-image: none; box-shadow: none; transition: background .18s ease;
}
#clerk-sign-in .cl-socialButtonsBlockButton:hover { background: rgba(255,249,225,.07); }
#clerk-sign-in .cl-socialButtonsBlockButtonText { color: var(--ivory); font-size: .9375rem; font-weight: 400; }
#clerk-sign-in .cl-socialButtonsProviderIcon { width: 18px; height: 18px; }
.form-message { margin-top: 1rem; color: var(--danger); font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.form-message:empty { display: none; }
.legacy-access { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,249,225,.2); }
.legacy-access summary { width: fit-content; min-height: 44px; cursor: pointer; color: var(--muted); font-size: .9375rem; }
.login-form { display: grid; gap: .75rem; margin-top: 1.2rem; }
.login-form label { margin-top: .5rem; font-size: .9375rem; }
.login-form button { margin-top: .6rem; }
.scarso-access-notice { color: var(--ivory); font-size: 1rem; line-height: 1.7; margin-block: 1rem 1.5rem; }
.entry-footer { width: 100%; max-width: 1840px; padding: 1.5rem var(--gutter) max(2rem, env(safe-area-inset-bottom)); margin-inline: auto; display: flex; justify-content: space-between; gap: 1.5rem; font-size: .75rem; line-height: 1.6; color: var(--ivory); }
.entry-footer span, .entry-copyright { color: var(--muted); }
@keyframes entry-scene { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes entry-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .entry-main { gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
  .entry-statement { font-size: clamp(3rem, 5.5vw, 4rem); }
}
@media (max-width: 900px) {
  .entry-header { padding: 18px 24px; gap: .75rem; }
  .entry-brand img { width: 151px; }
  .entry-main { display: flex; flex-direction: column; justify-content: center; padding: 3.5rem 28px 3rem; gap: 0; }
  .entry-welcome { display: none; }
  .entry-scene { inset: 0; mask-image: none; -webkit-mask-image: none; }
  .entry-scene img { object-position: 64% center; }
  .entry-scene::after { background: linear-gradient(180deg, rgba(30,49,38,.66), rgba(30,49,38,.92) 34%, rgba(30,49,38,.95) 73%, var(--forest)); }
  .login-panel { max-width: 420px; }
  .login-panel h1 { font-size: min(3rem, 12.2vw); }
  .login-intro { font-size: .9375rem; }
  .entry-footer { padding: 1rem 28px max(1.75rem, env(safe-area-inset-bottom)); flex-direction: column; gap: .6rem; font-size: .6875rem; }
}
@media (max-width: 359px) {
  .entry-header { padding-inline: 18px; }
  .entry-brand img { width: 130px; }
  .entry-main { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
