@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1520;
  --panel: #131f2c;
  --panel-soft: #0e1926;
  --text: #e7edf3;
  --muted: #93a5b7;
  --line: #243342;
  --primary: #d9a64c;
  --primary-hover: #f0c06e;
  --primary-soft: rgba(217, 166, 76, 0.14);
  --primary-soft-border: rgba(217, 166, 76, 0.4);
  --navy: #001a34;
  --info: #7fb2e5;
  --shadow-soft: 0 7px 20px rgba(0, 0, 0, 0.32);
  --nav-h: 76px;
  --edge: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Public Sans", Arial, Helvetica, sans-serif;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.eyebrow {
  font-family: "Public Sans", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
}

/* Contenedor compartido: todo el contenido cuelga del mismo borde
   izquierdo, en vez de quedar centrado bloque por bloque. */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* ── Botones ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: "Public Sans", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--primary);
  color: #1a1305;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--outline {
  border-color: var(--primary-soft-border);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  padding: 10px 18px;
}

.btn--ghost:hover {
  background: var(--panel-soft);
}

/* ── Nav ─────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11, 21, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Public Sans", Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 16px;
}

.site-nav__brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav__links a:hover {
  color: var(--text);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  cursor: pointer;
  padding: 0;
}

.site-nav__toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text);
  border-radius: 2px;
}

/* ── Layout genérico: todo alineado a la izquierda ──────────────── */
.section {
  padding: 88px var(--edge);
}

.section--tint {
  background: var(--panel-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 0;
  text-align: left;
}

.section__head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 14px;
}

.section__lead {
  font-size: 16px;
  max-width: 56ch;
}

.section__head--pending .pill {
  margin-bottom: 14px;
}

.section__head--pending .section__lead {
  margin-top: 14px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 84px var(--edge) 56px;
  background:
    radial-gradient(700px 420px at 85% -10%, rgba(217, 166, 76, 0.10), transparent 65%),
    radial-gradient(600px 380px at 0% 110%, rgba(127, 178, 229, 0.10), transparent 60%);
}

.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: 48px;
}

.hero__copy h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.14;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 17px;
  max-width: 48ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__graphic svg {
  width: 100%;
  height: auto;
}

/* ── Soluciones: lista, no tarjetas ──────────────────────────── */
.row-list {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.row-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.row-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.row-item__icon svg {
  width: 23px;
  height: 23px;
}

.row-item__body h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}

.row-item__body p {
  font-size: 14.5px;
  max-width: 62ch;
}

/* ── Cómo trabajamos ─────────────────────────────────────────── */
.steps {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}

.steps__item {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 2px solid var(--primary-soft-border);
}

.steps__num {
  font-family: "Public Sans", Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.steps__item h3 {
  font-size: 16.5px;
  color: var(--text);
}

.steps__item p {
  font-size: 14px;
}

/* ── Productos: filas, no tarjetas ───────────────────────────── */
.product-list {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.product-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.product-row__mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line);
}

.product-row__mark--muted {
  background: var(--panel-soft);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-row__mark--muted svg {
  width: 28px;
  height: 28px;
}

.product-row__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-row__tag--live {
  color: var(--info);
}

.product-row__tag--dev {
  color: var(--muted);
}

.product-row__body h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 10px;
}

.product-row__body p {
  font-size: 15px;
  max-width: 60ch;
  margin-bottom: 20px;
}

/* ── Próximamente (Quiénes somos) ────────────────────────────── */
.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-border);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Contacto: inputs con línea, sin caja alrededor ───────────── */
.contact {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.contact__copy h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 14px;
}

.contact__copy p {
  font-size: 15.5px;
  max-width: 40ch;
}

.contact__form {
  display: grid;
  gap: 22px;
  padding-top: 4px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.contact__form .btn {
  justify-self: start;
  margin-top: 8px;
}

.contact__status {
  min-height: 18px;
  font-size: 13.5px;
  color: var(--info);
}

.contact__status[data-state="error"] {
  color: #e17067;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px var(--edge) 32px;
  background: var(--panel-soft);
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-footer__brand strong {
  display: block;
  font-family: "Public Sans", Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.site-footer__brand span {
  font-size: 12.5px;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__copy {
  width: 100%;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* ── Animación en cascada al hacer scroll ───────────────────── */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

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

  .hero__graphic {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

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

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

  .product-row {
    grid-template-columns: 1fr;
  }

  .product-row__mark {
    margin-bottom: 6px;
  }
}

@media (max-width: 760px) {
  .site-nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px var(--edge) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .site-nav__links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open .site-nav__links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav__toggle {
    display: flex;
  }

  .site-nav__actions .btn--ghost {
    padding: 10px 14px;
    font-size: 13px;
  }

  .section {
    padding: 60px 20px;
  }

  .row-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
  }

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