:root {
  --bg-0: #061826; /* fondo principal */
  --bg-1: #081f31; /* secciones */
  --card: #0b2a40; /* tarjetas */
  --card-2: #0a2437;
  --stroke: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.65);
  --accent: #46d7ff; /* cian */
  --accent-2: #2f7bff; /* azul */
}

html,
body {
  height: 100%;
}
body {
  background:
    radial-gradient(
      1200px 600px at 50% 0%,
      rgba(70, 215, 255, 0.15),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg-0), #04111b 60%, #03101a);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

/* Header/Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 16, 26, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}

.brand-logo {
  width: 160px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
}

.dropdown-menu {
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.btn-pill {
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  font-weight: 600;
}

.btn-consult {
  background: linear-gradient(
    90deg,
    rgba(70, 215, 255, 0.95),
    rgba(47, 123, 255, 0.95)
  );
  color: #03101a;
  border: 0;
}
.btn-consult:hover {
  filter: brightness(1.05);
  color: #03101a;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: clamp(78px, 10vh, 120px) 0 clamp(58px, 8vh, 90px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(25, 199, 216, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(3, 16, 26, 0.38), rgba(3, 16, 26, 0.88));
  opacity: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  background: rgba(70, 215, 255, 0.12);
  border: 1px solid rgba(70, 215, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 780px;
  margin-inline: auto;
}

.btn-primary-hero {
  background: linear-gradient(
    90deg,
    rgba(70, 215, 255, 0.95),
    rgba(47, 123, 255, 0.95)
  );
  color: #03101a;
  border: 0;
}
.btn-primary-hero:hover {
  filter: brightness(1.05);
  color: #03101a;
}

.btn-outline-hero {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
}
.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Partners */
.partners {
  background: rgba(3, 16, 26, 0.55);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.partner-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 74px 0;
}
.section-dark {
  background: linear-gradient(
    180deg,
    rgba(8, 31, 49, 0.55),
    rgba(6, 24, 38, 0.15)
  );
}

.section-kicker {
  color: rgba(70, 215, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
}

.section-text {
  color: var(--muted);
  font-size: 1rem;
}

.text-accent {
  color: rgba(70, 215, 255, 0.95);
}

/* About card */
.about-card {
  background: linear-gradient(
    180deg,
    rgba(11, 42, 64, 0.85),
    rgba(10, 36, 55, 0.75)
  );
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
}

.about-media {
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  display: grid;
  gap: 12px;
}

.stat {
  background: rgba(3, 16, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 14px;
}

.stat-value {
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
}
.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 6px;
}

.btn-secondary-soft {
  background: rgba(70, 215, 255, 0.12);
  border: 1px solid rgba(70, 215, 255, 0.24);
  color: rgba(255, 255, 255, 0.9);
}
.btn-secondary-soft:hover {
  background: rgba(70, 215, 255, 0.18);
  color: #fff;
}

/* Services */
.service-card {
  background: linear-gradient(
    180deg,
    rgba(11, 42, 64, 0.7),
    rgba(10, 36, 55, 0.6)
  );
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 215, 255, 0.26);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(70, 215, 255, 0.14);
  border: 1px solid rgba(70, 215, 255, 0.2);
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
}

.service-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-text {
  color: var(--muted);
  margin-bottom: 14px;
}

.service-link {
  color: rgba(70, 215, 255, 0.95);
  text-decoration: none;
  font-weight: 700;
}
.service-link:hover {
  text-decoration: underline;
}

/* Contact */
.contact-card {
  background: linear-gradient(
    180deg,
    rgba(11, 42, 64, 0.75),
    rgba(10, 36, 55, 0.65)
  );
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.form-dark {
  background: rgba(3, 16, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}
.form-dark:focus {
  background: rgba(3, 16, 26, 0.65);
  border-color: rgba(70, 215, 255, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(70, 215, 255, 0.12);
  color: #fff;
}

.form-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* Footer */
.footer {
  border-top: 1px solid var(--stroke);
  background: rgba(3, 16, 26, 0.65);
}
.footer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover {
  color: #fff;
}

/* Hero video background */
.hero .container.position-relative {
  overflow: visible;
  border-radius: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  filter: saturate(1.12) contrast(1.08);
  opacity: 0.58;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 6vw, 72px) 0;
}

@media (max-width: 767.98px) {
  .hero {
    min-height: auto;
    padding: 72px 0 52px;
  }

  .hero-video {
    object-position: center top;
  }
}


/* WhatsApp CTA in desktop navigation */
.nav-whatsapp-link {
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 800;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(25, 199, 216, 0.25);
  border-radius: 999px;
  background: rgba(25, 199, 216, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-whatsapp-link:hover {
  color: #ffffff;
  background: rgba(25, 199, 216, 0.14);
  border-color: rgba(25, 199, 216, 0.45);
  transform: translateY(-1px);
}

/* Performance: poster estático para mobile; el video se descarga solo en pantallas medianas/grandes. */
.hero {
  background:
    linear-gradient(180deg, rgba(3, 16, 26, 0.36), rgba(3, 16, 26, 0.86)),
    url('../img/hero-poster.webp') center center / cover no-repeat;
}

.about-media picture,
.cp-footer__logo picture,
.navbar-brand picture {
  display: block;
}

@media (max-width: 767.98px) {
  .hero-video {
    display: none;
  }
}
