/* =========================================================================
   NIMATECH — Estilos del sitio
   -------------------------------------------------------------------------
   Todos los colores de marca están definidos como variables CSS aquí abajo.
   Para cambiar la paleta completa del sitio, edita SOLO esta sección.
   ========================================================================= */

:root {
  --indigo: #5B4FE9;
  --indigo-dark: #3D33B0;
  --mint: #00C2A8;
  --ink: #0F0F14;
  --ink-card: #1B1B24;
  --gray: #5B5B66;
  --gray-light: #8A8A96;
  --light-gray: #F2F2F5;
  --card-light: #F6F6F9;
  --border-light: #E7E7EE;
  --white: #FFFFFF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 15, 20, 0.08);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.35);

  --container-w: 1160px;
}

/* ---------- Reset básico ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { position: relative; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utilidades ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--light { background: var(--white); color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 12px;
}
.section-subtitle {
  font-style: italic;
  color: var(--gray);
  font-size: 15px;
  max-width: 620px;
  margin-bottom: 48px;
}
.section--dark .section-subtitle { color: var(--gray-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--mint); color: var(--ink); }
.btn--primary:hover { box-shadow: 0 8px 24px rgba(0, 194, 168, 0.35); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn--outline:hover { border-color: var(--white); }
.btn--outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-light);
}
.btn--outline-dark:hover { border-color: var(--ink); }

/* ---------- Ícono en círculo (motivo de marca) ---------- */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.icon-circle svg { width: 26px; height: 26px; }
.icon-circle--indigo { background: var(--indigo); color: var(--white); }
.icon-circle--mint { background: var(--mint); color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--white);
}
.nav-logo span { color: var(--mint); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--gray-light);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gray-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-switch:hover { color: var(--white); border-color: var(--white); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero::before {
  /* Overlay de marca sobre la foto de fondo (ver README para reemplazar la imagen) */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,20,0.92) 0%, rgba(15,15,20,0.80) 45%, rgba(15,15,20,0.96) 100%),
    linear-gradient(120deg, rgba(91,79,233,0.35), rgba(0,194,168,0.20));
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 22px;
}
.hero-desc {
  font-size: 18px;
  color: #C9C9D6;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-location {
  font-size: 13px;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}

/* ---------- Quiénes somos ---------- */
.who-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.who-text p { margin-bottom: 18px; font-size: 17px; color: var(--gray); }
.who-text p:last-child { margin-bottom: 0; }

.data-action-card {
  background: var(--card-light);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.data-action-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.data-action-visual svg { width: 100%; max-width: 340px; height: auto; }
.data-action-labels {
  display: flex;
  justify-content: center;
  gap: 56px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.data-action-caption { color: var(--gray); font-size: 15px; }

/* ---------- Dónde operamos ---------- */
.locations {
  display: flex;
  justify-content: center;
  gap: 90px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.location {
  text-align: center;
  max-width: 260px;
}
.location-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.04em;
  margin: 0 auto 22px;
  box-shadow: var(--shadow-dark);
}
.location-badge--indigo { background: var(--indigo); color: var(--white); }
.location-badge--mint { background: var(--mint); color: var(--ink); }
.location h3 { font-size: 18px; letter-spacing: 0.06em; margin-bottom: 8px; }
.location p { color: var(--gray-light); font-size: 13.5px; }

/* ---------- Misión / Visión ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mv-card {
  background: var(--ink-card);
  border-radius: var(--radius);
  padding: 40px;
}
.mv-card h3 {
  font-size: 15px;
  color: var(--mint);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.mv-card p { color: #D6D6E0; font-size: 16px; }

/* ---------- Cards genéricas (grillas) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border-radius: var(--radius-sm);
  padding: 28px;
}
.card--light { background: var(--card-light); }
.card--dark { background: var(--ink-card); }
.card h4 { font-size: 16px; margin-bottom: 10px; }
.card--dark h4 { color: var(--white); }
.card p { font-size: 14px; color: var(--gray); }
.card--dark p { color: #C9C9D6; }
.card-num {
  float: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-light);
}

/* ---------- Servicios: card con foto de fondo (ERP) ---------- */
.card--photo {
  position: relative;
  background: var(--ink-card);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,20,0.35) 0%, rgba(15,15,20,0.92) 100%);
}
.card--photo .icon-circle,
.card--photo h4,
.card--photo p,
.card--photo .card-num {
  position: relative;
  z-index: 1;
}
.card--photo h4 { color: var(--white); }
.card--photo p { color: #D6D6E0; }

/* ---------- Industrias ---------- */
.industry-card {
  background: var(--ink-card);
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
}
.industry-card .icon-circle { margin: 0 auto 24px; }
.industry-card h4 {
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 16px;
}
.industry-card p { color: #D6D6E0; font-size: 14.5px; }

/* Variante con foto de fondo (acento visual, ver README) */
.industry-card--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.industry-card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,20,0.55) 0%, rgba(15,15,20,0.94) 75%);
}
.industry-card--photo .icon-circle,
.industry-card--photo h4,
.industry-card--photo p {
  position: relative;
  z-index: 1;
}

/* ---------- Cómo trabajamos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  margin: 0 auto 18px;
  box-shadow: var(--shadow);
}
.step-num--indigo { background: var(--indigo); color: var(--white); }
.step-num--mint { background: var(--mint); color: var(--ink); }
.step h4 { font-size: 15.5px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--gray); }

/* ---------- Cierre / Contacto ---------- */
.closing { background: var(--ink); color: var(--white); text-align: center; }
.closing-title {
  font-size: clamp(30px, 4.5vw, 42px);
  margin-bottom: 20px;
}
.closing-desc { color: var(--gray-light); margin-bottom: 36px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--gray-light);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
}
.site-footer strong { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .who-grid { grid-template-columns: 1fr; gap: 48px; }
  .mv-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .locations { gap: 48px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-header.is-open .nav-cta {
    display: flex;
    position: absolute;
    top: 260px;
    left: 24px;
  }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
}
