:root {
  --primary-color: #00aaff;
  --secondary-color: #0077b6;
  --light-bg: #e6f7ff;
  --text-dark: #333;
  --text-light: #444;
  --highlight-color: #0056b3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background: url('./2.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 90px;
  background-color: #0074a8;
  padding: 0 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: "Varela Round", sans-serif;
}

.navbar a {
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0 8px;
  white-space: nowrap;
}

.logo-link img.logo-nav {
  max-height: 93px;
  width: auto;
  display: block;
}

/* TÍTULO */
h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  padding-top: 15px;
}

/* GRID */
.services .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-items: center;
  padding: 20px;
}

/* BOTÓN SERVICIO */
.boton-servicio {
  position: relative;
  background-color: var(--light-bg);
  border: 3px solid var(--highlight-color);
  border-radius: 16px;
  width: 600px;
  height: 200px;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.boton-servicio:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.boton-servicio img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boton-servicio h3 {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.2rem;
  color: #0074a8;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 0 20px;
    gap: 0;
  }

  .navbar a {
    font-size: 0.9rem;
    padding: 0 5px;
  }

  .logo-link img.logo-nav {
    max-height: 70px;
  }

  .services .grid {
    grid-template-columns: 1fr;
    gap: 15px;
    justify-items: center;
    padding: 10px;
  }

  .boton-servicio {
    width: 90%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .boton-servicio h3 {
    font-size: 1rem;
    padding: 4px 8px;
  }
}

/* FOOTER */
footer {
  background-color: #0074a8;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  font-family: 'Varela Round', sans-serif;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: white;
}
