:root {
  --background: #070f2b;
  --surface: #0f1e47;
  --surface-soft: #142b65;
  --brand: #1e74ff;
  --brand-2: #2ca4ff;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --success: #25d366;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Roboto", "Ubuntu", sans-serif;
  background: linear-gradient(160deg, #050c22, #07143a 35%, #0a2560 100%);
  color: var(--text);
}

a {
  text-decoration: none;
}

.section {
  padding: 88px 0;
}

.section-title {
  margin-bottom: 36px;
}

.section-title h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.section-title p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 17px;
}

.header {
  z-index: 997;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 33, 0.82);
  backdrop-filter: blur(10px);
}

.logo {
  color: var(--text);
  gap: 10px;
}

.logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo {
  margin: 0 auto 12px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.sitename {
  font-family: "Ubuntu", sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.navmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 26px;
}

.navmenu a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  transition: color 0.25s ease;
}

.navmenu a:hover,
.navmenu a.active {
  color: #fff;
}

/* Dropdown */
.navmenu .dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.navmenu .dropdown > a .toggle-dropdown {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.navmenu .dropdown:hover > a .toggle-dropdown,
.navmenu .dropdown.dropdown-active > a .toggle-dropdown {
  transform: rotate(180deg);
}

.navmenu .dropdown ul {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: rgba(8, 18, 45, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.navmenu .dropdown:hover ul,
.navmenu .dropdown.dropdown-active ul {
  display: flex;
}

.navmenu .dropdown ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.navmenu .dropdown ul li a:hover {
  background: rgba(44, 164, 255, 0.15);
  color: #fff;
}

.navmenu li.dropdown {
  position: relative;
}

.mobile-nav-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
}

.btn-header,
.btn-primary,
.btn-secondary {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-header,
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 12px 22px;
}

.btn-header:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 116, 255, 0.25);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 11px 22px;
}

.btn-secondary:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(44, 164, 255, 0.2), transparent 36%),
    radial-gradient(circle at 80% 80%, rgba(30, 116, 255, 0.2), transparent 38%);
}

.hero-background .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 8, 21, 0.8), rgba(9, 34, 84, 0.62));
}

.hero-background .grid-light {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

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

.hero-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.14;
  font-family: "Ubuntu", sans-serif;
}

.hero p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 760px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-item,
.infra-item,
.rubro-card,
.info-item,
.cta .container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.service-item {
  padding: 26px 24px;
}

.service-item .icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 116, 255, 0.25), rgba(44, 164, 255, 0.22));
  color: #fff;
  font-size: 24px;
}

.service-item h3 {
  margin: 16px 0 10px;
  font-size: 24px;
  font-family: "Ubuntu", sans-serif;
}

.service-item p {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.card-link {
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  gap: 7px;
}

.card-link:hover {
  color: var(--brand-2);
}

.about {
  background: rgba(4, 10, 29, 0.54);
}

.infra-item,
.rubro-card {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  font-weight: 700;
}

.portfolio {
  background: rgba(5, 14, 40, 0.46);
}

.cta .container {
  padding: 32px 28px;
}

.cta h3 {
  margin: 0;
  font-size: 2rem;
  font-family: "Ubuntu", sans-serif;
}

.cta p {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.info-item {
  min-height: 170px;
  padding: 26px;
  text-align: center;
}

.info-item i {
  font-size: 32px;
  color: #fff;
}

.info-item h4 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.info-item p {
  margin: 0;
  color: var(--text-soft);
}

.footer {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 8, 21, 0.9);
  text-align: center;
}

.footer p {
  color: var(--text-soft);
}

.footer .social-links {
  gap: 12px;
  margin: 10px 0 14px;
}

.footer .social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.footer .social-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 1199px) {
  .navmenu ul {
    position: fixed;
    inset: 72px 12px auto 12px;
    background: rgba(8, 18, 45, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    display: none;
    flex-direction: column;
    gap: 12px;
  }

  .navmenu.navmenu-active ul {
    display: flex;
  }

  /* Dropdown en mobile: posición relativa, no flotante */
  .navmenu .dropdown ul {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(44, 164, 255, 0.3);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    margin-top: 4px;
    background: transparent;
  }

  .navmenu .dropdown:hover ul,
  .navmenu .dropdown.dropdown-active ul {
    display: flex;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .btn-header {
    display: none;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 86vh;
    padding-top: 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .section-title h2 {
    font-size: 30px;
  }
}

/* Product Cards Styles */
#productos .container-fluid {
  max-width: 100%;
}

#productos .service-item {
  background: linear-gradient(135deg, rgba(20, 43, 101, 0.6), rgba(15, 30, 71, 0.8));
  border: 1px solid rgba(44, 164, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0 !important;
}

#productos .service-item:hover {
  transform: translateY(-8px);
  border-color: rgba(44, 164, 255, 0.6);
  background: linear-gradient(135deg, rgba(30, 116, 255, 0.15), rgba(44, 164, 255, 0.1));
  box-shadow: 0 20px 40px rgba(44, 164, 255, 0.2);
}

#productos .service-item img {
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  border-bottom: 1px solid rgba(44, 164, 255, 0.2);
}

#productos .producto-img {
  width: 100%;
  height: clamp(220px, 20vw, 300px);
  object-fit: contain;
  object-position: center;
  background: rgba(7, 20, 56, 0.8);
}

#productos .service-item h4 {
  color: #fff;
  font-weight: 700;
  margin: 16px 16px 12px 16px;
  font-size: 18px;
}

#productos .service-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 16px;
}

#productos .service-item h5 {
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
  margin: 12px 16px !important;
}

#productos .btn-success {
  background: linear-gradient(135deg, var(--success), #20b861);
  border: 0;
  transition: all 0.3s ease;
  margin: 0 16px 16px 16px;
}

#productos .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
  background: linear-gradient(135deg, #20b861, var(--success));
  color: #fff;
}

@media (max-width: 768px) {
  #productos .service-item {
    margin-bottom: 12px;
  }

  #productos .producto-img {
    height: auto;
    min-height: 180px;
    padding: 0 !important;
  }

  #productos .service-item h4 {
    font-size: 16px;
  }

  #productos .service-item p {
    font-size: 13px;
  }
}
