/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --off-white: #f4f7ff;
  --dark: #070d1a;
  --dark-2: #0d1628;
  --blue: #3B9EFF;
  --blue-light: #7ec3ff;
  --green: #00E5A0;
  --green-light: #7fffd4;
  --grad: linear-gradient(135deg, #3B9EFF 0%, #00E5A0 100%);
  --grad-subtle: linear-gradient(135deg, rgba(59,158,255,0.12) 0%, rgba(0,229,160,0.12) 100%);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 20px;
  --shadow: 0 8px 40px rgba(59,158,255,0.10);
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 99px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { font-size: 1rem; color: #4a5568; line-height: 1.75; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--green-light); }
.text-white { color: var(--white) !important; }

/* ─── UTILITIES ─── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }
.section--dark { background: var(--dark); }

.section__header { text-align: center; margin-bottom: 4rem; }
.section__header h2 { margin-top: 0.2rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.6rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #5ab0ff, #00ffb3);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59,158,255,0.35); }
.btn:hover::before { opacity: 1; }
.btn span, .btn:not(.btn--ghost) > * { position: relative; z-index: 1; }

.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn--lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(59,158,255,0.4);
  color: var(--dark);
}
.btn--ghost::before { display: none; }
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 20px rgba(59,158,255,0.15);
  background: rgba(59,158,255,0.05);
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.07);
  padding: 0.7rem 0;
}
.nav__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.nav__logo { height: 38px; flex-shrink: 0; }
.nav__logo img { height: 100%; width: auto; object-fit: contain; }
.nav__links {
  display: flex; gap: 2rem; list-style: none; margin-left: auto;
}
.nav__links a {
  font-size: 0.88rem; font-weight: 500; color: #334155;
  position: relative; transition: color 0.3s;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1.5px;
  background: var(--grad); transform: scaleX(0); transition: transform 0.3s;
}
.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; margin-left: auto;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: var(--transition);
}

.nav__mobile {
  display: none; flex-direction: column; gap: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(59,158,255,0.12);
  transform: translateY(-20px); opacity: 0;
  pointer-events: none; transition: var(--transition);
}
.nav__mobile.open {
  display: flex; transform: translateY(0); opacity: 1; pointer-events: all;
}
.nav__mobile a {
  font-size: 1rem; font-weight: 500; color: var(--dark);
  padding: 0.8rem 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav__mobile .btn { margin-top: 1rem; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: var(--white);
  padding: 8rem 2rem 5rem;
}

.hero__bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.55;
  animation: float 8s ease-in-out infinite;
}
.orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,158,255,0.3) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation-delay: 0s;
}
.orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,229,160,0.25) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation-delay: -3s;
}
.orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,158,255,0.18) 0%, transparent 70%);
  top: 40%; left: 30%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -25px) scale(1.04); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,158,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,158,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative; z-index: 2;
  max-width: 780px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(59,158,255,0.08);
  border: 1px solid rgba(59,158,255,0.2);
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem; font-weight: 500; color: var(--blue);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

.hero__sub {
  font-size: 1.15rem; color: #5a687a; max-width: 560px;
}

.hero__actions {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}

.hero__scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #94a3b8; z-index: 2;
  animation: fadeInUp 1s 2s both;
}
.scroll-line {
  width: 1.5px; height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ─── STATS BAR ─── */
.statsbar {
  background: var(--dark);
  padding: 2.5rem 2rem;
}
.statsbar__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 3rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat__plus {
  font-family: var(--font-head);
  font-size: 1.8rem; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  font-size: 0.8rem; color: #64748b; margin-top: 0.25rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.stat__divider {
  width: 1px; height: 50px; background: rgba(255,255,255,0.08); flex-shrink: 0;
}

/* ─── CARDS ─── */
.cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  max-width: 900px; margin: 0 auto;
}
.card {
  background: var(--off-white);
  border: 1px solid rgba(59,158,255,0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card::before {
  content: ''; position: absolute;
  inset: 0; border-radius: var(--radius);
  background: var(--grad-subtle);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(59,158,255,0.3); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 52px; height: 52px; margin-bottom: 1.2rem;
  position: relative; z-index: 1;
}
.card__tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(59,158,255,0.1); border-radius: 99px;
  padding: 0.2rem 0.8rem; margin-bottom: 0.8rem;
  position: relative; z-index: 1;
}
.card__tag--green { color: var(--green); background: rgba(0,229,160,0.1); }
.card h3 { margin-bottom: 0.7rem; position: relative; z-index: 1; }
.card p { margin-bottom: 1.2rem; position: relative; z-index: 1; font-size: 0.93rem; }
.card__list {
  list-style: none; display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.8rem; position: relative; z-index: 1;
}
.card__list li {
  font-size: 0.88rem; color: #475569;
  display: flex; align-items: center; gap: 0.5rem;
}
.card__list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}
.card__cta {
  font-size: 0.9rem; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  display: inline-flex; align-items: center; gap: 0.3rem;
  position: relative; z-index: 1;
  transition: letter-spacing 0.3s;
}
.card:hover .card__cta { letter-spacing: 0.03em; }

/* ─── STEPS ─── */
.steps {
  display: flex; align-items: flex-start; gap: 0;
  max-width: 1000px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.step {
  flex: 1; min-width: 180px; max-width: 220px;
  text-align: center; padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}
.step:hover {
  background: rgba(59,158,255,0.07);
  border-color: rgba(59,158,255,0.2);
}
.step__num {
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.8rem;
}
.step h4 { color: var(--white); margin-bottom: 0.5rem; }
.step p  { font-size: 0.88rem; color: #64748b; }
.step__arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: rgba(59,158,255,0.3);
  padding: 0 0.5rem; margin-top: 2rem; align-self: flex-start;
  padding-top: 2.8rem;
}

/* ─── CTA / CONTACTO ─── */
.cta-section {
  background: var(--off-white);
  position: relative; overflow: hidden;
}
.cta-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.cta-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,158,255,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.cta-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,229,160,0.12) 0%, transparent 70%);
  bottom: -80px; left: -80px;
}

.cta__inner {
  max-width: 620px; margin: 0 auto; text-align: center;
  position: relative; z-index: 2;
}
.cta__inner .eyebrow { margin-bottom: 0.5rem; }
.cta__inner h2 { margin-bottom: 1rem; }
.cta__inner > p { margin-bottom: 2.5rem; font-size: 1.05rem; }

.cta-form {
  display: flex; flex-direction: column; gap: 1rem;
  text-align: left;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.cta-form input,
.cta-form textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid rgba(59,158,255,0.15);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body); font-size: 0.93rem; color: var(--dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none; resize: vertical;
}
.cta-form input:focus,
.cta-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59,158,255,0.1);
}
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: #94a3b8; }

.cta__note {
  margin-top: 1rem; font-size: 0.8rem;
  color: #94a3b8 !important; text-align: center;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__logo { height: 28px; width: auto; object-fit: contain; opacity: 0.85; }
.footer__brand p { font-size: 0.82rem; color: #475569; margin: 0; }
.footer__links {
  display: flex; gap: 1.5rem; margin-left: auto;
}
.footer__links a { font-size: 0.82rem; color: #475569; transition: color 0.3s; }
.footer__links a:hover { color: var(--blue-light); }
.footer__copy { font-size: 0.75rem; color: #334155; width: 100%; text-align: center; margin-top: 0.5rem; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal, .reveal-stat {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.75s var(--transition), transform 0.75s var(--transition);
}
.reveal.visible, .reveal-stat.visible {
  opacity: 1; transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step { min-width: 240px; max-width: 100%; width: 100%; }
  .step__arrow { transform: rotate(90deg); padding: 0; align-self: center; margin: 0; }
  .form-row { grid-template-columns: 1fr; }
  .statsbar__inner { gap: 1rem; }
  .stat { padding: 0.8rem 1.5rem; }
  .stat__divider { display: none; }
  .footer__links { margin-left: 0; }
}

@media (max-width: 640px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__burger { display: flex; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--ghost { color: var(--dark); }
  .section { padding: 5rem 0; }
}

/* ─── SUCCESS TOAST ─── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--dark-2); border: 1px solid rgba(0,229,160,0.3);
  color: var(--white); border-radius: 12px;
  padding: 1rem 1.5rem; font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.7rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transform: translateY(100px); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.5s;
  z-index: 999;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--green); font-size: 1.1rem; }
