*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
  background: linear-gradient(135deg, #0c1b2b 0%, #182a3e 100%);
  color: #dcdcdc;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
#bg-circuit {
  width: 100vw; height: 100vh; position: fixed; top: 0; left: 0;
  z-index: 0; pointer-events: none; background: transparent;
}
body > *:not(#bg-circuit) { position: relative; z-index: 1; }
.header, .footer { z-index: 2 !important; }
.header {
  position: sticky; top: 0; width: 100%;
  background: rgba(12, 27, 43, 0.93);
  z-index: 1000;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}
.header-content {
  display: flex; align-items: center; justify-content: flex-start;
  height: 72px; padding: 0 32px;
}
.logo { height: 48px; width: auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.hero { padding: 110px 0 70px 0; display: flex; align-items: center; justify-content: center; background: none; text-align: center; }
.hero h1 { font-size: 2.8rem; color: #fff; font-weight: 700; margin-bottom: 18px; letter-spacing: -1.5px; }
.hero .subtitle { font-size: 1.18rem; color: #dcdcdc; margin-bottom: 18px; font-weight: 400; }
.hero .pre-cta { color: #5599ff; font-size: 1.08rem; margin-bottom: 28px; font-weight: 600; }
.cta-btn {
  background: linear-gradient(90deg, #5599ff 40%, #1d4e89 100%);
  color: #fff; font-size: 1.15rem; font-weight: 700;
  padding: 14px 36px; border-radius: 36px; border: none; outline: none; text-decoration: none;
  box-shadow: 0 4px 32px 0 rgba(85,153,255,0.10);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.10s;
  letter-spacing: 0.02em;
  display: inline-block;
}
.cta-btn:hover {
  background: linear-gradient(90deg, #3178c6 30%, #5599ff 100%);
  box-shadow: 0 8px 32px 0 rgba(85,153,255,0.25);
  transform: translateY(-2px) scale(1.04);
}

/* Sticky Cards – Dolor / Beneficios */
.sticky-cards-section { padding: 60px 0 60px 0; }
.sticky-cards {
  display: flex; gap: 32px; justify-content: center; max-width: 1100px; margin: 0 auto;
}
.sticky-card {
  background: rgba(24, 42, 62, 0.97);
  border-radius: 22px;
  box-shadow: 0 2px 24px 0 rgba(12,27,43,0.11);
  padding: 38px 24px 28px;
  width: 340px; min-width: 260px; max-width: 340px;
  position: sticky;
  top: 90px;
  display: flex; flex-direction: column; align-items: center;
  z-index: 1;
  transition: box-shadow 0.15s;
}
.sticky-card-img { width: 48px; height: 48px; margin-bottom: 12px; object-fit: contain; background: #182a3e; border-radius: 50%; padding: 4px; }
.sticky-card h3 { color: #5599ff; font-size: 1.2rem; font-weight: 700; margin-bottom: 13px; text-align: center; }
.sticky-card p { color: #dcdcdc; font-size: 1.02rem; font-weight: 400; text-align: center; }

@media (max-width: 1000px) {
  .sticky-cards { flex-direction: column; align-items: center; gap: 28px; }
  .sticky-card { width: 98vw; max-width: 420px; min-width: 0; }
}

/* Services Carousel */
.services { padding: 60px 0 60px 0; }
.services h2 { font-size: 2rem; color: #fff; font-weight: 700; margin-bottom: 18px; letter-spacing: -1px; text-align: center; }
.carousel {
  display: flex; align-items: center; justify-content: center; position: relative; margin-top: 36px; width: 100%;
}
.carousel-track {
  display: flex; overflow: hidden; scroll-behavior: smooth; width: 100%; max-width: 1080px;
}
.carousel-card {
  background: rgba(24, 42, 62, 0.93); border-radius: 22px; padding: 32px 24px 28px;
  min-width: 340px; max-width: 340px; margin: 0 12px; transition: box-shadow .2s, transform .2s; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 2px 15px 0 rgba(12,27,43,0.08);
  position: relative; overflow: hidden;
}
.carousel-card img { width: 64px; height: 64px; margin-bottom: 16px; filter: drop-shadow(0 2px 12px #1d4e8922); object-fit: contain; background: #182a3e; border-radius: 50%; padding: 6px; }
.carousel-card h3 { color: #5599ff; font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; text-align: center; }
.carousel-card p { color: #dcdcdc; font-size: 1rem; font-weight: 400; text-align: center; }
.carousel-btn {
  background: #0c1b2b; color: #5599ff; font-size: 2.2rem; border: none; border-radius: 50%;
  width: 42px; height: 42px; margin: 0 10px; cursor: pointer;
  box-shadow: 0 2px 12px #1d4e8922; transition: background 0.16s, color 0.16s;
  z-index: 2; display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: #3178c6; color: #fff; }
@media (max-width: 1000px) {
  .carousel-card { min-width: 92vw; max-width: 92vw; }
  .carousel-track { max-width: 100vw; }
}

/* Cómo Trabajamos */
.how-we-work { padding: 60px 0 60px 0; background: none; }
.how-we-work h2 { font-size: 2rem; color: #fff; font-weight: 700; margin-bottom: 18px; text-align: center; letter-spacing: -1px; }
.hww-intro { font-size: 1.11rem; color: #dcdcdc; text-align: center; margin-bottom: 36px; }
.hww-steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.hww-step {
  background: rgba(24, 42, 62, 0.96);
  border-radius: 22px;
  box-shadow: 0 2px 14px 0 rgba(12,27,43,0.09);
  padding: 28px 18px 18px 18px;
  width: 250px; max-width: 98vw;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 16px;
}
.hww-step-num {
  background: #5599ff; color: #fff; font-weight: 700; border-radius: 14px;
  font-size: 1.02rem; padding: 3px 15px; margin-bottom: 12px;
}
.hww-step h3 { color: #5599ff; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; text-align: center; }
.hww-step p { font-size: 1rem; color: #dcdcdc; text-align: center; }

/* About Us */
.about { padding: 60px 0 60px 0; }
.about h2 { font-size: 2rem; color: #fff; font-weight: 700; margin-bottom: 18px; letter-spacing: -1px; text-align: center; }
.about-flex { display: flex; align-items: flex-start; gap: 30px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.about-img { width: 140px; height: 140px; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 4px 12px #1d4e8916); background: #182a3e; flex-shrink: 0; }
.about-flex p { font-size: 1.07rem; color: #dcdcdc; font-weight: 400; max-width: 580px; }

/* Final CTA */
.final-cta { position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 42px; background: linear-gradient(90deg, #182a3e 60%, #0c1b2b 100%); }
.final-cta .cta-bg-img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  background: url('assets/quienes-somos.png') center/cover no-repeat;
  opacity: 0.13; filter: blur(1.2px) grayscale(0.2); z-index: 0; pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { color: #5599ff; font-size: 1.45rem; font-weight: 700; margin-bottom: 14px; text-align: center;}
.final-cta p { font-size: 1.07rem; color: #fff; margin-bottom: 28px; font-weight: 400; text-align: center; }
.final-cta .cta-btn-wrap { width: 100%; display: flex; justify-content: center; }
.final-cta .cta-btn { font-size: 1.12rem; padding: 14px 40px; }

/* Footer */
.footer { background: #182a3e; padding: 32px 0 16px 0; color: #dcdcdc; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.socials { display: flex; gap: 30px; margin-bottom: 8px; }
.socials a img { width: 32px; height: 32px; filter: grayscale(0.5) brightness(1.2); transition: filter .18s; }
.socials a:hover img { filter: grayscale(0) brightness(1.4) drop-shadow(0 2px 10px #5599ff88); }
.copyright { font-size: 0.97rem; color: #dcdcdc; opacity: 0.8; text-align: center; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.47,1.64,.41,.8), transform .7s cubic-bezier(.47,1.64,.41,.8); }
.fade-up.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .about-flex { flex-direction: column; align-items: center; }
  .about-img { margin-bottom: 14px; }
  .header-content { padding: 0 14px; height: 60px; }
  .hww-steps { flex-direction: column; gap: 0; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.1rem; }
  .container { padding: 0 8px; }
  .about-img { width: 92px; height: 92px; }
  .footer-content { gap: 10px; }
}
body::-webkit-scrollbar { width: 8px; background: #182a3e; }
body::-webkit-scrollbar-thumb { background: #3178c6; border-radius: 8px; }