:root {
  --bg: #080b14;
  --surface: #0e1422;
  --card: #111827;
  --border: rgba(255,255,255,0.06);
  --cyan: #00f5d4;
  --violet: #7c3aed;
  --pink: #f72585;
  --amber: #fbbf24;
  --text: #f0f4ff;
  --muted: #6b7a99;
  --font-display: 'Nunito Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  backdrop-filter: blur(20px);
  background: rgba(8,11,20,0.75);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  flex-shrink: 0;
  align-self: center;
  animation: pulse-dot 2s ease-in-out infinite;
}

.logo-img {
  height: 32px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .7; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color .2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--cyan);
  color: #080b14 !important;
  font-weight: 600 !important;
  font-size: .78rem !important;
  padding: 6px 15px;
  border-radius: 100px;
  letter-spacing: .2px;
  transition: box-shadow .2s, transform .15s !important;
}

.nav-cta:hover {
  box-shadow: 0 0 24px rgba(0,245,212,.45);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 6% 120px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,245,212,.3);
  background: rgba(0,245,212,.07);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 30px;
  animation: fadeUp .8s ease both;
}

.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); display: inline-block; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 900px;
  animation: fadeUp .9s .1s ease both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 24px auto 44px;
  font-weight: 300;
  animation: fadeUp 1s .2s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1s .3s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00c4a8);
  color: #080b14;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 34px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 rgba(0,245,212,0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,245,212,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 34px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
}

/* floating stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 70px;
  animation: fadeUp 1s .45s ease both;
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeUp 1s .7s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: .4; }
}

/* ── SECTION COMMONS ── */
section { position: relative; z-index: 1; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  color: var(--muted);
  max-width: 540px;
  margin-top: 14px;
  font-weight: 300;
}

/* ── SERVICES ── */
#servicios {
  padding: 120px 6%;
}

.services-header {
  text-align: center;
  margin-bottom: 70px;
}

.services-header .section-sub { margin: 14px auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  cursor: pointer;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, var(--accent-color, var(--cyan)), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}

.service-card:hover { transform: translateY(-6px); }
.service-card:hover::before { opacity: .06; }
.service-card:hover { border-color: var(--accent-color, var(--cyan)); box-shadow: 0 20px 60px rgba(0,0,0,.4); }

.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  transition: transform .3s;
}

.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-color, var(--cyan));
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--accent-color, var(--cyan));
  opacity: .7;
}

/* ── WHY US ── */
#por-que {
  padding: 100px 6%;
  background: linear-gradient(180deg, transparent, rgba(124,58,237,.04), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.why-visual {
  position: relative;
  height: 460px;
}

.why-box {
  position: absolute;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--border);
}

.why-box-main {
  background: var(--card);
  width: 78%;
  top: 0; left: 0;
  z-index: 2;
}

.why-box-accent {
  background: linear-gradient(135deg, var(--violet), #4f1ea0);
  width: 65%;
  bottom: 30px; right: 0;
  z-index: 3;
  border-color: transparent;
}

.why-box-float {
  background: var(--surface);
  border: 1px solid rgba(0,245,212,.25);
  padding: 14px 20px;
  border-radius: 14px;
  position: absolute;
  top: 38%;
  right: -20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-icon { font-size: 1.4rem; }
.float-text strong { display: block; font-size: .85rem; font-weight: 600; }
.float-text span { font-size: .75rem; color: var(--muted); }

.why-box h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-box-accent h4, .why-box-accent p { color: rgba(255,255,255,.9); }

.minibar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.15);
  margin-top: 14px;
  overflow: hidden;
}

.minibar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--cyan);
  animation: grow 2s ease both;
}

@keyframes grow {
  from { width: 0; }
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.why-content { padding-left: 20px; }

.feature-list { list-style: none; margin-top: 38px; display: flex; flex-direction: column; gap: 22px; }

  .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .feat-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(0,245,212,.1);
    border: 1px solid rgba(0,245,212,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .feat-text strong { display: block; font-weight: 600; margin-bottom: 3px; }
  .feat-text span { color: var(--muted); font-size: .875rem; }

  /* ── PRICING BANNER (CAJA DE CONTACTO ACTUALIZADA) ── */
  #contacto {
    padding: 100px 6%;
  }

  .cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0e1422, #12193a);
    border: 1px solid rgba(124,58,237,.3);
    border-radius: 28px;
    padding: 70px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-box::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 200px;
    background: radial-gradient(ellipse, rgba(124,58,237,.3), transparent 70%);
  }

  .cta-box::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 250px; height: 250px;
    background: radial-gradient(ellipse, rgba(0,245,212,.12), transparent 70%);
  }

  .cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
  }

  .cta-box p {
    color: var(--muted);
    max-width: 650px;
    margin: 16px auto 38px;
    position: relative;
    z-index: 1;
  }

  /* Clases Modernas y Flexibles de Botones */
  .contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .btn-contact {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
  }

  .btn-whatsapp {
    background: linear-gradient(135deg, var(--cyan), #00c4a8);
    color: #080b14;
  }

  .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,245,212,.35);
  }

  .btn-email {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    backdrop-filter: blur(10px);
  }

  .btn-email:hover {
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
  }

  /* ── FOOTER ── */
  footer {
    position: relative;
    z-index: 1;
    padding: 60px 6% 36px;
    border-top: 1px solid var(--border);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
  }

  .footer-brand p {
    color: var(--muted);
    font-size: .875rem;
    margin-top: 14px;
    max-width: 240px;
    line-height: 1.7;
  }

  .footer-col h5 {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 16px;
    color: var(--text);
  }

  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

  .footer-col ul a {
    color: var(--muted);
    text-decoration: none;
    font-size: .875rem;
    transition: color .2s;
  }

  .footer-col ul a:hover { color: var(--cyan); }

  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .8rem;
  }

  .social-links { display: flex; gap: 14px; }

  .social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    text-decoration: none;
    color: var(--muted);
  }

  .social-btn:hover {
    background: rgba(0,245,212,.12);
    border-color: rgba(0,245,212,.3);
    color: var(--cyan);
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
  }

  .reveal.visible { opacity: 1; transform: none; }

  /* ── MOBILE ── */
  @media (max-width: 768px) {
    .nav-links { display: flex; gap: 0; }
    .nav-links li { display: none; }
    .nav-links li:last-child { display: block; }

    .logo-img { height: 20px; max-width: 120px; }
    .hero-stats { gap: 28px; }
    .why-grid { grid-template-columns: 1fr; }

    .nav-cta { font-size: .68rem !important; padding: 5px 11px; }

    .why-visual { height: auto; display: flex; flex-direction: column; gap: 14px; }
    .why-box { position: static; width: 100%; }
    .why-box-float { position: static; white-space: normal; right: auto; animation: float 5s ease-in-out infinite; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    /* Adaptabilidad de la caja de contacto en móvil */
    .cta-box { padding: 48px 24px; }
    .contact-buttons { flex-direction: column; gap: 12px; }
    .btn-contact { width: 100%; }
  }

  /* ── GLOW DOTS ── */
  .glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    z-index: 0;
  }

  /* ── SCROLL HINT ── */
  .scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeUp 1s .7s ease both;
  }

  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollDown 2s ease-in-out infinite;
  }

  @keyframes scrollDown {
    0%,100 { transform: scaleY(1); opacity: 1; }
    50%      { transform: scaleY(0.4); opacity: .4; }
  }