:root {
    --primary-color: #1E232B;
    --accent-color: #0D47A1;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --bg-gradient: linear-gradient(to bottom, #0D47A1, #1E232B);
    --highlight: #50A67D;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
  }

  header.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    flex-wrap: wrap;
  }

  .logo p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
  }

  nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }

  nav a:hover,
  .btn-contact {
    color: var(--highlight);
  }

  .btn-contact {
    background-color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
  }

  .hero {
    background: var(--bg-gradient);
    padding: 100px 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: auto;
  }

  .scroll-down {
    font-size: 2rem;
    margin-top: 40px;
    color: var(--text-light);
  }

  section {
    width: 100%;
  }

  .content-section, .about, .services, .contact {
    padding: 80px 20px;
    max-width: 700px;
    text-align: center;
    margin: auto;
  }

  .about p,
  .contact p {
    max-width: 700px;
    margin: auto;
    color: var(--text-muted);
    text-align: center;
  }

  h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-light);
  }

  h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--highlight);
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }

  .service-card {
    background-color: #263238;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s;
    border-left: 5px solid var(--highlight);
  }

  .service-card:hover {
    transform: translateY(-5px);
    background-color: #37474F;
  }

  .highlighted {
    background-color: var(--accent-color);
    color: white;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: auto;
  }

  input, textarea {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    width: 100%;
  }

  textarea {
    resize: vertical;
    min-height: 120px;
  }

  button[type="submit"] {
    background-color: var(--highlight);
    color: white;
    padding: 12px;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
  }

  button[type="submit"]:hover {
    background-color: #3c8d6f;
  }

  footer {
    background-color: var(--accent-color);
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-light);
    text-align: center;
  }


  /* Animación inicial oculta */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Cuando está visible */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero title animación */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero p {
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


  @media (max-width: 1024px) {
    .hero h1 {
      font-size: 2.5rem;
    }
  }

  @media (max-width: 768px) {
    header.navbar {
      flex-direction: column;
      align-items: flex-start;
      padding: 20px;
    }

    nav ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
      margin-top: 10px;
    }

    .hero {
      padding: 60px 20px;
    }

    .hero h1 {
      font-size: 2rem;
    }

    .service-card {
      padding: 15px;
    }

    .content-section, .about, .services, .contact {
      padding: 60px 20px;
    }

    form {
      padding: 0 10px;
    }
  }

  @media (max-width: 480px) {
    
    .logo{
      width: 100%;
      display: flex;
      justify-content: center;
      margin:10px 0px;
    }

    .nav-item{
      width: 100%;
      display: flex;
      justify-content: center;
    }

    .btn-contact{
      margin: 20px 0px;
    }

    .hero h1 {
      font-size: 1.8rem;
    }

    .hero p {
      font-size: 1rem;
    }

    h2 {
      font-size: 2rem;
    }

    h3 {
      font-size: 1.2rem;
    }

    nav ul {
      gap: 10px;
    }
  }