@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/montserrat-300.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-700.ttf") format("truetype");
}

:root {
  --login-ink: #000000;
  --login-ink-soft: #020d18;
  --login-panel: #f4f7fa;
  --login-card: #ffffff;
  --login-text: #0b1220;
  --login-muted: #6b7785;
  --login-line: #d5dde6;
  --login-accent: #c8a646;
  --login-accent-on-dark: #e6c974;
  --login-accent-soft: rgba(200, 166, 70, 0.22);
  --login-accent-dark: #8b6d1b;
  --login-font: "Montserrat", sans-serif;
  --nav-h: 4.5rem;
  --wa-z: 1040;
  --modal-z: 1100;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--login-font);
  color: var(--login-text);
  background: var(--login-panel);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(2, 13, 24, 0.72);
  border-bottom: 1px solid rgba(230, 201, 116, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.site-nav__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav__logo {
  flex-shrink: 0;
  width: min(148px, 36vw);
}

.site-nav__logo img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.9))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.6rem);
  list-style: none;
}

.site-nav__links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.nav-login-mobile {
  display: none;
}

.nav-login-mobile .btn {
  width: 100%;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: var(--login-accent-on-dark);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(230, 201, 116, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn--primary {
  background: linear-gradient(180deg, var(--login-accent-on-dark) 0%, var(--login-accent) 100%);
  border-color: rgba(122, 101, 32, 0.35);
  color: #1a1408;
  box-shadow: 0 10px 24px rgba(200, 166, 70, 0.28);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(180deg, #f3dfa2 0%, var(--login-accent-on-dark) 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(200, 166, 70, 0.34);
}

.btn--dark {
  background: #000;
  border-color: #000;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: #111;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--login-accent-on-dark);
  color: var(--login-accent-on-dark);
  transform: translateY(-1px);
}

.btn--nav {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.78rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 50% at 50% 52%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 42%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(90deg, rgba(2, 13, 24, 0.5) 0%, rgba(2, 13, 24, 0.24) 58%, rgba(2, 13, 24, 0.54) 100%),
    url("../hero.jpg") center / cover no-repeat,
    #000;
}

.hero__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero__content {
  max-width: 40rem;
}

.hero__accent {
  display: block;
  width: 118px;
  height: 5px;
  margin: 0 0 18px 52px;
  background: var(--login-accent-on-dark);
}

.hero__title-light {
  display: block;
  font-size: clamp(3.2rem, 5.1vw, 5.25rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.95),
    0 7px 20px rgba(0, 0, 0, 0.82);
}

.hero__title-bold {
  display: block;
  font-size: clamp(3.2rem, 5.1vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.95),
    0 7px 20px rgba(0, 0, 0, 0.82);
}

.hero__tagline {
  max-width: 34rem;
  margin: 1.9rem 0 0;
  color: #fff;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 1),
    0 6px 18px rgba(0, 0, 0, 1);
}

.hero__tagline-accent {
  color: var(--login-accent-on-dark);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--alt {
  background: #fff;
}

.section--dark {
  background: var(--login-ink-soft);
  color: #fff;
}

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  color: var(--login-accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__kicker::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  background: var(--login-accent);
}

.section--dark .section__kicker {
  color: var(--login-accent-on-dark);
}

.section__title {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--login-text);
}

.section--dark .section__title {
  color: #fff;
}

.section__lead {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  color: var(--login-muted);
  font-size: 1.02rem;
  font-weight: 300;
}

.section--dark .section__lead {
  color: rgba(255, 255, 255, 0.72);
}

.section__intro {
  margin-top: 1.75rem;
  max-width: none;
}

.section__intro p + p {
  margin-top: 1rem;
}

.section__intro p {
  color: var(--login-text);
  font-size: 1.02rem;
  font-weight: 300;
}

.section__promise {
  margin-top: 1.75rem;
  max-width: none;
  padding: 1.35rem 1.4rem;
  border-left: 4px solid var(--login-accent);
  background: rgba(200, 166, 70, 0.08);
  border-radius: 0 14px 14px 0;
}

.section__promise p {
  color: var(--login-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.section__promise p + p {
  margin-top: 0.85rem;
  font-weight: 300;
}

.motivos-label {
  margin: 2.75rem 0 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--login-accent-dark);
  letter-spacing: 0.04em;
}

.flujo-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.flujo-timeline::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(200, 166, 70, 0.15),
    rgba(200, 166, 70, 0.85) 20%,
    rgba(200, 166, 70, 0.85) 80%,
    rgba(200, 166, 70, 0.15)
  );
}

.flujo-timeline__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.35rem;
}

.flujo-timeline__marker {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 0.85rem;
  border: 2px solid var(--login-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--login-accent-dark);
  font-size: 1rem;
  box-shadow: 0 0 0 6px rgba(200, 166, 70, 0.12);
}

.flujo-timeline__num {
  margin-bottom: 0.35rem;
  color: var(--login-accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.flujo-timeline__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.flujo-timeline__item p {
  margin: 0;
  max-width: 18rem;
  color: var(--login-muted);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .flujo-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0.25rem;
  }

  .flujo-timeline::before {
    top: 1.55rem;
    bottom: 1.55rem;
    left: 1.5rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(200, 166, 70, 0.15),
      rgba(200, 166, 70, 0.85) 18%,
      rgba(200, 166, 70, 0.85) 82%,
      rgba(200, 166, 70, 0.15)
    );
  }

  .flujo-timeline__item {
    align-items: flex-start;
    text-align: left;
    padding: 0 0 1.6rem 4.2rem;
  }

  .flujo-timeline__item:last-child {
    padding-bottom: 0;
  }

  .flujo-timeline__marker {
    position: absolute;
    top: 0;
    left: 0;
  }

  .flujo-timeline__item p {
    max-width: none;
  }
}

/* —— Semáforo de habilitación —— */
.semaforo {
  margin-top: 3.5rem;
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid rgba(16, 24, 33, 0.1);
  border-radius: var(--radius-md, 22px);
  background:
    radial-gradient(circle at top right, rgba(200, 166, 70, 0.12), transparent 42%),
    linear-gradient(180deg, #fff, #f7fafc);
  box-shadow: var(--shadow-soft, 0 18px 50px rgba(7, 17, 29, 0.08));
}

.semaforo__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.semaforo__kicker {
  margin-bottom: 0.45rem;
  color: var(--login-accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.semaforo__title {
  margin: 0 0 0.55rem;
  color: var(--login-text);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.semaforo__desc {
  max-width: 42rem;
  color: var(--login-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
}

.semaforo__hint {
  flex-shrink: 0;
  max-width: 15.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(200, 166, 70, 0.28);
  border-radius: 14px;
  background: rgba(200, 166, 70, 0.1);
  color: var(--login-text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.semaforo__hint i {
  margin-right: 0.35rem;
  color: var(--login-accent-dark);
}

.semaforo__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.15rem;
  align-items: stretch;
}

.semaforo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.semaforo-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  padding: 0.95rem 1rem 0.85rem;
  border: 1px solid rgba(16, 24, 33, 0.1);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.semaforo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(7, 17, 29, 0.08);
}

.semaforo-card:focus-visible {
  outline: 2px solid var(--login-accent);
  outline-offset: 3px;
}

.semaforo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.semaforo-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.semaforo-card__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.semaforo-card__icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: inherit;
  font-size: 0.72rem;
}

.semaforo-card__body {
  flex: 1;
  color: var(--login-muted);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.45;
}

.semaforo-card__foot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.76rem;
  font-weight: 700;
}

.semaforo-card[data-semaforo="habilitado"] {
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), #fff 48%);
}

.semaforo-card[data-semaforo="inhabilitado"] {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.08), #fff 48%);
}

.semaforo-card[data-semaforo="futuro"] {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), #fff 48%);
}

.semaforo-card[data-semaforo="bloqueado"] {
  color: #475569;
  border-color: rgba(100, 116, 139, 0.28);
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.1), #fff 48%);
}

.semaforo-card.is-active {
  transform: translateY(-3px);
  border-color: currentColor;
  box-shadow:
    0 0 0 1px color-mix(in srgb, currentColor 35%, transparent),
    0 14px 30px rgba(7, 17, 29, 0.1);
}

.semaforo-sim {
  --sim-color: #16a34a;
  --sim-soft: rgba(22, 163, 74, 0.12);
  --sim-ink: #14532d;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.35rem 1.35rem 1.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--sim-color) 28%, var(--login-line));
  border-radius: 18px;
  background:
    linear-gradient(165deg, var(--sim-soft), transparent 58%),
    #fff;
  color: var(--login-text);
  transition: border-color 0.35s ease, background 0.35s ease;
}

.semaforo-sim[data-state="habilitado"] {
  --sim-color: #16a34a;
  --sim-soft: rgba(22, 163, 74, 0.14);
  --sim-ink: #14532d;
}

.semaforo-sim[data-state="inhabilitado"] {
  --sim-color: #dc2626;
  --sim-soft: rgba(220, 38, 38, 0.12);
  --sim-ink: #7f1d1d;
}

.semaforo-sim[data-state="futuro"] {
  --sim-color: #2563eb;
  --sim-soft: rgba(37, 99, 235, 0.12);
  --sim-ink: #1e3a8a;
}

.semaforo-sim[data-state="bloqueado"] {
  --sim-color: #64748b;
  --sim-soft: rgba(100, 116, 139, 0.14);
  --sim-ink: #334155;
}

.semaforo-sim.is-flash .semaforo-sim__beacon {
  animation: semaforo-flash 0.55s ease;
}

.semaforo-sim__eyebrow {
  margin: 0;
  color: var(--login-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.semaforo-sim__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 7.5rem;
  border: 1px dashed color-mix(in srgb, var(--sim-color) 28%, var(--login-line));
  border-radius: 14px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--sim-color) 10%, transparent), transparent 68%),
    #f8fafc;
}

.semaforo-sim__lights {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  display: grid;
  gap: 0.4rem;
}

.semaforo-sim__led {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.semaforo-sim[data-state="habilitado"] .semaforo-sim__led--ok,
.semaforo-sim[data-state="futuro"] .semaforo-sim__led--wait,
.semaforo-sim[data-state="inhabilitado"] .semaforo-sim__led--stop,
.semaforo-sim[data-state="bloqueado"] .semaforo-sim__led--stop {
  background: var(--sim-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sim-color) 18%, transparent);
  transform: scale(1.12);
}

.semaforo-sim__gate {
  position: relative;
  width: 5.4rem;
  height: 3.8rem;
  border: 2px solid color-mix(in srgb, var(--sim-color) 35%, #94a3b8);
  border-radius: 10px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.75);
}

.semaforo-sim__arm {
  position: absolute;
  top: 50%;
  width: 1.7rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--sim-color);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--sim-color) 35%, transparent);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.semaforo-sim__arm:first-child {
  left: 0.5rem;
  transform-origin: left center;
}

.semaforo-sim__arm:last-child {
  right: 0.5rem;
  transform-origin: right center;
}

.semaforo-sim[data-state="habilitado"] .semaforo-sim__arm:first-child {
  transform: rotate(-58deg);
}

.semaforo-sim[data-state="habilitado"] .semaforo-sim__arm:last-child {
  transform: rotate(58deg);
}

.semaforo-sim[data-state="futuro"] .semaforo-sim__arm:first-child {
  transform: rotate(-18deg);
}

.semaforo-sim[data-state="futuro"] .semaforo-sim__arm:last-child {
  transform: rotate(18deg);
}

.semaforo-sim__beacon {
  position: absolute;
  inset: auto 18% 0.7rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--sim-color);
  opacity: 0.85;
}

.semaforo-sim__result {
  margin: 0;
  color: var(--sim-ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.semaforo-sim__detail {
  margin: 0;
  color: var(--login-text);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
}

.semaforo-sim__note {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(16, 24, 33, 0.08);
  color: var(--login-muted);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.45;
}

.semaforo-sim__progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(15, 23, 42, 0.06);
}

.semaforo-sim__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sim-color);
}

.semaforo-sim.is-autoplaying .semaforo-sim__progress span {
  animation: semaforo-progress 3.2s linear infinite;
}

@keyframes semaforo-progress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes semaforo-flash {
  0% { opacity: 0.25; transform: scaleX(0.45); }
  40% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0.85; transform: scaleX(1); }
}

@media (max-width: 980px) {
  .semaforo__layout {
    grid-template-columns: 1fr;
  }

  .semaforo-sim {
    order: -1;
  }
}

@media (max-width: 720px) {
  .semaforo__head {
    flex-direction: column;
  }

  .semaforo__hint {
    max-width: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  .semaforo-card,
  .semaforo-sim__arm,
  .semaforo-sim__led,
  .semaforo-sim__result {
    transition: none;
  }

  .semaforo-sim.is-autoplaying .semaforo-sim__progress span,
  .semaforo-sim.is-flash .semaforo-sim__beacon {
    animation: none;
  }
}

.step h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--login-text);
  letter-spacing: -0.01em;
}

.step p {
  color: var(--login-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* Quién usa — listado con eje Worix */
.audience-board {
  position: relative;
  margin-top: 2.75rem;
  padding-left: 0;
}

.audience-board__rail {
  display: none;
}

.audience-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.audience-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  padding: 1.85rem 0;
  border-top: 1px solid rgba(200, 166, 70, 0.28);
}

.audience-row:last-child {
  border-bottom: 1px solid rgba(200, 166, 70, 0.28);
}

.audience-row__index {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.15rem;
}

.audience-row__index span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--login-accent);
  background:
    radial-gradient(circle at 30% 20%, rgba(243, 223, 162, 0.55), transparent 55%),
    #fff;
  color: var(--login-accent-dark);
  font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(200, 166, 70, 0.18);
}

.audience-row__content {
  min-width: 0;
}

.audience-row__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--login-accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.audience-row__content h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--login-text);
  line-height: 1.15;
}

.audience-row__content > p {
  color: var(--login-muted);
  font-size: 0.98rem;
  font-weight: 300;
  max-width: 46rem;
}

.audience__more {
  margin-top: 0.9rem;
}

.modulos {
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid rgba(200, 166, 70, 0.28);
}

.modulos__kicker {
  margin: 0 0 0.55rem;
  color: var(--login-accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modulos__title {
  margin: 0 0 0.65rem;
  color: var(--login-text);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modulos__lead {
  margin: 0 0 1.75rem;
  max-width: 44rem;
  color: var(--login-muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.6;
}

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

.modulo {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1.25rem 1.15rem 1.15rem;
  border: 1px solid rgba(16, 24, 33, 0.1);
  border-radius: var(--radius-md, 22px);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.modulo:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 173, 79, 0.48);
  box-shadow: var(--shadow-card, 0 24px 65px rgba(7, 17, 29, 0.12));
}

.modulo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: rgba(200, 166, 70, 0.14);
  color: var(--login-accent-dark);
  font-size: 1rem;
}

.modulo h4 {
  margin: 0;
  color: var(--login-text);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.modulo > p {
  margin: 0;
  color: var(--login-muted);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .modulos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .modulos__grid {
    grid-template-columns: 1fr;
  }
}

.avisos {
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid rgba(200, 166, 70, 0.28);
}

.avisos__kicker {
  margin: 0 0 0.55rem;
  color: var(--login-accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.avisos__title {
  margin: 0 0 0.65rem;
  color: var(--login-text);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.avisos__lead {
  margin: 0 0 1.75rem;
  max-width: 44rem;
  color: var(--login-muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.6;
}

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

.aviso {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1.25rem 1.15rem 1.15rem;
  border: 1px solid rgba(16, 24, 33, 0.1);
  border-radius: var(--radius-md, 22px);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aviso:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 173, 79, 0.48);
  box-shadow: var(--shadow-card, 0 24px 65px rgba(7, 17, 29, 0.12));
}

.aviso__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  font-size: 1rem;
}

.aviso--vencimientos .aviso__icon {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.aviso--rechazo .aviso__icon {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.aviso--ok .aviso__icon {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.aviso--alta .aviso__icon {
  background: rgba(200, 166, 70, 0.16);
  color: var(--login-accent-dark);
}

.aviso h4 {
  margin: 0;
  color: var(--login-text);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.aviso > p {
  margin: 0;
  color: var(--login-muted);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .avisos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .avisos__grid {
    grid-template-columns: 1fr;
  }
}

.audience-row__tag {
  position: relative;
  margin-top: 1.25rem;
  padding-left: 1rem;
  color: var(--login-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 36rem;
}

.audience-row__tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--login-accent-on-dark), var(--login-accent-dark));
}

@media (min-width: 901px) {
  .audience-board {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0 0.5rem;
    align-items: stretch;
  }

  .audience-board__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 2.4rem 0;
  }

  .audience-board__rail::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      rgba(200, 166, 70, 0.15) 0%,
      var(--login-accent) 18%,
      var(--login-accent-on-dark) 50%,
      var(--login-accent) 82%,
      rgba(200, 166, 70, 0.15) 100%
    );
  }

  .audience-board__hub {
    position: sticky;
    top: calc(var(--nav-h) + 6rem);
    z-index: 1;
    margin: auto 0;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(200, 166, 70, 0.55);
    background: linear-gradient(180deg, #fff 0%, #f7f0d8 100%);
    color: var(--login-accent-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(200, 166, 70, 0.22);
    white-space: nowrap;
  }

  .audience-list {
    min-width: 0;
  }

  .audience-row {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    padding: 2.15rem 0 2.15rem 0.5rem;
  }

  .audience-row:first-child {
    border-top: 0;
    padding-top: 0.35rem;
  }

  .audience-row:last-child {
    border-bottom: 0;
    padding-bottom: 0.35rem;
  }

  .audience-row + .audience-row {
    margin-top: 0.35rem;
  }
}

.offer-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 2.5rem 0 0;
  padding: 0;
}

.offer-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(230, 201, 116, 0.22);
}

.offer-item:last-child {
  border-bottom: 1px solid rgba(230, 201, 116, 0.22);
}

.offer-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1.5px solid rgba(230, 201, 116, 0.55);
  background: rgba(230, 201, 116, 0.12);
  color: var(--login-accent-on-dark);
  font-size: 1rem;
}

.offer-item__content {
  min-width: 0;
  padding-top: 0.15rem;
}

.offer-item h3 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.offer-item p {
  margin: 0;
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2rem;
}

.step {
  padding: 1.45rem 1.25rem;
  border: 1px solid var(--login-line);
  border-radius: 16px;
  background: #fff;
}

.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: rgba(200, 166, 70, 0.14);
  color: var(--login-accent-dark);
  font-size: 1.05rem;
}

.step__num {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--login-accent);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cta-block {
  text-align: center;
}

.cta-block .section__title,
.cta-block .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.cta-block .section__title {
  max-width: 42rem;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.cta-block__contact {
  color: var(--login-accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-block__contact:hover {
  color: #7a6520;
}

/* —— Footer —— */
.site-footer {
  padding: 1.75rem 0;
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(230, 201, 116, 0.18);
}

.site-footer__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__logo {
  width: 110px;
  opacity: 0.92;
}

.site-footer p {
  font-size: 0.8rem;
  font-weight: 300;
}

/* —— Modal —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--modal-z);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 13, 24, 0.68);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  max-height: min(85vh, 38rem);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(200, 166, 70, 0.32);
  border-radius: var(--radius-md, 22px);
  background: #fff;
  box-shadow: 0 30px 90px rgba(2, 13, 24, 0.36);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.1rem;
  border-bottom: 1px solid rgba(200, 166, 70, 0.18);
  background: linear-gradient(180deg, rgba(200, 166, 70, 0.12), transparent);
}

.modal__heading {
  min-width: 0;
}

.modal__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--login-accent-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal__header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal__close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(16, 24, 33, 0.08);
  border-radius: 12px;
  background: #fff;
  color: var(--login-text);
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.modal__close:hover,
.modal__close:focus-visible {
  border-color: rgba(200, 166, 70, 0.45);
  background: rgba(200, 166, 70, 0.1);
  outline: none;
}

.modal__help {
  margin: 0;
  padding: 1rem 1.4rem 0.85rem;
  color: var(--login-muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
}

.client-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0 1.4rem 1.45rem;
}

.client-list__btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(16, 24, 33, 0.1);
  border-radius: var(--radius-sm, 14px);
  background: linear-gradient(180deg, #fff, #fbfcfd);
  color: var(--login-text);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.client-list__btn:hover,
.client-list__btn:focus-visible {
  border-color: rgba(200, 166, 70, 0.55);
  background: rgba(200, 166, 70, 0.08);
  box-shadow: 0 10px 24px rgba(7, 17, 29, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.client-list__icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: rgba(200, 166, 70, 0.14);
  color: var(--login-accent-dark);
  font-size: 0.85rem;
}

.client-list__btn strong {
  min-width: 0;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.client-list__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--login-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.client-list__empty {
  padding: 1.1rem;
  border: 1px dashed rgba(16, 24, 33, 0.12);
  border-radius: 12px;
  color: var(--login-muted);
  font-size: 0.92rem;
  font-weight: 300;
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}

/* —— WhatsApp float —— */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: var(--wa-z);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  pointer-events: none;
  visibility: hidden;
}

.wa-float.is-visible {
  display: inline-flex;
  pointer-events: auto;
  visibility: visible;
}

.wa-float:hover,
.wa-float:focus {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
  outline: none;
}

.wa-float:focus-visible {
  outline: 2px solid rgba(37, 211, 102, 0.55);
  outline-offset: 3px;
}

.wa-float i {
  font-size: 1.55rem;
  line-height: 1;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(2, 13, 24, 0.96);
    border-bottom: 1px solid rgba(230, 201, 116, 0.18);
  }

  .site-nav.is-open .site-nav__links {
    display: flex;
  }

  .site-nav__links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav__links a {
    display: block;
    padding: 0.9rem 0;
  }

  .site-nav__actions .btn--nav {
    display: none;
  }

  .site-nav.is-open .site-nav__links .nav-login-mobile {
    display: block;
    padding-top: 0.85rem;
  }
}

@media (max-width: 600px) {
  .hero__content {
    text-align: center;
  }

  .hero__accent {
    width: 72px;
    height: 4px;
    margin: 0 auto 12px;
  }

  .hero__title-light,
  .hero__title-bold {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .hero__ctas {
    justify-content: center;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .wa-float {
    right: 1rem;
    bottom: 1rem;
  }
}

/* —— Visual refresh —— */
:root {
  --login-ink: #03070c;
  --login-ink-soft: #07111d;
  --login-panel: #f3f5f7;
  --login-card: #ffffff;
  --login-text: #101821;
  --login-muted: #64707d;
  --login-line: #dde2e7;
  --login-accent: #cfad4f;
  --login-accent-on-dark: #eed477;
  --login-accent-soft: rgba(207, 173, 79, 0.16);
  --login-accent-dark: #866a1e;
  --nav-h: 5.25rem;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow-soft: 0 18px 50px rgba(7, 17, 29, 0.08);
  --shadow-card: 0 24px 65px rgba(7, 17, 29, 0.12);
}

body {
  background:
    radial-gradient(circle at 8% 34%, rgba(207, 173, 79, 0.07), transparent 22rem),
    var(--login-panel);
}

.container,
.site-nav__inner,
.hero__inner,
.site-footer__inner {
  width: min(1200px, calc(100% - 3rem));
}

.site-nav {
  background: rgba(3, 10, 18, 0.76);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  background: rgba(3, 10, 18, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.site-nav__logo {
  width: min(142px, 36vw);
}

.site-nav__links {
  gap: clamp(1.25rem, 2.5vw, 2.35rem);
}

.site-nav__links a {
  position: relative;
  padding: 0.7rem 0;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.28rem;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--login-accent-on-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after,
.site-nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn {
  min-height: 3.25rem;
  padding: 0 1.45rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.btn i {
  font-size: 0.78em;
  transition: transform 0.2s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

.btn--primary {
  background: linear-gradient(135deg, #f1da83 0%, #c8a344 58%, #ac8527 100%);
  border-color: rgba(255, 239, 180, 0.42);
  box-shadow: 0 12px 32px rgba(202, 166, 69, 0.26), inset 0 1px rgba(255, 255, 255, 0.45);
}

.btn--primary::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, #f7e8ad, #ddbc5a);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn--primary:hover::before,
.btn--primary:focus-visible::before {
  opacity: 1;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(135deg, #f1da83, #c8a344);
  box-shadow: 0 16px 36px rgba(202, 166, 69, 0.34);
}

.btn--nav {
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  font-size: 0.84rem;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn--outline-dark {
  border-color: rgba(16, 24, 33, 0.22);
  background: rgba(255, 255, 255, 0.55);
  color: var(--login-text);
}

.btn--outline-dark:hover,
.btn--outline-dark:focus-visible {
  border-color: var(--login-text);
  background: #fff;
  transform: translateY(-1px);
}

.hero {
  min-height: max(45rem, 100dvh);
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at 75% 48%, rgba(8, 35, 58, 0.04) 0%, rgba(3, 11, 19, 0.2) 32%, rgba(3, 11, 19, 0.8) 76%),
    linear-gradient(90deg, rgba(2, 10, 18, 0.86) 0%, rgba(2, 10, 18, 0.56) 46%, rgba(2, 10, 18, 0.18) 74%, rgba(2, 10, 18, 0.42) 100%),
    url("../hero.jpg") center / cover no-repeat,
    #03070c;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  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: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12rem;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(3, 7, 12, 0.48));
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 47rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.55rem;
  color: var(--login-accent-on-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__eyebrow span {
  width: 1.8rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hero__accent {
  display: none;
}

.hero__title {
  margin: 0;
}

.hero__title-light,
.hero__title-bold {
  font-size: clamp(4rem, 7.25vw, 7rem);
  line-height: 0.88;
}

.hero__title-light {
  letter-spacing: -0.065em;
}

.hero__title-bold {
  margin-top: 0.08em;
  font-size: clamp(3.15rem, 6vw, 5.8rem);
  letter-spacing: -0.035em;
}

.hero__tagline {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: clamp(1.08rem, 1.6vw, 1.38rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero__ctas {
  margin-top: 2.1rem;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  right: max(1.5rem, calc((100vw - 1200px) / 2));
  bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll i {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.section {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section--alt {
  background:
    radial-gradient(circle at 100% 0%, rgba(207, 173, 79, 0.1), transparent 28rem),
    #fff;
}

.section--dark {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(207, 173, 79, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 100%, rgba(24, 73, 106, 0.24), transparent 34rem),
    var(--login-ink-soft);
}

.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 4rem;
}

.section--dark .container {
  position: relative;
  z-index: 1;
}

.section__kicker {
  margin-bottom: 0.9rem;
}

.section__title {
  max-width: 48rem;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  letter-spacing: -0.055em;
}

.section__lead {
  max-width: 49rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
}

.section__intro {
  max-width: none;
  margin-top: 2.5rem;
}

.section__intro p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.section__promise {
  max-width: none;
  margin-top: 2.25rem;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(207, 173, 79, 0.22);
  border-left: 4px solid var(--login-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: linear-gradient(110deg, rgba(207, 173, 79, 0.12), rgba(255, 255, 255, 0.48));
}

.motivos-label {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.steps {
  gap: 1.25rem;
}

.step {
  min-height: 100%;
  padding: 1.75rem;
  border-color: rgba(16, 24, 33, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(207, 173, 79, 0.48);
  box-shadow: var(--shadow-card);
}

.step__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
}

.audience-board {
  margin-top: 4rem;
}

.audience-row {
  padding-block: 2.5rem;
}

.audience-row__index span {
  width: 3.5rem;
  height: 3.5rem;
  border-color: rgba(207, 173, 79, 0.58);
  box-shadow: 0 12px 35px rgba(134, 106, 30, 0.14);
}

.audience-row__content h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
}

.audience-row__content > p {
  max-width: 52rem;
  line-height: 1.72;
}

.offer-list {
  margin-top: 3rem;
}

.offer-item {
  padding-block: 1.55rem;
}

.offer-item__icon {
  width: 3.25rem;
  height: 3.25rem;
}

.steps {
  margin-top: 3rem;
  counter-reset: worix-step;
}

.step {
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
}

.step__num {
  position: absolute;
  top: 1rem;
  right: 1.3rem;
  color: rgba(16, 24, 33, 0.08);
  font-size: 3.5rem;
  line-height: 1;
}

.portal-autogestion {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: stretch;
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(200, 166, 70, 0.32);
  border-left: 4px solid var(--login-accent);
  border-radius: 0 var(--radius-md, 22px) var(--radius-md, 22px) 0;
  background: linear-gradient(110deg, rgba(200, 166, 70, 0.12), rgba(255, 255, 255, 0.92) 42%);
}

.portal-autogestion__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
}

.portal-autogestion__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(200, 166, 70, 0.18);
  color: var(--login-accent-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-autogestion__badge i {
  font-size: 0.7rem;
}

.portal-autogestion__title {
  margin: 0;
  color: var(--login-text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.portal-autogestion__lead {
  margin: 0;
  max-width: 34rem;
  color: var(--login-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
}

.portal-autogestion__points {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border-left: 1px solid rgba(200, 166, 70, 0.28);
}

.portal-autogestion__points li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-autogestion__points i {
  margin-top: 0.15rem;
  color: var(--login-accent-dark);
  font-size: 0.85rem;
  text-align: center;
}

.portal-autogestion__points div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.portal-autogestion__points strong {
  color: var(--login-text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.portal-autogestion__points span {
  color: var(--login-muted);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .portal-autogestion {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portal-autogestion__points {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(200, 166, 70, 0.28);
  }
}

#ingresar {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.cta-block {
  padding: clamp(2.75rem, 6vw, 5rem);
  border: 1px solid rgba(207, 173, 79, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(238, 212, 119, 0.25), transparent 18rem),
    linear-gradient(135deg, #fff, #f7f4e9);
  box-shadow: var(--shadow-soft);
}

.cta-block .section__kicker {
  justify-content: center;
}

.site-footer {
  padding-block: 2.25rem;
  background: #03070c;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-nav__links {
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(3, 10, 18, 0.98);
  }

  .site-nav__links a {
    padding-block: 1rem;
    font-size: 1rem;
  }

  .benefit {
    min-height: 0;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 4.6rem;
  }

  .container,
  .site-nav__inner,
  .hero__inner,
  .site-footer__inner {
    width: min(100% - 2rem, 1200px);
  }

  .hero {
    min-height: 47rem;
    padding-bottom: 3.5rem;
    background-position: 62% center;
  }

  .hero::before {
    background-size: 48px 48px;
  }

  .hero__content {
    text-align: left;
  }

  .hero__eyebrow {
    font-size: 0.66rem;
  }

  .hero__title-light {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .hero__title-bold {
    font-size: clamp(2.7rem, 13.6vw, 4rem);
  }

  .hero__tagline {
    font-size: 1.08rem;
  }

  .hero__ctas {
    display: grid;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .section {
    padding-block: 4.5rem;
  }

  .section__title {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .cta-block {
    padding: 2.5rem 1.35rem;
    border-radius: var(--radius-md);
  }

  .cta-block__actions {
    display: grid;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* —— Animated product workflow —— */
@media (min-width: 1081px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(28rem, 0.96fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
  }

  .hero__title-light {
    font-size: clamp(3.8rem, 5.7vw, 6rem);
  }

  .hero__title-bold {
    font-size: clamp(3rem, 4.75vw, 5rem);
  }
}

.workflow-demo {
  position: relative;
  z-index: 2;
  width: 100%;
  perspective: 1200px;
}

.workflow-demo__window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(245, 248, 250, 0.97);
  color: var(--login-text);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(238, 212, 119, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.75);
  transform: rotateY(-3deg) rotateX(1deg);
  transform-origin: center right;
  animation: workflowFloat 7s ease-in-out infinite;
}

.workflow-demo__glow {
  position: absolute;
  z-index: -1;
  inset: 12% -8% -8% 16%;
  border-radius: 50%;
  background: rgba(207, 173, 79, 0.28);
  filter: blur(48px);
  animation: workflowGlow 7s ease-in-out infinite;
}

.workflow-demo__bar {
  height: 2.8rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 0.9rem;
  border-bottom: 1px solid #e5e9ed;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.55rem;
}

.workflow-demo__dots {
  display: flex;
  gap: 0.3rem;
}

.workflow-demo__dots i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #d4d9de;
}

.workflow-demo__dots i:first-child {
  background: #df776d;
}

.workflow-demo__dots i:nth-child(2) {
  background: #dfbd61;
}

.workflow-demo__dots i:last-child {
  background: #69b887;
}

.workflow-demo__address {
  min-width: 10rem;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  background: #f2f4f6;
  color: #818a94;
  text-align: center;
}

.workflow-demo__address i {
  margin-right: 0.25rem;
  color: #a4abb2;
}

.workflow-demo__live {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #69737d;
  font-weight: 700;
}

.workflow-demo__live i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #43b877;
  box-shadow: 0 0 0 4px rgba(67, 184, 119, 0.12);
}

.workflow-demo__app {
  min-height: 28rem;
  display: grid;
  grid-template-columns: 3.35rem minmax(0, 1fr);
}

.workflow-demo__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  background: #07111d;
  color: rgba(255, 255, 255, 0.34);
}

.workflow-demo__sidebar > i {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.72rem;
}

.workflow-demo__sidebar > i.is-active {
  background: rgba(238, 212, 119, 0.14);
  color: var(--login-accent-on-dark);
}

.workflow-demo__mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #efd77f, #ae8527);
  color: #07111d;
  font-size: 0.85rem;
  font-weight: 700;
}

.workflow-demo__content {
  min-width: 0;
  padding: 1.35rem;
}

.workflow-demo__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workflow-demo__heading > div {
  display: grid;
  gap: 0.15rem;
}

.workflow-demo__heading span,
.workflow-demo__company small,
.workflow-demo__file small {
  color: #87909a;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.workflow-demo__heading strong {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.workflow-demo__avatar {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid #dfe4e8;
  border-radius: 50%;
  background: #fff;
  color: var(--login-accent-dark) !important;
  font-size: 0.58rem !important;
  letter-spacing: 0 !important;
}

.workflow-demo__company {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding: 0.85rem;
  border: 1px solid #e3e7eb;
  border-radius: 14px;
  background: #fff;
}

.workflow-demo__company-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(207, 173, 79, 0.13);
  color: var(--login-accent-dark);
  font-size: 0.78rem;
}

.workflow-demo__company > div {
  min-width: 0;
  display: grid;
}

.workflow-demo__company strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-demo__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  border-radius: 99px;
  background: rgba(47, 158, 103, 0.1);
  color: #287d55;
  font-size: 0.55rem;
  font-weight: 700;
}

.workflow-demo__document {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(207, 173, 79, 0.34);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #fdfbf5);
  box-shadow: 0 12px 35px rgba(7, 17, 29, 0.08);
}

.workflow-demo__document::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(238, 212, 119, 0);
  animation: documentConfirmed 9s ease-in-out infinite;
}

.workflow-demo__paper {
  position: relative;
  width: 3.1rem;
  height: 4rem;
  overflow: hidden;
  padding: 0.6rem 0.45rem;
  border: 1px solid #dce1e5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(7, 17, 29, 0.08);
  animation: documentEnter 9s ease-in-out infinite;
}

.workflow-demo__pdf {
  display: block;
  margin-bottom: 0.45rem;
  color: #c44e47;
  font-size: 0.43rem;
  font-weight: 700;
}

.workflow-demo__paper > i {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.28rem;
  border-radius: 2px;
  background: #dfe4e8;
}

.workflow-demo__paper > i:nth-of-type(2) {
  width: 72%;
}

.workflow-demo__paper > i:nth-of-type(4) {
  width: 58%;
}

.workflow-demo__scan {
  position: absolute;
  right: 0;
  left: 0;
  top: -0.35rem;
  height: 0.35rem;
  background: linear-gradient(180deg, transparent, rgba(207, 173, 79, 0.75));
  box-shadow: 0 4px 10px rgba(207, 173, 79, 0.48);
  opacity: 0;
  animation: documentScan 9s ease-in-out infinite;
}

.workflow-demo__file {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.workflow-demo__file strong {
  overflow: hidden;
  color: #27313b;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-demo__file > span {
  color: #98a0a9;
  font-size: 0.55rem;
}

.workflow-demo__states {
  position: relative;
  width: 5.7rem;
  height: 1.75rem;
}

.workflow-demo__states .state {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 99px;
  font-size: 0.5rem;
  font-weight: 700;
  opacity: 0;
}

.state--upload {
  background: rgba(53, 111, 158, 0.1);
  color: #356f9e;
  animation: stateUpload 9s infinite;
}

.state--check {
  background: rgba(207, 173, 79, 0.15);
  color: #84671a;
  animation: stateCheck 9s infinite;
}

.state--check i {
  animation: stateSearch 1s ease-in-out infinite;
}

.state--approved {
  background: rgba(47, 158, 103, 0.12);
  color: #287d55;
  animation: stateApproved 9s infinite;
}

.workflow-demo__progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 2.3rem;
}

.workflow-demo__progress-line {
  position: absolute;
  top: 0.85rem;
  right: 16%;
  left: 16%;
  height: 2px;
  overflow: hidden;
  background: #dfe4e8;
}

.workflow-demo__progress-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #cfad4f, #3aaf79);
  transform: scaleX(0);
  transform-origin: left;
  animation: workflowProgress 9s ease-in-out infinite;
}

.workflow-demo__step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: #a4abb2;
  text-align: center;
}

.workflow-demo__step > i {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border: 2px solid #e1e5e8;
  border-radius: 50%;
  background: #f8f9fa;
  font-size: 0.55rem;
  transition: color 0.2s ease;
}

.workflow-demo__step span {
  max-width: 6.5rem;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.workflow-demo__step.step--one {
  animation: stepOne 9s infinite;
}

.workflow-demo__step.step--two {
  animation: stepTwo 9s infinite;
}

.workflow-demo__step.step--three {
  animation: stepThree 9s infinite;
}

@keyframes workflowFloat {
  0%, 100% { transform: rotateY(-3deg) rotateX(1deg) translateY(0); }
  50% { transform: rotateY(-1deg) rotateX(0deg) translateY(-8px); }
}

@keyframes workflowGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes documentEnter {
  0%, 7% { opacity: 0; transform: translateY(-18px) scale(0.88); }
  14%, 90% { opacity: 1; transform: translateY(0) scale(1); }
  96%, 100% { opacity: 0; transform: translateY(8px) scale(0.96); }
}

@keyframes documentScan {
  0%, 27% { top: -0.35rem; opacity: 0; }
  31% { opacity: 1; }
  56% { top: 100%; opacity: 1; }
  60%, 100% { top: 100%; opacity: 0; }
}

@keyframes documentConfirmed {
  0%, 58%, 100% { box-shadow: inset 0 0 0 1px rgba(47, 158, 103, 0); }
  66%, 88% { box-shadow: inset 0 0 0 2px rgba(47, 158, 103, 0.5); }
}

@keyframes stateUpload {
  0%, 6% { opacity: 0; transform: translateY(5px); }
  10%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-5px); }
}

@keyframes stateCheck {
  0%, 30% { opacity: 0; transform: translateY(5px); }
  35%, 59% { opacity: 1; transform: translateY(0); }
  64%, 100% { opacity: 0; transform: translateY(-5px); }
}

@keyframes stateApproved {
  0%, 61% { opacity: 0; transform: scale(0.8); }
  67%, 90% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.9); }
}

@keyframes stateSearch {
  0%, 100% { transform: translateX(-1px); }
  50% { transform: translateX(2px); }
}

@keyframes workflowProgress {
  0%, 12% { transform: scaleX(0); }
  35% { transform: scaleX(0.08); }
  61% { transform: scaleX(0.55); }
  72%, 92% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes stepOne {
  0%, 10% { color: #a4abb2; }
  16%, 92% { color: #866a1e; }
  100% { color: #a4abb2; }
}

@keyframes stepTwo {
  0%, 35% { color: #a4abb2; }
  42%, 92% { color: #866a1e; }
  100% { color: #a4abb2; }
}

@keyframes stepThree {
  0%, 62% { color: #a4abb2; }
  69%, 92% { color: #287d55; }
  100% { color: #a4abb2; }
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-block: 5rem 1rem;
  }

  .workflow-demo {
    max-width: 38rem;
    margin-top: 4rem;
  }
}

@media (max-width: 600px) {
  .workflow-demo {
    margin-top: 2.75rem;
  }

  .workflow-demo__window {
    border-radius: 18px;
    transform: none;
    animation-name: workflowFloatMobile;
  }

  .workflow-demo__bar {
    grid-template-columns: auto 1fr;
  }

  .workflow-demo__address {
    justify-self: end;
    min-width: 8.5rem;
  }

  .workflow-demo__live {
    display: none;
  }

  .workflow-demo__app {
    min-height: 23.5rem;
    grid-template-columns: 2.7rem minmax(0, 1fr);
  }

  .workflow-demo__sidebar {
    gap: 1rem;
  }

  .workflow-demo__sidebar > i {
    width: 1.8rem;
  }

  .workflow-demo__content {
    padding: 1rem 0.8rem;
  }

  .workflow-demo__company {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .workflow-demo__verified {
    display: none;
  }

  .workflow-demo__document {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.8rem;
  }

  .workflow-demo__states {
    grid-column: 1 / -1;
    width: 100%;
  }

  .workflow-demo__progress {
    margin-top: 1.4rem;
  }

  .workflow-demo__step span {
    font-size: 0.44rem;
  }
}

@keyframes workflowFloatMobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Product demo chrome — mirrors the real Worix interface */
@media (min-width: 1081px) {
  .hero__inner {
    grid-template-columns: minmax(0, 0.88fr) minmax(32rem, 1.12fr);
    gap: clamp(3.75rem, 5vw, 5rem);
  }

  .hero__title-bold {
    font-size: clamp(2.85rem, 4.25vw, 4.7rem);
  }
}

.workflow-demo__window {
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  transform: none;
  animation-name: workflowDesktopFloat;
}

.workflow-demo__bar {
  height: 2.35rem;
  display: flex;
  justify-content: space-between;
  padding: 0 0.7rem;
  border-bottom: 0;
  background: #1d1d1d;
  color: #fff;
}

.workflow-demo__nav-start,
.workflow-demo__nav-user {
  display: flex;
  align-items: center;
}

.workflow-demo__nav-start {
  gap: 0.65rem;
  font-size: 0.62rem;
}

.workflow-demo__wordmark {
  width: 2.75rem;
  height: auto;
  object-fit: contain;
}

.workflow-demo__nav-user {
  gap: 0.38rem;
  font-size: 0.46rem;
}

.workflow-demo__nav-user strong {
  font-size: 0.48rem;
  white-space: nowrap;
}

.workflow-demo__nav-user > .fa-chevron-down {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.36rem;
}

.workflow-demo__user-icon,
.workflow-demo__logout {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.workflow-demo__user-icon {
  color: var(--login-accent-on-dark);
}

.workflow-demo__logout {
  margin-left: 0.32rem;
  color: rgba(255, 255, 255, 0.72);
}

.workflow-demo__app {
  min-height: 25rem;
  display: block;
  background: #fbfbfb;
}

.workflow-demo__content {
  padding: 1rem 1.25rem 1.5rem;
}

.workflow-demo__heading {
  position: relative;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding-bottom: 0.62rem;
}

.workflow-demo__heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--login-accent) 0 34%, #e7e7e7 34%);
}

.workflow-demo__heading > strong {
  font-size: 0.92rem;
  letter-spacing: -0.035em;
}

.workflow-demo__page-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(207, 173, 79, 0.16);
  color: var(--login-accent-dark) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0 !important;
}

.workflow-demo__company {
  margin-top: 0.85rem;
}

.workflow-demo__progress {
  margin-top: 1.65rem;
}

@keyframes workflowDesktopFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 600px) {
  .workflow-demo__bar {
    display: flex;
    padding-inline: 0.6rem;
  }

  .workflow-demo__nav-user strong,
  .workflow-demo__nav-user > .fa-chevron-down {
    display: none;
  }

  .workflow-demo__app {
    min-height: 22.5rem;
  }

  .workflow-demo__content {
    padding: 0.85rem 0.7rem 1.15rem;
  }
}
