:root {
  --color-primary: #0077ff;
  --color-accent: #1fb57b;
  --color-bg: #f9f9f9;
  --color-light: #fff;
  --color-dark: #222;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
}

section {
  scroll-margin-top: 70px; /* o la altura de tu header */
}

.section-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.section-header img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 1rem;
}

.title-wrapper {
  display: inline-block;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-secondary);
  margin-top: 0.3rem;
  font-style: normal;
  font-weight: 500;
  opacity: 0.8;
}
header {
  background: var(--color-light);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 100;
}

header h1 {
  color: var(--color-primary);
  font-size: 1.5rem;
  user-select: none;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-dark);
  user-select: none;
}

/* Responsive menú */

@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-light);
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section h2 {
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.services-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.proyectos-wrapper{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.card-inner {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.card-inner .icon-circle {
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  margin-right: 15px;
  padding:5px;
  box-sizing: border-box; /* Asegura que el padding y border no afecten al tamaño */
}

.card-inner-proyecto {
  display: flex;
  flex-direction: column; /* Orden natural: image arriba, desc abajo */
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.card-inner-proyecto img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.card-inner-proyecto a {
  color: #1fb57b;
  text-decoration: none;
  margin: 0 0.3rem;
}
.desc h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.desc p {
  margin: 5px 0 0;
  color: #555;
}

/* Responsividad */
@media (max-width: 768px) {
  .services-wrapper,
  .proyectos-wrapper  {
    grid-template-columns: 1fr;
  }
}


ul {
  margin-left: 1.2rem;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.3rem;
}



form {
  background: var(--color-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
  max-width: 600px;
  margin-top: 1rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

form input, form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

form button {
  background: var(--color-primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #005bbb;
}


footer {
  background-color: #111;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}

footer a {
  color: #1fb57b;
  text-decoration: none;
  margin: 0 0.3rem;
}

footer a:hover {
  text-decoration: underline;
}

 .hero {
      text-align: center;
      padding: 6rem 2rem;
    }

    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .hero p {
      font-size: 1.2rem;
      color: #555;
      margin-bottom: 2rem;
    }

    .btn {
      display: inline-block;
      background: var(--color-primary);
      color: white;
      padding: 0.75rem 1.5rem;
      border-radius: 5px;
      text-decoration: none;
      transition: background 0.3s;
    }

    .btn:hover {
      background: #005ec4;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    .card {
      background: white;
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .card h3 {
      margin-bottom: 0.5rem;
      color: var(--color-dark);
    }