/* V-Sentry landing (F6.6). No JavaScript, no external resources: everything is served from this
   origin under a strict CSP. Brand colors come from the logo (magenta #b01f63, neutral grays) and
   are the same steps as the SPA's palette (frontend/src/app/theme.ts): 500 in light mode, 300 in
   dark mode, so the landing and the system look like one product. */
:root {
  --brand: #b01f63; /* brand.500 */
  --brand-strong: #990a53; /* brand.600 */
  --brand-soft: #f9e9ed; /* brand.50 */
  --ink: #262626;
  --ink-muted: #525252;
  --surface: #fff;
  --surface-alt: #f5f5f5;
  --line: #e5e5e5;
  --danger: #b3261e;
  --success: #1e6b3a;
  --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #e587a7; /* brand.300 */
    --brand-strong: #f4b4c8; /* brand.200 */
    --brand-soft: #3b001c; /* brand.950 */
    --ink: #f5f5f5;
    --ink-muted: #a3a3a3;
    --surface: #171717;
    --surface-alt: #262626;
    --line: #404040;
    --danger: #ff8a80;
    --success: #7bd59a;
  }
  /* The wordmark is dark gray on transparent: give it a light plate in dark mode. */
  .brand img,
  .bottom img {
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--brand);
}
a:hover {
  color: var(--brand-strong);
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h3 {
  font-size: 1.125rem;
}
section {
  padding: 4rem 0;
  scroll-margin-top: 4.5rem;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.center {
  text-align: center;
}
.band {
  background: var(--surface-alt);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 1rem;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.top nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.top nav a:not(.button):hover {
  color: var(--brand);
}
@media (max-width: 52rem) {
  .top {
    position: static;
  }
  .top nav a:not(.button) {
    display: none;
  }
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .button,
  .button:hover {
    color: #171717;
  }
}
.button.ghost {
  background: transparent;
  color: var(--brand);
}
.button.ghost:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.button.small {
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0;
  background: linear-gradient(160deg, var(--brand-soft), var(--surface) 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
@media (max-width: 52rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.eyebrow {
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 38rem;
}
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.6rem;
}
.flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
}
.flow li::before {
  content: counter(step);
  grid-row: span 2;
  align-self: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.flow span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Sections */
.section-lead {
  color: var(--ink-muted);
  max-width: 44rem;
  margin: 0 0 2rem;
}
.audience {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.audience li {
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.audience strong {
  display: block;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}
.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 40rem) {
  .cards.two {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cards article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
  background: var(--surface);
}
.cards article h3 {
  color: var(--brand);
}
.cards article p {
  color: var(--ink-muted);
  margin-top: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0;
}
.metrics div {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-top: 4px solid var(--brand);
}
.metrics dt {
  font-weight: 700;
}
.metrics dd {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 0.75rem 2rem;
}
@media (max-width: 30rem) {
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }
}
.checks li {
  position: relative;
  padding-left: 1.75rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--brand);
  transform: rotate(45deg);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3rem;
}
@media (max-width: 52rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}
.note {
  font-weight: 600;
}
form {
  display: grid;
  gap: 1rem;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink-muted);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 2px;
}
.field.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}
.field.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--brand);
}
.field.check label {
  font-weight: 400;
  margin: 0;
}
.field.check .field-error {
  grid-column: 2;
}
.field-error {
  color: var(--danger);
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
form .button {
  justify-self: start;
}
.notice {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 2px solid;
}
.notice p {
  margin: 0;
}
.notice.error {
  border-color: var(--danger);
  color: var(--danger);
}
.notice.success {
  border-color: var(--success);
}
.notice.success h3 {
  color: var(--success);
}
.small-print {
  padding: 2.5rem 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.small-print h2 {
  font-size: 1.125rem;
  color: var(--ink);
}

/* Footer */
.bottom {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.bottom-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bottom-row a {
  margin-left: auto;
}

/* Sign-in ("Ingresar") */
.sign-in {
  padding: 4rem 0 5rem;
  min-height: 60vh;
}
.wrap.narrow {
  max-width: 34rem;
}
.sign-in h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}
.hint {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0.4rem 0 0;
}
.aside {
  margin-top: 2rem;
  color: var(--ink-muted);
}
@media (max-width: 52rem) {
  .top nav {
    gap: 0.5rem;
  }
}
