/* ==========================================================================
   SYSCAAM — sistema visual
   Paleta: tinta (ink) + papel (paper) + verde contable + ámbar de sello
   Tipografía: Space Grotesk (display) / Inter (texto) / IBM Plex Mono (datos)
   ========================================================================== */

:root {
  --ink:        #0A1420;
  --ink-2:      #122238;
  --ink-line:   #24374F;

  --paper:      #F1EFE3;
  --paper-2:    #E9E5D4;
  --card:       #FFFFFF;
  --line:       #DEDACB;

  --text:       #10202F;
  --text-muted: #5B6570;

  --green:      #1E7A56;
  --green-deep: #123F2C;
  --amber:      #B9862B;
  --red:        #B54438;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Inter', -apple-system, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 5%;
}

/* --------------------------------------------------------------------
   Sello / stamp — el elemento distintivo del sistema (papelería, folios)
   -------------------------------------------------------------------- */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  padding: 0.32em 0.75em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  white-space: nowrap;
}
.stamp--light  { color: #BFD9CB; }
.stamp--green  { color: var(--green); }
.stamp--amber  { color: var(--amber); }
.stamp--red    { color: var(--red); }

/* --------------------------------------------------------------------
   Header
   -------------------------------------------------------------------- */
header {
  background-color: var(--card);
  padding: 0.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  height: 96px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { display: flex; align-items: center; }
.logo img { height: 76px; width: auto; display: block; }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
nav a:hover { color: var(--ink); }

nav .nav-current {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* --------------------------------------------------------------------
   Hero (banda de tinta)
   -------------------------------------------------------------------- */
.hero {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.028) 0px,
      rgba(255,255,255,0.028) 1px,
      transparent 1px,
      transparent 27px
    ),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #E8EAED;
  padding: 4.5rem 5% 4rem;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero .stamp { margin-bottom: 1.5rem; }

.hero h1 {
  font-size: 2.85rem;
  color: #FAFAF7;
  margin-bottom: 1.25rem;
}

.hero p.lede {
  font-size: 1.15rem;
  color: #B8C0C9;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--green); color: #F5FBF7; }
.btn--primary:hover { background: #22916A; }

.btn--ghost { background: transparent; color: #E8EAED; border-color: #3A4C63; }
.btn--ghost:hover { border-color: #6B7E93; }

.btn--dark { background: var(--ink); color: #F5F4EE; }
.btn--dark:hover { background: #1B2C42; }

.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }

/* Pipeline — diagrama de ciclo de vida (secuencia real, por eso se numera) */
.pipeline {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 0;
}
.pipeline-step .node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0 0.6rem;
}
.pipeline-step .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--green);
  border: 2px solid #BFD9CB;
}
.pipeline-step .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C7CDD3;
  text-align: center;
}
.pipeline-line {
  width: 46px;
  height: 1px;
  background: repeating-linear-gradient(to right, #3A4C63 0, #3A4C63 4px, transparent 4px, transparent 8px);
  margin-top: 5px;
}

/* --------------------------------------------------------------------
   Secciones generales sobre papel
   -------------------------------------------------------------------- */
.section { padding: 4.5rem 5%; }
.section--tight { padding: 3rem 5%; }
.section--card { background: var(--card); }

.section-intro { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-intro .stamp { margin-bottom: 1.1rem; }
.section-intro h2 { font-size: 2.1rem; margin-bottom: 0.75rem; }
.section-intro p { color: var(--text-muted); font-size: 1.05rem; }

/* --------------------------------------------------------------------
   Productos
   -------------------------------------------------------------------- */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
}

.card-producto {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-producto:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -18px rgba(10, 20, 32, 0.28);
  border-color: #CFC9B4;
}
.card-producto.is-muted {
  background: var(--paper-2);
  border-style: dashed;
}
.card-producto.is-muted:hover { transform: none; box-shadow: none; }

.card-producto .folio {
  align-self: flex-start;
  margin-bottom: 1.1rem;
}

.card-producto h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.card-producto p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-producto .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 0.65em; }

/* --------------------------------------------------------------------
   Franja de valores (tira de 3 puntos)
   -------------------------------------------------------------------- */
.valores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.valor .mono-num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.6rem;
}
.valor h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.valor p { color: var(--text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------
   Filas de funcionalidad con capturas (usado en detalle de producto)
   -------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.25rem 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row .text .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--amber);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.75rem;
}
.feature-row .text h3 { font-size: 1.55rem; margin-bottom: 0.9rem; }
.feature-row .text p { color: var(--text-muted); margin-bottom: 1.1rem; }
.feature-row .text ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.feature-row .text ul li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text);
  font-size: 0.96rem;
}
.feature-row .text ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 2px;
}
.feature-row.reverse .text  { order: 2; }
.feature-row.reverse .visual { order: 1; }

/* Marco tipo ventana para las capturas de pantalla */
.screenshot-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 24px 50px -28px rgba(10, 20, 32, 0.45);
}
.screenshot-frame .bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #EAE6D6;
  border-bottom: 1px solid var(--line);
}
.screenshot-frame .bar span { width: 9px; height: 9px; border-radius: 50%; display: block; }
.screenshot-frame .bar span:nth-child(1) { background: #D9776A; }
.screenshot-frame .bar span:nth-child(2) { background: var(--amber); }
.screenshot-frame .bar span:nth-child(3) { background: var(--green); }
.screenshot-frame img { display: block; width: 100%; height: auto; }

.frame-caption {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.frame-caption::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--green);
  display: inline-block;
  border-radius: 1px;
}

/* --------------------------------------------------------------------
   Cierre / síntesis "de punta a punta"
   -------------------------------------------------------------------- */
.cierre {
  background: var(--ink);
  color: #E8EAED;
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 1080px;
  margin: 0 auto;
}
.cierre h2 { color: #FAFAF7; font-size: 1.8rem; margin-bottom: 0.6rem; }
.cierre > p { color: #B8C0C9; max-width: 640px; margin-bottom: 2.25rem; }
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #DCE0E4;
}
.checklist li .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(30,122,86,0.25);
  border: 1px solid var(--green);
  color: #7FD3AC;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
}

/* --------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------- */
.breadcrumb {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.25rem 5% 0;
}
.breadcrumb a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--ink); }

/* --------------------------------------------------------------------
   Formulario de contacto
   -------------------------------------------------------------------- */
.contacto-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.form-group { margin-bottom: 1.4rem; text-align: left; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #CBC5AF;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 122, 86, 0.15);
}

.btn-enviar {
  background-color: var(--ink);
  color: #F5F4EE;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  transition: background 0.25s ease;
}
.btn-enviar:hover { background: var(--green-deep); }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
footer {
  background-color: var(--ink);
  color: #AEB6BF;
  padding: 3rem 5% 2rem;
  border-top: 3px solid var(--green);
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 1.5rem;
}
.footer-brand .mono { color: #7FD3AC; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-brand p { max-width: 320px; margin-top: 0.6rem; font-size: 0.92rem; color: #93A0AC; }
.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-links div h5 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7FD3AC;
  margin-bottom: 0.8rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { text-decoration: none; color: #AEB6BF; font-size: 0.9rem; }
.footer-links a:hover { color: #F5F4EE; }
footer .fine-print { text-align: center; font-size: 0.85rem; color: #6B7684; }

/* --------------------------------------------------------------------
   WhatsApp flotante
   -------------------------------------------------------------------- */
.whatsapp-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background-color: #25D366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(10, 20, 32, 0.35);
  z-index: 1000;
  transition: transform 0.25s ease;
  text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.08); }
.whatsapp-btn svg { width: 32px; height: 32px; fill: white; }

/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature-row .text, .feature-row.reverse .text { order: 1; }
  .feature-row .visual, .feature-row.reverse .visual { order: 2; }
  .cierre { padding: 2.25rem 1.5rem; }
}

@media (max-width: 640px) {
  header { height: auto; padding: 0.75rem 6%; flex-wrap: wrap; gap: 0.75rem; }
  .logo img { height: 52px; }
  nav ul { gap: 1.1rem; }
  nav a { font-size: 0.85rem; }
  .hero { padding: 3rem 6% 2.5rem; }
  .hero h1 { font-size: 2.05rem; }
  .hero p.lede { font-size: 1rem; }
  .pipeline-line { width: 22px; }
  .section, .section--tight { padding: 3rem 6%; }
  .section-intro h2 { font-size: 1.6rem; }
  .footer-inner { flex-direction: column; }
}
