.tienda-contenido {
  min-height: 65vh;
  padding-top: 4.5rem;
}

.tienda-encabezado {
  background: #eaf0f3;
  color: #141f26;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.tienda-encabezado p {
  max-width: 43rem;
  color: #425462;
}

.tienda-catalogo {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.tienda-pagina {
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

.tienda-tarjeta {
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #dce4e7;
  border-radius: 1rem;
}

.tienda-imagen {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 1.15rem;
  background: #eef1f4;
  color: #3c5563;
  font-size: 3rem;
}

.tienda-imagen-ficha {
  border-radius: 1rem;
  aspect-ratio: 1;
}

.tienda-imagen img {
  position: absolute;
  inset: 1.15rem;
  width: calc(100% - 2.3rem);
  height: calc(100% - 2.3rem);
  object-fit: contain;
}

.tienda-imagen.producto-herramienta { background-color: #e7f2ec; }
.tienda-imagen.producto-virtual { background-color: #e7f0f6; }
.tienda-imagen.producto-presencial { background-color: #f2eee8; }

.tienda-galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tienda-galeria a {
  display: block;
  overflow: hidden;
  border: 1px solid #dce4e7;
  border-radius: 0.65rem;
  background-color: #f7f8f9;
}

.tienda-galeria img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.tienda-galeria.producto-herramienta img { aspect-ratio: 2 / 1; }
.tienda-galeria a:hover,
.tienda-galeria a:focus-visible { border-color: #254a60; }

.tienda-tipo {
  color: #405966;
  font-size: 0.875rem;
  font-weight: 600;
}

.tienda-precio {
  color: #15232b;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tienda-precio small {
  font-size: 0.85rem;
  font-weight: 500;
  color: #495b65;
}

.tienda-volver { color: #254a60; }
.tienda-descripcion { max-width: 64ch; color: #354955; line-height: 1.65; }
.tienda-descripcion a { color: #254a60; text-decoration: underline; }
.tienda-video { display: block; }

.tienda-video iframe {
  display: block;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.65rem;
  background-color: #15232b;
}

.tienda-video a { display: inline-block; margin-top: 0.35rem; }
.tienda-resumen { max-width: 42rem; }
.tienda-cantidad { max-width: 8rem; }

.tienda-contenido .errorlist {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  color: #a61b20;
}
