body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: #064635;
}

header {
    background-color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    background-color: #fff;
}

.logo {
    width: 255px;
    height: 74px;
    opacity: 1;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 550;
    font-size: 20px;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px 0;
    padding: 20px;
    margin-top: 180px;
  }
  
  .service {
    width: 260px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0 auto;
    background-color: #064635;
  }
  
  .service img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    padding: 0;
    margin: 0;
  }
  
  /* Centrado para la última fila cuando tiene menos de 3 elementos */
  .services::after {
    content: '';
    flex: auto;
  }
  
  /* Estilos específicos para cuando hay 1 o 2 elementos en la última fila */
  .services:has(:nth-child(3n-2):last-child),
  .services:has(:nth-child(3n-1):last-child) {
    grid-template-columns: 1fr auto 1fr;
  }
  
  .services:has(:nth-child(3n-2):last-child) .service:last-child,
  .services:has(:nth-child(3n-1):last-child) .service:nth-last-child(-n+2) {
    grid-column: 2;
  }