/* automat.as — Cirujano de Procesos */
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@600;700;800&family=Syne:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --ink: #0b1220;
  --ink-soft: #1a2438;
  --paper: #f0f4f8;
  --paper-2: #e2e9f0;
  --line: #c8d3de;
  --muted: #4a5c70;
  --accent: #0f766e;
  --accent-bright: #14b8a6;
  --cta: #c2410c;
  --cta-hover: #f97316;
  --ok: #0f766e;
  --warn: #b45309;
  --radius: 2px;
  --max: 1120px;
  --font-brand: "Lexend", sans-serif;
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
}

/* —— Nav —— */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.nav__brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__brand:hover {
  color: var(--cta-hover);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--paper) 85%, transparent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--cta-hover);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, #1a4a4a 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, #1e3a5f 0%, transparent 50%),
    linear-gradient(165deg, #0b1220 0%, #132033 45%, #0f1a28 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent-bright) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent-bright) 12%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black 20%, transparent 75%);
  opacity: 0.45;
  animation: grid-drift 28s linear infinite;
  pointer-events: none;
}

@keyframes grid-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(48px, 48px); }
}

.hero__visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4% 8%;
  pointer-events: none;
}

.hero__visual svg {
  width: min(52vw, 560px);
  height: auto;
  opacity: 0.9;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 7rem 1.5rem 4.5rem;
}

.hero__brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 1.5rem;
  color: var(--paper);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--paper) 92%, var(--accent-bright));
}

.hero__lead {
  max-width: 38ch;
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.35rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--cta);
  color: #fff7ed;
}

.btn--primary:hover {
  background: var(--cta-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
}

.btn--ghost:hover {
  border-color: var(--cta-hover);
  color: var(--cta-hover);
}

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

.hero__trust {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  max-width: 42ch;
}

.hero__trust strong {
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  font-weight: 500;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.hero .reveal {
  transition-delay: 0.05s;
}

.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero .reveal:nth-child(5) { transition-delay: 0.45s; }

/* —— Sections —— */
.section {
  padding: 5rem 1.5rem;
}

.section--alt {
  background: var(--paper-2);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 22ch;
}

.section__lead {
  margin: 0 0 2.5rem;
  color: var(--muted);
  max-width: 52ch;
}

/* —— Pain —— */
.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pain-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.pain-list__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1.4;
}

.pain-list h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.pain-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9875rem;
}

/* —— Method —— */
.method {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.method__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 2rem 0 2rem 1.25rem;
  border-left: 2px solid var(--line);
  counter-increment: step;
}

.method__step::before {
  content: counter(step);
  position: absolute;
  left: -0.7rem;
  top: 2rem;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
}

.method__step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.method__step .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.method__step p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

@media (min-width: 720px) {
  .method {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 2px solid var(--line);
    padding-top: 2rem;
  }

  .method__step {
    border-left: none;
    padding: 0;
  }

  .method__step::before {
    position: static;
    margin-bottom: 1rem;
  }
}

/* —— Cases —— */
.cases {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .cases {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.case h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.case__metrics {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case__metric dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.case__metric dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.case__metric--after dd {
  color: var(--accent);
}

.case__arrow {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--line);
  font-size: 1.5rem;
}

.case p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

/* —— Services —— */
.services {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .service {
    grid-template-columns: 8rem 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.service__tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.35rem;
}

.service h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

.service__meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* —— About —— */
.about {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .about {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.about p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about p:last-child {
  margin-bottom: 0;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.stack li {
  position: relative;
}

.stack li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -0.75rem;
  color: var(--line);
}

/* —— CTA / Form —— */
.cta-block {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 1.5rem;
}

.cta-block .section__label {
  color: var(--accent-bright);
}

.cta-block .section__title {
  color: var(--paper);
  max-width: 18ch;
}

.cta-block .section__lead {
  color: color-mix(in srgb, var(--paper) 65%, transparent);
}

.cta-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 860px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ink-soft) 80%, transparent);
  color: var(--paper);
  width: 100%;
}

.form input::placeholder,
.form textarea::placeholder {
  color: color-mix(in srgb, var(--paper) 40%, transparent);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
}

.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%9ca3af' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.form textarea {
  min-height: 7rem;
  resize: vertical;
}

.form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 520px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.form__hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
  margin: 0;
}

.form__status {
  font-size: 0.875rem;
  margin: 0;
  min-height: 1.25em;
}

.form__status--ok {
  color: var(--accent-bright);
}

.form__status--err {
  color: #fb923c;
}

.scarcity {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
}

/* —— Footer —— */
.footer {
  padding: 2rem 1.5rem;
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 45%, transparent);
  font-size: 0.8125rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 10%, transparent);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  text-decoration: none;
}

.footer a:hover {
  color: var(--paper);
}

.footer__brand {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
}

/* —— Mobile hero visual —— */
@media (max-width: 719px) {
  .hero__visual {
    opacity: 0.35;
    justify-content: center;
    padding-top: 5rem;
    align-items: flex-start;
  }

  .hero__visual svg {
    width: 85vw;
  }

  .hero__content {
    padding-top: 9rem;
  }

  .hero__title {
    max-width: none;
  }
}
