@font-face {
  font-family: 'PLANK';
  src: url('PLANK.TTF') format('truetype');
  font-style: normal;
  font-weight: normal;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  z-index: 100;
  height: 60px;
}

h1{
  font-size: 70PX;
  font-family: "PLANK";
  letter-spacing: 4px;
  position: static;
  text-align: center;
}

.titulo-servicio {
  font-size: 70px;
  font-family: "PLANK";
  letter-spacing: 4px;
  text-align: center;
  margin: 120px 0 20px;
  text-decoration-line: underline;

}

.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  padding: 24px 32px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.imagen {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.imagen img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  border: 2px solid #000;
  border-radius: 8px 8px 0 0;
  transition: filter 0.4s ease;
}

.imagen:hover img {
  filter: blur(6px);
}

.texto {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 8px 6px;
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  line-height: 1.3;
}

.texto-superpuesto {
  position: absolute;
  inset: 0 0 36px 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px 8px 0 0;
}

.imagen:hover .texto-superpuesto {
  opacity: 1;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }


@media (max-width: 900px) {
  .catalogo {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 16px 20px 40px;
  }
}

@media (max-width: 600px) {
  .titulo-servicio {
    font-size: 40px;
    margin-top: 80px;
    text-decoration-line: underline;

  }

  .catalogo {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    padding: 12px 12px 32px;
  }

  .texto-superpuesto {
    font-size: 11px;
    padding: 6px;
  }

  header {
    height: 50px;
  }

  #searchBar {
    top: 5px;
    width: 60%;
    right: 10px;
  }
}

@media (max-width: 380px) {
  .catalogo {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
}
