html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

body.nav-open {
  overflow: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #f1f1f1;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height: 50px;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  z-index: 1010;
}

.logo img {
  height: 50px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.cta {
  background: #8e44ad;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1010;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

.hero {
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  color: white;
  background-image: url('ColombiaTech_Empowering_Your_Success_low.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #555;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}


.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero .btn {
  background: #8e44ad;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
}

h2 {
  color: #3498db;
}

section {
  padding: 3rem 2rem;
}

section[id] {
  scroll-margin-top: 82px;
}

#services {
  background-color: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  color: #8e44ad;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #333;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}


#industries {
  background: #3498db;
}

#industries h2 {
  color: #fff;
}

.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.industries-list li {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  cursor: default;
}

.industries-list li:hover {
  background: #fff;
  color: #3498db;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

input, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button[type="submit"] {
  background: #8e44ad;
  color: white;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #eee;
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 2rem 1rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: block;
  }
  
  .hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  #main-nav {
    position: fixed;
    transform: translateX(-100%); 
    left: 0;
    top: 82px;
    gap: 2rem;
    flex-direction: column;
    background-color: #f1f1f1;
    width: 100%;
    height: calc(100vh - 82px);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    justify-content: center;
    z-index: 999;
  }
  
  #main-nav ul {
    flex-direction: column;
    gap: 2rem;
  }
  
  #main-nav.is-active {
    transform: translateX(0);
  }
}

/* --- NUEVOS ESTILOS PARA EL MENSAJE DEL FORMULARIO --- */
#form-status {
  max-width: 500px;
  margin: 1rem auto 0;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
}

#form-status.success {
  background-color: #d4edda;
  color: #155724;
}

#form-status.error {
  background-color: #f8d7da;
  color: #721c24;
}