/* =========================================================
   One Business — Design System
   ========================================================= */
:root {
  /* Paleta base del cliente */
  --verde-1: #5ec63d;
  --verde-2: #3a762b;
  --azul-1: #5db9cd;
  --azul-2: #396c78;

  /* Neutros — con leve temperatura azul en vez de negro puro */
  --black-0: #05070c;
  --black-1: #090d16;
  --black-2: #0f1420;
  --black-3: #161d2c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-0: #f6f8fb;
  --text-1: #b7c0cf;
  --text-2: #7c8598;

  --gradient-main: linear-gradient(120deg, var(--azul-2) 0%, var(--azul-1) 55%, var(--verde-1) 100%);
  --gradient-soft: linear-gradient(180deg, rgba(93, 185, 205, 0.18), rgba(94, 198, 61, 0.05));
  --glow-blue: 0 0 60px rgba(93, 185, 205, 0.4);
  --glow-green: 0 0 50px rgba(94, 198, 61, 0.22);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black-0);
  color: var(--text-0);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-0);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle grain overlay for premium feel */
.noise-overlay {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(93,185,205,0.14), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* =========================================================
   Reusable
   ========================================================= */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azul-1);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--black-2);
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--gradient-main);
  color: #04110a;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow-blue); }

.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text-0);
  background: rgba(255,255,255,0.02);
}
.btn--outline:hover { border-color: var(--azul-1); background: rgba(93,185,205,0.08); transform: translateY(-2px); }

.btn--ghost { color: var(--text-1); }
.btn--ghost:hover { color: var(--text-0); }

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* =========================================================
   Scroll-reveal
   ========================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 14px 0;
  background: rgba(5, 6, 10, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; }
.logo__mark {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--gradient-main);
  color: #04110a;
  font-weight: 700;
  font-size: 18px;
}
.logo__mark--lg { width: 64px; height: 64px; font-size: 30px; border-radius: 16px; }
.logo__mark--img {
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--black-2);
}
.logo__text { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 14.5px; font-weight: 500; color: var(--text-1); position: relative; transition: color 0.2s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--gradient-main); transition: width 0.25s var(--ease);
}
.nav__link:hover { color: var(--text-0); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; flex-direction: column; gap: 5px; width: 26px; z-index: 200; }
.burger span { display: block; height: 2px; width: 100%; background: var(--text-0); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden;
  background: var(--black-1);
  border-bottom: 1px solid var(--border);
  transition: max-height 0.35s var(--ease);
  padding: 0 24px;
}
.mobile-nav.open { max-height: 420px; padding: 16px 24px 24px; }
.mobile-nav__link { padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 500; color: var(--text-1); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, black, transparent);
}

.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1;
  animation: float 12s ease-in-out infinite;
}
.hero__glow--1 { width: 520px; height: 520px; background: rgba(93, 185, 205, 0.4); top: -180px; left: -120px; }
.hero__glow--2 { width: 420px; height: 420px; background: rgba(94, 198, 61, 0.18); top: -80px; right: -160px; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
}

.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--black-2);
  font-size: 13.5px; font-weight: 500; color: var(--text-1);
  margin-bottom: 28px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azul-1); box-shadow: 0 0 10px var(--azul-1); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.08;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--text-1);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 72px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 900px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat__num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
.stat__label { font-size: 13.5px; color: var(--text-2); text-align: center; }

/* =========================================================
   Marquee
   ========================================================= */
.marquee-section { padding: 56px 0; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.marquee-label { text-align: center; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee__track {
  display: flex; gap: 64px; width: max-content;
  animation: scroll-marquee 32s linear infinite;
}
.marquee__item { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px; color: var(--text-2); white-space: nowrap; }
@keyframes scroll-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Section generic
   ========================================================= */
.section { padding: 120px 0; position: relative; }
.section--alt { background: var(--black-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head { max-width: 640px; margin: 0 auto 64px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; margin-bottom: 16px; }
.section__desc { color: var(--text-1); font-size: 16.5px; }

/* =========================================================
   Services
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--black-2), var(--black-1));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6); }

.service-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-card__icon svg { width: 24px; height: 24px; }
.icon--green { background: rgba(94, 198, 61, 0.12); color: var(--verde-1); }
.icon--blue { background: rgba(93, 185, 205, 0.12); color: var(--azul-1); }

.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-1); font-size: 14.5px; margin-bottom: 18px; }
.service-card__list { display: flex; flex-direction: column; gap: 8px; }
.service-card__list li { font-size: 13.5px; color: var(--text-2); padding-left: 18px; position: relative; }
.service-card__list li::before { content: '→'; position: absolute; left: 0; color: var(--azul-1); }

/* =========================================================
   Timeline / Proceso
   ========================================================= */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.timeline__line { position: absolute; top: 26px; left: 0; right: 0; height: 1px; background: var(--border); z-index: 0; }
.timeline__item { position: relative; z-index: 1; padding-top: 0; }
.timeline__num {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
  background: var(--black-0); border: 1px solid var(--border-strong);
  color: var(--azul-1);
  margin-bottom: 20px;
}
.timeline__item:nth-child(3) .timeline__num { color: var(--verde-1); }
.timeline__item h3 { font-size: 16.5px; margin-bottom: 8px; }
.timeline__item p { font-size: 14px; color: var(--text-1); }

/* =========================================================
   About / Advantages
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }

.advantages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.advantage { display: flex; gap: 14px; align-items: flex-start; }
.advantage__icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black-2); border: 1px solid var(--border); font-size: 18px;
}
.advantage h4 { font-size: 15px; margin-bottom: 4px; }
.advantage p { font-size: 13.5px; color: var(--text-2); }

.about-grid__visual { display: flex; justify-content: center; }
.orbit-card { position: relative; width: 340px; height: 340px; display: flex; align-items: center; justify-content: center; }
.orbit-ring { position: absolute; border: 1px solid var(--border-strong); border-radius: 50%; }
.orbit-ring--1 { width: 100%; height: 100%; animation: spin 30s linear infinite; }
.orbit-ring--2 { width: 78%; height: 78%; border-style: dashed; border-color: var(--border); animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-core {
  width: 116px; height: 116px; border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black-2); border: 1px solid var(--border-strong);
  box-shadow: var(--glow-blue);
  z-index: 2;
  overflow: hidden;
}
.orbit-core__img { width: 100%; height: 100%; object-fit: cover; }

.orbit-chip {
  position: absolute;
  padding: 8px 14px; border-radius: 100px;
  background: var(--black-2); border: 1px solid var(--border-strong);
  font-size: 12.5px; font-weight: 600; color: var(--text-1);
  white-space: nowrap;
}
.orbit-chip--1 { top: 4%; left: 50%; transform: translateX(-50%); }
.orbit-chip--2 { top: 30%; right: -4%; }
.orbit-chip--3 { bottom: 12%; right: 6%; }
.orbit-chip--4 { bottom: 12%; left: 6%; }
.orbit-chip--5 { top: 30%; left: -4%; }

/* =========================================================
   Casos de éxito
   ========================================================= */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--black-2);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.case-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.case-card__tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--azul-1);
  margin-bottom: 16px;
}
.case-card__tag--green { color: var(--verde-1); }
.case-card h3 { font-size: 21px; margin-bottom: 12px; line-height: 1.3; }
.case-card p { color: var(--text-1); font-size: 14.5px; margin-bottom: 24px; }
.case-card__metrics { display: flex; gap: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.case-card__metrics strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--text-0); }
.case-card__metrics span { font-size: 12.5px; color: var(--text-2); }

/* =========================================================
   Stack tecnológico
   ========================================================= */
.stack-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.stack-item {
  padding: 12px 22px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--black-2);
  font-size: 14px; font-weight: 500; color: var(--text-1);
  transition: border-color .25s, color .25s, transform .25s;
}
.stack-item:hover { border-color: var(--azul-1); color: var(--text-0); transform: translateY(-3px); }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  padding: 32px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--black-2);
}
.testimonial-card p { font-size: 15px; color: var(--text-1); margin-bottom: 28px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-main); color: #04110a;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 14px; }
.testimonial-card__author span { font-size: 12.5px; color: var(--text-2); }

/* =========================================================
   CTA section
   ========================================================= */
.cta-section { position: relative; padding: 140px 0; overflow: hidden; isolation: isolate; }
.cta-section__glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 65% 65% at 50% 0%, rgba(93,185,205,0.24), transparent 70%),
              radial-gradient(ellipse 45% 45% at 80% 100%, rgba(94,198,61,0.1), transparent 70%);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 18px; }
.cta-desc { color: var(--text-1); font-size: 17px; margin-bottom: 48px; max-width: 480px; }

.contact-form { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.contact-form__row { display: flex; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--black-2);
  color: var(--text-0); font-family: inherit; font-size: 14.5px;
  transition: border-color 0.25s;
  resize: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-2); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--azul-1); }

.cta-alt { margin-top: 24px; font-size: 14px; color: var(--text-2); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cta-alt a { color: var(--azul-1); font-weight: 600; }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: 80px 0 0; border-top: 1px solid var(--border); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer__brand p { color: var(--text-2); font-size: 14px; margin: 16px 0 20px; max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-1); text-transform: uppercase;
  transition: border-color .25s, color .25s;
}
.footer__social a:hover { border-color: var(--azul-1); color: var(--azul-1); }

.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h4 { font-size: 14px; color: var(--text-0); margin-bottom: 4px; }
.footer__col a, .footer__col span { font-size: 14px; color: var(--text-2); transition: color .2s; }
.footer__col a:hover { color: var(--azul-1); }

.footer__bottom {
  display: flex; justify-content: space-between; padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}

/* =========================================================
   Scroll to top
   ========================================================= */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--black-2); border: 1px solid var(--border-strong);
  color: var(--text-0); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, border-color .3s;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { border-color: var(--azul-1); color: var(--azul-1); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-grid__visual { order: -1; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:last-child { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline__line { display: none; }
}

@media (max-width: 860px) {
  .nav, .header__actions .btn--ghost { display: none; }
  .burger { display: flex; }
  .hero { padding: 140px 0 72px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: span 2; }
  .footer__col:last-child { grid-column: span 1; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .contact-form__row { flex-direction: column; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .cursor-glow { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .header__actions .btn--primary { padding: 9px 16px; font-size: 13.5px; }
  .timeline { grid-template-columns: 1fr; }
}
