/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #10142B;
  --ink-soft: #454b66;
  --muted: #6c7186;
  --bg: #ffffff;
  --bg-alt: #f6f7fc;
  --card: #ffffff;
  --border: #e6e8f2;
  --primary: #5B6CFF;
  --primary-dark: #4450e0;
  --accent: #00D0C6;
  --gradient: linear-gradient(120deg, #5B6CFF 0%, #7B61FF 45%, #00D0C6 100%);
  --shadow-sm: 0 2px 10px rgba(16, 20, 43, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 20, 43, 0.1);
  --shadow-lg: 0 24px 60px rgba(16, 20, 43, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--primary); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(91, 108, 255, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ===== Background decor ===== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.blob-1 {
  width: 520px; height: 520px;
  background: var(--primary);
  top: -180px; right: -160px;
}
.blob-2 {
  width: 460px; height: 460px;
  background: var(--accent);
  top: 420px; left: -200px;
  opacity: 0.25;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,20,43,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,20,43,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 700px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light {
  background: #fff;
  color: var(--primary-dark);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(16,20,43,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-mark { display: flex; }
.main-nav {
  display: flex;
  gap: 34px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 90px 0 60px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin: 14px 0 20px;
}
.hero-text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--font-head); font-size: 1.3rem; }
.stat span { font-size: 0.82rem; color: var(--muted); max-width: 150px; }

.hero-visual { position: relative; }
.code-card {
  background: #12162c;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.code-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  background: #1a1f3a;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-title { margin-left: 10px; font-size: 0.78rem; color: #8a90b4; font-family: monospace; }
.code-body {
  padding: 22px 22px 26px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #c6cbf0;
  overflow-x: auto;
}
.c-key { color: #ff79c6; }
.c-var { color: #8be9fd; }
.c-prop { color: #66d9ef; }
.c-str { color: #a6e22e; }
.c-bool { color: #ff9d5c; }
.c-fn { color: #b39dff; }

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-uptime { top: -18px; right: -10px; }
.card-equip { bottom: -20px; left: -20px; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 4px rgba(40, 200, 64, 0.2);
}

/* ===== Trust strip ===== */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg-alt);
}
.trust-inner p {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 780px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ===== Cards grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.92rem; }

/* ===== Equipos ===== */
.equip-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.equip-copy p { color: var(--muted); margin: 16px 0 22px; }
.check-list { margin-bottom: 30px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: -1px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(0, 208, 198, 0.15);
  color: #00a89f;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.equip-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.equip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.equip-emoji { font-size: 2rem; display: block; margin-bottom: 12px; }
.equip-card h4 { font-size: 1rem; margin-bottom: 4px; }
.equip-card p { color: var(--muted); font-size: 0.82rem; }

/* ===== Proceso ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  padding: 30px 22px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  position: relative;
}
.step-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.88rem; }

/* ===== Nosotros ===== */
.about-layout { max-width: 780px; margin: 0 auto; text-align: center; }
.about-copy p { color: var(--muted); margin: 16px 0 30px; font-size: 1.02rem; }
.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}
.about-point {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.about-point strong { display: block; margin-bottom: 6px; }
.about-point span { color: var(--muted); font-size: 0.9rem; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--gradient);
  padding: 70px 0;
}
.cta-inner { text-align: center; color: #fff; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-inner p { opacity: 0.9; margin-bottom: 28px; }

/* ===== Contacto ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info p { color: var(--muted); margin: 14px 0 34px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 0.92rem; }
.contact-item a:hover { color: var(--primary); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-note { text-align: center; font-size: 0.8rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #b7bad6; padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 22px 0;
  font-size: 0.8rem;
  text-align: center;
  color: #7d81a3;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ===== Reveal animation ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-layout { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .cards-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .code-card { transform: none; }
  .hero { padding-top: 50px; }
  .section { padding: 70px 0; }
}
