/* ========== Tokens ========== */
:root {
  --ink: #10151c;
  --ink-soft: #1b2330;
  --blue: #2456e5;
  --blue-dark: #173bab;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --text: #1b2330;
  --text-muted: #5b6472;
  --border: #e4e8f0;
  --shadow: 0 8px 24px rgba(16, 21, 28, 0.06);
  --shadow-lg: 0 16px 40px rgba(16, 21, 28, 0.10);
  --radius: 14px;
  --container: 1120px;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
  background: var(--ink);
  color: #fff;
  margin-top: 12px;
}
.btn-small:hover { background: var(--blue); }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.nav a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 140px 0 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-alt) 0%, var(--bg-alt) 40%, rgba(244, 246, 251, 0.9) 46%, rgba(244, 246, 251, 0) 58%);
}

.hero-overlay, .hero-stats-bar { position: relative; z-index: 1; }

.hero-overlay { max-width: 440px; }

.eyebrow {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--blue); }

.hero-underline {
  width: 56px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ---- Hero feature callouts ---- */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 56px;
}

.hero-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 420px;
}

.hero-feature-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(36, 86, 229, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-feature-icon svg { width: 22px; height: 22px; }

.hero-feature h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.hero-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Bottom stats bar ---- */
.hero-stats-bar {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1400px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 28px 32px;
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stat-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stat-icon svg { width: 24px; height: 24px; }

.hero-stat-label {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ========== Sections ========== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--ink);
  color: #cdd4e0;
}
.section-dark .section-title { color: #fff; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-top: -24px;
  margin-bottom: 40px;
}

/* ========== ERP grid (promo) ========== */
.erp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.erp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.erp-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.erp-tag {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  display: block;
}
.erp-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.erp-card ul { margin-bottom: 4px; }
.erp-card li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.erp-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ========== Nosotros ========== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.about-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.about-card p { color: var(--text-muted); font-size: 0.95rem; }

.feature-strip {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.feature-strip h3 { color: #fff; margin-bottom: 12px; }
.feature-strip p { color: #b7c0d1; max-width: 640px; margin: 0 auto; }

/* ========== Como lo hacemos ========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.process-card {
  padding: 28px 8px;
}
.process-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--blue);
}
.process-card p { color: var(--text-muted); font-size: 0.92rem; }

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.commitments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.commitment-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.commitment-highlight {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}
.commitment-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quote-block {
  border-left: 4px solid var(--blue);
  padding-left: 28px;
}
.quote-block p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 16px;
}
.quote-block p:last-child { color: var(--text-muted); font-size: 0.92rem; }

/* ========== Servicios ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.service-tag {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.service-card ul { margin-bottom: 8px; }
.service-card li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.values-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-item {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--ink);
}

/* ========== Hosting ========== */
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.hosting-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hosting-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--blue); }
.hosting-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ========== ERP ========== */
.erp-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.erp-text h3 { font-size: 1.3rem; margin-bottom: 6px; }
.erp-text p { color: var(--text-muted); margin-bottom: 14px; }

/* ========== Contacto ========== */
.contact-lead {
  color: #b7c0d1;
  margin-bottom: 40px;
  font-size: 1.05rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-size: 0.85rem;
  color: #8b93a7;
  margin-top: 14px;
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #333c4d;
  color: #fff;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-form button { margin-top: 28px; align-self: flex-start; }
.contact-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { color: #8fd19e; font-size: 0.9rem; min-height: 1.2em; margin-top: 12px; }
.form-status.error { color: #f28b82; }

/* Honeypot: visually and semantically hidden from real visitors, still reachable by simple bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.contact-info a {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  border-bottom: 1px solid #333c4d;
  padding-bottom: 16px;
}
.contact-info a:hover { color: var(--blue); }

/* ========== Footer ========== */
.site-footer {
  background: var(--ink);
  border-top: 1px solid #262f3d;
  padding: 24px 0;
  text-align: center;
}
.site-footer p { color: #6b7386; font-size: 0.85rem; }

/* ========== Reveal on scroll ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .about-grid,
  .process-grid,
  .commitments-grid,
  .services-grid,
  .hosting-grid,
  .values-strip,
  .erp-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-bg { display: none; }
  .hero { background: var(--bg-alt); }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-cta { align-self: flex-start; }
  .nav-toggle { display: flex; }

  .about-grid,
  .process-grid,
  .commitments-grid,
  .services-grid,
  .hosting-grid,
  .values-strip,
  .erp-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 100px 0 0; }
  .hero-stats-bar { padding: 22px 20px; }
  .section { padding: 64px 0; }
}
