/*
 * La portada de fac-360.com, transcrita de `Fac-360 Landing.dc.html`.
 *
 * La paleta es la del diseño, literal: crema y verde profundo, que no es la de la consola —
 * morado sobre gris — y no debería serlo. Una portada y una herramienta de trabajo tienen dos
 * trabajos distintos, y el lienzo las separó a propósito.
 *
 * SIN NINGUNA PETICIÓN A OTRO ORIGEN. El diseño pide Bricolage Grotesque e Instrument Sans desde
 * Google Fonts; van por la pila del sistema, igual que en la consola. Aquí la razón es menos
 * grave — una fuente que no carga es un problema estético, no una consola inservible — pero se
 * suma otra: esta página la abre gente que todavía no nos conoce, y no hay por qué contarle su
 * visita a un tercero antes de que decida nada.
 */

:root {
  --cream: #f5f1e8;
  --ink: #171a16;
  --body: #5c6357;
  --muted: #8a8f82;

  --green: #0f3d2e;
  --green-hi: #16543f;
  --green-2: #2c6249;
  --green-line: #245140;
  --mint: #8fb8a4;
  --mint-2: #bfd3c7;
  --mint-bg: #e4ede5;

  --line: #e2dcce;
  --line-2: #e9e3d6;
  --surface: #ffffff;
  --surface-2: #f0ebdf;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:
    "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* El display del diseño es Bricolage Grotesque. Sin CDN, la pila del sistema con el mismo peso. */
  --display: var(--sans);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: var(--green-hi);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.mono {
  font-family: var(--mono);
}

/* -- Cabecera ------------------------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 241, 232, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand-mark {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--green);
}
.brand-word {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--body);
}
.top nav a {
  color: var(--body);
}
.top nav a:hover {
  color: var(--ink);
}
.grow {
  flex: 1;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.top-actions .plain {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
}

/* -- Botones -------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn.small {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
}
.btn.solid {
  background: var(--green);
  color: var(--cream);
}
.btn.solid:hover {
  background: var(--green-hi);
  color: var(--cream);
}
.btn.line {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn.line:hover {
  border-color: #cfc7b4;
  color: var(--ink);
}
.btn.onGreen {
  background: var(--cream);
  color: var(--green);
}
.btn.onGreen:hover {
  background: #ffffff;
  color: var(--green);
}
.btn.lineOnGreen {
  background: transparent;
  border-color: var(--green-line);
  color: var(--cream);
}
.btn.lineOnGreen:hover {
  border-color: var(--mint);
  color: #ffffff;
}

/* -- Tipografía de sección ------------------------------------------------------------------ */

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.eyebrow.onGreen {
  color: var(--mint);
}
h1 {
  margin: 24px 0 0;
  font-family: var(--display);
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.99;
  text-wrap: pretty;
}
h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: pretty;
}
h3 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.lede {
  margin: 24px 0 0;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--body);
  max-width: 520px;
  text-wrap: pretty;
}
.section-note {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}
.section-note.onGreen {
  color: var(--mint-2);
}

section {
  padding: 88px 0 96px;
}
section.tight {
  padding: 64px 0 72px;
}
.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px 64px;
  align-items: end;
}

/* -- Héroe ---------------------------------------------------------------------------------- */

.hero {
  padding: 92px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 56px 72px;
  align-items: start;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 27px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--mint-bg);
  color: var(--green);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  width: fit-content;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* La maqueta de la consola que acompaña al héroe. */
.shot {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(23, 26, 22, 0.1);
  overflow: hidden;
}
.shot-bar {
  height: 6px;
  background: var(--green);
}
.shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface-2);
}
.shot-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.shot-dot {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--green);
}
.shot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--surface-2);
}
.shot-row:last-child {
  border-bottom: 0;
}
.shot-serie {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
}
.shot-kind {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

/* Los chips de estado, con el mismo reparto que la consola. */
.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.chip.ok {
  background: #e6efe4;
  color: #3f5c39;
  border: 1px solid #cfe0cb;
}
.chip.obs {
  background: #f6ead6;
  color: #6e5320;
  border: 1px solid #e8d3ae;
}
.chip.proc {
  background: #eef0f2;
  color: #4a5666;
  border: 1px solid #e0e4e8;
}
.chip.amb {
  background: #edeaf7;
  color: #2e1d6e;
  border: 1.5px solid #4a3e86;
}

/* -- Bloque verde --------------------------------------------------------------------------- */

.green {
  background: var(--green);
  color: var(--cream);
}
.green h2,
.green h3 {
  color: var(--cream);
}

/*
 * Las separaciones van en las CELDAS, no en el fondo de la rejilla.
 *
 * El diseño las dibuja con `gap: 1px` sobre un contenedor de color, que es el truco de siempre y
 * funciona cuando el numero de tarjetas llena las filas exactas. Con seis tarjetas en cuatro
 * columnas la ultima fila queda a medias y ese fondo asoma como un bloque de color sin contenido.
 * Con bordes por celda, lo que no existe no se pinta.
 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 56px;
  background: var(--green);
  border: 1px solid var(--green-line);
  border-radius: 18px;
  overflow: hidden;
}
.step {
  padding: 30px 28px 34px;
  background: var(--green);
  border-right: 1px solid var(--green-line);
  border-bottom: 1px solid var(--green-line);
}
.step p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mint-2);
}
.step .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mint);
}

/* -- Tarjetas ------------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.card {
  padding: 28px 26px 30px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.card p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}
.card .num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 44px 64px;
  align-items: center;
  margin-top: 44px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  gap: 11px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}
.facts .tick {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--mint-bg);
  color: var(--green);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.facts strong {
  color: var(--ink);
  font-weight: 600;
}

/* -- Preguntas ------------------------------------------------------------------------------ */

.faq {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq .plus {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.faq details[open] .plus {
  transform: rotate(45deg);
}
.faq p {
  margin: 0 0 24px;
  padding-right: 60px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
  max-width: 62em;
}

/* -- Cierre y pie --------------------------------------------------------------------------- */

.close {
  border-radius: 24px;
  background: var(--green);
  color: var(--cream);
  padding: 66px 56px 70px;
  text-align: center;
}
.close h2 {
  margin: 0 auto;
  max-width: 18em;
}
.close p {
  margin: 20px auto 0;
  max-width: 40em;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--mint-2);
}
.close .hero-actions {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
}
.foot-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-grid a {
  color: var(--body);
}

/* -- Pantallas estrechas -------------------------------------------------------------------- */

@media (max-width: 760px) {
  .wrap {
    padding: 0 22px;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 31px;
  }
  section {
    padding: 60px 0 64px;
  }
  .hero {
    padding: 56px 0 24px;
  }
  .top nav {
    display: none;
  }
  .close {
    padding: 46px 26px 50px;
  }
  .faq p {
    padding-right: 0;
  }
}
