/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
}

/* Containers */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: #000;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  height: 50px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover {
  text-decoration: underline;
}

/* Submenú - Desktop */
.submenu {
  display: none;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-top: 5px;
  padding: 0;
  list-style: none;
  min-width: 160px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}
.submenu-parent {
  position: relative;
}
.submenu-parent:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.submenu li a {
  display: block;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}
.submenu li a:hover {
  background-color: #f0f0f0;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Hero / Home */
.hero {
  background: url('assets/hero.jpg') center center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.herosolu {
  background: url('assets/solu.jpg') center center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  color: #fff;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
}
.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  background: #ffc107;
  color: #000;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
}
.btn-primary:hover {
  background: #e0a800;
}

/* Section base */
section {
  padding: 4rem 1rem;
}
section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #003b6f;
}

/* Solutions */
.features {
  background: #fff;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.feature-card {
  flex: 1 1 300px;
  background: #f0f4f8;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

/* Industries */
.industries-section {
  background: #eef3f9;
}
.industry-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.industry-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  flex: 1 1 200px;
  text-align: center;
  font-weight: 500;
}

/* About */
.about-section {
  background: #fff;
  text-align: center;
}
.about-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: auto;
}

/* Contact */
.contact-section {
  background: #000;
  color: #fff;
  text-align: center;
}
.contact-section a {
  color: #80bfff;
  text-decoration: none;
}
.contact-section a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2rem 1rem;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  color: #ccc;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Botón secundario */
.btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  background: #005a9c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
}
.btn-secondary:hover {
  background: #003f73;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container,
  .footer-container,
  .feature-grid,
  .industry-cards {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: #003b6f;
    padding: 1rem 0;
    z-index: 999;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .main-nav.show {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Submenú Mobile */
  .submenu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background-color: #003b6f;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }

  .submenu li a {
    color: #fff;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .submenu li a:hover {
    background-color: #005a9c;
  }

  .submenu-parent.active .submenu {
    display: block;
  }
}
