:root {
  color-scheme: dark;
  --page: #070a12;
  --page-deep: #04060b;
  --surface: rgba(16, 24, 42, 0.82);
  --surface-solid: #10182a;
  --surface-raised: #121d31;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --ink: #f6f8fc;
  --ink-soft: #d7deea;
  --muted: #9ba8bc;
  --muted-strong: #b8c3d3;
  --line: rgba(178, 194, 218, 0.14);
  --line-strong: rgba(178, 194, 218, 0.24);
  --primary: #2de2c4;
  --primary-deep: #18bda8;
  --blue: #4bb7ff;
  --violet: #8b7cff;
  --gold: #f5b942;
  --success: #3ddc97;
  --danger: #ff6b86;
  --warning: #f5b942;
  --brand-gradient: linear-gradient(135deg, #2de2c4, #4bb7ff 48%, #8b7cff);
  --shadow-xl: 0 34px 90px rgba(0, 0, 0, 0.44);
  --shadow-lg: 0 24px 58px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.26);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page-deep);
  font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

::selection {
  color: #04100e;
  background: rgba(45, 226, 196, 0.82);
}

#miObligatorio,
.view {
  min-height: 100vh;
}

.ambient {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -20%, rgba(75, 183, 255, 0.1), transparent 38%),
    linear-gradient(160deg, #0a0f1a 0%, var(--page) 48%, #070a13 100%);
}

.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.ambient__orb {
  position: absolute;
  width: 34rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
}

.ambient__orb--one {
  top: -12rem;
  left: -10rem;
  background: var(--primary);
}

.ambient__orb--two {
  right: -13rem;
  bottom: -15rem;
  background: var(--violet);
}

.noscript-message {
  width: min(92%, 560px);
  margin: 40px auto;
  padding: 18px 20px;
  border: 1px solid rgba(255, 107, 134, 0.35);
  border-radius: var(--radius-md);
  color: #ffdbe2;
  background: rgba(255, 107, 134, 0.1);
}

.view-enter {
  animation: view-enter 0.42s var(--ease) both;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Marca */

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  color: #05120f;
  background: var(--brand-gradient);
  box-shadow: 0 10px 30px rgba(45, 226, 196, 0.2);
  font-family: "Segoe UI Variable Display", "Aptos Display", sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 50%;
  height: 210%;
  transform: rotate(24deg);
  background: rgba(255, 255, 255, 0.42);
}

.brand__copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand__copy strong {
  font-family: "Segoe UI Variable Display", "Aptos Display", sans-serif;
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand__copy small {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.brand--large .brand__mark {
  width: 48px;
  border-radius: 15px;
  font-size: 1.3rem;
}

.brand--large .brand__copy strong {
  font-size: 1.2rem;
}

.brand--compact {
  display: none;
}

/* Autenticación */

.view--auth {
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 54px);
}

.auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(390px, 0.78fr);
  width: min(100%, 1180px);
  min-height: min(760px, calc(100vh - 80px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(7, 10, 18, 0.72);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(28px);
}

.auth-shell::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: inherit;
  pointer-events: none;
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(34px, 5vw, 68px);
  background:
    radial-gradient(circle at 10% 16%, rgba(45, 226, 196, 0.15), transparent 28%),
    radial-gradient(circle at 92% 72%, rgba(139, 124, 255, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(16, 29, 45, 0.96), rgba(9, 13, 25, 0.94));
}

.auth-story::before,
.auth-story::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-story::before {
  right: -155px;
  bottom: -170px;
  width: 430px;
  aspect-ratio: 1;
  border: 1px solid rgba(45, 226, 196, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px rgba(75, 183, 255, 0.025),
    0 0 0 94px rgba(139, 124, 255, 0.025);
}

.auth-story::after {
  top: 30%;
  right: 6%;
  width: 120px;
  height: 1px;
  transform: rotate(-34deg);
  background: linear-gradient(90deg, transparent, rgba(45, 226, 196, 0.7), transparent);
}

.auth-story > * {
  position: relative;
  z-index: 1;
}

.auth-story__content {
  width: min(100%, 570px);
  margin: clamp(58px, 9vh, 100px) 0 40px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  box-shadow: 8px 0 20px currentColor;
}

.eyebrow--small {
  margin-bottom: 12px;
  font-size: 0.7rem;
}

.auth-story h2,
.page-hero h1,
.form-panel h1,
.offer-detail h1 {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
  font-weight: 760;
  letter-spacing: -0.052em;
}

.auth-story h2 {
  margin: 0;
  max-width: 9.5em;
  font-size: clamp(3rem, 5.2vw, 5.15rem);
  line-height: 0.98;
}

.auth-story__lead {
  max-width: 39rem;
  margin: 26px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.auth-story__foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.025em;
}

.signal-card {
  width: min(100%, 420px);
  margin-top: 38px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(6, 10, 18, 0.54);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.signal-card__top,
.signal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.signal-card__label,
.signal-card__footer span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.live-pill,
.updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  border: 1px solid rgba(61, 220, 151, 0.25);
  border-radius: 999px;
  padding: 5px 9px;
  color: #9ef0c8;
  background: rgba(61, 220, 151, 0.08);
  font-size: 0.67rem;
  font-weight: 800;
}

.live-pill i,
.updated-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.1);
}

.signal-card__value {
  margin-top: 11px;
  font-family: "Segoe UI Variable Display", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.signal-card__chart {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 74px;
  margin: 10px 0 16px;
  padding-top: 9px;
  border-bottom: 1px solid var(--line);
}

.signal-card__chart span {
  flex: 1;
  height: var(--bar);
  min-height: 10px;
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(to top, rgba(75, 183, 255, 0.18), var(--primary));
  opacity: 0.7;
}

.signal-card__chart span:nth-child(even) {
  background: linear-gradient(to top, rgba(139, 124, 255, 0.16), var(--violet));
}

.signal-card__footer strong {
  color: var(--success);
  font-size: 0.72rem;
}

.benefit-list {
  display: grid;
  gap: 12px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 470px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.benefit-list i {
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(45, 226, 196, 0.18);
  border-radius: 12px;
  color: var(--primary);
  background: rgba(45, 226, 196, 0.07);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.benefit-list span {
  display: grid;
  color: var(--muted);
  font-size: 0.82rem;
}

.benefit-list strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.88rem;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 5vw, 60px);
  background: linear-gradient(160deg, rgba(13, 19, 33, 0.98), rgba(8, 12, 21, 0.99));
}

.auth-card__head {
  margin-bottom: 30px;
}

.auth-card__head h1 {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Aptos Display", sans-serif;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.auth-card__head > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.switch-control > span:last-child strong {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 740;
  letter-spacing: 0.005em;
}

.field-help,
.switch-control > span:last-child small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #66738a;
  opacity: 1;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--line-strong);
  background-color: rgba(255, 255, 255, 0.06);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: rgba(45, 226, 196, 0.72);
  background-color: rgba(45, 226, 196, 0.045);
  box-shadow: 0 0 0 4px rgba(45, 226, 196, 0.11);
}

select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

option {
  color: var(--ink);
  background: var(--surface-solid);
}

.control {
  position: relative;
}

.control input {
  padding-left: 45px;
}

.control::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  width: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  pointer-events: none;
}

.control--user::before {
  content: "◎";
}

.control--password::before {
  content: "◆";
  font-size: 0.66rem;
}

button,
.btn {
  min-height: 45px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 10px 16px;
  font-weight: 780;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

button:focus-visible,
.btn:focus-visible,
.back-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

button:disabled {
  cursor: default;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn--wide {
  width: 100%;
}

.btn--primary {
  color: #04110f;
  background: var(--brand-gradient);
  box-shadow: 0 12px 28px rgba(45, 226, 196, 0.15);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(45, 226, 196, 0.23);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
}

.btn--ghost:hover {
  border-color: rgba(45, 226, 196, 0.32);
  color: var(--primary);
  background: rgba(45, 226, 196, 0.07);
}

.btn--compact {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 0.84rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  padding-top: 3px;
}

.form-actions > * {
  flex: 1 1 160px;
}

.form-actions--end {
  justify-content: flex-end;
  padding-top: 10px;
}

.form-actions--end > * {
  flex: 0 1 auto;
  min-width: 160px;
}

.alert-region:empty {
  display: none;
}

.alert-region:not(:empty) {
  margin-top: 16px;
  animation: alert-in 0.24s ease both;
}

.form-grid > .alert-region:not(:empty) {
  margin-top: 0;
}

.alert-region p {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255, 107, 134, 0.28);
  border-left: 3px solid var(--danger);
  border-radius: 12px;
  padding: 12px 14px 12px 40px;
  color: #ffc6d1;
  background: rgba(255, 107, 134, 0.075);
  font-size: 0.84rem;
  font-weight: 680;
}

.alert-region p::before {
  content: "!";
  position: absolute;
  top: 11px;
  left: 13px;
  display: grid;
  width: 18px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
}

.alert-region .alert-success {
  border-color: rgba(61, 220, 151, 0.28);
  border-left-color: var(--success);
  color: #b7f5d6;
  background: rgba(61, 220, 151, 0.075);
}

@keyframes alert-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.demo-access {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  border: 1px solid rgba(75, 183, 255, 0.17);
  border-radius: 14px;
  padding: 13px;
  background: rgba(75, 183, 255, 0.055);
}

.demo-access__icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(75, 183, 255, 0.28);
  border-radius: 9px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.demo-access strong {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.demo-access p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.demo-access code {
  border-radius: 5px;
  padding: 1px 4px;
  color: #b9f7ec;
  background: rgba(45, 226, 196, 0.08);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.68rem;
}

/* Aplicación y navegación */

.view--app {
  padding: 16px 18px 48px;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 14px;
  width: min(100%, 1280px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(8, 12, 21, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.23);
  backdrop-filter: blur(22px) saturate(135%);
}

.app-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 70px;
  padding: 10px 12px 10px 16px;
}

.nav-shell {
  min-width: 0;
  flex: 1;
}

.nav-shell ul {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-shell li {
  flex: 0 0 auto;
}

.nav-shell__session {
  margin-left: auto;
  padding-left: 7px;
  border-left: 1px solid var(--line);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 8px 11px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 740;
  white-space: nowrap;
}

.nav-link > span {
  color: var(--muted);
  font-size: 0.89rem;
}

.nav-link:hover:not(:disabled) {
  color: var(--ink);
  background: var(--surface-soft);
}

.nav-link.is-active {
  border-color: rgba(45, 226, 196, 0.16);
  color: #c9fff5;
  background: rgba(45, 226, 196, 0.095);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-link.is-active > span {
  color: var(--primary);
}

.nav-link--exit {
  color: #ff9bad;
}

.nav-link--exit > span {
  color: var(--danger);
}

.nav-link--exit:hover:not(:disabled) {
  color: #ffd4dc;
  background: rgba(255, 107, 134, 0.08);
}

.page-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding-top: clamp(42px, 6vw, 76px);
}

.page-shell--narrow {
  width: min(100%, 980px);
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 220px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 82% 30%, rgba(45, 226, 196, 0.15), transparent 22%),
    radial-gradient(circle at 96% 88%, rgba(139, 124, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(15, 27, 44, 0.94), rgba(10, 15, 27, 0.86));
  box-shadow: var(--shadow-lg);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 340px;
  aspect-ratio: 1;
  border: 1px solid rgba(75, 183, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(75, 183, 255, 0.018),
    0 0 0 86px rgba(139, 124, 255, 0.018);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero > div:first-child {
  max-width: 780px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4vw, 4.15rem);
  line-height: 1.02;
}

.page-hero > div:first-child > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
}

.page-hero--compact {
  min-height: 190px;
}

.page-hero--featured {
  background:
    radial-gradient(circle at 82% 30%, rgba(245, 185, 66, 0.13), transparent 22%),
    radial-gradient(circle at 96% 88%, rgba(139, 124, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(24, 25, 39, 0.94), rgba(10, 15, 27, 0.86));
}

.hero-mark {
  display: grid;
  width: clamp(78px, 10vw, 116px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(45, 226, 196, 0.24);
  border-radius: 31%;
  transform: rotate(8deg);
  color: var(--primary);
  background: rgba(45, 226, 196, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 50px rgba(0, 0, 0, 0.25),
    0 0 42px rgba(45, 226, 196, 0.08);
}

.hero-mark span {
  transform: rotate(-8deg);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 200;
}

.hero-mark--violet {
  border-color: rgba(139, 124, 255, 0.26);
  color: var(--violet);
  background: rgba(139, 124, 255, 0.08);
}

.hero-mark--gold {
  border-color: rgba(245, 185, 66, 0.28);
  color: var(--gold);
  background: rgba(245, 185, 66, 0.08);
}

.panel,
.form-panel,
.offer-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(16, 24, 42, 0.88), rgba(9, 14, 25, 0.88));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.panel {
  overflow: hidden;
}

.panel__head,
.section-heading {
  padding: 24px 26px 21px;
}

.panel__head--toolbar,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel h2,
.section-heading h2,
.form-panel h1,
.offer-detail h1 {
  margin: 0;
}

.panel h2,
.section-heading h2 {
  font-family: "Segoe UI Variable Display", "Aptos Display", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 740;
  letter-spacing: -0.035em;
}

.field--filter,
.field--search {
  width: min(100%, 340px);
  flex: 0 1 340px;
  gap: 6px;
}

.field--filter label,
.field--search label {
  font-size: 0.7rem;
}

.field--filter select,
.field--search input {
  min-height: 43px;
  border-radius: 11px;
  padding-block: 9px;
  font-size: 0.82rem;
}

.field--search input {
  padding-left: 39px;
  background-image:
    radial-gradient(circle, transparent 42%, var(--muted) 45%, var(--muted) 54%, transparent 57%),
    linear-gradient(45deg, transparent 47%, var(--muted) 48%, var(--muted) 54%, transparent 55%);
  background-position: 15px 47%, 25px 64%;
  background-repeat: no-repeat;
  background-size: 13px 13px, 7px 7px;
}

.panel > .alert-region:not(:empty) {
  margin: 0 26px 20px;
}

.table-scroll {
  overflow: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 226, 196, 0.32) transparent;
}

.table-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(45, 226, 196, 0.26);
}

.data-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table--admin-jobs {
  min-width: 980px;
}

.data-table--stats {
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(178, 194, 218, 0.085);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  color: var(--muted);
  background: rgba(10, 16, 28, 0.98);
  font-size: 0.67rem;
  font-weight: 840;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.data-table tbody tr {
  position: relative;
  transition: background-color 0.18s ease;
}

.data-table tbody tr::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  transform: scaleY(0);
  background: var(--primary);
  transition: transform 0.18s ease;
}

.data-table tbody tr:hover {
  background: rgba(45, 226, 196, 0.035);
}

.data-table tbody tr:hover::before {
  transform: scaleY(1);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table td:first-child {
  color: var(--ink);
  font-weight: 740;
}

.data-table--admin-jobs td:first-child {
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 650;
}

.table-actions {
  min-width: 190px;
  white-space: nowrap;
}

.data-table button {
  min-height: 35px;
  margin: 2px;
  border-color: var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 780;
}

.data-table button:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 183, 255, 0.28);
  color: var(--blue);
  background: rgba(75, 183, 255, 0.075);
}

.data-table .btnPostularse,
.data-table .btnProcesar {
  border-color: rgba(45, 226, 196, 0.24);
  color: #abf7e9;
  background: rgba(45, 226, 196, 0.09);
}

.data-table .btnPostularse:hover,
.data-table .btnProcesar:hover {
  border-color: rgba(45, 226, 196, 0.45);
  color: #dbfff8;
  background: rgba(45, 226, 196, 0.15);
}

.data-table .btnGestionEditar {
  border-color: rgba(139, 124, 255, 0.25);
  color: #c9c1ff;
  background: rgba(139, 124, 255, 0.09);
}

.data-table .btnGestionEliminar,
.data-table .btnRechazar {
  border-color: rgba(255, 107, 134, 0.26);
  color: #ff9fb0;
  background: rgba(255, 107, 134, 0.08);
}

.data-table .btnGestionEliminar:hover,
.data-table .btnRechazar:hover {
  border-color: rgba(255, 107, 134, 0.48);
  color: #ffd3db;
  background: rgba(255, 107, 134, 0.14);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 13%, transparent);
}

.status-badge--activa,
.status-badge--aceptada {
  border-color: rgba(61, 220, 151, 0.22);
  color: #8deab9;
  background: rgba(61, 220, 151, 0.07);
}

.status-badge--pendiente {
  border-color: rgba(245, 185, 66, 0.22);
  color: #f7ce7b;
  background: rgba(245, 185, 66, 0.07);
}

.status-badge--inactiva {
  border-color: rgba(139, 124, 255, 0.24);
  color: #b8afff;
  background: rgba(139, 124, 255, 0.08);
}

.status-badge--cerrada,
.status-badge--rechazada {
  border-color: rgba(255, 107, 134, 0.22);
  color: #ff9cad;
  background: rgba(255, 107, 134, 0.07);
}

.empty-state {
  padding: 42px 22px !important;
  color: var(--muted) !important;
  text-align: center !important;
  font-weight: 680 !important;
}

.empty-state::before {
  content: "◇";
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 300;
}

/* Formularios de gestión */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  margin-bottom: 17px;
  border: 0;
  padding: 7px 2px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 0.79rem;
  font-weight: 740;
}

.back-link:hover {
  color: var(--primary);
  transform: translateX(-2px);
}

.form-panel {
  padding: clamp(26px, 5vw, 50px);
}

.form-panel__head {
  margin-bottom: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.form-panel h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.form-panel__head > p:last-child {
  max-width: 620px;
  margin: 13px 0 0;
  color: var(--muted);
}

.switch-control {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.switch-control__track {
  position: relative;
  width: 45px;
  height: 25px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.switch-control__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--muted-strong);
  transition: transform 0.22s var(--ease), background-color 0.2s ease;
}

.switch-control input:checked + .switch-control__track {
  border-color: rgba(45, 226, 196, 0.42);
  background: rgba(45, 226, 196, 0.2);
}

.switch-control input:checked + .switch-control__track::after {
  transform: translateX(20px);
  background: var(--primary);
  box-shadow: 0 0 14px rgba(45, 226, 196, 0.5);
}

.switch-control input:focus-visible + .switch-control__track {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.switch-control > span:last-child {
  display: grid;
}

/* Detalle de oferta */

.offer-detail {
  overflow: hidden;
}

.offer-detail__hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(circle at 94% 22%, rgba(45, 226, 196, 0.13), transparent 26%),
    linear-gradient(145deg, rgba(20, 35, 53, 0.86), rgba(10, 16, 28, 0.78));
}

.offer-detail h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.02;
}

.offer-detail__company {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 1rem;
  font-weight: 680;
}

.offer-detail__company > span:first-child {
  color: var(--primary);
  font-size: 0.65rem;
}

.offer-detail__featured {
  flex: 0 0 auto;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(245, 185, 66, 0.27);
  border-radius: 999px;
  padding: 8px 12px;
  color: #f9d384;
  background: rgba(245, 185, 66, 0.08);
  font-size: 0.72rem;
  font-weight: 820;
}

.featured-badge--standard {
  border-color: var(--line);
  color: var(--muted-strong);
  background: var(--surface-soft);
}

.offer-detail__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.detail-item {
  display: flex;
  gap: 16px;
  min-width: 0;
  padding: 25px;
  background: rgba(10, 15, 27, 0.96);
}

.detail-item--description {
  grid-column: 1 / -1;
}

.detail-item__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(45, 226, 196, 0.17);
  border-radius: 11px;
  color: var(--primary);
  background: rgba(45, 226, 196, 0.06);
}

.detail-item h2 {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.detail-item--description p {
  max-width: 760px;
  color: var(--muted-strong);
  font-weight: 480;
  line-height: 1.75;
}

/* Estadísticas */

.stats-section {
  margin-bottom: 28px;
}

.section-heading {
  padding: 0 2px 16px;
}

.updated-pill {
  margin-bottom: 3px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.metric-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(155deg, rgba(18, 29, 49, 0.88), rgba(10, 15, 27, 0.9));
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}

.metric-card::after {
  content: "";
  position: absolute;
  top: -45px;
  right: -42px;
  width: 100px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--metric-color, var(--primary));
  filter: blur(36px);
  opacity: 0.11;
}

.metric-card--wide {
  grid-column: 1 / -1;
}

.metric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-card__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 740;
}

.metric-card__icon {
  display: grid;
  width: 31px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--metric-color, var(--primary)) 24%, transparent);
  border-radius: 10px;
  color: var(--metric-color, var(--primary));
  background: color-mix(in srgb, var(--metric-color, var(--primary)) 7%, transparent);
  font-size: 0.8rem;
}

.metric-card__value {
  display: block;
  margin-top: 17px;
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "Aptos Display", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.metric-card--wide .metric-card__value {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.metric-card__hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

@media (hover: hover) {
  .metric-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--metric-color, var(--primary)) 30%, var(--line));
  }
}

/* Adaptación */

@media (max-width: 1080px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  }

  .auth-story {
    padding: 42px;
  }

  .auth-story h2 {
    font-size: clamp(3rem, 5.7vw, 4.3rem);
  }

  .signal-card {
    width: min(100%, 360px);
  }

  .app-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 12px 14px 10px;
  }

  .nav-shell {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .nav-shell::-webkit-scrollbar {
    display: none;
  }

  .nav-shell li {
    scroll-snap-align: start;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .view--auth {
    padding: 18px;
  }

  .auth-shell,
  .auth-shell--register {
    display: block;
    width: min(100%, 620px);
    min-height: 0;
    border-radius: 26px;
  }

  .auth-story {
    display: none;
  }

  .auth-card {
    min-height: min(720px, calc(100vh - 36px));
    padding: clamp(28px, 7vw, 48px);
  }

  .auth-card--wide {
    min-height: 0;
  }

  .brand--compact {
    display: inline-flex;
    margin-bottom: 34px;
  }

  .page-hero {
    min-height: 190px;
    padding: 32px;
  }

  .hero-mark {
    width: 82px;
  }

  .offer-detail__body {
    grid-template-columns: 1fr;
  }

  .detail-item--description {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .view--app {
    padding: 10px 10px 32px;
  }

  .app-header {
    top: 8px;
    border-radius: 16px;
  }

  .app-header__inner {
    min-height: 0;
    padding: 11px 11px 8px;
  }

  .app-header .brand__mark {
    width: 36px;
    border-radius: 11px;
  }

  .app-header .brand__copy small {
    display: none;
  }

  .nav-link {
    min-height: 42px;
    padding: 8px 10px;
  }

  .page-shell {
    padding-top: 32px;
  }

  .page-hero,
  .page-hero--compact {
    min-height: 0;
    margin-bottom: 18px;
    border-radius: 20px;
    padding: 25px 22px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-mark {
    display: none;
  }

  .panel,
  .form-panel,
  .offer-detail {
    border-radius: 19px;
  }

  .panel__head,
  .section-heading {
    padding: 20px 18px 17px;
  }

  .panel__head--toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading {
    padding-inline: 2px;
  }

  .field--filter,
  .field--search {
    width: 100%;
    flex-basis: auto;
  }

  .panel > .alert-region:not(:empty) {
    margin: 0 18px 17px;
  }

  .table-scroll {
    overflow: visible;
    border-top: 0;
    padding: 0 12px 13px;
  }

  .data-table,
  .data-table--admin-jobs,
  .data-table--stats,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .data-table tbody {
    display: grid;
    gap: 11px;
  }

  .data-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 7px 0;
    background: rgba(255, 255, 255, 0.025);
  }

  .data-table tbody tr::before {
    width: 3px;
    transform: scaleY(1);
    opacity: 0.65;
  }

  .data-table td {
    display: grid;
    grid-template-columns: minmax(96px, 0.7fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 45px;
    border-bottom: 1px solid rgba(178, 194, 218, 0.07);
    padding: 9px 13px;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 820;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td:first-child {
    color: var(--ink);
  }

  .data-table .status-badge {
    justify-self: end;
  }

  .table-actions {
    min-width: 0;
    white-space: normal;
  }

  .table-actions > button {
    min-height: 40px;
  }

  .data-table td.empty-state {
    display: block;
    min-height: 0;
    border: 0;
    padding: 32px 18px !important;
    text-align: center !important;
  }

  .data-table td.empty-state::before {
    content: "◇";
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.8rem;
    text-align: center;
  }

  .form-panel {
    padding: 24px 19px;
  }

  .form-panel__head {
    margin-bottom: 24px;
    padding-bottom: 21px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .form-actions--end > * {
    flex: 1 1 140px;
  }

  .offer-detail__hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 27px 21px;
  }

  .detail-item {
    padding: 20px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .view--auth {
    padding: 0;
  }

  .auth-shell,
  .auth-shell--register {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .auth-card {
    min-height: 100vh;
    padding: 30px 20px;
  }

  .auth-card__head {
    margin-bottom: 24px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions--end {
    flex-direction: column;
  }

  .form-actions > * {
    width: 100%;
    flex: 0 0 auto;
  }

  .demo-access p {
    line-height: 1.55;
  }

  .page-hero {
    padding: 23px 18px;
  }

  .page-hero h1 {
    font-size: 2.15rem;
  }

  .page-hero > div:first-child > p:last-child {
    font-size: 0.9rem;
  }

  .panel__head .btn--compact {
    width: 100%;
  }

  .data-table td {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 11px;
  }

  .table-actions > button {
    width: 100%;
    margin: 3px 0;
  }

  .offer-detail h1 {
    font-size: 2.15rem;
  }

  .switch-control {
    align-items: flex-start;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(225, 235, 247, 0.32);
    --line-strong: rgba(225, 235, 247, 0.48);
    --muted: #bdc8d8;
    --muted-strong: #d2dae6;
  }

  .nav-link.is-active,
  .status-badge,
  .btn--ghost {
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
